Skip to main content

Redirect the mini cart module to the cart page

More
6 years 3 weeks ago #323620 by pulsarinformatique
-- 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.

More
6 years 3 weeks ago #323623 by nicolas
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:
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:
Code:
$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.

More
6 years 2 weeks ago #323693 by pulsarinformatique
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

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

More
6 years 2 weeks ago #323701 by nicolas
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.

More
6 years 2 weeks ago #323729 by pulsarinformatique
Thanks
Will this modification support further updates please ?

Cyril

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

More
6 years 2 weeks ago - 6 years 2 weeks ago #323738 by Philip
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: 6 years 2 weeks 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.173 seconds
Powered by Kunena Forum