Zen Cart Logo

DUAL Pricing v2

Views: 363,313

Results 1,181 to 1,200 of 1,504
28 Mar 2013, 4:15 AM
#1181
chrissccub avatar

chrissccub

New Zenner

Join Date:
Mar 2013
Posts:
2
Plugin Contributions:
0

DUAL Pricing v2

Hey Zenners! I have been setting up my first ZC store front for the past few weeks and it has gone fairly well with a TON of help from searching the forum and reading tons of posts. Some details:

ZC 1.50 installed by Fantastico
Dual Pricing 2.1
URL: shop . scr ub compo nents . com

I've seen variations of this discussed in older posts as well as a similar sounding question a few pages back but that did not get an answer. When logged in with Wholesale credentials, I can add a product with no attributes to the cart correctly. The wholesale price is shown on the product page as well as in the cart.

Different story with products with attributes. On the product page, the wholesale base price, as well as the wholesale upcharges for different attributes is correct. When added to the cart, the ATTRIBUTES work correctly but the BASE PRICE reverts to the full retail price.

I read through about 50 pages on this support forum a few nights ago and it seemed like the old posts had to do with this mod not playing nice with attributes. For me, the attribute pricing is working beautifully but I can't figure out why the base price is changing in the cart.

I hope that I've included enough info for someone to help me out. I will be contributing to the project as soon as I get my shop finished so I appreciate any advice!

Thanks again for the support.

28 Mar 2013, 3:47 PM
#1182
wildthyme avatar

wildthyme

New Zenner

Join Date:
May 2012
Posts:
18
Plugin Contributions:
0

Re: DUAL Pricing v2

I am having problems with Dual Pricing v2. When a wholesale customer is logged in the Retail Price shows on the product but the wholesale price does not. The wholesale price is reflected in the cart.

I have Zen cart v. 1.5 installed by PicaFlor-Azul
Dual Pricing v. 2
and a bunch of other mods: FEC, Quantity Discount (uninstalled), Sitemap xml, Google Analytics, reCaptcha, Imagehandler 4, etc

I've combed through the posts looking for the fix but have not spotted it. What have I missed?

Thank you in advance for any insights.

29 Mar 2013, 1:47 AM
#1183
wildthyme avatar

wildthyme

New Zenner

Join Date:
May 2012
Posts:
18
Plugin Contributions:
0

Re: DUAL Pricing v2

I forgot to mention that I created a mirror site for my wholesale customers. I needed to have Quantity Discounts by category for Retail customers and it just would not work with Dual Pricing. So I have a site that is for wholesale customers only but I want it to the MSRP price and the wholesale price. Right now it only shows the Retail price and reflects the wholesale price in the cart.

29 Mar 2013, 2:53 PM
#1184
chrissccub avatar

chrissccub

New Zenner

Join Date:
Mar 2013
Posts:
2
Plugin Contributions:
0

Re: DUAL Pricing v2

chrissccub:

Hey Zenners! I have been setting up my first ZC store front for the past few weeks and it has gone fairly well with a TON of help from searching the forum and reading tons of posts. Some details:

ZC 1.50 installed by Fantastico
Dual Pricing 2.1
URL: shop . scr ub compo nents . com

I've seen variations of this discussed in older posts as well as a similar sounding question a few pages back but that did not get an answer. When logged in with Wholesale credentials, I can add a product with no attributes to the cart correctly. The wholesale price is shown on the product page as well as in the cart.

Different story with products with attributes. On the product page, the wholesale base price, as well as the wholesale upcharges for different attributes is correct. When added to the cart, the ATTRIBUTES work correctly but the BASE PRICE reverts to the full retail price.

I read through about 50 pages on this support forum a few nights ago and it seemed like the old posts had to do with this mod not playing nice with attributes. For me, the attribute pricing is working beautifully but I can't figure out why the base price is changing in the cart.

