Page 1 of 1

Header mini-cart drop down link edit

Posted: Wed Feb 07, 2018 5:39 am
by kuochinwu
Hello,

For 2.3.0.2 :
Can anyone help me where I can find the file to edit the "Header mini-cart drop down checkout link"? See pic.

Thanks a lot,

Paul

Re: Header mini-cart drop down link edit

Posted: Wed Feb 07, 2018 6:55 am
by straightlight
- catalog/view/theme/<your_theme>/template/common/cart.tpl file.

Re: Header mini-cart drop down link edit

Posted: Wed Feb 07, 2018 8:09 am
by kuochinwu
Hi straightlight,

Thanks for the reply. It seems not the addressed cart.tpl file.
I tried to edit and reload but nothing changed. Is there possible other file to edit the header dropdown mini cart "checkout" link?

Thanks,

Paul

Re: Header mini-cart drop down link edit

Posted: Wed Feb 07, 2018 8:16 am
by straightlight
I tried to edit and reload but nothing changed.
Vague information. What did you tried to edit in the code exactly from cart.tpl file?

Re: Header mini-cart drop down link edit

Posted: Wed Feb 07, 2018 8:22 am
by kuochinwu
Sorry for the vague. My current "checkout" link in the dropdown cart is the same as "my cart" link as checkout/cart

I would like to edit and change it to checkout/checkout

web: www.cosmoracing.com

Thanks,

Re: Header mini-cart drop down link edit

Posted: Wed Feb 07, 2018 8:33 am
by straightlight
The default theme already redirects the checkout button from the common/cart.tpl file:
&nbsp;&nbsp;&nbsp;<a href="<?php echo $checkout; ?>"><strong><i class="fa fa-share"></i> <?php echo $text_checkout; ?></strong></a></p>
to the checkout/checkout route initiated from the catalog/controller/checkout/cart.php file:

Code: Select all

$data['checkout'] = $this->url->link('checkout/checkout', '', true);
Since you are using a custom theme, ensure the $checkout variable is being used. If so already, then ensure that you haven't installed an extension that altered the route of the checkout since, according to your request, you'd like to keep the checkout/checkout route as it is.

Re: Header mini-cart drop down link edit

Posted: Wed Feb 07, 2018 8:55 am
by kuochinwu
Yes, someone who has changed the default "checkout" link to the same as "my cart" link previously. Now I like to change it back but seems found no way to do it.
I checked the:
&nbsp;&nbsp;&nbsp;<a href="<?php echo $checkout; ?>"><strong><i class="fa fa-share"></i> <?php echo $text_checkout; ?></strong></a></p>
the same coding.
As well the same in the cart.php file:
$data['checkout'] = $this->url->link('checkout/checkout', '', true);
Also checked the custom theme cart.tpl the same coding. Scratching my head now!!

*No other extension for such theme or cart as I know.

Thanks,

Re: Header mini-cart drop down link edit

Posted: Wed Feb 07, 2018 9:23 am
by kuochinwu
Found everything the same coding as default...no idea where to edit now.

Thanks,

Re: Header mini-cart drop down link edit

Posted: Wed Feb 07, 2018 9:44 am
by straightlight
If no effect is being taken after modifying your theme file, clear out your OC cache from the system/cache folder (except index.html file).

Re: Header mini-cart drop down link edit

Posted: Wed Feb 07, 2018 10:25 am
by kuochinwu
Hello,

I made it! It is the cart.php from catalog/controller/common/cart.php
$data['checkout'] = $this->url->link('checkout/checkout', '', true);
Thank you much for your time; very helpful!