- Posts: 7
- Thank you received: 0
Redirect to a form prior to checkout?
14 years 4 months ago - 14 years 4 months ago #51685
by Nigel123
Redirect to a form prior to checkout? was created by Nigel123
Hello,
would just like to redirect to a site URL before checkout in paypal, any advice?
would just like to redirect to a site URL before checkout in paypal, any advice?
Last edit: 14 years 4 months ago by Nigel123.
Please Log in or Create an account to join the conversation.
14 years 4 months ago #51786
by nicolas
Replied by nicolas on topic Re: Redirect to a form prior to checkout?
Hi,
You would have to edit the file "show" of the view "product" via the menu Display>Views and change the line:
<input type="hidden" name="return_url" value="<?php echo urlencode(base64_encode(urldecode($this->redirect_url)));?>"/>
to:
<input type="hidden" name="return_url" value="<?php echo urlencode(base64_encode(urldecode(' mywebsite.com/mypage.html ')));?>"/>
and turn off the option "Use AJAX when possible for add to cart buttons" in the Checkout tab of the configuration.
You would have to edit the file "show" of the view "product" via the menu Display>Views and change the line:
<input type="hidden" name="return_url" value="<?php echo urlencode(base64_encode(urldecode($this->redirect_url)));?>"/>
to:
<input type="hidden" name="return_url" value="<?php echo urlencode(base64_encode(urldecode(' mywebsite.com/mypage.html ')));?>"/>
and turn off the option "Use AJAX when possible for add to cart buttons" in the Checkout tab of the configuration.
Please Log in or Create an account to join the conversation.
14 years 4 months ago #51819
by Nigel123
Replied by Nigel123 on topic Re: Redirect to a form prior to checkout?
Thank you I am going to try this solution today.
Please Log in or Create an account to join the conversation.
Time to create page: 0.165 seconds