Monday 15 June 2015

How to get $this->getAddToCartUrl($product) in magento -


A PHP page has been created in the template / page / folder in my magenta application.

here One displayed product ... needs to be displayed again

  $ this-> GetAddToCartUrl ($ product)   

but this zero value comes back ... This means that no value has returned ...

I How can I get in my PHP page .......

This is the html code:

  & lt; Input id = "url_ & lt ;? php echo $ _iterator ;? & gt;" Name = "url _ $ _ iterator," type = "text" value = "& gt; php echo $ this-> getAddToCartUrl ($ product)? & Gt;" & Gt;   

Any solutions are ....

Do you try this ....

  & lt ;? Php echo $ this- & gt; Assistant ('Checkout / Cart') - & gt; GetAddUrl ($ _product)? & Gt;   

Instead try this instead of this $ this-> GetAddToCartUrl ($ product)

No comments:

Post a Comment