Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2009
    Posts
    14
    Plugin Contributions
    1

    Default 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!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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: v1.5.5]
    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!

  3. #3
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default Re: SHOW_SHOPPING_CART_COMBINED - combine shopping cart

    Quote Originally Posted by Ajeh View Post
    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.

    Code:
    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/showpo...06&postcount=4

    but it seems to be out of date ...

    Any suggestions?

    Kind regards,
    orange_juice

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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?
    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: v1.5.5]
    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!

  5. #5
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default Re: SHOW_SHOPPING_CART_COMBINED - combine shopping cart

    Quote Originally Posted by Ajeh View Post
    It works perfectly fine to empty the shopping cart when the customer logs in ...
    Have you tried it?
    Thanx!

    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!

    Kind regards,
    orange_juice

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...
    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: v1.5.5]
    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!

  7. #7
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default Re: SHOW_SHOPPING_CART_COMBINED - combine shopping cart

    Quote Originally Posted by orange_juice View Post
    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

  8. #8
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default Re: SHOW_SHOPPING_CART_COMBINED - combine shopping cart

    Quote Originally Posted by orange_juice View Post
    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 Code:
          // restore cart contents
          
    $_SESSION['cart']->restore_contents(); 
    in includes/modules/pages/login/header_php.php
    seems like it gets the job done.

    Kind regards,
    orange_juice
    http://www.dodeca.eu/
    Zen Cart is simply Jamming

 

 

Similar Threads

  1. Do Not Combine Cart
    By bacbladerunner in forum General Questions
    Replies: 4
    Last Post: 18 Jun 2011, 08:49 PM
  2. Combine Shopping Cart & Login/Address info Page
    By britneycook in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Jun 2011, 04:16 AM
  3. How to turn off "Combine Shopping Cart"?
    By ttmb33 in forum Customization from the Admin
    Replies: 3
    Last Post: 4 Feb 2010, 02:19 AM
  4. Replies: 1
    Last Post: 10 Sep 2009, 09:14 PM
  5. Is it possible to combine zen cart with existing shop database
    By optimalwebsite in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Sep 2008, 02:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR