Redirect the mini cart module to the cart page

  • Posts: 202
  • Thank you received: 3
4 years 2 months ago #323620

-- HikaShop version -- : 4.3.0 buisiness
-- Joomla version -- : 3.9.19
-- PHP version -- : 7.3
-- Browser(s) name and version -- : Chrome

Hi
How can we have the cart module redirect on the cart page instead of the checkout page as it currently is ?

we set up the cart module as a mini cart module but when we click on it we go to the checkout page while we want to go to the full cart page

thanks for your help

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 2 months ago #323623

Hi,

So if I understand correctly, you want to change the "proceed to checkout" button of the checkout (or the link on the mini cart) to go to the cart details page instead of going to the checkout.

You'll need to edit the file product / cart.php via the menu Display>Views.
There, you can replace the code:

if($this->element->cart_type == 'cart') {
		$link = $this->url_checkout;
	} else {
		$link = hikashop_completeLink('cart&task=showcart&cart_id='.$this->element->cart_id.'&cart_type='.$this->element->cart_type . $this->cart_itemid);
	}
by:
		$link = hikashop_completeLink('cart&task=showcart&cart_id='.$this->element->cart_id.'&cart_type='.$this->element->cart_type . $this->cart_itemid);

The following user(s) said Thank You: pulsarinformatique

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

  • Posts: 202
  • Thank you received: 3
4 years 2 months ago #323693

Hi

thanks but I'm not sure we are talking about the same thing here:

I want to change the behaviour of the CART MODULE (mod_hikashop_cart) not the view of the cart page view



Please re read what I wrote :

How can we have the cart module redirect on the cart page instead of the checkout page as it currently is ?

we set up the cart module as a mini cart module but when we click on it we go to the checkout page while we want to go to the full cart page

thanks for your help

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 2 months ago #323701

Hi,

Yes, that's what I understood already. You want to change the link of the cart module so that it goes to the cart details page instead of the checkout.
And the code modification I propose should do it.

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

  • Posts: 202
  • Thank you received: 3
4 years 2 months ago #323729

Thanks
Will this modification support further updates please ?

Cyril

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
4 years 2 months ago #323738

Hello,

No, don't worry the HikaShop override system will keep your modifications even with an update.
Only you can remove your override view.

Regards

Last edit: 4 years 2 months ago by Philip.
The following user(s) said Thank You: pulsarinformatique

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

Time to create page: 0.071 seconds
Powered by Kunena Forum