Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute
I added the Dynamic Drop Down for Stock by Attributes add on. When you use it all variations are combined for the product. For example if you have a product called shirts and you have multiple options defined for the sizes small, medium, large and you want one small and one medium it only creates one line in the cart representing 2 Shirts.
Has anyone else solved this problem?
Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute
I modified the present version uploaded in Feb, 2013, by DrByte. One thing had been left out - if you were using a database table prefix then you would be getting the sql error message.
This does work on 1.3.9 - just installed it and should also work on 1.5.x, thanks to DrByte's work earlier this year.
I just uploaded it to contributions so keep an eye out for the fixed version.
In a nutshell,
2 files: pad_multiple_dropdowns.php and pad_sequenced_dropdowns.php both needed to be
. TABLE_PRODUCTS_STOCK .
changed to
. DB_PREFIX. TABLE_PRODUCTS_STOCK .
Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute
Actually, the fix would be:
/includes/extra_datafiles/dynamicdropdownsforsba.php
and change:
Code:
if (!defined('TABLE_PRODUCTS_STOCK')) define('TABLE_PRODUCTS_STOCK', DB_PREFIX . 'products_with_attributes_stock');
so that the original define is correct ...
Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute
The define did not have the db_prefix in it.
Php failed me to put it into the define file - thanks!
I'll make that fix and upload that.
Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute
I have made the correction as Ajeh suggested and will be uploading this set of files shortly to the plugin section. So I've removed the DB_PREFIX. from the pad_multiple_dropdowns.php and pad_sequenced_dropdowns.php and added it to the extra datafile of dynamicdropdownsforsba.php
Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute
Has anyone run into problems with sale or special pricing and the dynamic dropdowns? We're seeing the sale pricing aren't reflected in the dropdowns.
Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute
Has anyone gotten this module to work with Attribute image replaces main product image on selection? There seems to be some incompatibility with the includes/templates/override/templates/tpl_modules_attributes.php. I can get either this module or the Attribute image replaces main product image on selection module to work, but not together. I would appreciate any input or help :smile:
Thanks,
Anne