Code: Select all
Fatal error: Call to a member function rewrite() on a non-object in D:\wamp\www\store\catalog\controller\common\header.php on line 25
Thanks
Waseem
http://craigmurray.me.uk/opencart-mods/ ... -opencart/
http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk
Good job

ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
Craig,Chones wrote:There's actually a much easier way that hardly changes any core files. I posted the solution on my blog:
http://craigmurray.me.uk/opencart-mods/ ... -opencart/
I have tried your solution, but the cart is not showing after adding a product to the cart. I have check and double checked cart.php, stylesheet.css, header.tpl and the code in ajax_add.js .
I understand php, but don't see no errors. Only changes i have made are that my div for the cart has another name. This new name i have edited in the cart.php code.
Hope someone can help.
http://www.desse.nl - Opencart specialist.
Although why not just use the code as it was originally - it works fine.
http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk
The strange thing is that when i call minicart directly in the browser it does show the cart.
http://www.desse.nl - Opencart specialist.
If it works fine then it is a change you have made somewhere to the code.
If it doesn't work, then it may be something elsewhere, such as some other Ajax or Jquery in your template.
That's all I can suggest I'm afraid.
http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk
But now, the cart appears when a product is added, but when you go to another page then the minicart dissapears.
http://www.desse.nl - Opencart specialist.
Code: Select all
<div id="cart_in_header">
<?php
$cart_number = $this->cart->countProducts();
if ($cart_number == 1) {echo "1 item in shopping cart";}
else {echo $cart_number." items in shopping cart";}
echo"<br />";
echo "Total: ".$this->currency->format($this->cart->getTotal());
?>
echo"<br />";
<a href="index.php?route=checkout/cart">View Cart</a> |
<a href="index.php?route=checkout/shipping">Checkout</a>
</div>
http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk
http://www.desse.nl - Opencart specialist.
Users browsing this forum: No registered users and 4 guests