Forums / Customization from the Admin / SHOW_SHOPPING_CART_COMBINED - combine shopping cart

SHOW_SHOPPING_CART_COMBINED - combine shopping cart

Started by canuckclint on 15 Mar 2009, 10:22 PM · Views: 2,631

Results 1 to 8 of 8
15 Mar 2009, 10:22 PM
#1
canuckclint avatar

canuckclint

New Zenner

Join Date:
Mar 2009
Posts:
14
Plugin Contributions:
0

SHOW_SHOPPING_CART_COMBINED - combine shopping cart

v1.3.8

Where is this variable defined and I can only find it referenced in
header_php.php

I would like to not combine shopping cart tiems..ie
no persistent shopping cart.

Thanks!

16 Mar 2009, 3:44 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: SHOW_SHOPPING_CART_COMBINED - combine shopping cart

When looking for a constant, it is either a define statement or part of the Configuration ...

To see which, use the Tools ... Developers Tool Kit ...

In the bottom input box, adding:
SHOW_SHOPPING_CART_COMBINED

and selecting Catalog/Admin then clicking Search will show all places that it is used and defined in the php files ...

In the Top input box, adding:
SHOW_SHOPPING_CART_COMBINED

and selecting NONE and then clicking Search will show if it is defined as a configuration_key in the configuration table or the product_type_layout table ...

This will give its value as well as a link to take you to the Configuration section where you can edit the value ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Apr 2010, 12:45 AM
#3
orange_juice avatar

orange_juice

Zen Follower

Join Date:
Apr 2009
Location:
Athens, Europe
Posts:
125
Plugin Contributions:
0

Re: SHOW_SHOPPING_CART_COMBINED - combine shopping cart

Ajeh:

When looking for a constant, it is either a define statement or part of the Configuration ...

To see which, use the Tools ... Developers Tool Kit ...

In the bottom input box, adding:
SHOW_SHOPPING_CART_COMBINED

and selecting Catalog/Admin then clicking Search will show all places that it is used and defined in the php files ...

In the Top input box, adding:
SHOW_SHOPPING_CART_COMBINED

and selecting NONE and then clicking Search will show if it is defined as a configuration_key in the configuration table or the product_type_layout table ...

This will give its value as well as a link to take you to the Configuration section where you can edit the value ...

Thanx, very useful info. However, as I can see, there is no option to avoid keeping contents in the cart... This variable is only for checking weather the notice will be shown or not.

Lookup CONSTANT Definitions
Key: 	SHOW_SHOPPING_CART_COMBINED
Title: 	Show Notice of Combining Shopping Cart on Login
Description: 	When a customer logs in and has a previously stored shopping cart, the products are combined with the existing shopping cart.

Do you wish to display a Notice to the customer?

0= OFF, do not display a notice
1= Yes show notice and go to shopping cart
2= Yes show notice, but do not go to shopping cart
Value: 	1
Group: 	ID#9 Stock 

I have found this post:
http://www.zen-cart.com/forum/showpost.php?p=213106&postcount=4

but it seems to be out of date ...

Any suggestions?

Kind regards,
orange_juice

http://www.dodeca.eu/
Zen Cart is simply Jamming

11 Apr 2010, 1:23 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: SHOW_SHOPPING_CART_COMBINED - combine shopping cart

It works perfectly fine to empty the shopping cart when the customer logs in ...

Have you tried it? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Apr 2010, 1:38 PM
#5
orange_juice avatar

orange_juice

Zen Follower

Join Date:
Apr 2009
Location:
Athens, Europe
Posts:
125
Plugin Contributions:
0

Re: SHOW_SHOPPING_CART_COMBINED - combine shopping cart

Ajeh:

It works perfectly fine to empty the shopping cart when the customer logs in ...
Have you tried it? :unsure:

Thanx! :smile:

I was unsure weather it is still valid because I found the relevant line among many If statements ... and the date was 2006 ...

Of course it works great! :clap:

Kind regards,
orange_juice

http://www.dodeca.eu/
Zen Cart is simply Jamming

11 Apr 2010, 2:26 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: SHOW_SHOPPING_CART_COMBINED - combine shopping cart

Thanks for the update and confirming that this did work for you to empty the customers cart when they sign in ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 Apr 2010, 9:20 AM
#7
orange_juice avatar

orange_juice

Zen Follower

Join Date:
Apr 2009
Location:
Athens, Europe
Posts:
125
Plugin Contributions:
0

Re: SHOW_SHOPPING_CART_COMBINED - combine shopping cart

orange_juice:

Of course it works great!

Actually I just found a problem ...

When -as a guest- I have some contents in my shopping cart and try to checkout I will be redirected to the login page.

When logging in successfully, I get the following error:

Login Time Out
Sorry, but you are not allowed to perform the action requested.
You are still logged in to your account and may continue shopping. Please choose a destination from a menu.

Tricky!

Kind regards,
orange_juice

http://www.dodeca.eu/
Zen Cart is simply Jamming

8 Jan 2011, 10:06 AM
#8
orange_juice avatar

orange_juice

Zen Follower

Join Date:
Apr 2009
Location:
Athens, Europe
Posts:
125
Plugin Contributions:
0

Re: SHOW_SHOPPING_CART_COMBINED - combine shopping cart

orange_juice:

Actually I just found a problem ...

When -as a guest- I have some contents in my shopping cart and try to checkout I will be redirected to the login page.

When logging in successfully, I get the following error:

Tricky!

Kind regards,
orange_juice

Commenting out the line ```php
// restore cart contents
$_SESSION['cart']->restore_contents();

seems like it gets the job done.

Kind regards,
orange_juice

http://www.dodeca.eu/
Zen Cart is simply Jamming