Results 1 to 10 of 37

Hybrid View

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

    Default Re: Sold New Products display Sold Out instead of price on index and products_new pag

    You are most welcome ...

    I gave you 1 typo and then I appeared to have befuddled you on the other things needed ...

    It was easier to just sit down, clean it up, test it ... and make sure the price vanished everywhere when the products_quantity <= 0 ...

    Thanks for the support!
    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!

  2. #2
    Join Date
    Feb 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Sold New Products display Sold Out instead of price on index and products_new pag

    Hi, I want to do the same thing only use the small image instead, I tried the code:

    // return sold out vs price
    $products_quantity = zen_get_products_stock($products_id);
    if ($products_quantity <= 0) {
    $return_button = zen_image_button(BUTTON_IMAGE_SOLD_OUT_SM, BUTTON_SOLD_OUT_ALT);
    return $return_button;
    }

    but that just gave me the alt tag and no image.
    (without the _SM the large image shows fine)

    Thanks for your help

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

    Default Re: Sold New Products display Sold Out instead of price on index and products_new pag

    The constant for the small sold out is:
    BUTTON_IMAGE_SOLD_OUT_SMALL

    And its ALT tag constant is:
    BUTTON_SOLD_OUT_SMALL_ALT
    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!

  4. #4
    Join Date
    Feb 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Sold New Products display Sold Out instead of price on index and products_new pag

    Thank you so much Linda,
    that worked

    Anita

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

    Default Re: Sold New Products display Sold Out instead of price on index and products_new pag

    Thanks for the update that the problem was just a typo ...
    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!

  6. #6
    Join Date
    Sep 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Sold New Products display Sold Out instead of price on index and products_new pag

    Hi, this fix above worked easily for me, and what I'm looking for is a tweak just beyond this: do this ONLY on the index products display - - not on any other page that shows products.

    Any help or ideas?

    Thanks so much,

    Julia
    http://www.skystonetrading.com
    1.3.8a

  7. #7
    Join Date
    Jan 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: Sold New Products display Sold Out instead of price on index and products_new pag

    Hi there,

    I think this is useful, and is that possible to show the price also ?

    If that is possible , how to change the code?

    As i want customer also know the price of the sold out product .

    Thanks you

    Tim

 

 

Similar Threads

  1. Replies: 2
    Last Post: 7 Jul 2016, 06:34 AM
  2. Gap in product listing between price and 'sold out' button (new thread)
    By Thannaree in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 6 Sep 2012, 11:41 AM
  3. Replies: 7
    Last Post: 28 Mar 2011, 04:08 AM
  4. New Products still showing Sold Out and Disabled Items
    By shawnchr in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 1 Nov 2010, 12:57 AM
  5. 'Sold out' button instead of price on main page
    By wendon in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Jan 2010, 10:53 AM

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