Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / product with different sizes option

product with different sizes option

Views: 2,308

Results 1 to 10 of 10
14 Apr 2016, 1:04 PM
#1
spid3r1987 avatar

spid3r1987

Zen Follower

Join Date:
Jul 2009
Posts:
497
Plugin Contributions:
0

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??

14 Apr 2016, 1:13 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: product with different sizes option

spid3r1987:

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_By_Attributes_Combined.
General instructions are available at https://github.com/potteryhouse and the applicable subdirectory for instructions from there.

14 Apr 2016, 3:32 PM
#3
spid3r1987 avatar

spid3r1987

Zen Follower

Join Date:
Jul 2009
Posts:
497
Plugin Contributions:
0

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?

14 Apr 2016, 3:40 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: product with different sizes option

spid3r1987:

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.

14 Apr 2016, 3:50 PM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

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_By_Attributes_Combined/commit/203383a8111f51a4c28dcecd8b0b3a07b57320c9

27 Apr 2016, 9:36 PM
#6
spid3r1987 avatar

spid3r1987

Zen Follower

Join Date:
Jul 2009
Posts:
497
Plugin Contributions:
0

Re: product with different sizes option

mc12345678:

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_By_Attributes_Combined/commit/203383a8111f51a4c28dcecd8b0b3a07b57320c9

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?

27 Apr 2016, 10:03 PM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: product with different sizes option

spid3r1987:

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...)

25 Jun 2024, 1:07 AM
#8
cjdarling avatar

cjdarling

New Zenner

Join Date:
Mar 2022
Location:
CJ Darling
Posts:
25
Plugin Contributions:
0

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 (https://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_By_Attributes_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!!

25 Jun 2024, 7:29 AM
#9
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

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/index.php?main_page=product_info&cPath=65_82_142&products_id=2906&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.

25 Jun 2024, 10:45 AM
#10
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: product with different sizes option

CJDarling:

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 (https://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_By_Attributes_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!!

Shop Suey:

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/index.php?main_page=product_info&cPath=65_82_142&products_id=2906&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/products/attributes_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.