Articles on: FAQs

How to Manual Handle "Add to Cart" Event

This article will guide you on how to manually handle the "Add to Cart" process for personalized products on Customall. Instead of relying on automated processes, you can use JavaScript code to manually add items to the cart.


First, you need to create a manual "Add to Cart" event using JavaScript on Shopify Theme. Below is a sample code snippet:

window.manualATCEvent = function(){
  // Handle your logic here

}


Also Customall provide event to help you call add to cart after process your logic
window.ctasdk.addToCart()


Sample code for handle manual Add To Cart event
window.manualATCEvent = function(){
  // Handle your logic here
  alert("hello");
  window.ctasdk.addToCart()
}

Updated on: 29/07/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!