Expand my Community achievements bar.

Where commerce.addcartentry.html (commerce components) points to?

Avatar

Level 3

Hi Guys,

I just want to understand the addcart working in AEM, basically the code written in product.jsp initiates the process of adding items to cart but I'm confused at this code:

<form class="product-form" method="POST" action="<%= xssAPI.getValidHref(addToCartUrl) %>"

          onsubmit="return validateProductQuantity('<%= productQuantityId %>') && trackCartAdd(this)">

If you can see the action here, it points to your_page..commerce.addcartentry.html , but I couldn't find any page which resembles to such URL?

Could you please let me know after submitting this form how the control flow happens and where the compiler is pointing when it says .commerce.addcartentry.html?

0 Replies