Redirect the mini cart module to the cart page
- pulsarinformatique
-
Topic Author
- Offline
Less
More
6 years 3 weeks ago #323620
by pulsarinformatique
Redirect the mini cart module to the cart page was created 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
-- 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.
6 years 3 weeks ago #323623
by nicolas
Replied by nicolas on topic Redirect the mini cart module to the cart page
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:
by:
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);
}
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.
- pulsarinformatique
-
Topic Author
- Offline
6 years 2 weeks ago #323693
by pulsarinformatique
Replied by pulsarinformatique on topic Redirect the mini cart module to the cart page
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
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.
6 years 2 weeks ago #323701
by nicolas
Replied by nicolas on topic Redirect the mini cart module to the cart page
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.
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.
- pulsarinformatique
-
Topic Author
- Offline
6 years 2 weeks ago #323729
by pulsarinformatique
Replied by pulsarinformatique on topic Redirect the mini cart module to the cart page
Thanks
Will this modification support further updates please ?
Cyril
Will this modification support further updates please ?
Cyril
Please Log in or Create an account to join the conversation.
6 years 2 weeks ago - 6 years 2 weeks ago #323738
by Philip
Replied by Philip on topic Redirect the mini cart module to the cart page
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
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