[Skip to main content](#vessel-content)

#   Return URL from checkout to custom product page

##

- **[bart31](/forum/user/28720-bart31 "View bart31's Profile")**
- [![bart31's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28720-bart31 "View bart31's Profile") Topic Author
- [ Offline](/forum/user/28720-bart31)

Less More

- Posts: 27
- Thank you received: 0
-
-

13 years 1 week ago [\#133284](#133284) by [bart31](/forum/user/28720-bart31 "View bart31's Profile")  *[Return URL from checkout to custom product page](/forum/27-checkout/863772-return-url-from-checkout-to-custom-product-page#133284 "Hi there,  I'm trying to resolve a small issue :  I've made a custom page for a single product with many options (i only have one product on the website, with lots of &quot;item&quot; custom fields), so i'm using a form to send parameters to hikashop and proceed with the checkout. I also created a simple plugin based on the function onBeforeCartUpdate to erase the cart before adding my custom product, and i don't provide any &quot;return url&quot; in the hidden fields of my form for now.  Everything works fine, but i'm having a little issue with the return URL : once the customer is in the hikashop checkout, if he hits the &quot;back&quot; button of his browser, he can't go back to the form, he gets an error message and then needs to refresh the page to go back to the form.  I'm not sure if and where I could change the code to allow the user to go back to the product form ? Should i add a return url as a field in my form ?  Once again, this is a very little issue, i can keep it that way, but it would be great if I could correct this.")* was created by *[bart31](/forum/user/28720-bart31 "View bart31's Profile")*

Hi there,

I'm trying to resolve a small issue :

I've made a custom page for a single product with many options (i only have one product on the website, with lots of "item" custom fields), so i'm using a form to send parameters to hikashop and proceed with the checkout. I also created a simple plugin based on the function onBeforeCartUpdate to erase the cart before adding my custom product, and i don't provide any "return url" in the hidden fields of my form for now.

Everything works fine, but i'm having a little issue with the return URL : once the customer is in the hikashop checkout, if he hits the "back" button of his browser, he can't go back to the form, he gets an error message and then needs to refresh the page to go back to the form.

I'm not sure if and where I could change the code to allow the user to go back to the product form ? Should i add a return url as a field in my form ?

Once again, this is a very little issue, i can keep it that way, but it would be great if I could correct this.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2Mzc3Mi1yZXR1cm4tdXJsLWZyb20tY2hlY2tvdXQtdG8tY3VzdG9tLXByb2R1Y3QtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

13 years 1 week ago [\#133355](#133355) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Return URL from checkout to custom product page](/forum/27-checkout/863772-return-url-from-checkout-to-custom-product-page#133355 "Hi there,  I'm trying to resolve a small issue :  I've made a custom page for a single product with many options (i only have one product on the website, with lots of &quot;item&quot; custom fields), so i'm using a form to send parameters to hikashop and proceed with the checkout. I also created a simple plugin based on the function onBeforeCartUpdate to erase the cart before adding my custom product, and i don't provide any &quot;return url&quot; in the hidden fields of my form for now.  Everything works fine, but i'm having a little issue with the return URL : once the customer is in the hikashop checkout, if he hits the &quot;back&quot; button of his browser, he can't go back to the form, he gets an error message and then needs to refresh the page to go back to the form.  I'm not sure if and where I could change the code to allow the user to go back to the product form ? Should i add a return url as a field in my form ?  Once again, this is a very little issue, i can keep it that way, but it would be great if I could correct this.")*

Hi,

That's standard in browsers when you submit a form. If the user goes back, the browser ask him to validate. The solution is to not submit a form but to send the parameters as GET parameters (so in the URL). Not elegant at all. Or you do a 303 redirect after the post ( via a view override) to the same URL with an additional parameter in the URL (or one less) in order to avoid the warning.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2Mzc3Mi1yZXR1cm4tdXJsLWZyb20tY2hlY2tvdXQtdG8tY3VzdG9tLXByb2R1Y3QtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.049 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
