开发者

Magento: Redirect to a specific category after adding a product to cart

开发者 https://www.devze.com 2023-03-26 06:24 出处:网络
how can I redirect the user to a specific category 开发者_如何转开发after adding a product to cart ?

how can I redirect the user to a specific category 开发者_如何转开发after adding a product to cart ?

I use Magento 1.4.1.1

Thanks for help.


There no way to do this with out small programming effort. The simplest way i can think of is to use return_url parameter for "add to cart" form. Edit catalog/product/view/addtocart.phtml template by adding there hidden field like this

<input type="hidden" name="return_url" value="http://google.com" />

after button tag. In result after adding product to cart you will be redirected to pointed site.

Hope this will help you.

0

精彩评论

暂无评论...
验证码 换一张
取 消