Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    829
    Plugin Contributions
    0

    Default Subtraction and update

    Hi all,

    I have noticed something on my website and not sure that it is an error in the database or some files. I am using version 1.55 zencart and I am presently updating stock on the website and this is what I am doing.

    I am adding stock to:

    Product Qty Maximum:

    I am also adding stock to:

    Products Quantity:

    I would assume that when product quantity drops in valve the product qty maximum would drop as well or am I incorrect?

    What I am wanting is for the maximum quantity is to match the stock quantity, especially when stock is sold, if that makes any sense.

    Any help would be appreciated.
    Outdoorking
    Live Site www.outdoorking.com.au

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,682
    Plugin Contributions
    11

    Default Re: Subtraction and update

    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: Subtraction and update

    Just leave Product Qty Maximum at 0 and set the stock management values as follows:

    In Admin > Configuration > Stock

    Check stock level = true
    Subtract stock = true
    Allow Checkout = false

    see configuration 3 in
    https://docs.zen-cart.com/user/running/stock/

    This prevents people from being able to buy more than are currently in stock (Products Quantity).
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    829
    Plugin Contributions
    0

    Default Re: Subtraction and update

    [QUOTE=swguy;1395640]Just leave Product Qty Maximum at 0 and set the stock management values as follows:

    In Admin > Configuration > Stock

    Check stock level = true
    Subtract stock = true
    Allow Checkout = false

    see configuration 3 in
    https://docs.zen-cart.com/user/running/stock/

    Thank you I will try that.
    Last edited by Bruce1952; 24 Jun 2023 at 08:25 AM.
    Outdoorking
    Live Site www.outdoorking.com.au

  5. #5
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    829
    Plugin Contributions
    0

    Default Re: Subtraction and update

    Hi Swguy,

    Have tried your suggestion but it is not working how I want to because I am selling stock that I don't have at the time of some orders.

    I have set all settings to true in order to sell the stock.

    I have set on quite a few products the max qty (which is the stock that I Have) because I only want that quantity to be the max that they can purchase.

    The qty that I have I am putting into Products quantity.

    What I am trying to do is to get both to work together so that when a product is purchased it reduces the max quantity as well so the customer can see it.

    Once I get this sorted out I will change the max quantity displayed on the site to stock available.

    I hope you can understand what I and try to get done.
    Outdoorking
    Live Site www.outdoorking.com.au

  6. #6
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    329
    Plugin Contributions
    7

    Default Re: Subtraction and update

    Quote Originally Posted by Bruce1952 View Post
    Hi Swguy,

    Have tried your suggestion but it is not working how I want to because I am selling stock that I don't have at the time of some orders.

    I have set all settings to true in order to sell the stock.

    I have set on quite a few products the max qty (which is the stock that I Have) because I only want that quantity to be the max that they can purchase.

    The qty that I have I am putting into Products quantity.

    What I am trying to do is to get both to work together so that when a product is purchased it reduces the max quantity as well so the customer can see it.

    Once I get this sorted out I will change the max quantity displayed on the site to stock available.

    I hope you can understand what I and try to get done.
    Hi,
    I think I understand... You want to display product quantity so that customers know how many are available and don't try to order more.
    Then you should set as swguy told you and check that the setting to display product quantity is 'on' in Catalog > Product type > Click on 'Product - General' > set 'Show Quantity in Stock' to on (1 or true).
    I think it is the closest to what you want, more than that will require some code modification.

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: Subtraction and update

    > I have set all settings to true in order to sell the stock.

    You want "Allow checkout" to be false so that people can't checkout with more in their cart than is currently in stock.

    Also @pilou2's suggestion is a solid way to re-enforce that message.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. change logo and update database
    By GoldBuckle in forum Installing on a Linux/Unix Server
    Replies: 11
    Last Post: 18 Aug 2020, 05:22 PM
  2. Replies: 2
    Last Post: 31 Dec 2009, 04:42 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