Hi,
I have put please read because I have already bought 2 extension for this task, and neither worked.
I simply need a solution that redirects the web user to the cart page when they add something to the basket.
the closest ive got is one extension worked but only if i was on the product page itself. Would not work from the home page or category page.
Any help would be really appreciated.
Andy
First edit catalog/view/theme/YOUR_THEME/template/product/product.tpl
Find:
Add after:
Then edit controller/checkout/cart.php
Find:
Add after:
Find:
Code: Select all
if (json['error']) {
if (json['error']['option']) {
for (i in json['error']['option']) {
$('#option-' + i).after('<span class="error">' + json['error']['option'][i] + '</span>');
}
}
}
Code: Select all
if (json['redirect']) {
location = json['redirect'];
}
Find:
Code: Select all
$json['total'] = sprintf($this->language->get('text_items'), $this->cart->countProducts() + (isset($this->session->data['vouchers']) ? count($this->session->data['vouchers']) : 0), $this->currency->format($total));
Code: Select all
$json['redirect'] = $this->url->link('checkout/cart');
Who is online
Users browsing this forum: No registered users and 3 guests