Cart page redirection

  • Posts: 162
  • Thank you received: 0
9 years 7 months ago #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!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 7 months ago #197890

Hi,

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

<input type="hidden" name="return_url" value="<?php echo urlencode(base64_encode(hikashop_currentUrl('return_url'))); ?>"/>
After the latest "<input type="hidden" [...] />" HTML tag.

Please Log in or Create an account to join the conversation.

  • Posts: 162
  • Thank you received: 0
9 years 7 months ago #198047

Hi Xavier,

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

thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
9 years 7 months ago #198103

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 162
  • Thank you received: 0
9 years 7 months ago #198358

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!

Attachments:
Last edit: 9 years 7 months ago by info@vesica.org.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 7 months ago #198379

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

Please Log in or Create an account to join the conversation.

  • Posts: 162
  • Thank you received: 0
9 years 7 months ago #198515

Hi Xavier,

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

thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 7 months ago #198542

Hi,

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

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

The following user(s) said Thank You: info@vesica.org

Please Log in or Create an account to join the conversation.

  • Posts: 162
  • Thank you received: 0
9 years 7 months ago #198694

Hi Xavier,

Everything it's working perfect now.

thank you!

Please Log in or Create an account to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum