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
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.
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
Hi Andrei,fortuna wrote:Hi Andrei,
Thanks for the info.
Works great created vQmod now customers go via shopping cart before they checkout.
What exactly did you do. Im looking to do the same thing, You created vQmod? can you explain?
Much appreciated
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
Who is online
Users browsing this forum: No registered users and 88 guests