Forums / All Other Contributions/Addons / Dual Pricing - Wholesale Pricing - Some issues I was able to fix

Dual Pricing - Wholesale Pricing - Some issues I was able to fix

Locked

Views: 2,179

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
9 Dec 2010, 5:53 PM
#1
hollettster avatar

hollettster

New Zenner

Join Date:
Apr 2009
Posts:
31
Plugin Contributions:
0

Dual Pricing - Wholesale Pricing - Some issues I was able to fix

I found some issues in Dual Pricing - Wholesale Pricing in ver. 1-7b

The install.sql should be:
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;

Also, the attributes_controller.php has several pieces of info missing. Take your current version of attributes_controller.php BEFORE adding in the modded core file and do a winmerge on it. The current version leaves out many references to Zen Cart's securityToken in the session which will cause problems when you are adding product attributes (Trust me). That is all I have found so far. But once the above fixes are in place, the mod works great. Hopefully 1-7c will include these patches.

16 Dec 2010, 9:40 PM
#2
thekiltednation avatar

thekiltednation

New Zenner

Join Date:
Nov 2010
Posts:
6
Plugin Contributions:
0

Re: Dual Pricing - Wholesale Pricing - Some issues I was able to fix

has anyone posted the updates to attributes_controller.php that fix this problem (where trying to update an attribute kicks back to the home screen).

I'm having a problem getting a good merge with winmerge.

16 Dec 2010, 10:36 PM
#3
thekiltednation avatar

thekiltednation

New Zenner

Join Date:
Nov 2010
Posts:
6
Plugin Contributions:
0

Re: Dual Pricing - Wholesale Pricing - Some issues I was able to fix

FYI.... I am getting the same 302 error that others have mentioned in relation to this problem.

16 Dec 2010, 11:00 PM
#4
thekiltednation avatar

thekiltednation

New Zenner

Join Date:
Nov 2010
Posts:
6
Plugin Contributions:
0

Re: Dual Pricing - Wholesale Pricing - Some issues I was able to fix

ok..... I found part of my problem.... make sure you use winmerge with a file that doesnt have UNIX style line endings....

Someone else mentioned the lack of securityToken references. I found 5 of these..... using winmerge, I just copied the affected files from a stock attributes_controller.php over the corresponding lines from the dual pricing module.

The affected line numbers seem to be:

788
808
837
860
1075

Is there any reason why this hasn't been noticed and fixed in the actual release?