I hope that I've included enough info for someone to help me out. I will be contributing to the project as soon as I get my shop finished so I appreciate any advice!

Thanks again for the support.

Well, just to follow up with this. Last night I set up a test area and installed a fresh copy of ZC 1.51 as well as Dual Pricing V2. No other mods, classic template, etc.

Created a test product as follows:

Base Price Retail $100 Wholesale $50
Attribute Retail $0 Wholesale $10

On product page, everything works perfectly. Once added to the cart, the base price resorts to $100 and the Wholesale attribute price works correctly for a total price of $110 rather than $60.

Any thoughts are appreciated, I'm a bit disappointed by this result as I was sure the issue had to do with a mod or template that had changed the code. With this fresh test install it looks like that might not be the case. :(

Thanks everyone!

9 Apr 2013, 12:24 PM
#1185
harri avatar

harri

New Zenner

Join Date:
Oct 2010
Location:
Finland
Posts:
26
Plugin Contributions:
0

Re: DUAL Pricing v2

Harri:

Thanks for this great addon, v.2.1 works great on my 1.5.1 catalog side but I'm having problems on admin side. I didn't found any answer for my problems as I read through this support forum.

a) I cannot add quantity discounts - when I click add 5 blank discounts, only one discount row is added. I can edit it partially, it shows correctly on catalog side. If I try to add another discount, I'll lost that first discount.

Errorlog is generated: PHP Fatal error: Call to undefined method currencies::display_price_w() in /home/.../admin/products_price_manager.php on line 984
Line 984:

<td class="main" align="right"><?php echo $currencies->display_price_w($discounted_price_w, '', 1) . ' ' . $currencies->display_price_w($discounted_price_w, zen_get_tax_rate(1), 1); ?></td>

b) Option values can't be created: I can create option name, but if I try add values I get "WARNING: An Error occurred, please refresh the page and try again."

Errorlog is generated:
PHP Fatal error: 1062:Duplicate entry '1-2' for key 1 :: insert into products_options_values
(products_options_values_id, language_id, products_options_values_name, products_options_values_sort_order)
values ('1',
'2',
'testi',
'2') in /home/.../includes/classes/db/mysql/query_factory.php on line 120

I would appreciate your help a lot :)

Please, can somebody help me?

I was able to fix attribute errors by reinstalling this mod really carefully :) Catalog side + shopping cart works with or without attributes.
But quantity discounts can't be added in products price manager. Does anybody know how to make quantity discounts tool work?

Adding blank discounts creates errorlog:
PHP Fatal error: Call to undefined method currencies::display_price_w() in /home/xxx/public_html/xxx/products_price_manager.php on line 988

on line 988 reads:

<td class="main" align="right"><?php echo $currencies->display_price_w($discounted_price_w, '', 1) . ' ' . $currencies->display_price_w($discounted_price_w, zen_get_tax_rate(1), 1); ?></td>
17 Apr 2013, 7:27 AM
#1186
harri avatar

harri

New Zenner

Join Date:
Oct 2010
Location:
Finland
Posts:
26
Plugin Contributions:
0

Re: DUAL Pricing v2

UPDATE
I figured out what was causing the problem with the quantity discounts: it was store tax setting. When I disabled all taxes, quantity discount admin worked fine. It's odd, because catalog side and product wholesale pricing works nicely even those taxes were enabled. Just noticed from the readme file that taxes are not supported by this module. Is there plans to add full tax support to this module? It would be very nice.

17 Apr 2013, 11:31 PM
#1187
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: DUAL Pricing v2

Harri, thanks for sharing your solution and helping others. When the module was first built (I assume) tax support was not added because wholesale customers do not generally pay sales tax. We do not plan to add any new features to this module in the near future. Perhaps another developer (or the original author of the module) would be kind enough to contribute this feature.

30 Apr 2013, 7:59 PM
#1188
idc1 avatar

idc1

Zen Follower

