Page 1 of 1
No shipping session clear on adding new items to the cart
Posted: Thu Jul 16, 2009 1:02 am
by BAJR
no shipping session clear on adding new items to the cart
1. Add item to cart
2. Goto Checkout (shipping)
3. Add something else to cart
4. Goto Checkout (shipping)
5. Shipping is still using session. (BAD)
Only if something like cart "update" is clicked, or address is changed, then it will reset.
But adding new item to cart is bugged.
Re: No shipping session clear on adding new items to the cart
Posted: Thu Jul 16, 2009 1:04 am
by Daniel
I have just confrimed this and it will be fixed in the next version.
I forgot to clear the shippign data when using the ajax cart.
Re: No shipping session clear on adding new items to the cart
Posted: Thu Jul 16, 2009 4:14 am
by BAJR
Big thanks Daniel
any idea of next version time schedule.
Re: No shipping session clear on adding new items to the cart
Posted: Sat Jul 25, 2009 12:33 am
by creative1
Daniel,
Is there a quick fix we can "MOD" into existing installations? I've done quite a bit of modding in the current version (1.2.9), and I'd hate to lose all that / have to do it all again by updating.
This is quite a serious bug, as it could lead to huge over/under charges. In fact, I don't think I can launch our new store (otherwise working perfectly!) without a fix for this.
Thanks for any help you can provide.
Re: No shipping session clear on adding new items to the cart
Posted: Sat Jul 25, 2009 12:41 am
by Qphoria
If you pay me $10 you can use this fix
EDIT: catalog/controller/module/cart.php
FIND:
Code: Select all
$this->cart->add($this->request->post['product_id'], $this->request->post['quantity'], $option);
AFTER ADD:
Code: Select all
unset($this->session->data['shipping_methods']);
unset($this->session->data['shipping_method']);
unset($this->session->data['payment_methods']);
unset($this->session->data['payment_method']);
Re: No shipping session clear on adding new items to the cart
Posted: Sat Jul 25, 2009 12:49 am
by Daniel
the latest version has this fixed!
Re: No shipping session clear on adding new items to the cart
Posted: Sat Jul 25, 2009 1:36 am
by creative1
Qphoria wrote:If you pay me $10 you can use this fix
EDIT: catalog/controller/module/cart.php
FIND:
Code: Select all
$this->cart->add($this->request->post['product_id'], $this->request->post['quantity'], $option);
AFTER ADD:
Code: Select all
unset($this->session->data['shipping_methods']);
unset($this->session->data['shipping_method']);
unset($this->session->data['payment_methods']);
unset($this->session->data['payment_method']);
Hey! I just paid you $20 for the shipping mod - don't get greedy
All kidding aside, thanks for posting this. I know the new version fixes it, but I've got a lot of custom code, and I need to get this store up soon without the risk of reinstalling everything.
Re: No shipping session clear on adding new items to the cart
Posted: Wed Jul 29, 2009 12:31 am
by BAJR
and by the way daniel, thank you
Re: No shipping session clear on adding new items to the cart
Posted: Wed Jul 29, 2009 1:41 am
by Qphoria
what about me? I posted the fix

Re: No shipping session clear on adding new items to the cart
Posted: Wed Jul 29, 2009 2:04 am
by BAJR
and... er you get a special hug!
ps... have not yet forgotten my contribution.. waiting to get some cash put into my Paypal -