Kryptronic Software Support Forum

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.

#1 10-08-2009 17:35:10

nigel
Member
From: Peterborough, UK
Registered: 04-27-2008
Posts: 418
Website

updated to 7.1.1 now 2 items adding to cart

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

 

#2 10-08-2009 17:52:05

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: updated to 7.1.1 now 2 items adding to cart

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

 

#3 10-08-2009 18:04:34

nigel
Member
From: Peterborough, UK
Registered: 04-27-2008
Posts: 418
Website

Re: updated to 7.1.1 now 2 items adding to cart

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

 

#4 10-08-2009 19:08:13

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: updated to 7.1.1 now 2 items adding to cart

I pushed my site back to the 7.1.0 xmod_shipestimator which is currently working as it should.

John

Offline

 

#5 10-09-2009 05:28:06

nigel
Member
From: Peterborough, UK
Registered: 04-27-2008
Posts: 418
Website

Re: updated to 7.1.1 now 2 items adding to cart

This is probably a daft question John, but how do I revert back to the "7.1.0 xmod_shipestimator"?

Nigel

Offline

 

#6 10-09-2009 09:39:17

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: updated to 7.1.1 now 2 items adding to cart

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

Code:

$this->globals('ecom.cart_contents',$tempcart);

was replaced with

Code:

$this->ECOM_Cart->savecart($tempcart);

John

Last edited by dh783 (10-09-2009 09:40:50)

Offline

 

#7 10-09-2009 12:08:51

nigel
Member
From: Peterborough, UK
Registered: 04-27-2008
Posts: 418
Website

Re: updated to 7.1.1 now 2 items adding to cart

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

 

#8 10-09-2009 12:22:04

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: updated to 7.1.1 now 2 items adding to cart

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

 

#9 10-09-2009 12:33:42

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: updated to 7.1.1 now 2 items adding to cart

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

 

#10 10-09-2009 12:53:08

nigel
Member
From: Peterborough, UK
Registered: 04-27-2008
Posts: 418
Website

Re: updated to 7.1.1 now 2 items adding to cart

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

 

#11 10-16-2009 13:47:38

meshugy
Member
Registered: 12-18-2004
Posts: 349

Re: updated to 7.1.1 now 2 items adding to cart

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

 

#12 02-17-2010 19:23:52

kiwimum
Member
Registered: 03-30-2004
Posts: 305
Website

Re: updated to 7.1.1 now 2 items adding to cart

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!


Jessica
:: CCP5 > CCP6 > Magento > CCP7

Offline

 

#13 03-12-2010 16:58:32

gbailey
Member
Registered: 04-25-2004
Posts: 93

Re: updated to 7.1.1 now 2 items adding to cart

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

 

Board footer