AI Builder:
Elevate Page Content
×
Cart
(
0
)
Your Cart
×
SERVICE
PRICE
QUANTITY
TOTAL
Total Price: $
0
$(function(){ setTimeout(function() { let shoppingCartWidget = $("[data-component-shoppingcart]"); if (shoppingCartWidget.length > 0) { let shoppingCart = init_shopping_cart(); if (!$(document).find('div#addcart_message').length) { $('<div id="addcart_message"></div>').prependTo(shoppingCartWidget); } $("body").on("click", ".add-to-cart", function(event) { event.preventDefault(); let title = $(this).data("name"); let id = $(this).data("id"); let ref_object = $(this).data("ref_object"); let price = Number($(this).data("price")); let image = $(this).data("image"); let image_exist = image ? image : ""; let max_items = $(this).data("max_items"); let max_items_exist = max_items ? max_items : ""; shoppingCart.addItemToCart(id, ref_object, title, price, 1,image_exist,max_items_exist); displayCart(); }); shoppingCartWidget.find(".clear-cart").click(function() { if (confirm('Are you sure you want to Clear the Cart?')) { shoppingCart.clearCart(); displayCart(); } else{ return false; } }); function displayCart() { $('#shoppingcart_popup .modal-footer').show(); let cartArray = shoppingCart.listCart(); let output = ""; console.log("cartarray",cartArray); if (cartArray.length >0) { for(var i in cartArray) { let min_qty_check = cartArray[i].count == 1 ? "disabled_cart_qty" : "cart_qty"; console.log("min_qty_check",min_qty_check); output += "<tr><th data-comp-title='Table Cell'class=' draggable' style='text-align: center;'><div data-comp-title='Grid Column' class='row text-center dropzone ui-droppable ml-1'><i data-id=" + cartArray[i].id + " class='delete-item fa-close fas fa-times draggable' style='font-size: 18px;color: #a1a1a1;'></i></div></th>" + "<td data-comp-title='Table Cell' class='draggable'><div data-comp-title='Grid Row' class='row mr-0 ml-0 dropzone ui-droppable' data-htmlcomponent-type='html/gridrow'><div data-comp-title='Grid Column' class='col-lg-4 text-center dropzone ui-droppable'><picture data-htmlcomponent-type='widgets/mediamanager' class='draggable' ><img data-component-mediamanager='Product Image' data-comp-title='Media Manager' src=" + cartArray[i].image + " style='mask-repeat: no-repeat;-webkit-mask-repeat: no-repeat;mask-position: 50% 50%;-webkit-mask-position: 50% 50%;mask-size: auto 100%;-webkit-mask-size: auto 100%;' data-src=" + cartArray[i].image + " data-source='LOCAL' data-license_type='FREE' data-img_id='0' width='100px' height='100px' alt='No Image' </picture></div><div data-comp-title='Grid Column' class='col-lg-8 dropzone ui-droppable' style='display: flex;align-items: center;'><span style='text-transform: uppercase; white-space: nowrap; font-size: 14px;font-weight: 600;' class='draggable'>"+ cartArray[i].title + "</span></div></div></td>" + "<td data-comp-title='Table Cell' class='draggable'><div style='font-weight: 600;' class='dropzone ui-droppable'>$"+ cartArray[i].price +"</div></td>" + "<td data-comp-title='Table Cell' class='draggable'> <div data-comp-title='Grid Column' class='row text-center dropzone ui-droppable'><div class='container'><div class='input-group spinner'><input maxlength="3" data-id=" + cartArray[i].id + " value=" + cartArray[i].count + " type='number' class='item-count form-control' data-comp-title='number Input' class='form-control' style='padding: 0px; width: 63px;text-align: center; height: 52px;'><div class='input-group-btn-vertical'><div data-id=" + cartArray[i].id + " class='btn btn-default plus-item'><i class='fa fa-caret-up'></i></div><div data-disabled="+min_qty_check+" data-id=" + cartArray[i].id + " class='minus-item btn btn-default'><i class='fa fa-caret-down'></i></div></div></div></div></div></td>" + "<td data-comp-title='Table Cell' class='draggable'>$" + cartArray[i].total + "</td>" + "</tr>"; } }else{ output += "<tr><td colspan='5'>Your Cart is Empty...</td></tr>"; $('#shoppingcart_popup .modal-footer').hide(); } shoppingCartWidget.find(".show-cart").html(output); shoppingCart_totalCart=Number(shoppingCart.totalCart()).toFixed(2); shoppingCartWidget.find(".total-cart").html(shoppingCart_totalCart); shoppingCartWidget.find(".total-count").html(shoppingCart.totalCount()); } shoppingCartWidget.find(".show-cart").on("click", ".delete-item", function(event) { if (confirm('Are you sure you want to remove this item?')) { let id = $(this).data("id"); shoppingCart.removeItemFromCartAll(id); displayCart(); } else{ return false; } }); shoppingCartWidget.find(".show-cart").on("click", ".minus-item", function(event) { let id = $(this).data("id"); shoppingCart.removeItemFromCart(id); displayCart(); }); shoppingCartWidget.find(".show-cart").on("click", ".plus-item", function(event) { let id = $(this).data("id"); shoppingCart.addItemToCart(id); displayCart(); }); shoppingCartWidget.find(".show-cart").on("change", ".item-count", function(event) { let id = $(this).data("id"); let count = Number($(this).val()); shoppingCart.setCountForItem(id, count); displayCart(); }); displayCart(); } }, 2000); });
(732) 603-1262
Home
About Us
Services
4x-Conversions
Vacation Giveaways
Pay Per Result SEO
Email Marketing
Winning Website
Facebook Advertising
Business Listings & Voice search
Google Advertising
Financing Solutions
Pay Per Revenue Marketing
Website Accessibility
Review Generation Reputation
Missed Call Text Back
Search Box Optimization
Contact Us
activeMenuUrl()
Contents will be displayed here...
Give us a chance to Help you.
1.Tell us more about your business
2. Tell us about your project
3. Tell us about yourself
success_redirect
isJson
Page Referer
Send me a Proposal
{"components":[{"label":"Columns","columns":[{"components":[{"label":"HTML","tag":"h3","className":"head3","attrs":[{"attr":"","value":""}],"content":"1.Tell us more about your business","refreshOnChange":false,"key":"html2","type":"htmlelement","input":false,"tableView":false,"id":"ewb72v","hideOnChildrenHidden":false}],"offset":0,"push":0,"pull":0,"size":"md","width":12},{"components":[{"label":"Business Name","placeholder":"Business Name*","hideLabel":true,"tableView":true,"validate":{"required":true},"key":"businessName","type":"textfield","input":true,"id":"ejkx63v","hideOnChildrenHidden":false}],"width":6,"offset":0,"push":0,"pull":0,"size":"md"},{"components":[{"label":"Business Size","widget":"choicesjs","placeholder":"Business Size","hideLabel":true,"tableView":true,"data":{"values":[{"label":"1-5 Employees","value":"15Employees"},{"label":"6-10 Employees","value":"610Employees"},{"label":"11-20 Employees","value":"1120Employees"},{"label":"21-50 Employees","value":"2150Employees"},{"label":"50+ Employees","value":"50Employees"}]},"selectThreshold":0.3,"key":"businessSize","type":"select","indexeddb":{"filter":{}},"input":true,"id":"eqaqxvs","hideOnChildrenHidden":false}],"size":"md","width":6,"offset":0,"push":0,"pull":0},{"components":[{"label":"Business Website","placeholder":"Business Website*","hideLabel":true,"tableView":true,"validate":{"required":true},"key":"businessWebsite","type":"textfield","input":true,"id":"ejbzxih","hideOnChildrenHidden":false}],"size":"md","offset":0,"push":0,"pull":0,"width":12},{"components":[{"label":"HTML","tag":"h3","className":"head3","attrs":[{"attr":"","value":""}],"content":"2. Tell us about your project","refreshOnChange":false,"key":"html1","type":"htmlelement","input":false,"tableView":false,"id":"edrxh3","hideOnChildrenHidden":false}],"size":"md","offset":0,"push":0,"pull":0,"width":12},{"components":[{"label":"Your Title","placeholder":"Your Title*","hideLabel":true,"tableView":true,"validate":{"required":true},"key":"yourTitle","type":"textfield","input":true,"id":"eg9bhlp","hideOnChildrenHidden":false}],"size":"md","width":6,"offset":0,"push":0,"pull":0},{"components":[{"label":"Select","widget":"choicesjs","placeholder":"Select option","hideLabel":true,"tableView":true,"data":{"values":[{"label":"Estimated Monthly Budget","value":"estimatedMonthlyBudget"},{"label":"$200-$500/mo.","value":"200500Mo"},{"label":"$500-$1,000/mo.","value":"5001000Mo"},{"label":"$1,000-$2,000/mo.","value":"10002000Mo"},{"label":"$2,000-$5,000/mo.","value":"20005000Mo"},{"label":"$5,000-$10,000/mo.","value":"500010000Mo"},{"label":"More than $10,000/mo.","value":"moreThan10000Mo"}]},"selectThreshold":0.3,"key":"selectBudget","type":"select","indexeddb":{"filter":{}},"input":true,"id":"e1qajbk","hideOnChildrenHidden":false}],"size":"md","width":6,"offset":0,"push":0,"pull":0},{"components":[{"label":"Project Question","placeholder":"Project Question / Comments*","autoExpand":false,"hideLabel":true,"tableView":true,"validate":{"required":true},"key":"projectQuestion","type":"textarea","input":true,"id":"ex1lrsl","hideOnChildrenHidden":false}],"size":"md","width":12,"offset":0,"push":0,"pull":0},{"components":[{"label":"HTML","tag":"h3","className":"head3","attrs":[{"attr":"","value":""}],"content":"3. Tell us about yourself","refreshOnChange":false,"key":"html","type":"htmlelement","input":false,"tableView":false,"id":"ej0jflg","hideOnChildrenHidden":false}],"size":"md","offset":0,"push":0,"pull":0,"width":12},{"components":[{"label":"Your Name","placeholder":"Your Name*","hideLabel":true,"tableView":true,"validate":{"required":true},"key":"yourName","type":"textfield","input":true,"id":"e7lcnwh","hideOnChildrenHidden":false}],"size":"md","offset":0,"push":0,"pull":0,"width":12},{"components":[{"label":"Email","placeholder":"Your Email*","hideLabel":true,"tableView":true,"validate":{"required":true},"key":"email","type":"email","input":true,"id":"eug5zoc","hideOnChildrenHidden":false}],"size":"md","width":6,"offset":0,"push":0,"pull":0},{"components":[{"label":"Phone Number","placeholder":"Your Phone Number*","hideLabel":true,"tableView":true,"validate":{"required":true},"key":"phoneNumber","type":"phoneNumber","input":true,"id":"e8jebcd","hideOnChildrenHidden":false}],"size":"md","width":6,"offset":0,"push":0,"pull":0},{"components":[{"label":"success_redirect","customClass":"d-none","tableView":true,"key":"success_redirect","type":"textfield","input":true,"id":"eyi7f2q","defaultValue":"?","hideOnChildrenHidden":false},{"label":"isJson","customClass":"d-none","tableView":true,"key":"isJson","type":"textfield","input":true,"id":"e4jz5bo","defaultValue":"1","hideOnChildrenHidden":false},{"label":"Page Referer","customClass":"d-none","tableView":true,"key":"pageReferer","type":"textfield","input":true,"id":"e9cq88k","defaultValue":"Contact Us","hideOnChildrenHidden":false},{"label":"Send me a Proposal","action":"url","showValidations":false,"tableView":false,"key":"sendMeAProposal","type":"button","input":true,"id":"en6luvf","hideOnChildrenHidden":false,"url":"https://n8n.owlapplicationbuilder.com/webhook/e6695be7-e520-42cf-89e8-147218d16fc0","headers":[{"header":"","value":""}]}],"size":"md","offset":0,"push":0,"pull":0,"width":12}],"key":"columns1","type":"columns","input":false,"tableView":false,"id":"ezmek1"}]}
Want to connect with a
marketing expert? Dial in!
(732) 603-1262