Post by kuochinwu » Wed Feb 07, 2018 5:39 am

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

Attachments

mini-cart-link.jpg

mini-cart-link.jpg (264.7 KiB) Viewed 1531 times


Newbie

Posts

Joined
Fri Oct 28, 2016 12:48 am

Post by straightlight » Wed Feb 07, 2018 6:55 am

- catalog/view/theme/<your_theme>/template/common/cart.tpl file.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by kuochinwu » Wed Feb 07, 2018 8:09 am

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

Newbie

Posts

Joined
Fri Oct 28, 2016 12:48 am

Post by straightlight » Wed Feb 07, 2018 8:16 am

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?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by kuochinwu » Wed Feb 07, 2018 8:22 am

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,

Newbie

Posts

Joined
Fri Oct 28, 2016 12:48 am

Post by straightlight » Wed Feb 07, 2018 8:33 am

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by kuochinwu » Wed Feb 07, 2018 8:55 am

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,

Newbie

Posts

Joined
Fri Oct 28, 2016 12:48 am

Post by kuochinwu » Wed Feb 07, 2018 9:23 am

Found everything the same coding as default...no idea where to edit now.

Thanks,
Last edited by kuochinwu on Wed Feb 07, 2018 9:51 am, edited 1 time in total.

Newbie

Posts

Joined
Fri Oct 28, 2016 12:48 am

Post by straightlight » Wed Feb 07, 2018 9:44 am

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).

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by kuochinwu » Wed Feb 07, 2018 10:25 am

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!

Newbie

Posts

Joined
Fri Oct 28, 2016 12:48 am
Who is online

Users browsing this forum: No registered users and 17 guests