-
"Stock by Attributes" (version 1.5.3). This MOD is ONLY for v1.5.1 ..whaddda?
Does anyone know if there is a "Stock by Attributes" version that actually works with Zenvcart 1.5.3 ?
Curiously why zen developers have created an attribute except NOT included the important aspect of the product attributes (see below)?
Why can't we do this?
Item code=test01 Item attribute 'Large' / 'Red' = Qty = 10
Item code=test01 Item attribute 'Medium' / 'Red' = Qty = 5
Item code=test01 Item attribute 'Small' / 'Red' = Qty = 8
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
oavs
Does anyone know if there is a "Stock by Attributes" version that actually works with Zenvcart 1.5.3 ?
I've got the latest version running on at least one site using ZenCart V1.5.3 ... I don't *recall* having to do anything special to get it to work.
Quote:
Originally Posted by
oavs
Curiously why zen developers have created an attribute except NOT included the important aspect of the product attributes (see below)?
Why can't we do this?
Item code=test01 Item attribute 'Large' / 'Red' = Qty = 10
Item code=test01 Item attribute 'Medium' / 'Red' = Qty = 5
Item code=test01 Item attribute 'Small' / 'Red' = Qty = 8
It can't be done for the simple reason it hasn't been coded for it. Whether there is an *actual* reason for it is something that I can't answer, but I can say that doing this will probably have a huge hit on performance, and then there's the question of how far should this be taken?
For example, should it also cater for:
Item code=test01 Item attribute 'Large' / 'Red' / 'Blue Buttons' = Qty = 10
Item code=test01 Item attribute 'Medium' / 'Red' / 'Green Buttons' = Qty = 5
Item code=test01 Item attribute 'Small' / 'Red' / 'Black buttons' = Qty = 8
That's 27(?) variants of single product.
or perhaps....
Item code=test01 Item attribute 'Large' / 'Red' / 'Blue Buttons' / 'Green Stripes' = Qty = 10
Item code=test01 Item attribute 'Large' / 'Red' / 'Blue Buttons' / 'Yellow Stripes' = Qty = 10
etc, etc......
That's 256(?) variants of a single product...
Just something to think about..
Cheers
RodG
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Yes, RodG has it right, the logic behind the entire product/attribute system is what is the problem. It needs to be developed from the ground up with a dynamic matrix instead of a static lookup loop. The loop is a killer on processing times.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
May he rest in peace, Conor was close.:sadwalk:
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
dbltoe
May he rest in peace, Conor was close.:sadwalk:
Ask me nicely and I'll rewrite it.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Oh yes, I can see your point RodG
On my version 1.5.3 did not work . After uploading all the files, I had white screen on the installation screen and none of the other pages worked either. All there was a white screen. So painfully replaced all the files. Hate it when plugin spreads it self all over the place.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
oavs
Oh yes, I can see your point RodG
On my version 1.5.3 did not work . After uploading all the files, I had white screen on the installation screen and none of the other pages worked either. All there was a white screen. So painfully replaced all the files. Hate it when plugin spreads it self all over the place.
Oh my, I have spent two hours trying to find a solution to get 'stock by attributes' to work properly on 1.5.3. I see some core files have changed significantly from 1.5.1 to 1.5.3 which SBA relies on. I am fairly new to Zen Cart and indeed programming in general, I think my upgrade to 1.5.3 is on hold until I can get this modification to work or it is upgraded.
Does anyone know of an alternative to SBA? As almost all our products have stock by variation and as drop-shippers, we also need the facility to update these 'stocked attributes' via a csv upload.
Many thanks, Izzy :smile:
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
izzysoup
Oh my, I have spent two hours trying to find a solution to get 'stock by attributes' to work properly on 1.5.3. I see some core files have changed significantly from 1.5.1 to 1.5.3 which SBA relies on.
It is true that some of the core files have changed between V1.5.1 & V1.5.3 and that the SBA module relies on these files to function.
Now, although I had no problems with SBA working with ZenCart V1.5.3 I have to admit that I *didn't* use the modified core files from the SBA distribution. The reason being is that the site I installed it on already had other modifications needed by other addons, so this meant I needed to look at the changes to the code modified for SBA and make those same changes/additions to my already modified core files. IOW the original ZenCart V1.5.3 core files needed different modifications for two different add-ons.
Whilst doing this I'd noted that the SBA had less modifications needed than the other add-on - In fact the parts of the code it modified were quite clearly marked and easy to follow - So although I had an already modified code that needed these further modifications for SBA it was actually quite a simple thing to do.
I'm guessing that you had problems because you simply replaced the original zencart files with the SBA modified ones. I can certainly appreciate that this is generally the simplest and easiest route to take, it isn't the *best* route. If you need to depend on this replacement method it is only a matter of time before you'll end up installing yet another module that also changes these same files and you'll find it impossible to get all of the add-ons to play nicely together. It is for this reason I urge you to learn how to identify the changed needed by any given module so that you can merge the changes yourself if or when necessary.
I fully appreciate that you may be quite new to ZenCart and programming, and as such, I wouldn't normally be suggesting this to you. However, as stated, the changes needed for the SBA module are *clearly* marked in the pre-modified files that are supplied with the download zip, and even a relatively new Zenner with just a little coding experience *probably* won't have too much of a hard time doing a manual merge. Not all other modules make it quite this easy, and this makes using SBA as a near perfect setting to learn how to do the manual merges.
If you can't, or don't want to go this route I fully understand. I'm not trying to disparage you in any way. These kinds of edits and changes really aren't suited for everyone (and they don't need to be), BUT if you do wish or plan to increase your skill level in this regard I do encourage you to give it your best shot... I won't call this a 'baby step' - It is more like a jump... but a jump in the right direction IF ZenCart and programming are in you long term plans for the future. If you don't have long term plans for ZenCart development then please ignore all that I've said, as it isn't applicable to your plans or needs.
Cheers
RodG
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
twitchtoo
Ask me nicely and I'll rewrite it.
It would be great if SBA could be optionalised for critical path or finite element analysis, since it is not always the final product that needs tracking but critical individual components that make up one or more products. For instance, Tshirts printed with pre-made transfers, such as iron-on transfers. It may not be the final printed Tshirt that needs to be tracked but the number of pre-made transfers of a particular design that can be applied to a Tshirt, in fact any garment or strata. If you only offered one style of Tshirt in four sizes and two colours, but had 50+ transfer designs, it is better to make the design of the transfer the product and make the Tshirt properties the attributes. But then what happens when the same transfer can be applied to other garments and/or strata. It is such a messy thing.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
dw08gm
It would be great if SBA could be optionalised for critical path or finite element analysis, since it is not always the final product that needs tracking but critical individual components that make up one or more products. For instance, Tshirts printed with pre-made transfers, such as iron-on transfers. It may not be the final printed Tshirt that needs to be tracked but the number of pre-made transfers of a particular design that can be applied to a Tshirt, in fact any garment or strata. If you only offered one style of Tshirt in four sizes and two colours, but had 50+ transfer designs, it is better to make the design of the transfer the product and make the Tshirt properties the attributes. But then what happens when the same transfer can be applied to other garments and/or strata. It is such a messy thing.
I believe the biggest problem is the belief (currently supported by the old code) that attributes are treated differently than products. It's simply a relationship or connection between the product and the attribute that needs to be stored.
In that type of model all data would be recorded for products as it is for attributes, and therefore the type of reporting you're looking for would be a click away.
That too means the output loops wouldn't be constantly 'searching' through the attributes.
Some would then argue there would be a 'problem' managing the relational data. That's pretty easy too, build a static display that clearly displays the db content with simple management tools like single/group select, move, delete etc.
This type of 'static' matrix ensures that all components of the system always work. Product/Attribute management, Bulk import/export, Reporting etc.
It also would allow anyone with an existing cart to output their data, upgrade to the newest version of Zen Cart, install the new 'attributes' module and import their data.
Two elements are required to 'kick start' this, time and money. Time I have.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
izzysoup
Oh my, I have spent two hours trying to find a solution to get 'stock by attributes' to work properly on 1.5.3. I see some core files have changed significantly from 1.5.1 to 1.5.3 which SBA relies on. I am fairly new to Zen Cart and indeed programming in general, I think my upgrade to 1.5.3 is on hold until I can get this modification to work or it is upgraded.
Does anyone know of an alternative to SBA? As almost all our products have stock by variation and as drop-shippers, we also need the facility to update these 'stocked attributes' via a csv upload.
Many thanks, Izzy :smile:
Quote:
Originally Posted by
RodG
It is true that some of the core files have changed between V1.5.1 & V1.5.3 and that the SBA module relies on these files to function.
Now, although I had no problems with SBA working with ZenCart V1.5.3 I have to admit that I *didn't* use the modified core files from the SBA distribution. The reason being is that the site I installed it on already had other modifications needed by other addons, so this meant I needed to look at the changes to the code modified for SBA and make those same changes/additions to my already modified core files. IOW the original ZenCart V1.5.3 core files needed different modifications for two different add-ons.
Whilst doing this I'd noted that the SBA had less modifications needed than the other add-on - In fact the parts of the code it modified were quite clearly marked and easy to follow - So although I had an already modified code that needed these further modifications for SBA it was actually quite a simple thing to do.
I'm guessing that you had problems because you simply replaced the original zencart files with the SBA modified ones. I can certainly appreciate that this is generally the simplest and easiest route to take, it isn't the *best* route. If you need to depend on this replacement method it is only a matter of time before you'll end up installing yet another module that also changes these same files and you'll find it impossible to get all of the add-ons to play nicely together. It is for this reason I urge you to learn how to identify the changed needed by any given module so that you can merge the changes yourself if or when necessary.
I fully appreciate that you may be quite new to ZenCart and programming, and as such, I wouldn't normally be suggesting this to you. However, as stated, the changes needed for the SBA module are *clearly* marked in the pre-modified files that are supplied with the download zip, and even a relatively new Zenner with just a little coding experience *probably* won't have too much of a hard time doing a manual merge. Not all other modules make it quite this easy, and this makes using SBA as a near perfect setting to learn how to do the manual merges.
If you can't, or don't want to go this route I fully understand. I'm not trying to disparage you in any way. These kinds of edits and changes really aren't suited for everyone (and they don't need to be), BUT if you do wish or plan to increase your skill level in this regard I do encourage you to give it your best shot... I won't call this a 'baby step' - It is more like a jump... but a jump in the right direction IF ZenCart and programming are in you long term plans for the future. If you don't have long term plans for ZenCart development then please ignore all that I've said, as it isn't applicable to your plans or needs.
Cheers
RodG
Fyi, there is a SBA version 1.5.4 that is supposed to be compatible with ZC version 1.5.3 with little to no modification to install on a clean setup of ZC 1.5.3. That said, Rod makes a very valid point regarding the approach of installation (of almost any "plugin"). I've been mostly focused on the 1.5.3 version of SBA so as not to get too scattered with the product. Just like Rod was saying, if the product works in one version and is well documented, then "activating" in another version comes much easier. Needs to work as desired/needed first. :)
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
mc12345678
Fyi, there is a SBA version 1.5.4 that is supposed to be compatible with ZC version 1.5.3
Where did you see this?
Cheers
RodG
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
RodG
Where did you see this?
Cheers
RodG
Github
https://github.com/potteryhouse
I don't remember the rest of the uri, but version 1.5.4 is designated as being compatible with ZC 1.5.3. I haven't run any type of a comparison of the two versions to identify if there are functional differences as well as expected compatibility differences.
It , like the "older" version is still a work in progress.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
mc12345678
Github
https://github.com/potteryhouse
I don't remember the rest of the uri, but version 1.5.4 is designated as being compatible with ZC 1.5.3. I haven't run any type of a comparison of the two versions to identify if there are functional differences as well as expected compatibility differences.
It , like the "older" version is still a work in progress.
Got it.
Thanks.
RodG
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
twitchtoo
Ask me nicely and I'll rewrite it.
So if we ask, then you'll do???? OUTSTANDING...
Consider this me asking nicely..
What's the next step???
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
dbltoe
May he rest in peace, Conor was close.:sadwalk:
He was.. BUT I happen to know from a very reliable source that a commercial SBA option that matches what Conor's would have offered in terms of functionality may be a coming soon..
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
DivaVocals
He was.. BUT I happen to know from a very reliable source that a commercial SBA option that matches what Conor's would have offered in terms of functionality may be a coming soon..
Is there an update on this?
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
izzysoup
Is there an update on this?
An update??? Well the mod I spoke of is a commercial one..(meaning it's not free).. Forum rules prohibit me from posting details here.. PM me and I'll provide a link..
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Does anybody have a working sample site using the Stock by Attributes with ZC 1.5? Please, I need to give an answer to my client ASAP about the possibility of what they want.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
dgcdesign
Does anybody have a working sample site using the Stock by Attributes with ZC 1.5? Please, I need to give an answer to my client ASAP about the possibility of what they want.
Not sure SBA for v1.5.4 is ready just yet....
Take a look at the commercial option I mentioned.. It's working NOW! (search google for "Products' Options' Stock Manager 1.5.3")
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
DivaVocals
Not sure SBA for v1.5.4 is ready just yet....
Take a look at the commercial option I mentioned.. It's working NOW! (search google for "Products' Options' Stock Manager 1.5.3")
Thank you for that direction. I've just sent the developer an email with questions. I appreciate your time.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
dgcdesign
Does anybody have a working sample site using the Stock by Attributes with ZC 1.5? Please, I need to give an answer to my client ASAP about the possibility of what they want.
Quote:
Originally Posted by
dgcdesign
Thank you for that direction. I've just sent the developer an email with questions. I appreciate your time.
Curious, what are the questions?
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
mc12345678
Curious, what are the questions?
I think he was referring to questions directed to the developer of the Products Options Stock Manager module..
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
DivaVocals
I think he was referring to questions directed to the developer of the Products Options Stock Manager module..
Obviously. But are they just to see the operation of the program on someone else's site, or are they about the program? Thus far the only question posted here is to see the program in operation. Question I asked wasn't about who was asked something, but what was asked.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
mc12345678
Obviously. But are they just to see the operation of the program on someone else's site, or are they about the program? Thus far the only question posted here is to see the program in operation. Question I asked wasn't about who was asked something, but what was asked.
Well except for asking to see it in action on another site (which the author provides a demo site for this purpose) not sure he can ask too many questions HERE about the Products Options Stock Manager module as it is a commercial module..
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
DivaVocals
Well except for asking to see it in action on another site (which the author provides a demo site for this purpose) not sure he can ask too many questions HERE about the Products Options Stock Manager module as it is a commercial module..
I don't know what the issue is with asking to know what the questions are. More than likely the questions would be related to functionality, and as such the same questions could be asked about SBA. There is no reason that the same question(s) couldn't be asked here, hence the question. Please explain the push back on the most recent OP being asked to identify the questions that have been asked regarding a program that has already had initial inquiry.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
mc12345678
I don't know what the issue is with asking to know what the questions are. More than likely the questions would be related to functionality, and as such the same questions could be asked about SBA. There is no reason that the same question(s) couldn't be asked here, hence the question. Please explain the push back on the most recent OP being asked to identify the questions that have been asked regarding a program that has already had initial inquiry.
Oh goodness dude.. I'm not pushing back on anything.. I was merely trying to clarify for you why the OP might NOT have posted his questions regarding a COMMERCIAL module on THIS forum.. Now if what you are REALLY after here is for the OP to pose the SAME questions, but apply them to SBA instead, your prior posts TRULY do not CLEARLY lead one to conclude this..:no:
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
DivaVocals
Oh goodness dude.. I'm not pushing back on anything.. I was merely trying to clarify for you why the OP might NOT have posted his questions regarding a COMMERCIAL module on THIS forum.. Now if what you are REALLY after here is for the OP to pose the SAME questions, but apply them to SBA instead, your prior posts TRULY do not CLEARLY lead one to conclude this..:no:
It's no problem, but I didn't ask anyone to violate the guidelines of the forum and asked my question to maintain brevity considering I have been told time and again I write too much. Already this issue has taken 6 additional posts to say follow the rules...
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
mc12345678
It's no problem, but I didn't ask anyone to violate the guidelines of the forum and asked my question to maintain brevity considering I have been told time and again I write too much. Already this issue has taken 6 additional posts to say follow the rules...
It took 6 posts because you weren't CLEAR in your FIRST post that what you REALLY wanted was to know if the SAME questions being asked about a commercial module that is similar to SBA could be asked/applied with regards to SBA.. It's not just brevity that is important my friend.. CLARITY is important as well..:smile:
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Doesn't matter if the questions as perceived by the asker could apply or not, the simple question was what were they? An answer could be, not allowed by forum policy to discuss, could be if said program can do the following... Some combination of the two or something else.
There is/was no interpretation of the question necessary by a third party. The question was clear... If there was concern about the potential response (no longer expected yet anticipated) then clarification about permissable response would have been appropriate, again something I didn't see as necessary. I believe the OP intelligent and more than likely knowledgeable enough to answer on their own behalf, to ask questions about what they are allowed to post if that were indeed an issue, or provide some response via PM if there was something permissable to state, but not so in the forum.
Regardless the question still stands.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
mc12345678
Doesn't matter if the questions as perceived by the asker could apply or not, the simple question was what were they? An answer could be, not allowed by forum policy to discuss, could be if said program can do the following... Some combination of the two or something else.
There is/was no interpretation of the question necessary by a third party. The question was clear... If there was concern about the potential response (no longer expected yet anticipated) then clarification about permissable response would have been appropriate, again something I didn't see as necessary. I believe the OP intelligent and more than likely knowledgeable enough to answer on their own behalf, to ask questions about what they are allowed to post if that were indeed an issue, or provide some response via PM if there was something permissable to state, but not so in the forum.
Regardless the question still stands.
Gonna say this, and then I really am done belaboring this any further.. if the question, and what you wanted to know was sooooo CLEAR, then the conversation that followed would not have been necessary..
Communication is only CLEAR when the folks engaged in it reach the same understanding... That DID NOT happen here, and yet you still want to insist that it did.. So to that I say simply this..
OKAY.. as you wish.. Carry on..:unsure:
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
dgcdesign
Does anybody have a working sample site using the Stock by Attributes with ZC 1.5? Please, I need to give an answer to my client ASAP about the possibility of what they want.
ZenCart V1.5.4
Stock by Attribute 1.5.4 (circa Oct 24th 2014)
http://www.plussizedclothing.com.au/
As I mentioned several months ago though, I needed to perform a manual merge of the files.
I understand that the commercial offering (as mentioned elsewhere in this thread) is a good/viable alternative. The site owner and I gave it serious consideration, but they rejected it on the basis that they are 'in too deep' with SBA and they aren't willing to run any risk of messing up the stock counts of their 1000's of products (and variants).
Shame really. I was actually keen on giving the new module a closer look. Tis a shame there isn't a 'demo' site (that I'm aware of) that shows the back end. :(
Cheers
RodG
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
RodG
I understand that the commercial offering (as mentioned elsewhere in this thread) is a good/viable alternative. The site owner and I gave it serious consideration, but they rejected it on the basis that they are 'in too deep' with SBA and they aren't willing to run any risk of messing up the stock counts of their 1000's of products (and variants).
The client who's site I installed the the commercial offering (as mentioned elsewhere in this thread) on was also "'in too deep' with SBA".. Want to share that the conversion tools provided with this module made this concern a non-issue.. Smooth transition..
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
DivaVocals
Want to share that the conversion tools provided with this module made this concern a non-issue.. Smooth transition..
Thanks. Certainly worth knowing. I'll be revisiting this with my client with his next significant site update. I'm on a bit of a break from the site at the moment catching up on other projects.
Cheers
RodG
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
RodG
I'm on a bit of a break from the site at the moment catching up on other projects.
I do understand that!!:laugh:
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Hi
We are in the process of upgrading zen cart 1.3.8a to 1.5.4. The 1.3.8a site has an older version of stock by attributes installed. When the stock by attributes module gets upgraded to the most current version as found on github can I expect the attribute variants currently set up will stay intact in the database?
thanks
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
buildingblocks
Hi
We are in the process of upgrading zen cart 1.3.8a to 1.5.4. The 1.3.8a site has an older version of stock by attributes installed. When the stock by attributes module gets upgraded to the most current version as found on github can I expect the attribute variants currently set up will stay intact in the database?
thanks
Backup. So this software is still Beta which means that it is still in a testing phase, backup. It is desirable and intended that the original backup data not be impacted, but I myself would not leave the backup possibility of data loss to an expectation or theory. I might even backup make multiple duplicate sites, back just so I could be sure that I backup the data in case backup there is a problem with the backup.
All that aside, be sure that in selecting the version to download that you get version 1.5.4 or above and currently the version in the branch mc12345678_ZC154 is the most up-to-date.
Ideally, the plugin would be attempted in a development site to ensure that there are no issues withurlive site while confirming that the upgrade happens satisfactorily.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
mc12345678
Backup. So this software is still Beta which means that it is still in a testing phase, backup. It is desirable and intended that the original backup data not be impacted, but I myself would not leave the backup possibility of data loss to an expectation or theory. I might even backup make multiple duplicate sites, back just so I could be sure that I backup the data in case backup there is a problem with the backup.
All that aside, be sure that in selecting the version to download that you get version 1.5.4 or above and currently the version in the branch mc12345678_ZC154 is the most up-to-date.
Ideally, the plugin would be attempted in a development site to ensure that there are no issues withurlive site while confirming that the upgrade happens satisfactorily.
Thanks. I'll be upgrading the SBA in a day or so and just wondered if anyone knew from experience with this version.
yes, backups are always done....makes life so much easier
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
buildingblocks
Thanks. I'll be upgrading the SBA in a day or so and just wondered if anyone knew from experience with this version.
yes, backups are always done....makes life so much easier
So, the biggest issue with attempting to locate someone that has done the upgrade, is validating that the version on which it was successful (or not) is the same version installed on your site. There were three or four variants of SBA, some worked better at certain things than others.
Based on that history, I assume that all of your product was single attribute variants. The current version handles those well, multiple attributes still are missing a few of the equivalent functionality, but it does work.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
mc12345678
So, the biggest issue with attempting to locate someone that has done the upgrade, is validating that the version on which it was successful (or not) is the same version installed on your site. There were three or four variants of SBA, some worked better at certain things than others.
Based on that history, I assume that all of your product was single attribute variants. The current version handles those well, multiple attributes still are missing a few of the equivalent functionality, but it does work.
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?
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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...
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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?
Quote:
Originally Posted by
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).
Quote:
Originally Posted 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.
Quote:
Originally Posted by
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.
Quote:
Originally Posted by
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.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
"I then ran the default script and that allowed me to make the selections."
Quote:
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;}
Quote:
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.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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.
-
1 Attachment(s)
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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. :)
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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.
-
1 Attachment(s)
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
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...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...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/...-socks-natural.
I'm not sure why i cant configure it like it is on the live site https://www.jarbon.com/alpaca-socks/...-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
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted 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...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...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/...-socks-natural.
I'm not sure why i cant configure it like it is on the live site
https://www.jarbon.com/alpaca-socks/...-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....r-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.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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....-1-3-9/page218 ?
or should i post this to that thread?
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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....-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.:)
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted 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...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...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/...-socks-natural.
I'm not sure why i cant configure it like it is on the live site
https://www.jarbon.com/alpaca-socks/...-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.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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
-
1 Attachment(s)
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for v1.5.1 ..whaddda?
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
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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...to-my-products
Then see this thread about one way to set the width of the dropdown box: https://www.zen-cart.com/showthread....pdown-box-size
Again, css related not option name set.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
mc12345678
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
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
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
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
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
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for v1.5.1 ..whaddda?
Quote:
Originally Posted 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
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.)
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
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
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for v1.5.1 ..whaddda?
uh, SBA 1.5.4 ? Are you saying there is a working version out? Where?
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for v1.5.1 ..whaddda?
Quote:
Originally Posted by
delia
uh, SBA 1.5.4 ? Are you saying there is a working version out? Where?
Yup, applicable to ZC 1.5.3 and 1.5.4: http://github.com/potteryhouse/stock_by_attribute_1.5.4
Still has some growing to do, but baseline is functional.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for v1.5.1 ..whaddda?
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.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted 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
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.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for v1.5.1 ..whaddda?
Quote:
Originally Posted 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.
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...
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for v1.5.1 ..whaddda?
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.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for v1.5.1 ..whaddda?
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!
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for v1.5.1 ..whaddda?
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.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for v1.5.1 ..whaddda?
Quote:
Originally Posted 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!
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/stoc...ttribute_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..
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for v1.5.1 ..whaddda?
Quote:
Originally Posted 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.
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.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for v1.5.1 ..whaddda?
Thank you for all of your assistance, mc12345678, and your work on SBA. I greatly appreciate it!.
Mal
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
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....
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
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.
Quote:
Originally Posted by
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. :(
Quote:
Originally Posted by
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
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
mc12345678
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.
Do you by any chance have the code that needs to be changed in zen_products_stock to fix this problem? I've been too busy to test the new version for 1.5.1 and the site owner does not want it installed without lots of testing (I can understand that).
Mal
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
Malaperth
Do you by any chance have the code that needs to be changed in zen_products_stock to fix this problem? I've been too busy to test the new version for 1.5.1 and the site owner does not want it installed without lots of testing (I can understand that).
Mal
That issue is resolved in both versions. There remain some known issues that are primarily documented in the SBA 1.5.4 version of github. As they are resolved, they are carried over to the SBA 1.5.3 version.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Zen Cart v1.54
SBA v1.54
Zen Magnific v1.5
So, I can get the main product image to change according to the attribute selected, but I've hit a brick wall when it comes to clicking on the attribute image to view its larger version.
I'm using a lightbox to display the larger images but for simplicity sake and to make it more relevant to this thread it might be best to use the stock SBA code in tpl_modules_main_product_image.php
Code:
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image(addslashes($products_image_medium),
addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT,'id="SBA_ProductImage"') . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>');
//--></script>
I think that the
Code:
FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']
has to be replaced with something like
Code:
$products_image_large, $products_name, LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT
with the $products_image_large being defined in \modules\main_product_image.php and I probably need to reference the 'attributes_image' field from TABLE_PRODUCTS_ATTRIBUTES
I'm stuck. Has anyone been able to get a larger version of the attribute image?
If it helps, the relevant bit of my lightbox (Zen Magnific) code in tpl_modules_main_product_image.php is
Code:
document.write('<?php echo $relBOF . '<a href="' . zen_magnific($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" class="' . "nofollow" . '" title="' . addslashes($products_name) . '">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT,'id="SBA_ProductImage"') . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>' . $relEOF; ?>');
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Great, I've been able to get the large image of the attribute in my lightbox by using
Code:
$products_options->fields['attributes_image']
in the link to the larger image. Trouble is it only links to the last attribute in the set and doesn't 'switch' when SBA switches the main product image.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
I added the previous post to the github repository to address this overall issue. I haven't looked into it yet, but it would seem that the overall process isn't taking into account the jscript/jquery (whatever was used) transformation/status of what is changed. Either, SBA isn't providing the modified image with the standard data to support the follow-on lightbox, or perhaps not the data necessary to support it.
Yes, providing
Code:
$products_options->fields['attributes_image']
as a substitution in the php will only result in the last attribute_image that has a value. Instead, there needs to be some form of javascript applied/available that would then serve/substitute the information necessary to move on to the next action of the lightbox displaying the desired image...
Overall, I believe that this feature is still in development although it has not been something that I have put focus on in comparison to the other functional aspects of the base SBA processing and display.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
mc12345678
I added the previous post to the github repository to address this overall issue. I haven't looked into it yet, but it would seem that the overall process isn't taking into account the jscript/jquery (whatever was used) transformation/status of what is changed. Either, SBA isn't providing the modified image with the standard data to support the follow-on lightbox, or perhaps not the data necessary to support it.
Yes, providing
Code:
$products_options->fields['attributes_image']
as a substitution in the php will only result in the last attribute_image that has a value. Instead, there needs to be some form of javascript applied/available that would then serve/substitute the information necessary to move on to the next action of the lightbox displaying the desired image...
Overall, I believe that this feature is still in development although it has not been something that I have put focus on in comparison to the other functional aspects of the base SBA processing and display.
Thank you for that. I think I also concluded that jscript was need to make the change - I had a play but to no avail.
As a workaround, I've copied the attribute images as additional images - this means that when the dynamically displayed attribute images are clicked a large version (additional images) are shown in the lightbox.
The issue with this is that the first image displayed in the lightbox is not always the same as the attribute that was clicked,
and the additional images on the product_info page need to be hidden.
Both of these I can live with for the time being.
Thanks again
Simon
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Apologies if this has been raised before, I did a search and did not find anything!
If I have a product where more than one attribute is set as "dropdown" then no attributes show up on the product listing. I mean there are no attributes shown to select or choose from.
Is there a fix for this or is it a feature :)
I have the latest plug in from the plugins section, classic template and v1.5.1.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
marton_1
Apologies if this has been raised before, I did a search and did not find anything!
If I have a product where more than one attribute is set as "dropdown" then no attributes show up on the product listing. I mean there are no attributes shown to select or choose from.
Is there a fix for this or is it a feature :)
I have the latest plug in from the plugins section, classic template and v1.5.1.
This is partially a "feature". There are a few things. One verify the stock quantity in your admin for the product and it's individual variants. Basically if stock is present for one or more combinations of the attributes for that product and no choices appear on the product info page, then verify that the page passes html validation. If the attribute combinations are out-of-stock, you could setup the variants to be displayed with out-of-stock next to them. If however, it is not desired to identify out-of-stock, at the there is not yet a statement added to state that the product is out-of-stock and this results in "blank" being shown.
It is identified in the sequenced_sba_dropdown code where such a statement is needed, but it hasn't been written yet... It isn't expected to be difficult/complex, just hadn't done it yet and wasn't sure what wording would be desired. :)
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
mc12345678
This is partially a "feature". There are a few things. One verify the stock quantity in your admin for the product and it's individual variants. Basically if stock is present for one or more combinations of the attributes for that product and no choices appear on the product info page, then verify that the page passes html validation. If the attribute combinations are out-of-stock, you could setup the variants to be displayed with out-of-stock next to them. If however, it is not desired to identify out-of-stock, at the there is not yet a statement added to state that the product is out-of-stock and this results in "blank" being shown.
It is identified in the sequenced_sba_dropdown code where such a statement is needed, but it hasn't been written yet... It isn't expected to be difficult/complex, just hadn't done it yet and wasn't sure what wording would be desired. :)
Thanks for your lightning fast reply.
I did check the stock quantities are OK, will do the other check :)
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
i am using SBA Version 1.5.4 for Zen Cart Version 1.5.4, but on zencart 1.5.3
is working, but with a few niggles
one of them being the sort order of colours, e.g. https://www.jarbon.com/alpaca-socks/...-country-socks, if you first select shoe size you will then see the colour options, these are in the incorrect order, as set in attributes controller
SBA is setting the sort order by attribute value ID, lowest first:
<select name="id[3]" onchange="i3(this.form);">
<option value="0" selected="selected">Next select colour</option>
<option value="18">Black </option><option value="21">dark green </option><option value="272">Red </option><option value="367">damson </option><option value="370">natural white </option></select>
this is overriding the order i set in attributes controller
i tried using the sort order you get when adding stock, but this didnt work
any ideas how this might be fixed?
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
mattys
i am using SBA Version 1.5.4 for Zen Cart Version 1.5.4, but on zencart 1.5.3
is working, but with a few niggles
one of them being the sort order of colours, e.g.
https://www.jarbon.com/alpaca-socks/...-country-socks, if you first select shoe size you will then see the colour options, these are in the incorrect order, as set in attributes controller
SBA is setting the sort order by attribute value ID, lowest first:
<select name="id[3]" onchange="i3(this.form);">
<option value="0" selected="selected">Next select colour</option>
<option value="18">Black </option><option value="21">dark green </option><option value="272">Red </option><option value="367">damson </option><option value="370">natural white </option></select>
this is overriding the order i set in attributes controller
i tried using the sort order you get when adding stock, but this didnt work
any ideas how this might be fixed?
Looked at site... Order of attributes was different than described above and appeared to match the sequence of the items in the javascript as expected. What was done to resolve your issue? I wasn't able to reproduce it.
-
1 Attachment(s)
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
This is how they are ordered:
<select name="id[3]" onchange="i3(this.form);">
<option value="0" selected="selected">Next select colour</option>
<option value="18">Black </option>
<option value="21">dark green </option>
<option value="272">Red </option>
<option value="367">damson </option>
<option value="370">natural white </option>
</select>
as you can see, ordered numerically by attribute option value
they should be ordered as per:
Attachment 15753
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
That's the sequence my browser presents and how I see it... Sorry can't take a screen capture... Try a dfferent browser or something, as the issue makes little sense unless they were originally filtered in that order, the page loaded, the order changed, and the page "reloaded"... When dealing with attributes, not clearing the cache/session can cause changes to not appear.
-
4 Attachment(s)
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Here are 3 screen grabs, one for firefox, one for ie, one for chrome, all the incorrect order:
Chrome
Attachment 15754
firefox
Attachment 15755
internet explorer
Attachment 15756
they all list the colours numerically, which is incorrect:
Black
dark green
Red
damson
natural white
i would like them to be ordered as i have set them up in attributes controller:
natural white
Black
damson
Red
dark green
Attachment 15757
P.S.
The client also sees the incorrect order, so, not just me.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Here is the source code that I see whch produces the desired order as expected:
Code:
<tr><td align="right" class="main"><b>colour:</b></td><td class="main"><select name="id[3]" onchange="i3(this.form);">
<option value="0" selected="selected">Next select colour</option>
</select>
</td></tr>
<tr><td> </td><td><span id="oosmsg" class="errorBox"></span>
<tr><td colspan="2">
<script type="text/javascript" language="javascript"><!--
var stk={1:{370:1,18:1,367:1,272:1,21:1},2:{370:1,18:1,367:1,272:1,21:1},3:{370:1,18:1,367:1,272:1,21:1}};
var stk2={1:{370:1,18:1,367:1,272:1,21:1},2:{370:1,18:1,367:1,272:1,21:1},3:{370:1,18:1,367:1,272:1,21:1}};
var txt3={370:'natural white ',18:'Black ',367:'damson ',272:'Red ',21:'dark green '};
function i1(frm) {
var displayshown = false;
var span=document.getElementById("oosmsg");
while (span.childNodes[0]) {
span.removeChild(span.childNodes[0]);
}
frm['id[3]'].length=1;
for (opt in stk[frm['id[1]'].value]) {
if (typeof stk2[frm['id[1]'].value] != "undefined") {
if (typeof stk2[frm['id[1]'].value][opt] != "undefined") {
frm['id[3]'].options[frm['id[3]'].length]=new Option(txt3[opt],opt);
} else {
frm['id[3]'].options[frm['id[3]'].length]=new Option(txt3[opt] + '- Unavailable ',opt);
}
} else {
frm['id[3]'].options[frm['id[3]'].length]=new Option(txt3[opt] + '- Unavailable ',opt);
if (displayshown != true) {
alert('All selections of the attributes below this one are Out of Stock. Please select a different option.');
stkmsg(frm);
displayshown=true;
}
}
}
The mportant part being the sequence ofthe sub groups of stk.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Also, may want to correct the validation issues with that page (and likely other product pages).
Further, may want to try turning off the Dynamic Dropdown part and see if the same result or different. May have sme sort of Javascript conflict not appearing on my device.
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
I can see that the code looks like it should be working, but it would be great if you could provide a screen grab of it working as a drop down, can you sort this please?
the javascript code above appears after the drop downs, i wander whether this is why the sort order isnt working??
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
Quote:
Originally Posted by
mc12345678
Also, may want to correct the validation issues with that page (and likely other product pages).
Further, may want to try turning off the Dynamic Dropdown part and see if the same result or different. May have sme sort of Javascript conflict not appearing on my device.
ok, i'll try this
thanks
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
i plumped for deactivating dynamic drop downs, all seems to be working now
matt
-
Re: "Stock by Attributes" (version 1.5.3). This MOD is ONLY for Zen Cart 1.5.1 ..whad
actually, deactivating dynamic drop down creates to many issues, so am reactivating, will investigate why javascript order not being displayed
matt