Child pages
  • [in-commerce] The "p_AddToCartLink" tag doesn't work in custom locations [5.2.2-B1]
Skip to end of metadata
Go to start of metadata

The <inp2:p_AddToCartLink template="__default__"/> tag is designed to build a link that, once visited will add that product to the Shopping Cart. Tag works flawlessly in places where it's used currently:

  • the list of products
  • product detail page

The problem however is with how this tag is written. Internally it relies on product ID being provided in Web Request and that makes it impossible to use in any other (except mentioned above) places.


  1. use ID of product from the object, rather than from Web Request
  2. specify "p_id" parameter via $link_params array (tag parameters) rather then setting it to the Web Request via "SetVar"

Related Tasks

MINC-144 - Getting issue details... STATUS

1 Comment

  1. Sponsored by rRPI21789.