Join Date:
Jul 2011
Posts:
139
Plugin Contributions:
0

Re: DUAL Pricing v2

mercurysoun.it:

thank you very much your edit is fine :laugh: but I still have a problem on the quantity discount.
When I log as wholesale I can see the wholesale prices for quantity, but in the basket is indicated only the first wholesale price.
The volume discount will not work:frusty:. What can I do?

I did not see a fix in my search of this forum. All solutions appear to be for attributes and not quantity discounts. I'm experiencing the same problem as quoted. When shopping as a retail customer, I see the correct pricing for quantity discounts. I also see the correct pricing for the quantity discounts when logged in as wholesale.

When I'm logged in as a wholesale account however, once I add a product to my shopping cart, the first tier (1-4 piece) pricing shows up correctly in the shopping cart. If I add enough quantity to take advantage of the 2nd tier (5+ pieces) the price in the shopping cart is populated as the 2nd tier MSRP price and not the 2nd tier wholesale price.

Does anyone know the fix for this?

Thanks

3 May 2013, 10:04 AM
#1189
pietpetoors avatar

pietpetoors

Zen Follower

Join Date:
Jun 2010
Location:
South Africa
Posts:
140
Plugin Contributions:
0

Re: DUAL Pricing v2

ZenCart do not add Tax on my clients who are marked as wholesale. The normal retail clients are no problem, tax is added on both products and shipment, no problem
But everybody who is on wholesale do not get tax added.

I checked the tables in the DB under the address_book and customers but do not see anything funny.
I created two dummy users with exactly the same billing and delivery address. The only difference is one is retail and one is wholesale.

The system ads tax on the retail client but on the wholesale client it only ads tax on shipment fee but on products it does not add tax and on the invoice it shows "Tax" 0.00%

I see under customers table there are two wholesale fields
customers_whole
customers_wholesale

I am not sure if this was due to an upgrade some time. But I see the value for customers_whole = 1 for wholesale clients but for the same client customers_wholesale is null (no value). On my dummy account I also set customers_wholesale = 1 but that made not difference the system still do not add Tax on wholesale clients.

Any suggestions?

3 May 2013, 10:19 AM
#1190
pietpetoors avatar

pietpetoors

Zen Follower

Join Date:
Jun 2010
Location:
South Africa
Posts:
140
Plugin Contributions:
0

Re: DUAL Pricing v2

OK, sorry, I see further up the plugin does not support tax on wholesale clients
Is there a way I can just disable the dual pricing plugin until we could fix it or must I just uninstall it. If I uninstall it i guess I will have to enter all wholesale prices again after I install it again one day.

Does anybody know of any other plugin which does the same work but which actually add tax on wholesale clients?

3 May 2013, 11:44 AM
#1191
pietpetoors avatar

pietpetoors

Zen Follower

Join Date:
Jun 2010
Location:
South Africa
Posts:
140
Plugin Contributions:
0

Re: DUAL Pricing v2

I think I found the fix for the Tax problem.

This is what I did:
in the file includes/classes/orders.php I removed lines 520 to 529

Maybe somebody who is more clued up with this module will be able to tell if that will cause problems elsewhere but so far the invoices now displays tax for my wholesale clients.

This is the lines I removed - lines 520 to 529

