Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Posts
    5
    Plugin Contributions
    0

    Default Limited the total number of sales of a downloadable product?

    I have played around with the settings for a while and have searched the forums here trying to figure out how to limit the total number of sales of a downloadable product without luck.

    I can't seem to get the quantity to decrease whenever a sale is made of the downloadable product. I want to be able to sell X number of a certain downloadable product and then it's sold out.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Limited the total number of sales of a downloadable product?

    If you have them setup correctly and use stock control, you can enter as stock the number that you wish to sell
    https://www.zen-cart.com/tutorials/index.php?article=71
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: Limited the total number of sales of a downloadable product?

    Has anyone figured this out?

    It seems Stock Control only allows you to manually reduce the number yourself.

    How can you AUTOMATICALLY reduce the stock of a downloadable product?

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

    Default Re: Limited the total number of sales of a downloadable product?

    Downloads do NOT track on Stock ...

    You would need to customize the code in the order.php class for:
    Code:
              if ((DOWNLOAD_ENABLED != 'true') || $stock_values->fields['product_is_always_free_shipping'] == 2 || (!$stock_values->fields['products_attributes_filename']) ) {
                $stock_left = $stock_values->fields['products_quantity'] - $this->products[$i]['qty'];
                $this->products[$i]['stock_reduce'] = $this->products[$i]['qty'];
              } else {
                $stock_left = $stock_values->fields['products_quantity'];
              }
    currently the stock is not reduced on Download Products ...
    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!

 

 

Similar Threads

  1. v139h Counting the total number of reviews for a given product.
    By retched in forum Contribution-Writing Guidelines
    Replies: 1
    Last Post: 15 Feb 2012, 01:43 AM
  2. Showing Total Number of Product Listed
    By yosemirza in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 22 Jan 2010, 09:45 AM
  3. Show the total number of Products in the store?
    By Curtis_C in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Nov 2009, 06:23 AM
  4. Limited number of an item
    By pb4 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 15 May 2008, 12:43 PM
  5. Text input box that times the total by the number entered
    By bradlawson in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 9 Dec 2006, 02:59 PM

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