Child pages
  • [in-commerce] The "orditems:LinkRemoveFromCart" tag uses HREF directly [5.2.2-B1]
Skip to end of metadata
Go to start of metadata

The "orditems:LinkRemoveFromCart" tag content looks like this:

return $this->Application->HREF(
	$this->Application->GetVar('t'),
	'',
	Array('pass' => 'm,orditems,ord', 'ord_event' => 'OnRemoveFromCart', 'm_cat_id'=>0)
);

It does work, but creates following issues:

  1. the developer can't specify different template OR add another parameter
  2. the "HREF" method is called directly without using the "m_Link" and that leads to missing HTML encoding of final link
  3. no way to use link in JavaScript, because the "no_amp" parameter is completely ignored

Solution

Rewrite tag to use "m_Link" tag internally.

Related Tasks

MINC-145 - Getting issue details... STATUS