Re: DUAL Pricing version 2
Quote:
Originally Posted by
jeking
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.
Re: DUAL Pricing version 2
Quote:
Originally Posted by
HeleneWallis
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
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.
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.
Re: DUAL Pricing version 2
Quote:
Originally Posted by
HeleneWallis
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.
Re: DUAL Pricing version 2
Quote:
Originally Posted by
HeleneWallis
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'.
Re: DUAL Pricing version 2
Looking through the files (GitHub version) while merging with my 1.5.7c test store files I may have found a possible bug.
Code:
admin/attributes_controller.php lines 1752-1755
<!-- bof_adding -->
<!--- Dual Pricing start --->
<tr class="attributeBoxContent"><td colspan="11"><table border="0" width="100%">
<!--- Dual Pricing end --->
There doesn't seem to be a corresponding </tr> (that I can find).
Where would I put that?
Re: DUAL Pricing version 2
Hello, i am running zen version 1.56c and had this working on 1.56, whats not working is any product that has a quantity discount will only show a price of zero on product info page. when i do use quantity discounts i use percentage but wholesale price stays on 0
Re: DUAL Pricing version 2
I'm hoping someone can help me. A site I maintain has been using dual pricing for a few years. Recently, it was required to set up specials pricing (20% off) for some products, and to have the 20% off to apply to both retail and wholesale prices. As per the readme that comes with the plugin, I have commented out the "hide specials" code. Doing so results in no changes. i.e the retail shows the correct specials price, but when logged in as a wholesale customer, the price is the same as for a retail customer.
The site is running zencart 1.5.5e and the 1.5.5b version of dual pricing.
Re: DUAL Pricing version 2
This functionality is now integrated into the current version of Zen Cart, making this an obsolete plugin on an obsolete version of Zen Cart.
Consequently it's difficult for anyone to justify looking into this, apart from other users that may still be using this.
This is one of multiple reasons why you must upgrade.