Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Jun 2011
    Posts
    92
    Plugin Contributions
    0

    Default Re: Need help urgently - can't figure out how something was done in the past

    Quote Originally Posted by matchlock View Post
    I'm familiar with the location of the modules and the functions, but where are the CLASS? Thanks!
    Disregard! You let this horse to water and I was able to drink and find exactly where this was done! Schoolboy, thank you so much! Also thank you to the others who contributed as well.

    for reference:
    in includes/functions file functions_general.php

    Original line
    case ($button_check->fields['products_quantity'] <= 0 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1'):

    My line
    case ($button_check->fields['products_quantity'] <= 3 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1'):\

    note the greater than equal to 3

    For anyone wonder or needing this function and finding this thread in the future here is the back story.

    My site is fed inventory counts from multiple wholesalers. Because of this fact if the inventory is low at a wholesaler I may not be able to secure an item before they sell out therefore leaving my customer without the product they ordered. The setting above solves this problem (sort of). What the setting does is sets a product to out of stock if the quantity is less than 3 available. This is great as a blanket setting, but occasionally i have inventory on hand (which is the case now). It would be nice and I'm sure it is possible (not a php guru) to exclude certain products from the setting but should you need to do something similar this is how it is done.

    All the best,
    Owner - MatchLock Arms, LLC and M&M Toys (Yes I sell toys and guns, but not toy guns)
    http://www.matchlockarms.com
    http://www.mandmtoys.com

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Need help urgently - can't figure out how something was done in the past

    Quote Originally Posted by matchlock View Post

    My site is fed inventory counts from multiple wholesalers. Because of this fact if the inventory is low at a wholesaler I may not be able to secure an item before they sell out therefore leaving my customer without the product they ordered.
    My turn to thank YOU...

    I have many clients who use dropshippers and this may be some way to resolving their stock issues as well...
    20 years a Zencart User

 

 

Similar Threads

  1. v150 Help Can't Figure out how to move header search box!!
    By Darion in forum General Questions
    Replies: 3
    Last Post: 15 Sep 2012, 07:17 PM
  2. Replies: 0
    Last Post: 20 Jun 2009, 11:25 AM
  3. Something I can't figure out.
    By holley2346 in forum General Questions
    Replies: 3
    Last Post: 5 Feb 2009, 09:35 PM
  4. Can someone help me figure out how to do this...
    By MCanes in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Sep 2007, 05:54 AM
  5. I can't figure out how to use the newsletter manager!
    By awatts65 in forum General Questions
    Replies: 3
    Last Post: 9 Jul 2006, 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