Where commerce.addcartentry.html (commerce components) points to? | Community
Skip to main content
New Participant
October 16, 2015
Solved

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

  • October 16, 2015
  • 2 replies
  • 739 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ogill

Hi,

if you want to see how a URL is resolved, have a look in recent requests from the Felix console. This explains how a request is resolved.

Clear the recent requests and then hit your URL.

You should also become familiar with the Sling cheat sheet[1]

Regards,

Opkar

[1] https://docs.adobe.com/docs/en/aem/6-1/develop/platform/sling-cheatsheet.html

2 replies

francisco_ribei
New Participant
October 16, 2015

Try use the Sling Servlet Resolver:

http://localhost:4502/system/console/servletresolver

Att

ogillAccepted solution
Employee
October 16, 2015

Hi,

if you want to see how a URL is resolved, have a look in recent requests from the Felix console. This explains how a request is resolved.

Clear the recent requests and then hit your URL.

You should also become familiar with the Sling cheat sheet[1]

Regards,

Opkar

[1] https://docs.adobe.com/docs/en/aem/6-1/develop/platform/sling-cheatsheet.html