Zen Cart Logo
Forums / All Other Contributions/Addons / Problems with addon: Dynamic Drop Downs for Stock By Attribute

Problems with addon: Dynamic Drop Downs for Stock By Attribute

Views: 17,371

Results 1 to 20 of 57
5 Jan 2009, 10:22 PM
#1
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Problems with addon: Dynamic Drop Downs for Stock By Attribute

Hi,

Is there a dynamic drop downs support thread for this add on? Couldn't find a thread so here goes...

I just added the dynamic drop downs add-on, I'm also running stock by attribute. The dynamic drop downs add-on seems to have removed all the stock numbers I had next to each attribute (not really an issue mind, I didn't like that feature), the problem is, I'm now able to add out of stock attributes and even the "select a size" value to the basket. It basically adds a product without any attributes at zero cost... which is a little annoying.

Anyone know a) how to fix this, or b) how to remove this add-on?

Thanks

6 Jan 2009, 5:19 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

Did you check first if the new addon touched ANY files that other add-ons also touched?

If there are like files then you need to merge the features/changes from them all into one file that is to be used

6 Jan 2009, 9:19 AM
#3
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

Just checked, the files uploaded when I added the dynamic dropdowns add-on don't touch any of the files uploaded when I added the stock by attributes add-on. Hmm, thanks though, i'll keep looking.

6 Jan 2009, 10:51 AM
#4
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

Sorted... it was the simplest of problems caused by an unnecessary line break, if anyone else reading this is having similar problems make sure you have no unnecessary line breaks in your code...

I copied this line of code right out of the dynamic drop downs read me document and pasted it into Dreamweaver:

define('TEXT_OUT_OF_STOCK', 'Out of stock');
define('TEXT_OUT_OF_STOCK_MESSAGE', 'The combination of options you have selected is currently out of stock.  Please select another
combination.');

But there's a line break in the formatting between the words "another" and "combination". Dreamweaver carried this over and I didn't even notice. This is what caused the problems.

The code should be like this:

define('TEXT_OUT_OF_STOCK', 'Out of stock');
define('TEXT_OUT_OF_STOCK_MESSAGE', 'The combination of options you have selected is currently out of stock.  Please select another combination.');

Thanks for your help kobra, wouldn't have looked twice at this if you hadn't prompted me.

6 Jan 2009, 6:37 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

Great!!
Somethings turnout to be basic coding errors...

16 Feb 2009, 6:03 AM
#6
freeohio avatar

freeohio

New Zenner

Join Date:
Dec 2007
Posts:
9
Plugin Contributions:
0

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

I added these mods, and I'm also looking for a howto thread or faq. I don't need the stock functionality (everything is always in stock), but I would like the ability to control the content of only 2 of my 5 attribute dropdown boxes (I don't want it to apply to all attributes for my products).

Is there a way to do this? It's forcing me to select an option in dropdowns 3-n, when those are optional. My products always have the same attribute names. The value/prices changed based on what is selected in the first 2 attribute dropdowns.

And can I just default a 1 in for all quantities since I don't use them? And finally, if I decide to not go forward with this mod, is there a way to disable it without uninstalling? It turned my radio buttons into dropdowns, and that may be a deal-breaker.

Thanks in advance.

19 May 2009, 10:15 PM
#7
laurenjj avatar

laurenjj

New Zenner

Join Date:
Sep 2008
Posts:
80
Plugin Contributions:
0

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

Anyone figure out if the issue mentioned in the above post was ever figured out? I'm desperate here....

25 May 2009, 12:47 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

laurenjj:

Anyone figure out if the issue mentioned in the above post was ever figured out? I'm desperate here....
If no stock is required then there is no need for what was asked - -
Just adjust your admin > config > stock > settings

29 May 2009, 12:09 AM
#9
ngak avatar

ngak

New Zenner

Join Date:
May 2009
Posts:
1
Plugin Contributions:
0

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

i installed the addon "Dynamic Drop Downs for Stock by Attributes
" and it works fine, it's just that now I am unable to add additional pictures.

Does anyone know how to do that?
I tried adding it the normal way in Attributes controller but it doesnt show up since I added the dynamic drop down addon.:cry:

29 May 2009, 12:36 AM
#10
laurenjj avatar

laurenjj

New Zenner

Join Date:
Sep 2008
Posts:
80
Plugin Contributions:
0

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

After much hair pulling, I've managed to come up with a sort of solution to my initial problem (and I believe a few other of your) problem...... which is how to use this mod when you have some products that have attributes OTHER THAN dropdowns because currently you can't....And I've gotten far and will post the entire work around when it's complete so I don't confuse anyone....but my current question may just be a simple zencart/mysql/php question:

I added a flagged field to the 'products' table via phpmyadmin then when the tpl_product_info_display.php page (includes/templates/YOURTEMPLATE/templates) loads, around line 134, right after where the code to 'display the product attributes' is, I have put in an if/else statement that says that if that product is 'flagged' then /tpl_modules_attributes.php will load, and if not, then /tpl_modules_attributesversion2.php will load. Now I know that statement works because

<?php
/**
 * display the product atributes
 */
 
 if ($_GET['products_id'] < 2) {
  require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php');
   }
  
  else {
   require($template->get_template_dir('/tpl_modules_attributestemp.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributestemp.php'); }
  }
?>
```Will indeed load the one page for all products with a product_id less than2, and the other page for all others.... what I'm having a problem doing is changing the 'product_id' to the new 'flagged' field in the same table.   I can indeed PRINT the 'flagged' value (either 0 or 1) by plugging in:
<?php echo $product_info->fields['flagged']; ?>

but I can't figure out how to correctly replace ```
 if ($_GET['products_id'] < 2) {
``` with something like ```
 if ($_GET['flagged'] = 2) {
```...
10 Sep 2009, 7:17 PM
#11
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

Hate to dredge up such an old post.. but I wanted to know if you ever resolved this?? I've seen lots of posts on this issue, but you appear to be the closest to having a real solution.. Did you work this out.. Care to share???:smile:

laurenjj:

After much hair pulling, I've managed to come up with a sort of solution to my initial problem (and I believe a few other of your) problem...... which is how to use this mod when you have some products that have attributes OTHER THAN dropdowns because currently you can't....And I've gotten far and will post the entire work around when it's complete so I don't confuse anyone....but my current question may just be a simple zencart/mysql/php question:

I added a flagged field to the 'products' table via phpmyadmin then when the tpl_product_info_display.php page (includes/templates/YOURTEMPLATE/templates) loads, around line 134, right after where the code to 'display the product attributes' is, I have put in an if/else statement that says that if that product is 'flagged' then /tpl_modules_attributes.php will load, and if not, then /tpl_modules_attributesversion2.php will load. Now I know that statement works because

<?php /** * display the product atributes */ if ($_GET['products_id'] < 2) { require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); } else { require($template->get_template_dir('/tpl_modules_attributestemp.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributestemp.php'); } } ?>
> ```
<?php echo $product_info->fields['flagged']; ?>

but I can't figure out how to correctly replace if ($_GET['products_id'] < 2) { with something like ```
if ($_GET['flagged'] = 2) {

13 Sep 2009, 9:30 AM
#12
optimalwebsite avatar

optimalwebsite

New Zenner

Join Date:
Apr 2008
Posts:
59
Plugin Contributions:
0

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

If I want to uninstall dynamic dropdowns, do I simply carefully remove / replace the various files uploaded? I know it modified the mysql database, do I need to worry about that?

Warm Regards,

Joel

13 Sep 2009, 10:56 AM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

I know it modified the mysql database, do I need to worry about that?
Yes you will most likely...see if the mod has a removal sql

21 Dec 2009, 11:14 AM
#14
anshii avatar

anshii

New Zenner

Join Date:
Dec 2009
Posts:
35
Plugin Contributions:
0

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

I have just installed this mod today. I'm not sure what happened but I can see the attribute but not the quantity. This mod is supposed to display the quantity along with the attributes isn't it?

http://lilpixies.com/index.php?main_page=product_info&products_id=2

Hope someone can help me.

Thanks!

21 Dec 2009, 1:46 PM
#15
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

Short answer.. this mod doesn't work, and there has been no support for it in forever..

anshii:

I have just installed this mod today. I'm not sure what happened but I can see the attribute but not the quantity. This mod is supposed to display the quantity along with the attributes isn't it?

http://lilpixies.com/index.php?main_page=product_info&products_id=2

Hope someone can help me.

Thanks!

5 Jan 2010, 9:23 PM
#16
jerryclunsford avatar

jerryclunsford

New Zenner

Join Date:
Jan 2010
Location:
Lake Nocona, Texas
Posts:
9
Plugin Contributions:
0

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

I have been told that this mod doesn't work, but in places people say that it works great.
Well,does it work or does it not? I would appreciate knowing. It would be a help and save time if it does and a waste of time if not.
Please let me know.
Jerry

5 Jan 2010, 10:40 PM
#17
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

DivaVocals:

Short answer.. this mod doesn't work, and there has been no support for it in forever..

jerryclunsford:

Well,does it work or does it not? I would appreciate knowing.

Suggest you read through this support thread...

11 Jan 2010, 6:57 PM
#18
modernm avatar

modernm

New Zenner

Join Date:
Dec 2007
Location:
Hoboken, NJ
Posts:
97
Plugin Contributions:
1

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

I can try and help out with any specific issues. The mod does work but it requires that you follow the read me. Please post any issues and I will try and assist.

11 Jan 2010, 7:01 PM
#19
modernm avatar

modernm

New Zenner

Join Date:
Dec 2007
Location:
Hoboken, NJ
Posts:
97
Plugin Contributions:
1

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

Dunk:

Hi,

Is there a dynamic drop downs support thread for this add on? Couldn't find a thread so here goes...

I just added the dynamic drop downs add-on, I'm also running stock by attribute. The dynamic drop downs add-on seems to have removed all the stock numbers I had next to each attribute (not really an issue mind, I didn't like that feature), the problem is, I'm now able to add out of stock attributes and even the "select a size" value to the basket. It basically adds a product without any attributes at zero cost... which is a little annoying.

Anyone know a) how to fix this, or b) how to remove this add-on?

Thanks

This was due to improper installation. Please review the documentation to ensure you completed every step.

Cal

11 Jan 2010, 7:13 PM
#20
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Problems with addon: Dynamic Drop Downs for Stock By Attribute

modernm:

I can try and help out with any specific issues. The mod does work but it requires that you follow the read me. Please post any issues and I will try and assist.Did that.. even sent you an e-mail with a link to the issue I posted about.. I long ago uninstalled this mod.. Perhaps if I have some time, I'll re-install on my test store, and re-post the issues I was having (which appear to be the SAME issues I saw others post about as well)..

ETA: Found my previously reported issues:
http://www.zen-cart.com/forum/showthread.php?t=91232&page=3