Page 1 of 1

cart module continue to shopping cart not checkout

Posted: Thu Sep 26, 2013 10:59 am
by fortuna
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

Re: cart module continue to shopping cart not checkout

Posted: Thu Sep 26, 2013 6:19 pm
by andrei.bogdan
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.

Re: cart module continue to shopping cart not checkout

Posted: Fri Sep 27, 2013 2:16 pm
by fortuna
Hi Andrei,

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

Re: cart module continue to shopping cart not checkout

Posted: Sat Mar 01, 2014 2:30 am
by jtrizzy
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

Re: cart module continue to shopping cart not checkout

Posted: Sat Mar 01, 2014 3:34 am
by jtrizzy
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

Re: cart module continue to shopping cart not checkout

Posted: Mon Apr 28, 2014 5:51 am
by fortuna
Hi Jtrizzy,

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