Thread: DUAL Pricing v2

Page 149 of 149 FirstFirst ... 4999139147148149
Results 1,481 to 1,486 of 1486
  1. #1481
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    429
    Plugin Contributions
    0

    Default Re: DUAL Pricing version 2

    Quote Originally Posted by jeking View Post
    The post immediately before your first one mentioned there is a 1.5.7c version available for testing on Github.
    Yes, that's where I found the two files I mentioned. I should have said that I also used the updated sql from the 1.5.7 version in Github. I see now that there are other updated files besides the two that were mentioned in this thread. I've reinstalled Zencart 1.5.7c and then again installed Dual Pricing, with the updated files. It is still doing the same thing as before. The shopping cart gets the correct prices from the attributes, but when the product is first displayed on the screen, only the retail prices are displayed. I've checked the attributes again, and verified that the correct prices are entered there.

  2. #1482
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,487
    Plugin Contributions
    28

    Default Re: DUAL Pricing version 2

    Quote Originally Posted by HeleneWallis View Post
    Yes, that's where I found the two files I mentioned. I should have said that I also used the updated sql from the 1.5.7 version in Github. I see now that there are other updated files besides the two that were mentioned in this thread. I've reinstalled Zencart 1.5.7c and then again installed Dual Pricing, with the updated files. It is still doing the same thing as before. The shopping cart gets the correct prices from the attributes, but when the product is first displayed on the screen, only the retail prices are displayed. I've checked the attributes again, and verified that the correct prices are entered there.
    You're using attributes? This version does not work with attribute pricing:
    https://www.zen-cart.com/showthread....03#post1380803

  3. #1483
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    429
    Plugin Contributions
    0

    Default Re: DUAL Pricing version 2

    Sorry, I thought that was the whole point of the last few comments before mine, that it was working for lindasdd and that those changes had been posted to Github.

  4. #1484
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    429
    Plugin Contributions
    0

    Default Re: DUAL Pricing version 2

    It is actually picking up the prices correctly and showing them in the shopping cart, just not on the product display, if that's any help in figuring it out.

  5. #1485
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,487
    Plugin Contributions
    28

    Default Re: DUAL Pricing version 2

    Quote Originally Posted by HeleneWallis View Post
    It is actually picking up the prices correctly and showing them in the shopping cart, just not on the product display, if that's any help in figuring it out.
    Sorry for the confusion.

    Your observation is correct. That is the current functionality. I don't know if/when I'll be able to work on this issue. My clients don't need this fixed so this becomes a free time project, of which there is not a lot of free time.

  6. #1486
    Join Date
    Jun 2007
    Posts
    470
    Plugin Contributions
    1

    Default Re: DUAL Pricing version 2

    Quote Originally Posted by HeleneWallis View Post
    It is actually picking up the prices correctly and showing them in the shopping cart, just not on the product display, if that's any help in figuring it out.

    Try (on a test site, I might have also changed something else and forgot):
    in includes/modules/attributes.php insert after line 169:
    if ($_SESSION['customer_whole'] = '0') {

    and then insert after the neew line 173:
    } else {
    $new_attributes_price = $products_options->fields['options_values_price_w'];;
    }

    so now lines 169-177 look like this:
    PHP Code:
                if ($products_options->fields['attributes_discounted'] == 1) {
                    if (
    $_SESSION['customer_whole'] = '0') {
                    
    // apply product discount to attributes if discount is on
                    
    $new_attributes_price zen_get_attributes_price_final($products_options->fields["products_attributes_id"], 1'''false'$products_price_is_priced_by_attributes);
                    
    //$new_attributes_price = zen_get_discount_calc((int)$_GET['products_id'], true, $new_attributes_price);
            
    } else {
            
    $new_attributes_price $products_options->fields['options_values_price_w'];;
            }
                } else { 
    IMPORTANT!! - This isn't a complete fix! There are certain pricing scenarios this is not factoring for such as the next section down in that file 'discount is off do not apply'.

 

 

Similar Threads

  1. Dual Pricing - Wholesale Pricing - Some issues I was able to fix
    By hollettster in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 17 Dec 2010, 12:00 AM
  2. 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
  3. No Attributes after installing Dual Pricing - Wholsale Pricing
    By drybsmt in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 10 Sep 2009, 11:09 AM
  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 Module & Dual Tax Classes
    By WILL in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 25 May 2007, 10:44 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR