0

I need to redirect product add to cart button to checkout page instead of cart page

and

also product will delete in cart before new add by custom module.

so how to do?

1

For Redirect after product add to cart:

add one hidden field in product view page with name return_url

<input type="hidden" value="<?php $this->getUrl('checkout/onepage')?>" name="return_url"/>

Now the page 'll redirect to the checkout onepage after adding the product to cart.

Refer this controller file.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.