//Dual Pricing start - taxes
	  if ($customer_address->fields['customers_whole'] > 0)
      { $products_tax = 0;
        $this->products[$index]['tax'] = 0;
        $tax_add = 0;
        $this->products[$index]['tax_description'] = '';
      }
	  if ($customer_address->fields['customers_whole'] == 0)
      {
	  // Dual pricing end - taxes
3 May 2013, 11:53 PM
#1192
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: DUAL Pricing v2

The solution is posted in the README file as follows:


What about taxes?

By default, your Retail customers (level 0) will be charged sales tax, and wholesale customers (level 1+) will not be charged any sales tax.

If you would like to charge taxes to EVERYONE, then do not include the following file in your installation (or, revert this file back to the original that comes with Zen Cart):
includes\classes\order.php

16 May 2013, 6:38 PM
#1193
rongin avatar

rongin

Zen Follower

Join Date:
Feb 2009
Posts:
112
Plugin Contributions:
0

Re: DUAL Pricing v2

Hi I am tying to get multiple pricing on a product i.e. 5 for 35.88 each Retail is 49.000. So when the person log in with his pre set discount the minimun quaintiy will appear to buy or when he checks out the box will stop him and tell him minium is for 5. I have been playing with the attributes but I guess I don't know what I am doing any help will be greatly apprecaited:(
I am using Dual Pricing 2.1
ZenCart 1.5
Thanks Ron

17 May 2013, 3:22 PM
#1194
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: DUAL Pricing v2

You don't need Dual pricing module to set quantity discounts on your products: http://www.zen-cart.com/content.php?101-how-do-i-add-quantity-discounts-to-my-products

Dual Pricing allows you to change prices on a per-customer basis, so you can have multiple wholesale levels. Unless you need different pricing per customer, I suggest you use the Quantity Discount as described above.

18 May 2013, 11:06 PM
#1195
rooisnor avatar

rooisnor

Zen Follower

Join Date:
Jul 2008
Posts:
192
Plugin Contributions:
0

Re: DUAL Pricing v2

Chrome Orange:

Have a look at this post

http://www.zen-cart.com/forum/showpost.php?p=122893&postcount=65

make sure you properly comment your code or save a backup of the files you edit.

let me know.

I'm also looking for a solution! Seems to me the above link will have it but I don't have access to that forum! ...even if I'm logged it. Any help will be appreciated!

20 May 2013, 6:56 PM
#1196
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: DUAL Pricing v2

rooisnor, I am unclear on what you would like to do. I'm guessing based on reading some of the posts by wittymom/ChromeOrange that you would like to display Retail and Wholesale prices at the same time? This is addressed in the ReadMe file:


How do I change wording/display style?

If you want your wholesale customers to see BOTH retail and wholesale pricing (instead of only Wholesale pricing), then uncomment line #71 in this file:
\includes\templates\YOUR_TEMPLATE\templates\tpl_product_info_display.php

If you want to change wording in front of the prices, edit this file:
\includes\languages\english\YOUR_TEMPLATE\product_info.php

You can easily add the following three IDs to your CSS file and control the styles of your text:
#retail
#retailwhole
#whole

20 May 2013, 7:21 PM
#1197
rooisnor avatar

rooisnor

Zen Follower

Join Date:
Jul 2008
Posts:
192
Plugin Contributions:
0

Re: DUAL Pricing v2

jackie.taferner:

rooisnor, I am unclear on what you would like to do. I'm guessing based on reading some of the posts by wittymom/ChromeOrange that you would like to display Retail and Wholesale prices at the same time? This is addressed in the ReadMe file:

Yes, jackie! I tried the code changes but it is just not working for me! I don't see both prices as a guest or member. If the wholesale member is logged in, he/she is then able to see only the wholesale price.

20 May 2013, 7:43 PM
#1198
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: DUAL Pricing v2

Please post your code here so we can see what the issue may be. A link to your website will also be useful.

21 May 2013, 4:43 PM
#1200
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: DUAL Pricing v2

I see. These prices are included in the Attributes, not as a main price. This is why those changes don't affect you (they are for "main" pricing only). Showing both attribute prices is not currently a feature offered with Dual Pricing.

You might try editing the functions_prices.php file so both attribute prices will be shown (all "Dual Pricing" changes have been commented so they are clear and easy to find). If you are not so experienced with PHP, you may need to hire a developer to build this for you: https://www.odesk.com/o/profiles/browse/skill/zencart/#filter/?q=&qs=zencart,&c1[]=Web+Development&eng[]=4-stars?vt_cmp=zencart