Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2009
    Posts
    495
    Plugin Contributions
    0

    Default product with different sizes option

    ok so im setting up a webshop for my mrs who is selling clothes.
    obviously each item of clothing has different sizes.

    i can add attributes etc...
    but how can i add a size option, but stock quantity per size option...

    so size 8 has 20 in stock, size 10 has 13 in stock...
    and when a customer ordered a size 8 it removes one from the stock.... but all on the one page like a dropdown choice etc??
    i may not know how yet, but i soon will....i hope :)

  2. #2
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: product with different sizes option

    Quote Originally Posted by spid3r1987 View Post
    ok so im setting up a webshop for my mrs who is selling clothes.
    obviously each item of clothing has different sizes.

    i can add attributes etc...
    but how can i add a size option, but stock quantity per size option...

    so size 8 has 20 in stock, size 10 has 13 in stock...
    and when a customer ordered a size 8 it removes one from the stock.... but all on the one page like a dropdown choice etc??
    Stock by Attributes, currently available from https://github.com/mc12345678/Stock_...butes_Combined.
    General instructions are available at https://github.com/potteryhouse and the applicable subdirectory for instructions from there.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jul 2009
    Posts
    495
    Plugin Contributions
    0

    Default Re: product with different sizes option

    Brilliant thank you.

    Is their a way to get it to show how many of each attrib is in stock, once they select the size etc?

    ie select size 8, it shows 4 in stock?
    i may not know how yet, but i soon will....i hope :)

  4. #4
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: product with different sizes option

    Quote Originally Posted by spid3r1987 View Post
    Brilliant thank you.

    Is their a way to get it to show how many of each attrib is in stock, once they select the size etc?

    ie select size 8, it shows 4 in stock?
    It is supposed to do this when using either the option type similar to: Basic SBA found in the option names dropdown, or when using multiple attributes and Dynamic dropdowns. There are also several settings in different areas related to showing product quantities.

    The answer though is yes. :)

    There were a few minor fixes identified this last weekend, unfortunately at the moment I can't recall if they got incorporated into the main thread, but I'll take a look. The fix(es) affected using the above option type's availability. There is a simple sql statement that can address it if it is an issue. The problem that would be seen is that no attributes appear on a product page that are designated with the above option type.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: product with different sizes option

    Yeah, looks like between myself and the individual that identified the problem we didn't come back together to say that the issue was resolved. Therefore the fix still needs to be applied.

    The following link shows the old and new line numbers to the affected file(s). I suggest doing this before putting too much data in, but it becomes easy to apply.

    https://github.com/mc12345678/Stock_...0b3a07b57320c9
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Jul 2009
    Posts
    495
    Plugin Contributions
    0

    Default Re: product with different sizes option

    Quote Originally Posted by mc12345678 View Post
    Yeah, looks like between myself and the individual that identified the problem we didn't come back together to say that the issue was resolved. Therefore the fix still needs to be applied.

    The following link shows the old and new line numbers to the affected file(s). I suggest doing this before putting too much data in, but it becomes easy to apply.

    https://github.com/mc12345678/Stock_...0b3a07b57320c9
    so if i implement these changes, will i have to re-run the installation?
    will it remove all the stuff i have already got set up??

    also im using the responsive_classic template now, but its not showing the quantity in stock alongside the options...
    but on the classic green template it does show the quantity in stock alongside the options...

    any idea's on this?
    i may not know how yet, but i soon will....i hope :)

  7. #7
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: product with different sizes option

    Quote Originally Posted by spid3r1987 View Post
    so if i implement these changes, will i have to re-run the installation?
    will it remove all the stuff i have already got set up??

    also im using the responsive_classic template now, but its not showing the quantity in stock alongside the options...
    but on the classic green template it does show the quantity in stock alongside the options...

    any idea's on this?
    It's been a while since I have run the install on a store that had existing product and at the moment I forget if it maintains the existing data table data (I thought it did, but perhaps the settings were reset), but regardless, should always try on a development site/make a backup before taking such action. The export/import of the SBA table is also supposed to be functional allowing such a backup, but that too I haven't touched in over a year if at all.

    Otherwise, if you implement the code changes, then as said it is also possible to run a simple sql command to put in place the desired information. There is an issue in the repository that provides specific direction of the action necessary to provide the necessary database info.

    As to the differences in template operation, the code in the fileset that is in each applicable "YOUR_TEMPLATE" directory must be placed in each of the template folders in which the functionality is desired. So that would mean it would need to be placed in the *COPY* of the default responsive template (remember, you really want the classic and the new responsive_classic directories to be clean of anything else so that testing and updates are easier...)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Mar 2022
    Location
    CJ Darling
    Posts
    25
    Plugin Contributions
    0

    Default Re: product with different sizes option

    This is probably a really stupid question, but I really could use some help. I'm putting together a shopping cart for a candy store (www.candyland-sweets.com/index.php) using v2.0.1 which I downloaded and installed today. The lady wants to offer most candies, nuts, and fruits in half-pound and one-pound amounts. I looked at the link above (https://github.com/mc12345678/Stock_...butes_Combined) but I simply couldn't make sense of what I'm supposed to do. I'm not fluent in php, so it pretty much looked like Sanskrit to me.

    Could someone please tell me how to add different sizes/prices for the items in her cart? Thank you!!

  9. #9
    Join Date
    Feb 2014
    Location
    Germany
    Posts
    295
    Plugin Contributions
    0

    Default Re: product with different sizes option

    You can do it with the built-in attributes options. No need for additional plugins.

    Here's an example: https://www.roller-aus-blech.de/inde...06&language=en

    You can set default values and individual prices (see the manufacturer attributes) for each attribute of course.

    BTW You really should write a new post for your issue next time.
    Last edited by Shop Suey; 25 Jun 2024 at 08:32 AM.
    My business is GDPR compliant Webhosting and other Web Services.
    Beside that I still have a Zen Cart Shop running for Classic Vespa Spare Parts
    Locations in Germany, Spain and Finland. Other worldwide locations on demand

  10. #10
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: product with different sizes option

    Quote Originally Posted by CJDarling View Post
    This is probably a really stupid question, but I really could use some help. I'm putting together a shopping cart for a candy store (www.candyland-sweets.com/index.php) using v2.0.1 which I downloaded and installed today. The lady wants to offer most candies, nuts, and fruits in half-pound and one-pound amounts. I looked at the link above (https://github.com/mc12345678/Stock_...butes_Combined) but I simply couldn't make sense of what I'm supposed to do. I'm not fluent in php, so it pretty much looked like Sanskrit to me.

    Could someone please tell me how to add different sizes/prices for the items in her cart? Thank you!!
    Quote Originally Posted by Shop Suey View Post
    You can do it with the built-in attributes options. No need for additional plugins.

    Here's an example: https://www.roller-aus-blech.de/inde...06&language=en

    You can set default values and individual prices (see the manufacturer attributes) for each attribute of course.

    BTW You really should write a new post for your issue next time.
    The plugin referenced supports controlling and tracking inventory of product sold dependent on attributes. E.g. if only have X half pound quantities, then helps to prevent overselling that many.

    By general default, Zen Cart supports selling items that have attributes, but limits the inventory to however many purchases are made, independent of what data is represented in the attributes.

    For the general purpose of attributes, may I suggest beginning at: https://docs.zen-cart.com/user/produ...tributes_info/

    Then following the link in the list section about adding attributes to products.

    Maybe after that and learning more about attributes, perhaps the plugin may be helpful; however, I note that if product is sold by both the half pound and whole pound that the plugin considers those two types effectively as two different product quantities. E.g. Y half pound quantities and Z whole pound quantities.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Different quantities for different sizes of same product?
    By andy.allard in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 8 Nov 2010, 03:26 AM
  2. Sizes with different prices
    By coralrose in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 19 Oct 2008, 01:14 AM
  3. one product with different sizes, prices and discounts
    By MDEE in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 10 Oct 2007, 01:16 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