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?

21 May 2015, 5:35 PM
#61
malaperth avatar

malaperth

New Zenner

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

Post #61 by malaperth

Ok... I'm in trouble again and my customer is freaking out (she does that a lot). In this case, I have one product with two sizes and 2 scents. Now, only 1 scent is available in both sizes, the other in only one size at the moment. So, I set up the attributes as in this image:

Attachment #15311

And yet, when it appears on the page, both scents in both sizes are listed available. Is such a setup possible (ZC 1.5.1, SBA 1.5.3)?

Mal

21 May 2015, 6:12 PM
#62
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #62 by mc12345678

Malaperth:

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

See this FAQ about the settings associated with Option Names and the use of the values you are talking about not having an effect: https://www.zen-cart.com/content.php?99-how-do-i-add-attributes-to-my-products

Then see this thread about one way to set the width of the dropdown box: https://www.zen-cart.com/showthread.php?125632-Having-a-fixed-Attributes-dropdown-box-size

Again, css related not option name set.

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

21 May 2015, 6:47 PM
#63
malaperth avatar

malaperth

New Zenner

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

Post #63 by malaperth

mc12345678:

See this FAQ about the settings associated with Option Names and the use of the values you are talking about not having an effect: https://www.zen-cart.com/content.php?99-how-do-i-add-attributes-to-my-products

Then see this thread about one way to set the width of the dropdown box: https://www.zen-cart.com/showthread.php?125632-Having-a-fixed-Attributes-dropdown-box-size

Again, css related not option name set.

I was going to ask why it was there if it didn't work, but then I remembered many, many moons ago I would be coding and think "Hey, this would be cool." so I'd stub off some code (based and intertwined with needed code) to finish later. Well, "later" never came so there was this "thing" people could see but didn't work so I have no right to point fingers. Plus the fact that if I follow my own values, hey, it was free so shut the hell up... ;)

Thanks for the links! I'll definitely take a look!

Mal

21 May 2015, 7:13 PM
#64
malaperth avatar

malaperth

New Zenner

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

Post #64 by malaperth

I was too slow in thinking to edit my post, mc12345678, and I hope I'm not being a pest, but do you have any thoughts on my issue above (certain sizes of a product not in stock in original posting of attributes)?

Mal

21 May 2015, 9:57 PM
#65
malaperth avatar

malaperth

New Zenner

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

Post #65 by malaperth

I just can't win... I am now having an issue with setting up a product that has two options (attribute dropdowns), but only one size and product scent are available. So, I set up two attribute names each with only one attribute value. When I looked at the result, there were no dropdowns as I had specified, but two already selected radio buttons. Ok, so that makes a bit of sense, if you are only going to offer a single choice, what do you need a dropdown for? I then set the stock to 1 since there is only one jar of that product in one size and one scent available right now, and in the Attributes Controller I set it to have a stock of 1. It said stock of 1. Everything's good, right? Wrong... When I tried to add that last one product to the cart, it said it was out of stock. So, after reading the treatise on adding attributes, I added a non-selectable choice (Please make a choice.) as was suggested in that set of instructions. Look at the results and I do have my dropdown with the "Please make a choice." default as was suggested. Still cannot add that one product to the cart as it claims "Out of Stock". I have gone through all the settings in Admin and could easily be missing something obvious, but I cannot get that single item (and it was originally set up with a stock of 1) to add to the cart. Am I just a blind moron or is there something else I am missing? (ZC 1.5.1, SBA 1.5.3)

Mal

22 May 2015, 10:04 AM
#66
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #66 by mc12345678

Malaperth:

Ok... I'm in trouble again and my customer is freaking out (she does that a lot). In this case, I have one product with two sizes and 2 scents. Now, only 1 scent is available in both sizes, the other in only one size at the moment. So, I set up the attributes as in this image:

Attachment #15311

And yet, when it appears on the page, both scents in both sizes are listed available. Is such a setup possible (ZC 1.5.1, SBA 1.5.3)?

Mal

Is not yet properly coded in SBA 1.5.3 to address that situation, but is in SBA 1.5.4. (Compatible with ZC 1.5.3 and 1.5.4.)

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

22 May 2015, 5:30 PM
#67
malaperth avatar

malaperth

New Zenner

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

Post #67 by malaperth

Got any idea about the other issue above, mc12345678? I wanted to set up each item as it's own product, but the customer wants to be able to add more sizes and scents shortly. I just can't understand why, when the inventory clearly says 1 is available why it cannot be added to the cart. I searched through the code and found where I believe this part is dealt with but I see nothing wrong. It clearly looks to see if the inventory is above 0. Past that, I am at a total loss.

Mal

26 May 2015, 12:56 PM
#68
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Post #68 by delia

uh, SBA 1.5.4 ? Are you saying there is a working version out? Where?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

26 May 2015, 2:54 PM
#70
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Post #70 by delia

Thank you. I do appreciate the work that you do but don't understand why you don't upload to the plugins section. It's so difficult to find these things out.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

26 May 2015, 3:25 PM
#71
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #71 by mc12345678

Malaperth:

Got any idea about the other issue above, mc12345678? I wanted to set up each item as it's own product, but the customer wants to be able to add more sizes and scents shortly. I just can't understand why, when the inventory clearly says 1 is available why it cannot be added to the cart. I searched through the code and found where I believe this part is dealt with but I see nothing wrong. It clearly looks to see if the inventory is above 0. Past that, I am at a total loss.

Mal

