Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / "Stock by Attributes" (version 1.5.3). This MOD is ONLY for v1.5.1 ..whaddda?

"Stock by Attributes" (version 1.5.3). This MOD is ONLY for v1.5.1 ..whaddda?

18 Apr 2015, 2:17 AM
#41
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #41 by mc12345678

buildingblocks:

hmm....well here we may run into a problem. The live site (1.3.8a) is submitting feeds to google merchant center and is using attributes to fullfill googles' product identifier requirements (which are also hidden on product info page with the flexible attributes module).

I ended up installing SBA module on a development site and set up some attributes which work nicely. I really like how the dropdown boxes work and the variant quantities display alongside each variant. I added two dropdowns, each with several variants. I did notice though that I couldn't change from dropdown to bullet (or checkbox etc. when experimenting).

I did find that when I added a read only attribute (for google merchant center feed) Ex: option - gender, value - female, the other attributes/variants (option names color and size) don't work, saying out of stock....so this is probably what you were advising about or maybe a configuration problem on my part?

A little of both... See, one doesn't "add" a read only attribute... Variants are built off of the available attributes... If the product has more attributes than the variant, then it shows up as out-of-stock (or at least that is what I expect because that scenario is not one that is yet incorporated into the expected program flow.)

In your case, need to build variants that include all attributes together as a single variant, not all selectable product information as a variant and then just add the read only attribute to the product...

So the mix part I saw in my testing just now was that Dynamic Dropdowns doesn't just display read only attributes. It makes them an item that must be selected... Sort of defeats the read only part... But, it doesn't force an out-of-stock condition...

The way I built my test product was to select multiple attributes-combo for all attributes and provide some quantity even if it is zero. I then was able to select the various options and see what the total stock was for the chosen options. There are a few scenarios that I didn't try and probably need addressing, but at least a read only attribute was possible to have...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

18 Apr 2015, 7:17 AM
#42
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Post #42 by buildingblocks

mc12345678:

A little of both... See, one doesn't "add" a read only attribute... Variants are built off of the available attributes... If the product has more attributes than the variant, then it shows up as out-of-stock (or at least that is what I expect because that scenario is not one that is yet incorporated into the expected program flow.)

In your case, need to build variants that include all attributes together as a single variant, not all selectable product information as a variant and then just add the read only attribute to the product...

So the mix part I saw in my testing just now was that Dynamic Dropdowns doesn't just display read only attributes. It makes them an item that must be selected... Sort of defeats the read only part... But, it doesn't force an out-of-stock condition...

The way I built my test product was to select multiple attributes-combo for all attributes and provide some quantity even if it is zero. I then was able to select the various options and see what the total stock was for the chosen options. There are a few scenarios that I didn't try and probably need addressing, but at least a read only attribute was possible to have...
I was getting out of stock with read only because on attributes controller I had it set to "Used For
Display Purposes Only: yes" The out of stock went away when I set to 'no'.

In 'option names' can you tell me if there's a functional difference between "SBA Select List (Dropdown) Basic" and "dropdown"? I'm not noticing anything different between the two settings.

I do think the site owner is going to want to keep SBA and still have the gender field (and other google merchant related fields) hidden so I'm thinking/hoping in order to keep SBA and also have hidden fields, a combination of SBA and numinix produuct fields (custom fields) might work.

18 Apr 2015, 10:15 AM
#43
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #43 by mc12345678

buildingblocks:

I was getting out of stock with read only because on attributes controller I had it set to "Used For
Display Purposes Only: yes" The out of stock went away when I set to 'no'.

In 'option names' can you tell me if there's a functional difference between "SBA Select List (Dropdown) Basic" and "dropdown"? I'm not noticing anything different between the two settings.

I do think the site owner is going to want to keep SBA and still have the gender field (and other google merchant related fields) hidden so I'm thinking/hoping in order to keep SBA and also have hidden fields, a combination of SBA and numinix produuct fields (custom fields) might work.

Okay, gotcha now... Read only and for display purposes only are two different things. Technically, if SBA (truly Dynamic Dropdowns) properly only displayed the data not requiring the user to select the value of the Read Only attribute, then CSS could be used to visually hide the read only attribute. This would still provide the data to the webpage, but not to the user...

As for the two drop down styles: the SBA select List (Dropdown) is primarily only supported in single attribute scenarios at the moment. The difference is that html coding is supported in that dropdown style permitting things like bold text, greying of the box when out-of-stock, etc... These characteristics are intended to be incorporated into multi-attribute product, but there are other corrections/items to incorporate necessary first.

When using the display only aspect, is that the only value in that option name? Or is it just one of many values in the option name. If the only value, then it should be setup as a read only option name type. (Meaning the above is incorrectly setup). If say the first of many option values, then I can't say I see how it is being used to obtain the desired result.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

19 Apr 2015, 7:24 PM
#44
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Post #44 by buildingblocks

mc12345678:

Okay, gotcha now... Read only and for display purposes only are two different things. Technically, if SBA (truly Dynamic Dropdowns) properly only displayed the data not requiring the user to select the value of the Read Only attribute, then CSS could be used to visually hide the read only attribute. This would still provide the data to the webpage, but not to the user...

As for the two drop down styles: the SBA select List (Dropdown) is primarily only supported in single attribute scenarios at the moment. The difference is that html coding is supported in that dropdown style permitting things like bold text, greying of the box when out-of-stock, etc... These characteristics are intended to be incorporated into multi-attribute product, but there are other corrections/items to incorporate necessary first.

When using the display only aspect, is that the only value in that option name? Or is it just one of many values in the option name. If the only value, then it should be setup as a read only option name type. (Meaning the above is incorrectly setup). If say the first of many option values, then I can't say I see how it is being used to obtain the desired result.

First, I do understand this mod version is still beta and a work in progress. Some of this may be repititious so please excuse my jabbering, but I typed as I went along testing and trying to understand how things work. I have been working with SBA some more and this is the general setup needed for majority of our products.

Some testing attributes

option name

color - dropdown
option values : red, blue

option name

size - dropdown
option values : 10, 12

option name

gender - read only
option values : female, male, unisex

option name

age group - read only
option values : adult, child

The intention is to hide the read-only attributes. They are for google merchant center and don't need to be visible on the page

When stock variants are set up for color and size the read only attributes are being included in the selection proccess on the product info page.

Hoping maybe these scripts might separate them I ran some of the optional scripts found in configuration > products with attributes stock

  • add product attributes that are NOT read only

  • default SQL - only add the product attributes that are NOT read only and are NOT the new SBA selections

Neither of these scripts did what I was hoping and actually I didn't notice anything different after they were run.

If the read only attributes are at the top of the list the first attribute must be selected in order to continue making selections. If the read only attributes are at the bottom of the list they must still be selected in the process with the last one displaying the quantity in stock.

Initially I had planned on using the flexible attributes module (I tried and got unfavorable results) but found the attribute output code for products setup with SBA is using tables whereas the attributes not set up with SBA the attribute code is output with divs. So it looks like the flexible attributes module is not going to be compatible.

Also if the read only attributes can not be separated from the selection process then hiding them would make it impossible to complete the selection proccess.

What you said here

""In your case, need to build variants that include all attributes together as a single variant, not all selectable product information as a variant and then just add the read only attribute to the product...""

wasn't quite sure what you meant so what I did was set up the variants adding quantities for color and size and left gender and age group as N/A. On thee product info page trying to make selections I get 'out of stock warnings' The product variants add up correctly to the product listing quantity.

I then ran the default script and that allowed me to make the selections.

Also you asked

""When using the display only aspect, is that the only value in that option name? Or is it just one of many values in the option name. If the only value, then it should be setup as a read only option name type. (Meaning the above is incorrectly setup). If say the first of many option values, then I can't say I see how it is being used to obtain the desired result.
""

While the read only options have several values set up only one value is displayed on the product info page.

So one product may have gender female another product may have gender male. But on any given page it would be only one value displayed.

19 Apr 2015, 8:38 PM
#45
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #45 by mc12345678

buildingblocks:

What you said here

""In your case, need to build variants that include all attributes together as a single variant, not all selectable product information as a variant and then just add the read only attribute to the product...""

wasn't quite sure what you meant so what I did was set up the variants adding quantities for color and size and left gender and age group as N/A. On thee product info page trying to make selections I get 'out of stock warnings' The product variants add up correctly to the product listing quantity.

