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

#   Cart page redirection

##

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

Less More

- Posts: 162
- Thank you received: 0
-
-

11 years 7 months ago [\#197865](#197865) by [info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")  *[Cart page redirection](/forum/27-checkout/876261-cart-page-redirection#197865 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4  Hi,  on the cart page when I have 2 or more products in cart and I'm trying to delete one, every time I do that, I'm redirected to the checkout page. This doesn't happen when I have only one product in cart.  Could you please help me?  thanks!")* was created by *[info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4

Hi,

on the cart page when I have 2 or more products in cart and I'm trying to delete one, every time I do that, I'm redirected to the checkout page. This doesn't happen when I have only one product in cart.

Could you please help me?

thanks!

- [ ![screen&#95;2015-04-09.png](/forum/attachment/23639) ](/forum/attachment/23639 "...2015-04-09.png") [ ](/forum/attachment/23639?download=1 "...2015-04-09.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NjI2MS1jYXJ0LXBhZ2UtcmVkaXJlY3Rpb24/dG1wbD1tYXJrZG93bg==) 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)
-

11 years 7 months ago [\#197890](#197890) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Cart page redirection](/forum/27-checkout/876261-cart-page-redirection#197890 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4  Hi,  on the cart page when I have 2 or more products in cart and I'm trying to delete one, every time I do that, I'm redirected to the checkout page. This doesn't happen when I have only one product in cart.  Could you please help me?  thanks!")*

Hi,

Please edit the view "product / cart" and "cart / showcart" and add the code line: Code:

&lt;input type="hidden" name="return_url" value="&lt;?php echo urlencode(base64_encode(hikashop_currentUrl('return_url'))); ?&gt;"/&gt;

After the latest "&lt;input type="hidden" [...] /&gt;" HTML tag.

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

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

Less More

- Posts: 162
- Thank you received: 0
-
-

11 years 7 months ago [\#198047](#198047) by [info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")  Replied by *[info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")* on topic *[Cart page redirection](/forum/27-checkout/876261-cart-page-redirection#198047 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4  Hi,  on the cart page when I have 2 or more products in cart and I'm trying to delete one, every time I do that, I'm redirected to the checkout page. This doesn't happen when I have only one product in cart.  Could you please help me?  thanks!")*

Hi Xavier,

sorry, I've tried, but it doesn't work for me.

thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NjI2MS1jYXJ0LXBhZ2UtcmVkaXJlY3Rpb24/dG1wbD1tYXJrZG93bg==) 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)
-

11 years 7 months ago [\#198103](#198103) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Cart page redirection](/forum/27-checkout/876261-cart-page-redirection#198103 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4  Hi,  on the cart page when I have 2 or more products in cart and I'm trying to delete one, every time I do that, I'm redirected to the checkout page. This doesn't happen when I have only one product in cart.  Could you please help me?  thanks!")*

Hi,

Are you sure that you edited the views (the two that Xavier mentioned) for the right template ?
Do you see your modification in the page source ?

We do not have any link to your website so we are not able to check it.

Regards,

---

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

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

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

Less More

- Posts: 162
- Thank you received: 0
-
-

11 years 7 months ago -  11 years 7 months ago [\#198358](#198358) by [info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")  Replied by *[info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")* on topic *[Cart page redirection](/forum/27-checkout/876261-cart-page-redirection#198358 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4  Hi,  on the cart page when I have 2 or more products in cart and I'm trying to delete one, every time I do that, I'm redirected to the checkout page. This doesn't happen when I have only one product in cart.  Could you please help me?  thanks!")*

Hi Jerome,

yes, I'm sure. The problem is that the outcome in the Chrome inspector is an encoded string. Please see screenshot.

I've also send the link with the problem and logins via your contact form. In the email is the link to this forum post.

Also the problem is only in the showcart.php file

thanks!

- [ ![screen&#95;2015-04-13.png](/forum/attachment/23740) ](/forum/attachment/23740 "...2015-04-13.png") [ ](/forum/attachment/23740?download=1 "...2015-04-13.png")

Last edit: 11 years 7 months ago by [info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NjI2MS1jYXJ0LXBhZ2UtcmVkaXJlY3Rpb24/dG1wbD1tYXJrZG93bg==) 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)
-

11 years 7 months ago [\#198379](#198379) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Cart page redirection](/forum/27-checkout/876261-cart-page-redirection#198379 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4  Hi,  on the cart page when I have 2 or more products in cart and I'm trying to delete one, every time I do that, I'm redirected to the checkout page. This doesn't happen when I have only one product in cart.  Could you please help me?  thanks!")*

Hi,

Could you give us a ftp access in order to debug that issue directly on your website ?

The following user(s) said Thank You: [info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")

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

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

Less More

- Posts: 162
- Thank you received: 0
-
-

11 years 7 months ago [\#198515](#198515) by [info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")  Replied by *[info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")* on topic *[Cart page redirection](/forum/27-checkout/876261-cart-page-redirection#198515 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4  Hi,  on the cart page when I have 2 or more products in cart and I'm trying to delete one, every time I do that, I'm redirected to the checkout page. This doesn't happen when I have only one product in cart.  Could you please help me?  thanks!")*

Hi Xavier,

I've sent the logins via your contact form with link to this post.

thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NjI2MS1jYXJ0LXBhZ2UtcmVkaXJlY3Rpb24/dG1wbD1tYXJrZG93bg==) 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)
-

11 years 7 months ago [\#198542](#198542) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Cart page redirection](/forum/27-checkout/876261-cart-page-redirection#198542 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4  Hi,  on the cart page when I have 2 or more products in cart and I'm trying to delete one, every time I do that, I'm redirected to the checkout page. This doesn't happen when I have only one product in cart.  Could you please help me?  thanks!")*

Hi,

Problem solved, I edited the view "cart / showcart" and replaced: Code:

&lt;a class="hikashop_no_print btn-trash" href="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart&amp;stay=1&amp;delete=1&amp;quantity=0&amp;cart_type='.$cart_type.'&amp;cart_id='.$cart-&gt;cart_id.'&amp;cart_product_id='.$cart-&gt;cart_product_id.'&amp;Itemid='.$Itemid); ?&gt;" title="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;"&gt; &lt;i class="icon-trash"&gt;&lt;/i&gt; &lt;/a&gt;

By: Code:

&lt;a class="hikashop_no_print btn-trash" href="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart&amp;stay=1&amp;delete=1&amp;quantity=0&amp;cart_type='.$cart_type.'&amp;cart_id='.$cart-&gt;cart_id.'&amp;cart_product_id='.$cart-&gt;cart_product_id.'&amp;Itemid='.$Itemid.'&amp;return_url='.base64_encode(hikashop_currentUrl('return_url'))); ?&gt;" title="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;"&gt; &lt;i class="icon-trash"&gt;&lt;/i&gt; &lt;/a&gt;

The following user(s) said Thank You: [info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")

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

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

Less More

- Posts: 162
- Thank you received: 0
-
-

11 years 7 months ago [\#198694](#198694) by [info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")  Replied by *[info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")* on topic *[Cart page redirection](/forum/27-checkout/876261-cart-page-redirection#198694 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4  Hi,  on the cart page when I have 2 or more products in cart and I'm trying to delete one, every time I do that, I'm redirected to the checkout page. This doesn't happen when I have only one product in cart.  Could you please help me?  thanks!")*

Hi Xavier,

Everything it's working perfect now.

thank you!

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

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