Another user identified a similar issue to an extent, though identified the issue a different way. In the setup provided, a quantity of 1 was displayed as available although 0 was entered. There was a logic error in the zen_products_stock code that caused this issue. It has been resolved in the latest set of files for SBA 1.5.4 and as soon as I have compared the SBA 1.5.3 files against a vanilla install to validate that the only changes are those necessary to support the plugin changes. Haven't since been able to reproduce the problem described. So should be good to go with the newest files for SBA 1.5.4 and soon for SBA 1.5.3.

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

26 May 2015, 3:38 PM
#72
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #72 by mc12345678

delia:

Thank you. I do appreciate the work that you do but don't understand why you don't upload to the plugins section. It's so difficult to find these things out.

Plugins uploaded to the ZC site must comply with the ZC plugin submission requirements.

At this time there are two versions of the plugin to support development for each version of ZC (that was setup by potteryhouse/jeking), the other is documentation. On the first part development remains for consistent use of multiple attributes as related to the work previously done for single attributes. On the second part, those two began instruction, but the latest modifications are not yet included.

Sum and total, the code has been in beta format and is available for comment and further improvement; however, has not been considered a product that would be considered fully releaseable for production. It appears to be close to that now, although there are additional features already identified to need incorporation, that could be added in a later revision. In the mean time if submitted, the incomplete aspects would need to be identified to mitigate the deluge of questions associated with how to do this, or how to do that... Understanding that the product was released in an unfinished state...

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

26 May 2015, 3:47 PM
#73
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Post #73 by delia

Okay, I understand that. This particular mod has been the bane of my existence for a very long time now. I'm just glad I don't have many customers who use it.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

27 May 2015, 5:51 PM
#74
malaperth avatar

malaperth

New Zenner

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

Post #74 by malaperth

Well, just so you can get a positive reaction to your work, SBA would make half the functionality of sites I administrate completely impossible (or certainly not possible with my skill level with PHP) without it. Does it have some issues? Sure. But, as I touted before, various people put a bunch of time into this for FREE. Thank all of you very much for your work!

27 May 2015, 5:55 PM
#75
malaperth avatar

malaperth

New Zenner

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

Post #75 by malaperth

Is there any code available so that the Zen Cart installed search engine will search attributes? I apologize if this has been asked and answered in the other thread, but I could not find anything. And, it may be simple to code, but unfortunately not easy for a half-senile old far like me who, many moons ago, programmed in different languages where the exact same syntax meant something completely different. Any help would be greatly appreciated.

29 May 2015, 2:21 AM
#76
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #76 by mc12345678

Malaperth:

Well, just so you can get a positive reaction to your work, SBA would make half the functionality of sites I administrate completely impossible (or certainly not possible with my skill level with PHP) without it. Does it have some issues? Sure. But, as I touted before, various people put a bunch of time into this for FREE. Thank all of you very much for your work!

Welcome, though there are many ways to offer positive support. :)

I don't want to necessarily go everywhere to post this, but figured would post on the two threads that seem to be addressing SBA the most at this point. An updated version of SBA 1.5.3 has been posted to github (https://github.com/potteryhouse/stock_by_attribute_1.5.3) that incorporates the functionality of SBA 1.5.4 for use on ZC 1.5.1.

There remains other/additional changes to be made for improved functionality, features, and consistency throughout..

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

29 May 2015, 2:56 AM
#77
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #77 by mc12345678

Malaperth:

Is there any code available so that the Zen Cart installed search engine will search attributes? I apologize if this has been asked and answered in the other thread, but I could not find anything. And, it may be simple to code, but unfortunately not easy for a half-senile old far like me who, many moons ago, programmed in different languages where the exact same syntax meant something completely different. Any help would be greatly appreciated.

Not to detract from anyone offering assistance, in the various searches performed (internet and this site) I thought I saw that there was a plugin for ZC 1.3.8 that performed the above desired feature, of course probably needs to have some sort of updating performed to work on the latest ZC. Supposedly there was some commercial product also.

Another alternative is to "list" the attributes in the product description as well which would ensure that SEs would see the information as well as the ZC search engine provided it is allowed to search the product description.

Maybe someone will identify the existence of a plugin that does more of what you are looking for or perhaps offer assistance in developing something.

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

29 May 2015, 6:02 PM
#78
malaperth avatar

malaperth

New Zenner

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

Post #78 by malaperth

Thank you for all of your assistance, mc12345678, and your work on SBA. I greatly appreciate it!.

Mal

29 Jun 2015, 4:32 PM
#79
micro007 avatar

micro007

New Zenner

Join Date:
Jan 2008
Posts:
43
Plugin Contributions:
0

Post #79 by micro007

Hello RodG, if I follow you right you suggest merging the files for this mod and then what happens to the executable? Should I be able to go to it and run it as intended? I ended up with the same problem of blank screen on admin login and product pages all screwed up....

29 Jun 2015, 9:42 PM
#80
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Post #80 by rodg

micro007:

Hello RodG, if I follow you right you suggest merging the files for this mod .

Correct. This is no different than any other mod that needs to make changes to the ZenCart 'core' files.

micro007:

and then what happens to the executable? Should I be able to go to it and run it as intended?

Sorry, but I have no idea what you mean. What executable? What do you mean by 'run it as intended'?

You've kinda lost me. :(

micro007:

I ended up with the same problem of blank screen on admin login and product pages all screwed up....

All this is telling me/us is that something isn't right in the merged files. The log files may provide a clue.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.