I then ran the default script and that allowed me to make the selections.

So does the above mean that the issue is resolved?

buildingblocks:

Initially I had planned on using the flexible attributes module (I tried and got unfavorable results) but found the attribute output code for products setup with SBA is using tables whereas the attributes not set up with SBA the attribute code is output with divs. So it looks like the flexible attributes module is not going to be compatible.

Trying to understand the use of flexible attributes and its intended functionality... Perhaps not for you to answer, but trying to figure out/would like to know if flexible attributes is something that should ultimately be able to work with SBA? Is there something about SBAs output that is making it incompatible? If so, then perhaps need to modify the output even though some of that output is linked to Dynamic Dropdowns (caused by).

buildingblocks:

Some testing attributes

option name

color - dropdown
option values : red, blue

option name

size - dropdown
option values : 10, 12

option name

gender - read only
option values : female, male, unisex

option name

age group - read only
option values : adult, child

The intention is to hide the read-only attributes. They are for google merchant center and don't need to be visible on the page

When stock variants are set up for color and size the read only attributes are being included in the selection process on the product info page.

Hoping maybe these scripts might separate them I ran some of the optional scripts found in configuration > products with attributes stock

  • add product attributes that are NOT read only

  • default SQL - only add the product attributes that are NOT read only and are NOT the new SBA selections

Neither of these scripts did what I was hoping and actually I didn't notice anything different after they were run.

When multiple attributes are involved as shown above, Dynamic Dropdowns presides and the associated scripts identified above have not been tested against that aspect of SBA. They were designed with single attributes in mind. Single attributes at this time is fully presented by the SBA code modified by potteryhouse and jeking with exception of some additional functionality and code cleanup that I've added, but their core operation has been untouched. So, those scripts may have desirable effects when a product has a single attribute.

buildingblocks:

If the read only attributes are at the top of the list the first attribute must be selected in order to continue making selections. If the read only attributes are at the bottom of the list they must still be selected in the process with the last one displaying the quantity in stock.

Also if the read only attributes can not be separated from the selection process then hiding them would make it impossible to complete the selection process.

Agree, this is something that needs to be addressed in the Dynamic Dropdown code. If you are okay without having the stock quantity display/out-of-stock information, etc..., then you can turn off Dynamic Dropdowns from multiple attributes (and off for single as well or combination of the two) and just provide selectable variants like you are probably more accustomed to seeing. This would/should offer the functionality desired including the ability to hide the read-only attribute for the presented variant.

buildingblocks:

Also you asked

""When using the display only aspect, is that the only value in that option name? Or is it just one of many values in the option name. If the only value, then it should be setup as a read only option name type. (Meaning the above is incorrectly setup). If say the first of many option values, then I can't say I see how it is being used to obtain the desired result.
""

While the read only options have several values set up only one value is displayed on the product info page.

So one product may have gender female another product may have gender male. But on any given page it would be only one value displayed.

This was what I was thinking the goal was, but I also saw in Attributes Manager that it was possible to assign more than one read only value to a read only option name and wanted to get a bit of a better idea of how it was being used...

Help a little? I think I addressed every area discussed. This type of feedback is very beneficial and technically might be better served on the applicable forum for the plugin, but at the least some issues have been identified (already started a new issue in github) to address some of the observations discussed, though curious about what is now at the top of this message... :) If that is a viable solution, then it would be important to capture in the documentation.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

19 Apr 2015, 10:39 PM
#46
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Post #46 by buildingblocks

"I then ran the default script and that allowed me to make the selections."

So does the above mean that the issue is resolved?

yes in part, I was able to make selection and add to basket, but I find that each time a product is set up this way I have to run the script again.

Flexible attributes module over-rides/or merge

\includes\templates\your_template\templates\tpl_modules_attributes.php
\includes\modules\your_template\attributes.php

The flexible attributes module generates a unique id number for each attribute so that id can be used in the stylesheet to style individually or display:none. The styling would affect any product using that attribute/id.

In firebug this is how the code looks

<div id="wAttrib-10" class="wrapperAttribsOptions"> <div class="attribsOptions"> <h4 class="optionName back">Age Group</h4> <div class="back"> Adult<br> </div> <!--<br class="clearBoth" />--> </div> </div>

for this attribute, in stylesheet we have

#wAttrib-10 {display: none;}

If you are okay without having the stock quantity display/out-of-stock information, etc..., then you can turn off Dynamic Dropdowns from multiple attributes (and off for single as well or combination of the two) and just provide selectable variants like you are probably more accustomed to seeing. This would/should offer the functionality desired including the ability to hide the read-only attribute for the presented variant.

That would be ok but it doesn't work. IE: once stock variants are added then the dynamic dropdowns take over. To be sure I removed all variants from SBA. Went to attributes controller and made sure the option names were using the default 'dropdown' and read only for those others....age group etc. The attributes on product info page looked like the normal default display. I went back and added the variants to SBA and the dynamic dropdown took over. I tried with both 'drop down' and with 'SBA select list (dropdown) basic'

Thanks for taking the time to go over these things.

19 Apr 2015, 11:05 PM
#47
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #47 by mc12345678

buildingblocks:

That would be ok but it doesn't work. IE: once stock variants are added then the dynamic dropdowns take over. To be sure I removed all variants from SBA. Went to attributes controller and made sure the option names were using the default 'dropdown' and read only for those others....age group etc. The attributes on product info page looked like the normal default display. I went back and added the variants to SBA and the dynamic dropdown took over. I tried with both 'drop down' and with 'SBA select list (dropdown) basic'

Thanks for taking the time to go over these things.

Ahemmm, need to take an action to turn off Dynamic Dropdowns: admin->configuration->Dynamic Dropdowns

Then I think the first menu option, change from 2 to 0... (Multiple attributes only to off).

As for the css, the attributes ought to be unique enough to use CSS on any of the attributes.

No, thank you for the feedback, kind of stuff needed to make improvements.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

20 Apr 2015, 12:21 AM
#48
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Post #48 by buildingblocks

mc12345678:

Ahemmm, need to take an action to turn off Dynamic Dropdowns: admin->configuration->Dynamic Dropdowns

Attachment 15197 well, Duh!!.....I knew the configuration > products with attributes stock existed but my eyes skimmed right over the dynamic drop downs menu. lol Thank you for pointing it out. Off to play some more.

18 May 2015, 7:16 PM
#49
malaperth avatar

malaperth

New Zenner

Join Date:
Dec 2013
Location:
Maine
Posts:
77
Plugin Contributions:
0

Post #49 by malaperth

buildingblocks:

Attachment 15197 well, Duh!!.....I knew the configuration > products with attributes stock existed but my eyes skimmed right over the dynamic drop downs menu. lol Thank you for pointing it out. Off to play some more.

In my installation of SBA 1.53 on ZC 1.5.1, I do not have an admin->configuration->Dynamic Dropdowns choice, and in the setup for the attributes, when I try to change any of the lengths of attribute names from 32, I get no change. Please forgive a half-senile old man who hasn't written a line of serious code in over 20 years, but, as I have a feeling, does this appear to anyone else that I have not installed SBA correctly?

Mal

18 May 2015, 8:29 PM
#50
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #50 by mc12345678

Malaperth:

In my installation of SBA 1.53 on ZC 1.5.1, I do not have an admin->configuration->Dynamic Dropdowns choice, and in the setup for the attributes, when I try to change any of the lengths of attribute names from 32, I get no change. Please forgive a half-senile old man who hasn't written a line of serious code in over 20 years, but, as I have a feeling, does this appear to anyone else that I have not installed SBA correctly?

Mal

As it is the case with open source software that has been made available on this site, either it was pretty much paid for and permitted to be posted, self developed and returned to the community, or developed/modified to meet some need and returned to the community. In regards to the current state of SBA, when it seemed like it was ready to go, it was realized that ZC 1.5.4 was just around the corner and that to ensure the continued functionality of SBA, that it needed to be updated to support the newest version ahead of providing backwards compatibility.

Short part about that, there are features and options in SBA 1.5.4 that are not yet a part of SBA 1.5.3. This includes direct incorporation of the Dynamic Dropdowns plugin as part of the code. So no, the issue(s) you have with SBA 1.5.3 are not "your doing". :)

