Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Apr 2009
    Posts
    31
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Nov 2010
    Posts
    6
    Plugin Contributions
    0

    Default 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.

  3. #3
    Join Date
    Nov 2010
    Posts
    6
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Nov 2010
    Posts
    6
    Plugin Contributions
    0

    Default 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?

 

 

Similar Threads

  1. How remove Dual Pricing - Wholesale Pricing ?
    By dmagic in forum General Questions
    Replies: 5
    Last Post: 20 Nov 2013, 08:20 AM
  2. Help. installed Dual Pricing - Wholesale Pricing
    By lcarlo1507 in forum Basic Configuration
    Replies: 3
    Last Post: 20 Nov 2010, 11:06 PM
  3. Dual Pricing - Wholesale Pricing for Zen 1.3.7 works with Easypopulate
    By micheloo in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 20 Jan 2010, 06:01 PM
  4. Quantity Discounts and Dual Pricing - Wholesale Pricing
    By snarkys in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 2 Jul 2007, 06:47 PM
  5. Dual pricing / wholesale Pricing mod
    By zskiman in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 16 Feb 2007, 05:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg