Zen Cart Logo
Forums / All Other Contributions/Addons / Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Views: 658,524

Results 2,141 to 2,160 of 3,609
16 Apr 2015, 7:58 PM
#2141
pompidompie avatar

pompidompie

Zen Follower

Join Date:
Mar 2015
Posts:
105
Plugin Contributions:
0

Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Thank you for the explanation.
I puzzled with it a little, but ran in to another problem.
I´m building this new website to replace the webshop i already have for my business for a few years now(not a zencart website)
Stock by attribute is one of the things i would really like to get to work because it will safe me so much time.
Here's the thing. I have text fields en dropdowns that go together.
In the textfield the customer must add text and in the dropdown they must choose a color. Both are required to be able to put the product in the shoppingcart.
I can make the text field required. But i don't know how to do that with the dropdown.
I can add quantitys for the dropdown, but than the text field goes to out of stock.
I can't seem te get it to work together. Where am I doing something wrong?

16 Apr 2015, 9:11 PM
#2142
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Pompidompie:

Thank you for the explanation.
I puzzled with it a little, but ran in to another problem.
I´m building this new website to replace the webshop i already have for my business for a few years now(not a zencart website)
Stock by attribute is one of the things i would really like to get to work because it will safe me so much time.
Here's the thing. I have text fields en dropdowns that go together.
In the textfield the customer must add text and in the dropdown they must choose a color. Both are required to be able to put the product in the shoppingcart.
I can make the text field required. But i don't know how to do that with the dropdown.
I can add quantitys for the dropdown, but than the text field goes to out of stock.
I can't seem te get it to work together. Where am I doing something wrong?

If you go back a few pages, you'll see a detailed description of how to get multiple attributes to work to create a variant that is made of two or more attributes.

Basically, when you go to add a variant, provide a designation for each of the attributes at once, don't try to add just a text attribute and a dropdown attribute... Then, be sure to populate all versions/combinations of those attributes. Ultimately, those combinations (variants) that are not available should be given a quantity of zero, while those available have some number of quantity.

18 Apr 2015, 1:11 PM
#2143
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

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

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

zc1.5.4 with SbyA updated version from github and Winchester Black template (which uses zen colorbox).

In the SbyA changelog notes, gives example code changes for tpl_modules_main_product_image.php, with examples for default template and for lightbox. The file in the package has the edit already in it for default, but there is <!-- and --> around the entire code line. I see that these also appear in the default zc package and in my template package. I thought these marks meant 'comment out' but in notepad++ only the marks themselves appear green while the coding between is not green. So - do these marks have a diff meaning? Do I remove them to activate the SbA attribute pictures.

Also, to use this feature is there a naming protocol for pics that would be called to change the image according to attribute selected?

18 Apr 2015, 2:01 PM
#2144
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

soxophoneplayer:

zc1.5.4 with SbyA updated version from github and Winchester Black template (which uses zen colorbox).

In the SbyA changelog notes, gives example code changes for tpl_modules_main_product_image.php, with examples for default template and for lightbox. The file in the package has the edit already in it for default, but there is <!-- and --> around the entire code line. I see that these also appear in the default zc package and in my template package. I thought these marks meant 'comment out' but in notepad++ only the marks themselves appear green while the coding between is not green. So - do these marks have a diff meaning? Do I remove them to activate the SbA attribute pictures.

Also, to use this feature is there a naming protocol for pics that would be called to change the image according to attribute selected?

The <!-- and --> result in "hiding" the content between them when displayed on a rendered page. (View the source code of the web page and you will see those "lines" in the source code.). There are a number of reasons to do this, but as to notepad++ I do not know about it's "color coding" rules.

As to attribute images, no there is no special naming convention. At the moment support of image swapping based on attribute selection varies depending on the number of attributes associated with the product(s). Single attribute products should support image swapping when properly setup. Multiple attribute products do not currently have the code necessarily incorporated to perform such swapping, or at least no positive feedback has been provided to indicate that it works as expected. That is something still to come.

19 Apr 2015, 1:12 PM
#2145
pompidompie avatar

pompidompie

Zen Follower

Join Date:
Mar 2015
Posts:
105
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Oh I realy feel stupid mc12345678. I´m trying to read your text, i´m trying to read stuff in this thread, but its like i´m reading Chinese.

If you go back a few pages, you'll see a detailed description of how to get bla bla bla.... I lost it here allready :blush: The second part of what you wrote is even more abracadabra for me.
May I ask if it is possible for you to take me trough it stap by stap? :blush:

21 Apr 2015, 12:03 AM
#2146
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

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

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Single Attribute Products with SbA version recently on github updated for zc1.5.4.

If I'm reading forum correctly - the functioning of the mod for single attribute products isn't 'finshed'?

When set for SbA-sequencial-dropdowns I don't get stock levels and I get a "the combination of options you have selected is currently out of stock...." message. Set as single dropdown or radio buttons, I don't get a stock showing, though I do get an 'out of stock' if the level is zero.

I fudged around it by adding a second attribute with only one variant. This works, though customer must select second attribute from a dropdown list of one. A wee bit wonky but its functional and applies to only two products so its not killing me.

Yet, I thought I'd ask if there a cleaner work around that I've missed in the forum?

21 Apr 2015, 1:29 AM
#2147
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Don't worry, Pompidompie, I haven't forgotten you, just need some time to reply with a bit more of an "international" perspective. :)

soxophoneplayer:

Single Attribute Products with SbA version recently on github updated for zc1.5.4.

If I'm reading forum correctly - the functioning of the mod for single attribute products isn't 'finshed'?

When set for SbA-sequencial-dropdowns I don't get stock levels and I get a "the combination of options you have selected is currently out of stock...." message. Set as single dropdown or radio buttons, I don't get a stock showing, though I do get an 'out of stock' if the level is zero.

I fudged around it by adding a second attribute with only one variant. This works, though customer must select second attribute from a dropdown list of one. A wee bit wonky but its functional and applies to only two products so its not killing me.

Yet, I thought I'd ask if there a cleaner work around that I've missed in the forum?

Read slightly wrong. Single attributes are functioning just fine, provided Dynamic Dropdowns is not activated for single attributes... (This is in a way why I didn't want to incorporate Dynamic Dropdowns as the number of possibile options increases significantly and the complexity increases as well.)

Simply make sure under the Dynamic Dropdowns configuration screen to not havethe single attributes option appear either by setting the value to 2 or 0.

21 Apr 2015, 3:17 AM
#2148
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

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

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

mc12345678:

...Simply make sure under the Dynamic Dropdowns configuration screen to not havethe single attributes option appear either by setting the value to 2 or 0.

Thank you for your help. Setting to '0' I get no stock levels other than 'out of stock' for multi or single variable products. Set to '2' I got stock levels for double variable, but still nadda for singles. I fiddled with Option Name Mgr config, where I had both my option names (Size, Colour) set to 'SbA Select List'. By changing Size option to 'Dropdown' and either leaving Colour as 'SbA' or changing also to 'Dropdown' I get the stock levels showing on both multi and single variable products. Yay.

Curiously, since I couldn't stop fiddling, I experimented with the other option types in the Option Name Mgr config - radio, checkbox, text - in all of these the single variable products changed to the style selected, but the multi variable products all stayed as dropdowns with the stock showing. Also curiously, under no settings could I get colour swatches to show up. (I don't really need them as my photos cover it - I used the swatches in 1.3.9 site where my SbyA was in grid format.)

21 Apr 2015, 9:05 AM
#2149
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

soxophoneplayer:

Thank you for your help. Setting to '0' I get no stock levels other than 'out of stock' for multi or single variable products. Set to '2' I got stock levels for double variable, but still nadda for singles. I fiddled with Option Name Mgr config, where I had both my option names (Size, Colour) set to 'SbA Select List'. By changing Size option to 'Dropdown' and either leaving Colour as 'SbA' or changing also to 'Dropdown' I get the stock levels showing on both multi and single variable products. Yay.

Curiously, since I couldn't stop fiddling, I experimented with the other option types in the Option Name Mgr config - radio, checkbox, text - in all of these the single variable products changed to the style selected, but the multi variable products all stayed as dropdowns with the stock showing. Also curiously, under no settings could I get colour swatches to show up. (I don't really need them as my photos cover it - I used the swatches in 1.3.9 site where my SbyA was in grid format.)