As to the modifiction of the attributes field, that I believe is a separate issue that personally would have to look up info on to help, though would think someone else may come along with the answer before I do. :)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

18 May 2015, 9:14 PM
#51
malaperth avatar

malaperth

New Zenner

Join Date:
Dec 2013
Location:
Maine
Posts:
77
Plugin Contributions:
0

Post #51 by malaperth

mc12345678:

As it is the case with open source software that has been made available on this site, either it was pretty much paid for and permitted to be posted, self developed and returned to the community, or developed/modified to meet some need and returned to the community. In regards to the current state of SBA, when it seemed like it was ready to go, it was realized that ZC 1.5.4 was just around the corner and that to ensure the continued functionality of SBA, that it needed to be updated to support the newest version ahead of providing backwards compatibility.

Short part about that, there are features and options in SBA 1.5.4 that are not yet a part of SBA 1.5.3. This includes direct incorporation of the Dynamic Dropdowns plugin as part of the code. So no, the issue(s) you have with SBA 1.5.3 are not "your doing". :)

As to the modifiction of the attributes field, that I believe is a separate issue that personally would have to look up info on to help, though would think someone else may come along with the answer before I do. :)

Well, I very much appreciate not only Zen Cart itself, but all the work people have done to make plugins and templates for it. It's always been my opinion that if it doesn't work perfectly, or have some certain functionality that you need, hey, chill out, it didn't cost you a nickle... I just saw the reference to the Dynamic Dropdowns choice in the Configuration choice list, which I do not have in my installation which seemed to be the same versions as others so I figured I screwed up in installing part of it. When I first set it up, I was in a wicked hurry and (yes, I know, extremely stupidly) used the default green template as is, so on occasion files go to the wrong place despite my best efforts to change the file path to fit my (lame) setup. (A friend told me I should have been beaten soundly for a: not reading enough about it and seeing the many posts saying NOT to do exactly what I did, and b: not fixing it immediately when it was pointed out to me. ;) )

My issue is, though, that when you set up an attribute, you see 32 and 32 in size columns supposedly to be able to adjust the size of the input and the length of text truncation. I have changed those settings, but the change has no effect on what is actually displayed on the site so again, I thought I may have installed something incorrectly since in my search (although the search engine for Zen Cart leaves something to be desired) I found nothing indicating others had had that issue.

Mal

19 May 2015, 1:46 AM
#52
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #52 by mc12345678

Malaperth:

Well, I very much appreciate not only Zen Cart itself, but all the work people have done to make plugins and templates for it. It's always been my opinion that if it doesn't work perfectly, or have some certain functionality that you need, hey, chill out, it didn't cost you a nickle... I just saw the reference to the Dynamic Dropdowns choice in the Configuration choice list, which I do not have in my installation which seemed to be the same versions as others so I figured I screwed up in installing part of it. When I first set it up, I was in a wicked hurry and (yes, I know, extremely stupidly) used the default green template as is, so on occasion files go to the wrong place despite my best efforts to change the file path to fit my (lame) setup. (A friend told me I should have been beaten soundly for a: not reading enough about it and seeing the many posts saying NOT to do exactly what I did, and b: not fixing it immediately when it was pointed out to me. ;) )

My issue is, though, that when you set up an attribute, you see 32 and 32 in size columns supposedly to be able to adjust the size of the input and the length of text truncation. I have changed those settings, but the change has no effect on what is actually displayed on the site so again, I thought I may have installed something incorrectly since in my search (although the search engine for Zen Cart leaves something to be desired) I found nothing indicating others had had that issue.

Mal

Ahh, I think I understand a little better now. The text width that you are referring in the option names area is all about the text entry box as an entry attribute. It is not about the display of a radio button or a dropdown menu. That part is all about css and attriibute related formatting. Might I suggest starting a new thread for that, giving your website address and with that a product where you would like to have a specified look. There are many that can tell you basically on what line of what file a change can be made to accomplish your goal. I'm limited at the moment being on cell phone.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

19 May 2015, 2:11 PM
#53
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Post #53 by mattys

Hi

I have just upgraded to zen cart v1.5.3. I have also merged in and uploaded files for Stock by Attributes" (version 1.5.4) which is for zen cart v1.5.3 according to the readme.

