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

#   checkout going to previous page

##

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

Less More

- Posts: 217
- Thank you received: 1
-
-

12 years 6 months ago [\#154958](#154958) by [Mat](/forum/user/4216-mat "View Mat's Profile")  *[checkout going to previous page](/forum/27-checkout/867985-checkout-going-to-previous-page#154958 "-- url of the page with the problem -- : hhttps://www.nswnationals.org.au/ -- HikaShop version -- : 2.3.0  Hi guys,  Based upon previous discussions with setting up hikacart I editted this file. I have edited the files components/com&#95;hikashop/controllers/checkout.php to have the cart return to the page it came from, if it is empty. This works great when they are shopping.  But it seems to be returning to that previous page and not showing the final checkout message when they actually buy something. What can I do in that situation?  Where should I best set the redirect&#95;url in the checkout.php file to return to the previous part on an empty cart pease?")* was created by *[Mat](/forum/user/4216-mat "View Mat's Profile")*

-- url of the page with the problem -- : hhttps://www.nswnationals.org.au/
-- HikaShop version -- : 2.3.0

Hi guys,

Based upon previous discussions with setting up hikacart I editted this file.
I have edited the files
components/com_hikashop/controllers/checkout.php to have the cart return to the page it came from, if it is empty. This works great when they are shopping.

But it seems to be returning to that previous page and not showing the final checkout message when they actually buy something. What can I do in that situation?

Where should I best set the redirect_url in the checkout.php file to return to the previous part on an empty cart pease?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 6 months ago [\#154988](#154988) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[checkout going to previous page](/forum/27-checkout/867985-checkout-going-to-previous-page#154988 "-- url of the page with the problem -- : hhttps://www.nswnationals.org.au/ -- HikaShop version -- : 2.3.0  Hi guys,  Based upon previous discussions with setting up hikacart I editted this file. I have edited the files components/com&#95;hikashop/controllers/checkout.php to have the cart return to the page it came from, if it is empty. This works great when they are shopping.  But it seems to be returning to that previous page and not showing the final checkout message when they actually buy something. What can I do in that situation?  Where should I best set the redirect&#95;url in the checkout.php file to return to the previous part on an empty cart pease?")*

Hi,

Which discussion ? Which modification ?
Without any information about what you did modified, want can't know or understand the problem you got.
Specially because you don't have the original code...

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2Nzk4NS1jaGVja291dC1nb2luZy10by1wcmV2aW91cy1wYWdlP3RtcGw9bWFya2Rvd24=) 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.042 seconds

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