Realize that you've found some settings that work, but double check your configuration settings in the stock section regarding some of those settings in relation to single attribute product and the SBA dropdown. If the single SBA dropdowns have been affected, then I would say I've done something wrong because potteryhouse and jeking had worked to make sure that single attribute product (items having only one option name associated) functioned properly and I have tried not to impact that

As for the case where multiple attributes are used (more than one option name), at this time if Dynamic Dropdowns is on for multiple attributes, everything with multiple attributes will be presented as a dropdown. And no it's not just because the plugin is called that, there is the possibility already builtin to use radioboxes, but for me? One thing at a time. :)

Images: supposedly there is a way to work it with single attributes (again not using the Dynamic Dropdown single attributes option) to show images with the attributes. That was something p&j worked on to completion/success. The multiple attributes takes a little work to get there but there is a plan to provide the maximum flexibility in image setup.

29 Apr 2015, 10:32 AM
#2150
pompidompie avatar

pompidompie

Zen Follower

Join Date:
Mar 2015
Posts:
105
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

mc12345678:

Don't worry, Pompidompie, I haven't forgotten you, just need some time to reply with a bit more of an "international" perspective. :)
Thats oke :smile:

29 Apr 2015, 10:57 AM
#2151
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Pompidompie:

Thats oke :smile:

That means still would like a better (easier to understand) explanation than what I provided before, correct?

29 Apr 2015, 11:15 AM
#2152
pompidompie avatar

pompidompie

Zen Follower

Join Date:
Mar 2015
Posts:
105
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Oh I'm sorry, yes.
All these terms, it's abracadabra to me. I try to follow, but i constanly lose it half way into the sentence.:blush:

29 Apr 2015, 2:23 PM
#2153
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Is SBA compatible with with v1.5.4 Zen?

29 Apr 2015, 3:16 PM
#2154
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Kevin205:

Is SBA compatible with with v1.5.4 Zen?

Please, if at all possible, read back a few pages... This question has been asked and answered many times already.

29 Apr 2015, 7:00 PM
#2155
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

mc12345678:

Please, if at all possible, read back a few pages... This question has been asked and answered many times already.

Thank you for the reply.

Before posting I searched this thread for 1.4.5, and didn't come up with anything. That's why I posted.

I'm sorry and thank you.

29 Apr 2015, 7:12 PM
#2156
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

I meant 1.5.4 not 1.4.5

29 Apr 2015, 7:33 PM
#2157
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Kevin205:

Thank you for the reply.

Before posting I searched this thread for 1.4.5, and didn't come up with anything. That's why I posted.

I'm sorry and thank you.

Kevin205:

I meant 1.5.4 not 1.4.5

No problem. Just attempted the same search and as the case for such searches, no data returned, in fact not even a response indicating that couldn't find the search terms. That type of word search does not work on the forum.

30 Apr 2015, 5:56 AM
#2158
edvon avatar

edvon

New Zenner

Join Date:
Aug 2009
Posts:
26
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Hi,
I have got SBA running on 1.5.4.

Does anyone have SBA running on v 1.5.4 together with Direct Bank Deposit (Aust) add-on Payment module?

https://www.zen-cart.com/showthread.php?196238-Direct-Bank-Deposit

The file includes/classes/order.php is modified by both mods and from my (limited )understanding needs to be merged. Just wondering if there would be any incompatibilities?

thanks!

30 Apr 2015, 10:58 AM
#2159
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

edvon:

Hi,
I have got SBA running on 1.5.4.

Does anyone have SBA running on v 1.5.4 together with Direct Bank Deposit (Aust) add-on Payment module?

https://www.zen-cart.com/showthread.php?196238-Direct-Bank-Deposit

The file includes/classes/order.php is modified by both mods and from my (limited )understanding needs to be merged. Just wondering if there would be any incompatibilities?

thanks!

That file is often modified by plugins. Merge it correctly and you'll be fine.

30 Apr 2015, 12:31 PM
#2160
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

jeking:

That file is often modified by plugins. Merge it correctly and you'll be fine.

I would agree. This plugin modifies two lines of code in the file. The first collects information not collected in the base code after generation of the order's attribute_id, the second to pass that information on to an observer.