I am working on the attributes for a product in a test area here https://www.jarbon.com/dev/index.php?main_page=product_info&cPath=62_73&products_id=9#.VVs-x_lVikr

There are two attributes, shoe size and colour, with combinations between the two. When i 'Add Quantity For Product Variant' i have currently used 'All - attributes - Combo' and added a quantity. The set up in admin looks like this:

Attachment #15306

When you view https://www.jarbon.com/dev/index.php?main_page=product_info&cPath=62_73&products_id=9#.VVs-x_lVikr you can see that size is fine, as it should be, but colours are repeated, 3 of each colour when there should be just one. I have tried different methods of 'Add Quantity For Product Variant' but to no avail.

It should look attributes on this page https://www.jarbon.com/alpaca-socks/alpaca-bed-socks-natural/alpaca-bed-socks-natural.

I'm not sure why i cant configure it like it is on the live site https://www.jarbon.com/alpaca-socks/alpaca-bed-socks-natural/alpaca-bed-socks-natural

I'm not sure if it is a new setting, or way of configuring SBA that i am getting wrong, or if it is a file/database issue, i've used the SBA admin area and there are no errors there.

if anyone has any input it would be much appreciated.

Matt

19 May 2015, 5:48 PM
#54
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #54 by mc12345678

mattys:

Hi

I have just upgraded to zen cart v1.5.3. I have also merged in and uploaded files for Stock by Attributes" (version 1.5.4) which is for zen cart v1.5.3 according to the readme.

I am working on the attributes for a product in a test area here https://www.jarbon.com/dev/index.php?main_page=product_info&cPath=62_73&products_id=9#.VVs-x_lVikr

There are two attributes, shoe size and colour, with combinations between the two. When i 'Add Quantity For Product Variant' i have currently used 'All - attributes - Combo' and added a quantity. The set up in admin looks like this:

Attachment #15306

When you view https://www.jarbon.com/dev/index.php?main_page=product_info&cPath=62_73&products_id=9#.VVs-x_lVikr you can see that size is fine, as it should be, but colours are repeated, 3 of each colour when there should be just one. I have tried different methods of 'Add Quantity For Product Variant' but to no avail.

It should look attributes on this page https://www.jarbon.com/alpaca-socks/alpaca-bed-socks-natural/alpaca-bed-socks-natural.

I'm not sure why i cant configure it like it is on the live site https://www.jarbon.com/alpaca-socks/alpaca-bed-socks-natural/alpaca-bed-socks-natural

I'm not sure if it is a new setting, or way of configuring SBA that i am getting wrong, or if it is a file/database issue, i've used the SBA admin area and there are no errors there.

if anyone has any input it would be much appreciated.

Matt

While this thread has somewhat begun taking a life of it's own, and perhaps to be the "right place" based on other factors, the main topics and the above issue are addressed more at a previously established thread: https://www.zen-cart.com/showthread.php?47180-Stock-by-Attribute-v4-0-addon-for-v1-3-5-1-3-9

Long and short, what branch of the SBA 1.5.4 github repo was downloaded? The main branch has not received the updates addressed and that resolve the issue seen.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

19 May 2015, 6:39 PM
#55
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Post #55 by mattys

mc12345678:

Long and short, what branch of the SBA 1.5.4 github repo was downloaded? The main branch has not received the updates addressed and that resolve the issue seen.

the only info i have regarding branch is stock_by_attribute_1.5.4-master, the name and the zip file and folder, there is no other info in the files to help with determining this

so, you are saying solutions to this are within this post https://www.zen-cart.com/showthread.php?47180-Stock-by-Attribute-v4-0-addon-for-v1-3-5-1-3-9/page218 ?

or should i post this to that thread?

19 May 2015, 6:55 PM
#56
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #56 by mc12345678

mattys:

the only info i have regarding branch is stock_by_attribute_1.5.4-master, the name and the zip file and folder, there is no other info in the files to help with determining this

so, you are saying solutions to this are within this post https://www.zen-cart.com/showthread.php?47180-Stock-by-Attribute-v4-0-addon-for-v1-3-5-1-3-9/page218 ?

or should i post this to that thread?

Yes they are in that post, and at this "stage" I would suggest looking at the end of the thread and work back. There are posts indicating how to get the version that resolves the issue described. Maybe sometime soon can merge the branches and resolve the confusion.:)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

19 May 2015, 8:35 PM
#57
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Post #57 by mattys

thanks, will get lookin

20 May 2015, 11:48 AM
#58
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Post #58 by soxophoneplayer

mattys:

Hi

I have just upgraded to zen cart v1.5.3. I have also merged in and uploaded files for Stock by Attributes" (version 1.5.4) which is for zen cart v1.5.3 according to the readme.

I am working on the attributes for a product in a test area here https://www.jarbon.com/dev/index.php?main_page=product_info&cPath=62_73&products_id=9#.VVs-x_lVikr

There are two attributes, shoe size and colour, with combinations between the two. When i 'Add Quantity For Product Variant' i have currently used 'All - attributes - Combo' and added a quantity. The set up in admin looks like this:

Attachment #15306

When you view https://www.jarbon.com/dev/index.php?main_page=product_info&cPath=62_73&products_id=9#.VVs-x_lVikr you can see that size is fine, as it should be, but colours are repeated, 3 of each colour when there should be just one. I have tried different methods of 'Add Quantity For Product Variant' but to no avail.

It should look attributes on this page https://www.jarbon.com/alpaca-socks/alpaca-bed-socks-natural/alpaca-bed-socks-natural.

I'm not sure why i cant configure it like it is on the live site https://www.jarbon.com/alpaca-socks/alpaca-bed-socks-natural/alpaca-bed-socks-natural

I'm not sure if it is a new setting, or way of configuring SBA that i am getting wrong, or if it is a file/database issue, i've used the SBA admin area and there are no errors there.

if anyone has any input it would be much appreciated.

Matt

I'm using SbyA 1.5.4-mc12345678 from github on zc 1.5.4. My attributes are size and colour. I don't use the Unique combo field at all, and just set the inventory levels by clicking directly on the quantity field (rather than Edit Quantity link). I have Dynamic Dropdowns enabled and set to "2" to allow for products with only 1 attrib or more than 1. In catalog/Option Name Manager, I set Size Option type to: Dropdown (not SbA) and Colour to either Dropdown or SBA. These settings give me accurate inventory counts and no errors that I'm aware of. I'm not a techie, just a monkey-see type, but these setting are how I got things behaving nicely for me.

20 May 2015, 11:03 PM
#59
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #59 by mc12345678

soxophoneplayer:

I'm using SbyA 1.5.4-mc12345678 from github on zc 1.5.4. My attributes are size and colour. I don't use the Unique combo field at all, and just set the inventory levels by clicking directly on the quantity field (rather than Edit Quantity link). I have Dynamic Dropdowns enabled and set to "2" to allow for products with only 1 attrib or more than 1. In catalog/Option Name Manager, I set Size Option type to: Dropdown (not SbA) and Colour to either Dropdown or SBA. These settings give me accurate inventory counts and no errors that I'm aware of. I'm not a techie, just a monkey-see type, but these setting are how I got things behaving nicely for me.

Be advised that in this configuration, out-of-the-box, SBA 1.5.4 will not properly show information related to single attribute products as the Dynamic Dropdown for single products has not been corrected to work in this environment. The default has been modified to only offer Dynamic Dropdowns for multiple attributes allowing the coding by potteryhouse and jeking to surface which does properly function for single attribute product.

For soxophoneplayer this is not an issue (yet) because the product has 2 or more attributes.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

21 May 2015, 5:28 PM
#60
malaperth avatar

malaperth

New Zenner

Join Date:
Dec 2013
Location:
Maine
Posts:
77
Plugin Contributions:
0

Post #60 by malaperth

mc12345678:

Ahh, I think I understand a little better now. The text width that you are referring in the option names area is all about the text entry box as an entry attribute. It is not about the display of a radio button or a dropdown menu. That part is all about css and attriibute related formatting. Might I suggest starting a new thread for that, giving your website address and with that a product where you would like to have a specified look. There are many that can tell you basically on what line of what file a change can be made to accomplish your goal. I'm limited at the moment being on cell phone.

Actually, it is exactly the length and characters allowed in a dropdown menu. I expected that when I changed the value, the size of the dropdown menu would change and allow more characters, but changing the value has no effect at all.

Mal