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

#   Redirect to other page when item added to cart

##

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

Less More

- Posts: 73
- Thank you received: 1
-
-

13 years 1 month ago [\#124616](#124616) by [Ortix](/forum/user/12608-ortix "View Ortix's Profile")  *[Redirect to other page when item added to cart](/forum/31-development/862227-redirect-to-other-page-when-item-added-to-cart#124616 "-- HikaShop version -- : 1.6 -- Joomla version -- :2.5 -- PHP version -- : 5.3  I'm wondering how I can redirect to another page instead of the checkout when a product is added to the cart with a URL.  The URL is: index.php?option=com&#95;hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;product&#95;id=24&amp;Itemid=212 Can I pass a parameter to redirect it to another page? Thanks!")* was created by *[Ortix](/forum/user/12608-ortix "View Ortix's Profile")*

-- HikaShop version -- : 1.6
-- Joomla version -- :2.5
-- PHP version -- : 5.3

I'm wondering how I can redirect to another page instead of the checkout when a product is added to the cart with a URL.

The URL is:
index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;product_id=24&amp;Itemid=212
Can I pass a parameter to redirect it to another page? Thanks!

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 month ago [\#124699](#124699) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Redirect to other page when item added to cart](/forum/31-development/862227-redirect-to-other-page-when-item-added-to-cart#124699 "-- HikaShop version -- : 1.6 -- Joomla version -- :2.5 -- PHP version -- : 5.3  I'm wondering how I can redirect to another page instead of the checkout when a product is added to the cart with a URL.  The URL is: index.php?option=com&#95;hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;product&#95;id=24&amp;Itemid=212 Can I pass a parameter to redirect it to another page? Thanks!")*

Hi,

I think that the best way is to create a little plugin based on the function: Code:

onAfterCartUpdate(&amp;$this,&amp;$cart,$product_id,$quantity,$add,$type,$resetCartWhenUpdate,$force)

Here is some documentation:
[ www.hikashop.com/support/documentation/6...umentation.html#cart](http://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#cart)

Else you can edit the file: "components/com_hikashop/views/product/view.html.php" function "init()" and replace: Code:

$url = $this-&gt;_getCheckoutURL();

in the "checkout" case by: Code:

index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;product_id=24&amp;Itemid=212

Be careful, with the second option when you update HikaShop the changes will be lost.

The following user(s) said Thank You: [Ortix](/forum/user/12608-ortix "View Ortix's Profile")

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

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