Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jul 2021
    Posts
    12
    Plugin Contributions
    0

    Default Product Quantity by Location/Warehouse

    By default zencart edit product page has one quantity field.
    Is it possible to have multiple quantity field for same product especially when site owner has more than one warehouse or location.
    Stock by attribute only works with attributes. What we are looking for to have multiple quantity fields by location on product page.
    Please advise if they is any plugin available or suggestion to achieve this.

  2. #2
    Join Date
    Jan 2013
    Posts
    898
    Plugin Contributions
    0

    Default Re: Product Quantity by Location/Warehouse

    U can install numinix product fields and create as many different fields as desired, you'll have to custom code to retrieve info from fields also if desired.

  3. #3
    Join Date
    Jul 2021
    Posts
    12
    Plugin Contributions
    0

    Default Re: Product Quantity by Location/Warehouse

    Quote Originally Posted by jimmie View Post
    U can install numinix product fields and create as many different fields as desired, you'll have to custom code to retrieve info from fields also if desired.
    Jimmie,
    Thank you for suggestion. I have created two fields as qty1 and qty2.
    How I can make main product default quantity field (Qty) to get info from these fields like
    Qty = qty1 + qty2

    After every purchase qty should subtract from qty1 field by default but if qty1 is 0 or less then it should substract from qty2 field and update Qty total accordingly.

    That's where I am having hard time. If you can point which files/code need edit so I can accomplish this task.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,285
    Plugin Contributions
    125

    Default Re: Product Quantity by Location/Warehouse

    > How I can make main product default quantity field (Qty) to get info from these fields like Qty = qty1 + qty2

    Not something that can be easily done. You'd need to get a developer to do the requisite custom programming.
    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.

  5. #5
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,187
    Plugin Contributions
    63

    Default Re: Product Quantity by Location/Warehouse

    Create the product as a subcategory with the locations stock as products under it

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  6. #6
    Join Date
    Jul 2012
    Posts
    16,797
    Plugin Contributions
    17

    Default Re: Product Quantity by Location/Warehouse

    Do you mind explaining why this process is needed for the business? It may help determine a way forward.

    I've seen a plug-in that helped with drop shipping, but required a little bit of human intervention to balance things out. It seemed to work on a similar concept of offering a method and later a way to adhere the request to something in reality.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Jul 2021
    Posts
    12
    Plugin Contributions
    0

    Default Re: Product Quantity by Location/Warehouse

    Quote Originally Posted by mc12345678 View Post
    Do you mind explaining why this process is needed for the business? It may help determine a way forward.

    I've seen a plug-in that helped with drop shipping, but required a little bit of human intervention to balance things out. It seemed to work on a similar concept of offering a method and later a way to adhere the request to something in reality.
    Have multiple locations for physical stores and would like to share quantity from each store with site so qty field get total qty available to ship.

    qty1 and qty2 are being used to show availability of actual qty on each store, plus using these fields to send data to Google for local pick up/physical stores.

    In future plan on using qty 1 and qty 2 fields to show delivery date per customer location to offer faster delivery options.

  8. #8
    Join Date
    Jul 2021
    Posts
    12
    Plugin Contributions
    0

    Default Re: Product Quantity by Location/Warehouse

    Thank you but that will create too many sub categories (as site has over 5K items) and 2 of each products.

  9. #9
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,616
    Plugin Contributions
    19

    Default Re: Product Quantity by Location/Warehouse

    Quote Originally Posted by get2go View Post
    Have multiple locations for physical stores and would like to share quantity from each store with site so qty field get total qty available to ship.

    qty1 and qty2 are being used to show availability of actual qty on each store, plus using these fields to send data to Google for local pick up/physical stores.

    In future plan on using qty 1 and qty 2 fields to show delivery date per customer location to offer faster delivery options.
    IMO, you'll need to get your hands dirty and get the coding done. A simple approach would be to add 2 more fields (let's say qty1 and qty2) in the database and add logic to update products_quantity based on the values in those fields. Javascript can do it in admin product page.
    As for frontend, you'd need a new function that would be called during checkout_process - you could for example use NOTIFY_CHECKOUT_PROCESS_AFTER_SEND_ORDER_EMAIL notifier to get this part done. This would be a bit more fun because you need to run through all products and be careful not to go into negative values (for example, qty1 is 2, qty2 is 5, ordered 4).
    Using these fields for Google will require your GPSF module to be modified, just like you'll need custom code for delivery dates per location.

    Don't forget to handle cases in admin when order is cancelled or deleted and you need to restock.

  10. #10
    Join Date
    Jul 2021
    Posts
    12
    Plugin Contributions
    0

    Default Re: Product Quantity by Location/Warehouse

    Quote Originally Posted by balihr View Post
    IMO, you'll need to get your hands dirty and get the coding done. A simple approach would be to add 2 more fields (let's say qty1 and qty2) in the database and add logic to update products_quantity based on the values in those fields. Javascript can do it in admin product page.
    As for frontend, you'd need a new function that would be called during checkout_process - you could for example use NOTIFY_CHECKOUT_PROCESS_AFTER_SEND_ORDER_EMAIL notifier to get this part done. This would be a bit more fun because you need to run through all products and be careful not to go into negative values (for example, qty1 is 2, qty2 is 5, ordered 4).
    Using these fields for Google will require your GPSF module to be modified, just like you'll need custom code for delivery dates per location.

    Don't forget to handle cases in admin when order is cancelled or deleted and you need to restock.
    Thank you for your suggestions.
    Qty1 and Qty2 are in DB and IMS update data in these fields from each location. That's done.

    GPSF will take data from these DB columns for qty1 and qty 2 for each location. That's done.

    I have qty1 and qty 2 fields on edit product page and it's inserting/updating values fine. That's done.

    What I am trying to achieve now is :

    When customer complete checkout it should substract from qty1 field by default unless it is 0 than from qty 2 but for available stock check it should take qty1 + qty 2 = total quantity instead of just qty1 field. I am thinking to mark zc default qty as qty1 to simplify as zc by default subtract from it. So just need to add/update code to include qty from qty2 field and apply check to subtract qty from qty 2 when qty1 is <1.

    So I think somewhere on front end where Available quantity check is that's what need to be customized to achieve. Site is using One page checkout. Any idea which files/code need to be customize in there.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Shipping Based on Warehouse Location
    By Cmartin571 in forum Addon Shipping Modules
    Replies: 3
    Last Post: 25 May 2015, 04:29 PM
  2. v151 Adding + and - quantity buttons to product quantity fields
    By izzysoup in forum General Questions
    Replies: 5
    Last Post: 28 Aug 2014, 09:11 AM
  3. quantity discount for checked attributes NOT product quantity
    By adod in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 6 Mar 2009, 06:39 PM

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