Results 1 to 3 of 3
  1. #1
    Join Date
    May 2008
    Posts
    188
    Plugin Contributions
    0

    Default Change the sold out status from 0 in stock to -1

    This may sound a bit bizzarre but I have a reason for this.

    In Admin-Config-Stock When Show Sold Out Image instead of add to cart is selected it means that any item with a stock level of 0 or under has the add to cart button disabled.

    Would anyone have any idea where I could amend the code so that a stock level of 0 will still allow add to cart and checkout but anything beneath this ie -1,-2 etc would be blocked. ?

    Thanks in advance

  2. #2
    Join Date
    Jan 2009
    Location
    The Netherlands/Germany
    Posts
    142
    Plugin Contributions
    12

    Default Re: Change the sold out status from 0 in stock to -1

    WARNING CORE FILES MODIFICATION, BACK UP FIRST!

    open includes/functions/functions_general.php

    search for:

    Code:
    case ($button_check->fields['products_quantity'] <= 0 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1'):
    replace by:

    Code:
    case ($button_check->fields['products_quantity'] < 0 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1'):
    I came, I saw, I got zenned... :)

  3. #3
    Join Date
    May 2008
    Posts
    188
    Plugin Contributions
    0

    Default Re: Change the sold out status from 0 in stock to -1

    Thanks very much

 

 

Similar Threads

  1. Sold Out of stock Items
    By Golden Synergy in forum Managing Customers and Orders
    Replies: 2
    Last Post: 12 Nov 2012, 07:14 PM
  2. Out of stock / Sold out item categories
    By needsome in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 16 Feb 2010, 12:25 AM
  3. Sold out >> Out of Stock, Order by Model #
    By ashgotti in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Aug 2008, 03:28 PM
  4. Where do I change the alt image tag for the "Sold Out' Button?
    By candylotus in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 9 May 2008, 05:00 AM
  5. How Do I change the Sold Out Image
    By misty16 in forum General Questions
    Replies: 3
    Last Post: 9 Nov 2007, 03:13 AM

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