Product Size Drop Down List

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 anni tempo fa
Hi i was just wondering generally if i was going to have multiple sizes of the one product.. what would the best way to set that up be?

i.e. are they product attributes or specifications or variants??
Thanks so much,
Tom
13 anni tempo fa
You need product attributes. Look at 'Build your own computer' sample product here and how it is created here
13 anni tempo fa
Hi!
I was just looking at that.. if i wanted to have specific stock levels for a given size how would that work? the only way i can see that working is using the product attribute combinations but i only have 1 product attribute

IE..

I have a Ring

a ring has   2x size m   1 x size n,  3x size o

how would i have a drop down list with m,n,o   and then make sure that the stock for m is 2, n is 1 and o is 3   if i don't have any other attributes to add to the combination??

thanks so much
13 anni tempo fa
Use combinations for managing stock levels even if you have only one attribute
13 anni tempo fa
If you don't need to track stock by SKU, then that suggestion will work.  If you do need to track by SKU, you'll need to create a new product variant for each SKU and set a single value for each product attribute - that's how I do it.
13 anni tempo fa
I couldn't actually set it up using combinations.. I setup a drop down list for Size and then went into combinations and then tried to assign a quantity but then the div changed to a red background with an X icon next to size...

what would i be doing wrong.. i do just want one attribute..

I don't need multiple SKU's at this stage..


<PLEASE SEE UPDATED PICS BELOW>
13 anni tempo fa
Please post larger screenshots. I cannot see anything on them
13 anni tempo fa
Upon further investigation...

the culprit is Trendy Shoes....



Larry has modified the \Modules\ProductAttributes.ascx code behind... in the PageLoad method he's added

protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
                CreateAttributeControls();
        }



The !Page.IsPostBack check means that when the admin section is posting back and tries to retrieve the value from the attribute controls to assign to the product attribute combination.. the controls aren't rendered and hence no values are returned for the call to
public string SelectedAttributes 
on line 322 of ~/Modules/ProductAttributes.ascx.cs

from the admin call on line 270 of ~/Administration/Modules/ProductVariantAttributes.ascx.cs to
string attributes = ctrlSelectProductAttributes.SelectedAttributes;


so alas.. I'd love to fix the bug but have no idea what the implications of removing the !Page.IsPostBack call from ProductAttributes.ascx.cs would be....

so because the admin page is posting back it won't actually render any controls... I have no idea what the implications of removing the !Page.IsPostBack check are... so I guess I'll have to raise it with him and hope he responds quickly because the site is live!!!

http://i812.photobucket.com/albums/zz50/mollythemoggie/1-1.jpg
http://i812.photobucket.com/albums/zz50/mollythemoggie/2-1.jpg
http://i812.photobucket.com/albums/zz50/mollythemoggie/3-1.jpg
http://i812.photobucket.com/albums/zz50/mollythemoggie/4-1.jpg
13 anni tempo fa
There should not be " if (!Page.IsPostBack)". Remove it!
13 anni tempo fa
Yes id LOVE to remove it.. i just don't know how that'll effect what Larrylan has done for trendy shoes!

some of the changes made in the core for trendy shoes have really been hard to deal with because they end up changing the core functionality of nop that works so well to begin with!

I have a rule when developing! extend and enhance but if you're building on top of someone's code DONT break the core!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.