Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

DUAL Pricing v2

Started by chrome_orange on 12 May 2006, 7:03 PM · Views: 364,184

Results 1,481 to 1,500 of 1,504
10 Jun 2021, 2:00 PM
#1481
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Post #1481 by jeking

HeleneWallis:

or is there an actual 1.5.7c version now.

The post immediately before your first one mentioned there is a 1.5.7c version available for testing on Github.

Jim
Wheaton Website Services

10 Jun 2021, 10:41 PM
#1482
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Post #1482 by helenewallis

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.

10 Jun 2021, 10:56 PM
#1483
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Post #1483 by jeking

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.php?35450-DUAL-Pricing-v2&p=1380803#post1380803

Jim
Wheaton Website Services

10 Jun 2021, 11:11 PM
#1484
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Post #1484 by helenewallis

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.

10 Jun 2021, 11:27 PM
#1485
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Post #1485 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.

11 Jun 2021, 12:00 AM
#1486
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Post #1486 by jeking

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.

Jim
Wheaton Website Services

14 Jun 2021, 8:18 PM
#1487
lindasdd avatar

lindasdd

Zen Follower

Join Date:
Jun 2007
Posts:
474
Plugin Contributions:
0

Post #1487 by lindasdd

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:

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

18 Nov 2021, 9:14 PM
#1488
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

Post #1488 by mikestaps

Looking through the files (GitHub version) while merging with my 1.5.7c test store files I may have found a possible bug.

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?

11 Jul 2023, 12:49 AM
#1489
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Post #1489 by jimmie

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

9 May 2024, 11:58 AM
#1490
donw avatar

donw

New Zenner

Join Date:
May 2018
Location:
Melbourne, Australia
Posts:
29
Plugin Contributions:
0

Post #1490 by donw

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.

10 May 2024, 8:56 AM
#1491
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Post #1491 by torvista

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.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

10 May 2024, 12:31 PM
#1492
donw avatar

donw

New Zenner

Join Date:
May 2018
Location:
Melbourne, Australia
Posts:
29
Plugin Contributions:
0

Post #1492 by donw

That may well be so, but upgrading to the latest version of Zencart for many users depends on other plugins being available for the latest version of Zencart. One that readily comes to mind is Super Orders, and until that becomes available for 1.5.8 or 2.0, it is not possible to update.

10 May 2024, 3:09 PM
#1493
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Post #1493 by jeking

torvista:

This functionality is now integrated into the current version of Zen Cart, making this an obsolete plugin on an obsolete version of Zen Cart.

Maybe I'm misunderstanding your comment, but I don't see dual pricing in ZC 2.0.

Jim
Wheaton Website Services

11 May 2024, 12:55 AM
#1495
donw avatar

donw

New Zenner

Join Date:
May 2018
Location:
Melbourne, Australia
Posts:
29
Plugin Contributions:
0

Post #1495 by donw

I've just had a look at the documentation for Wholesale Pricing in V2, and it does not allow for specials pricing to apply to wholesale customers - "Customers who are eligible for Wholesale Pricing are not eligible for Sales, Specials and Group Pricing". There is a valid use case for specials pricing to apply to both retail and wholesale customers. e.g when trying to shift old stock.

11 May 2024, 1:21 AM
#1496
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #1496 by lat9

donw:

I've just had a look at the documentation for Wholesale Pricing in V2, and it does not allow for specials pricing to apply to wholesale customers - "Customers who are eligible for Wholesale Pricing are not eligible for Sales, Specials and Group Pricing". There is a valid use case for specials pricing to apply to both retail and wholesale customers. e.g when trying to shift old stock.
That functionality was based on the Dual Pricing version from which Whole Sale pricing was based. I've created a GitHub issue to identify the request: https://github.com/zencart/zencart/issues/6445

11 May 2024, 10:02 AM
#1497
donw avatar

donw

New Zenner

Join Date:
May 2018
Location:
Melbourne, Australia
Posts:
29
Plugin Contributions:
0

Post #1497 by donw

Thanks for that.

11 May 2024, 1:12 PM
#1498
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #1498 by lat9

As a follow-up, you can always just modify the wholesale pricing for those "old stock" products.