You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Hi,
I just updated to 7.1.1. Ran some test purchases, every time I add an item to the cart it adds it twice.
I ran the installer again but it made no difference.
I hope there is a simple solution to this
Nigel
it looks like a problem with the shipestimator again. any chance of getting it fixed.
Last edited by nigel (10-08-2009 17:46:42)
Offline
I just did a trial of putting things into the cart and did not see any duplicates being added. I will say that I am having problems with the shipping estimator still inserting item into the cart on a page refresh or change, I didn't see the product detail estimator display so I guess you turned it off. I did let kryptronic know about my problems with the product detail estimator.
John
Offline
Hi John,
thanks for getting back to me. The problem only occurs when it's activated on the product detail page, which is why I de-activated it. It also adds an item to the cart just by viewing the item. I had the same problem when I first installed v7 but it was sorted in v7.1 Now it looks like it's back again. Hopefully Kryptonic have got a quick fix for it.
Cheers
Nigel
Offline
This is probably a daft question John, but how do I revert back to the "7.1.0 xmod_shipestimator"?
Nigel
Offline
I always make a duplicate of my private_dir, because I have moded my site quite extensively, I do the update and then set my site to run the older files (the duplicate dir) until I can get my mods in place before setting it to use the new code.
In a comparison of the older 7.1.0 and the newer 7.1.1 files there is only two line that showed up as changed which are lines
182
492
where this line
$this->globals('ecom.cart_contents',$tempcart);
was replaced with
$this->ECOM_Cart->savecart($tempcart);
John
Last edited by dh783 (10-09-2009 09:40:50)
Offline
Hi John,
I changed the first instance of the code and it seemed to work. I didn't change the second one (line 492) as the code was slightly different to what you had quoted and I didn't want to risk breaking anything
Thanks
Nigel
Offline
I did a test on my 7.1.1 file with replacing both lines and when I visit a product detail page I get the item amount in the mini cart display but when selecting a different page it goes away. I got the differences between the two file by comparing them with the diff command on the server which only listed those two lines. I though that the US and UK code was the same, what code did you have in the second instance?
John
Offline
With what you said I did a test with only changing the first code change (line 182) and left 492 as it was and have not seen any problems as the mod is working like expected.
John
Offline
Hi John,
this is the line of code I didn't change, but as you say, it seems to work fine just changing the first one.
$this->ECOM_Cart->savecart($this->originalcart);
Nigel
Offline
I was having the same problem and just did the fix above and it worked!
Seems like the official version of the mod should be fixed so recent customers won't have this problem.
Offline
Great thank you -- can I clarify the instructions a little for us non-programmer-y types?
I had to do some hunting since I wasn't sure where the file was located and I have a private directory still in my root from CCP6. So to maybe save someone else from confusion, the file is located:
ccp7_private/apps/ecom/XMOD_ShipEstimator/XMOD_ShipEstimator.php
(Your private directory might be called something else.)
Open XMOD_ShipEstimator.php
On line 182 it will say: $this->ECOM_Cart->savecart($tempcart);
Change it to: $this->globals('ecom.cart_contents',$tempcart);
Leave line 492 the same & save & reupload.
The Ship Estimator should work fine now with both options set to True in your admin.
Yay! Thanks John & Nigel!
Offline
Yes, thanks for the fix - worked nicely. Before the fix, each time something was added to the cart, you got 2 of them and the previous cart contents was gone. This fix solved all that.
Thanks
Last edited by gbailey (03-12-2010 16:58:58)
Offline