Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default [DONE v1.3.8] Quantity Discounts Show when Store Status == 1

    Hi! I think i found a bug!

    thank you for the help. I made a couple corrections to the template that eliminated the login from the menu, and then made the settings you suggested in admin. This appeared to work until I shockingly discovered that if price quantity breaks are enable, that these are displayed dispite store status.

    see this here at a fresh install with test data and a product that I added breaks to:


    http://chicagophoto.net/shop/index.p...&products_id=1

    I didn't expect this and will have to immediately delete any price breaks I had entered to get them off the site. If you could direct me to the correct file to look at I will see what I can do to fix it for myself. Hopefully fixed in next update!!!

    Thank you!!!

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

    Default Re: Login to Shop

    Upgrade ... this was fixed sometime ago ...

    What version are you running?
    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
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Login to Shop

    Then again ... let me look into this further ...
    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!

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

    Default Re: Login to Shop

    That .. er ... unexpected feature can be fixed with editing the file:
    /includes/modules/products_quantity_discounts.php

    Change the case:
    PHP Code:
      case (CUSTOMERS_APPROVAL == '2' and $_SESSION['customer_id'] == ''):
      
    // customer may browse but no prices
      
    $zc_hidden_discounts_on true;
      
    $zc_hidden_discounts_text TEXT_LOGIN_FOR_PRICE_PRICE;
      break; 
    To read:
    PHP Code:
      case (STORE_STATUS == || CUSTOMERS_APPROVAL == '2' and $_SESSION['customer_id'] == ''):
      
    // customer may browse but no prices
      
    $zc_hidden_discounts_on true;
      
    $zc_hidden_discounts_text TEXT_LOGIN_FOR_PRICE_PRICE;
      break; 
    Moving to Bug Reports ...
    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 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default Re: Quantity Discounts Show when Store Status == 1

    Thanks Linda! I'm glad I was able to contribute something positive. I'll adjust the code per your post. I knew it was likely an easy fix.

    Yes, this was a fresh install of 1.3.7 with your test data.

    And thank you for checking this carefully! I know you must get an unbelievable amount of posts that are simply user error, in the FAQ, or fixed with an update.

    -cj

    Long-time programmer, but only still speak pigeon-php

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

    Default Re: Quantity Discounts Show when Store Status == 1

    I appreciate your posting it ... things like this amaze me at times as that has been there for so long ...
    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!

 

 

Similar Threads

  1. Replies: 19
    Last Post: 18 Nov 2009, 10:10 AM
  2. Replies: 5
    Last Post: 10 Sep 2009, 10:33 PM
  3. How do I show quantity discounts when user not logged in?
    By carystevens in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Jul 2009, 04:56 AM
  4. Store Wide Quantity Discounts
    By sketchhgal in forum General Questions
    Replies: 1
    Last Post: 16 Aug 2008, 01:10 PM
  5. Replies: 2
    Last Post: 18 Jan 2008, 09:39 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