ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
I am not real familiar with SBA - so will start this off by saying... pardon me if I ask a really STUPID question! LOL
I have a customer that has a very old version of zen cart that we are trying to upgrade. She uses SBA, Dynamic Dropdown, and an Atrribute Image swap.
I have done the upgrade to 1.5.4 using the latest SBA code on github. The latest SBA code appears to have Dynamic Dropdown built in from what I can see.
My problem is that on her current site, if you click the first dropdown, Say... Long Sleeve Tshirt, then click on the next dropdown, EG: Color, it will only show the long sleeve options. This, to me, would be the "Dynamic Dropdown" function.
In the NEW build, it shows ALL the attributes for the "product", instead of just the Long Sleeve T-shirt.
Here is a link to the new build:
Here is a link to the original site
I have gone at this every way I know how... merging code, not merging code, and it just doesn't work.
Is there something that I am missing? Or does Dynamic Dropdowns just not work "out of the box" with the new version of SBA?
Thanks so much for any assistance you can give me!!
Last edited by stellarweb; 30 Mar 2015 at 08:50 PM.
Correct, the version that is in the branch mc12345678_sba154 has dynamic dropdowns incorporated as provided via download from this site. There is a new selection available in the admin that was not a part of the original code that was put together to specifically work with this version of SBA. That said the new site does not appear to have the sequenced dynamic aspect active...
There are a few things though that need to go together to get the desired result(s).
The code that was a part of your previous version likely could be ported to this one and continue working; however, to use the version created here and active upon installation requires the product variants to be entered as discussed over the few previous pages where each entry of a variant contains all attributes applicable to that stock tracked quantity.
To best try to resolve, would help to know what the settings were/are for the old site in the dynamic dropdown configuration area. Both for multiple attributes as well as single attributes.
Then to also know how the variants are setup for example on the product presented above.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
In looking at the current admin (version 1.3.8a) and the new build (1.5.4), I do not see anything that says anything about Dynamic Dropdowns either under Configuration or Catalog menus.
When I use the Search Configuration on the new build, I see
Enable Dynamic Dropdowns 2
Product Info Single Attribute Display Plugin multiple_dropdowns
Show Out of Stock Attributes True
Product Info Multiple Attribute Display Plugin sba_sequenced_dropdowns
Mark Out of Stock Attributes Right
Display Out of Stock Message Line True
Prevent Adding Out of Stock to Cart True
SBA Number of Records to Displayed 25
Enable Dynamic Dropdowns
On for Multi-Attribute Only
Does that help any?
To add to this..... the Image swap mod has 2 files in common with SBA
admin/options_name_manager.php
includes/modules/custom/attributes.php
I merged the coding - but the attributes.php file removes the image swap functionality, even though it is merged correctly. It also makes the different dropdowns go wonky, so I have to use the Image swap attributes.php file.
Also, I cannot use the includes/templates/custom/templates/tpl_modules_attributes.php file because it causes the image swap not to work.
So, it looks like the sequenced aspect of dynamic dropdowns is activated (by the usage of Enable Dynamic Dropdowns 2 and Product Info Multiple Attribute Display Plugin sba_sequenced_dropdowns
But what seems to be the case is that the variants are not populated to support that option or one of the other settings/code is not carrying the sequencing forward.
Strange as well is that you don't have an option in your configuration list for dynamic dropdowns... My guess is that there is probably two or more database entries for the record as part of the upgrade from the previous version... Obviously not easily accessible, but the list of options can still be modified if you get to know what gID is applicable for all of those on your system. Will have to provide a way to remove the duplicate record information via separate correspondence unless someone else can jump in with that solution in the interim.
So the next thing would be to understand how this product is setup in the variants section for this one product. Able to do a screen capture or copy and paste of a row or series of rows for that product?
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Ahhh, well... Not sure what version of the includes/templates/custom/templates/tpl_modules_attributes.php file is used on your current site, but that is the one file that actually engages dynamic dropdowns... Without it or a version of the original, no dynamic dropdown functionality is provided...
As for the image swap... The base version of this version of SBA supports image swapping for product that has one attribute... I've asked for feedback on it's functionality when using the multiple attribute option(s)... Again, technically you may be able to use your old stores versions of the template file and may also be able to use the old stores version of the dynamic dropdown classes. The version that is available for download of Dynamic Dropdowns though out-of-the-box does not work in it's entirety with SBA as written. It may just be the javascript side that is an issue, but when tested it did not function as written and is why an additional class was created written for this version in the event someone had written/rewritten the previous versions and continued to want to use them. Again trying to take the route of adding to the overall operation, not remove or be overly controlling. Maybe down the line different changes will be made, but it is still being developed with existing functionality to remain in place.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Would it be easier if I PM you with access to the admins?
Thanks so much for your willingness to help! I have been pulling my hair out trying to figure this out! LOL
Hey guys, there are 101 and one pages in response to this thread so I can't page through all these to find my answer. I am trying to add the SQL patch (I guess?) and can't figure out what is going wrong. I'm trying to upload but keep getting this error:
Error Failed: 4
Error ERROR: Cannot execute because table products_with_attributes_stock does not exist. CHECK PREFIXES!
Error ERROR: Cannot execute because table products_with_attributes_stock does not exist. CHECK PREFIXES!
Error ERROR: Cannot execute because table products_with_attributes_stock does not exist. CHECK PREFIXES!
Error ERROR: Cannot execute because table products_with_attributes_stock does not exist. CHECK PREFIXES!
Warning Note: 4 statements ignored. See "upgrade_exceptions" table for additional details.
I'm using ZC v1.5.1 if that helps...
Bookmarks