Zen Cart Logo
Forums / All Other Contributions/Addons / Dual Pricing 1.7 error

Dual Pricing 1.7 error

Locked

Views: 1,012

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
2 Dec 2010, 7:37 AM
#1
mediaslave avatar

mediaslave

New Zenner

Join Date:
Jul 2010
Posts:
8
Plugin Contributions:
0

Dual Pricing 1.7 error

Hey guys

When I try to install the Dual Pricing 1.7 mod, I get this error:

1054 Unknown column 'discount_price_w' in 'products_discount_quantity'
in:
[ALTER TABLE products_discount_quantity ADD discount_price_w VARCHAR( 150 ) DEFAULT '0' AFTER discount_price_w;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Any idea? Unfortunately I have no idea what its talking about, nor do I know how to fix it.

This is the last thing I need for this project to work!

Thanks much!

This is the SQL file info:

ALTER TABLE customers ADD customers_whole VARCHAR( 4 ) DEFAULT '0' NOT NULL;
ALTER TABLE products ADD products_price_w VARCHAR( 150 ) DEFAULT '0' AFTER products_price;
ALTER TABLE products_attributes ADD options_values_price_w VARCHAR( 150 ) DEFAULT '0' AFTER options_values_price;
ALTER TABLE products_discount_quantity ADD discount_price_w VARCHAR( 150 ) DEFAULT '0' AFTER discount_price_w;
ALTER TABLE customers ADD customers_wholesale VARCHAR( 4 ) DEFAULT '0' NOT NULL AFTER customers_whole;

Version 1.3.9h

3 Dec 2010, 9:37 AM
#2
carilivia avatar

carilivia

New Zenner

Join Date:
Dec 2006
Posts:
32
Plugin Contributions:
0

Re: Dual Pricing 1.7 error

Here's the correct code =)

For everyone that is having problems with this mod and the sql problem here is the correct code without the zen_ prefix and also the code WITH the zen prefix. Use the code WITHOUT the prefix if you are running this through the Tools>>Install SQL patches in the admin of your website:

WITHOUT THE ZEN PREFIX:

ALTER TABLE customers ADD customers_whole VARCHAR( 4 ) DEFAULT '0' NOT NULL;
ALTER TABLE products ADD products_price_w VARCHAR( 150 ) DEFAULT '0' AFTER products_price;
ALTER TABLE products_attributes ADD options_values_price_w VARCHAR( 150 ) DEFAULT '0' AFTER options_values_price;
ALTER TABLE products_discount_quantity ADD discount_price_w VARCHAR( 150 ) DEFAULT '0' AFTER discount_price;
ALTER TABLE customers ADD customers_wholesale VARCHAR( 4 ) DEFAULT '0' NOT NULL AFTER customers_whole;

WITH ZEN PREFIX:

ALTER TABLE zen_customers ADD customers_whole VARCHAR( 4 ) DEFAULT '0' NOT NULL;
ALTER TABLE zen_products ADD products_price_w VARCHAR( 150 ) DEFAULT '0' AFTER products_price;
ALTER TABLE zen_products_attributes ADD options_values_price_w VARCHAR( 150 ) DEFAULT '0' AFTER options_values_price;
ALTER TABLE zen_products_discount_quantity ADD discount_price_w VARCHAR( 150 ) DEFAULT '0' AFTER discount_price;
ALTER TABLE zen_customers ADD customers_wholesale VARCHAR( 4 ) DEFAULT '0' NOT NULL AFTER customers_whole;

13 Dec 2010, 12:24 AM
#3
mediaslave avatar

mediaslave

New Zenner

Join Date:
Jul 2010
Posts:
8
Plugin Contributions:
0

Re: Dual Pricing 1.7 error

Hey there

First, thanks much for the help! That was perfect, and the SQL stuff worked perfectly.

However...

the mod doesn't seem to work. It hasn't changed anything. I've uploaded the files, and from what I understand I've done what it says to add in WHOLESALE (editing a customer, for example) and theres nowhere to add in the wholesale option.

Any ideas? Does this thing work?

13 Dec 2010, 6:08 AM
#4
carilivia avatar

carilivia

New Zenner

Join Date:
Dec 2006
Posts:
32
Plugin Contributions:
0

Re: Dual Pricing 1.7 error

Are you not seeing where to add in the wholesale pricing?
Let us know! Also....did you make sure and double check that all the files got uploaded. Always best to go through and re-load them all, just in case one got missed =)

=0)

13 Dec 2010, 6:56 AM
#5
mediaslave avatar

mediaslave

New Zenner

Join Date:
Jul 2010
Posts:
8
Plugin Contributions:
0

Re: Dual Pricing 1.7 error

I'm not actually seeing anything anywhere. As I understand it, there should be a new box under a customers email address when I edit them in the admin panel. There isn't. Theres also no change to the product info layout page in the admin panel.

Not sure if I am missing something....

I've just reuploaded everything, and still no change. Used the latest files too, with the fix to the SQL above.

Thanks very much for your help so far, its very appreciated!

14 Dec 2010, 8:15 PM
#6
ariadsgn avatar

ariadsgn

New Zenner

Join Date:
Dec 2010
Posts:
1
Plugin Contributions:
0

Re: Dual Pricing 1.7 error

how to install Dual Pricing ? thx