Post by fortuna » Thu Sep 26, 2013 10:59 am

Hi,

I require customers to go to shopping cart page (component) before they checkout.
I have the shopping cart module as a drop down menu for customers to have a quick review of their cart. The shopping cart module has a button at the bottom "Checkout", when selected it loads the checkout page. I want it to load the shopping cart page (component).
I can't find the file that contains the url for the checkout button in the shopping cart module. Can anyone help?
Using OC 1.5.5.1

Newbie

Posts

Joined
Thu Sep 26, 2013 10:45 am

Post by andrei.bogdan » Thu Sep 26, 2013 6:19 pm

Hi,

Do you mean the template file that contains the links?
You can find it at 'catalog\view\theme\default\template\module\cart.tpl'.
After you open the file, search and replace:

<?php echo $checkout; ?>

with your desired link.

If you want to replace this in the controller, which is the professional way, you can go to 'catalog\controller\module\cart.php' and replace:

$this->data['checkout'] = $this->url->link('checkout/checkout', '', 'SSL');

with your own link, for example for shooping cart:

$this->data['checkout'] = $this->url->link('checkout/cart', '', 'SSL');

I recommend using vQmod for this, so it doesn't get lost when updating.

Andrei
andrei.opencart[at]yahoo.com
Themes and Extensions


Active Member

Posts

Joined
Mon Mar 25, 2013 4:52 am

Post by fortuna » Fri Sep 27, 2013 2:16 pm

Hi Andrei,

Thanks for the info.
Works great created vQmod now customers go via shopping cart before they checkout.

Newbie

Posts

Joined
Thu Sep 26, 2013 10:45 am

Post by jtrizzy » Sat Mar 01, 2014 2:30 am

fortuna wrote:Hi Andrei,

Thanks for the info.
Works great created vQmod now customers go via shopping cart before they checkout.
Hi Andrei,
What exactly did you do. Im looking to do the same thing, You created vQmod? can you explain?
Much appreciated

Newbie

Posts

Joined
Wed Nov 30, 2011 12:50 am

Post by jtrizzy » Sat Mar 01, 2014 3:34 am

andrei.bogdan wrote:Hi,

Do you mean the template file that contains the links?
You can find it at 'catalog\view\theme\default\template\module\cart.tpl'.
After you open the file, search and replace:

<?php echo $checkout; ?>

with your desired link.

If you want to replace this in the controller, which is the professional way, you can go to 'catalog\controller\module\cart.php' and replace:

$this->data['checkout'] = $this->url->link('checkout/checkout', '', 'SSL');

with your own link, for example for shooping cart:

$this->data['checkout'] = $this->url->link('checkout/cart', '', 'SSL');

I recommend using vQmod for this, so it doesn't get lost when updating.

Can you please explain the vQmod way of doing this? please
Thanks

Newbie

Posts

Joined
Wed Nov 30, 2011 12:50 am

Post by fortuna » Mon Apr 28, 2014 5:51 am

Hi Jtrizzy,

Did you resolve this? I can provide the vQmod I did for this if you require.

Newbie

Posts

Joined
Thu Sep 26, 2013 10:45 am
Who is online

Users browsing this forum: No registered users and 4 guests