Zen Cart Logo

DUAL Pricing v2

Views: 363,323

Results 1,161 to 1,180 of 1,504
16 Feb 2013, 1:46 AM
#1161
jasontomczak avatar

jasontomczak

New Zenner

Join Date:
Feb 2013
Posts:
11
Plugin Contributions:
0

DUAL Pricing v2

jackie.taferner:

@jasontomczak,
That sounds like a bug that existed in earlier versions. Try downloading the latest version & overwrite the files on your server with the latest files. http://www.zen-cart.com/downloads.php?do=file&id=74

Which php file in the DPv2 set controls how the cart displays pricing?

16 Feb 2013, 6:53 PM
#1162
jasontomczak avatar

jasontomczak

New Zenner

Join Date:
Feb 2013
Posts:
11
Plugin Contributions:
0

Re: DUAL Pricing v2

jackie.taferner:

@jasontomczak,
That sounds like a bug that existed in earlier versions. Try downloading the latest version & overwrite the files on your server with the latest files. http://www.zen-cart.com/downloads.php?do=file&id=74

Next-morning update: I tried an entirely new installation of ZenCart 1.5.1, new MySQL database, new upload of Dual Pricing 2.1 plugin, new product and sample customer. Wholesale price is shown on the product page, but not in the cart. Is it possible one of the php files in the plugin isn't working right?

16 Feb 2013, 9:00 PM
#1163
jasontomczak avatar

jasontomczak

New Zenner

Join Date:
Feb 2013
Posts:
11
Plugin Contributions:
0

Re: DUAL Pricing v2

jackie.taferner:

@jasontomczak,
That sounds like a bug that existed in earlier versions. Try downloading the latest version & overwrite the files on your server with the latest files. http://www.zen-cart.com/downloads.php?do=file&id=74

Something tells me this isn't quite right...
Attachment 11957

It's like that even after a clean install of ZC 1.5.1 and DPv2.

22 Feb 2013, 9:11 PM
#1164
rafi_l avatar

rafi_l

New Zenner

Join Date:
Sep 2012
Posts:
2
Plugin Contributions:
0

Re: DUAL Pricing v2

Simple question here I hope. (First I want to say I am a ZC newb so bare with me) I have read /skimmed through the majority of this thread and I hope I posting in the right spot. Everyone seems to talk about "wholesale" usage for this plugin but the "Dual Pricing" has me confused into thinking its what i need - which is nothing regarding wholesale for my purposes. ( I am going to over simplify to convey my issue) I would like two prices for the same widget, one for plain white widget and one for colored black widget. Or in other words, what I would like to do is the following example: I have a widgets I am selling but I want a second price if the widget is, lets say "painted". Which would obviously cost more. I want every customer so see both prices and choose if they want their widgets "painted", and the painted price is going to be more expensive obviously. Is this right plug-in for me? I figured Group Pricing is clearly not for me as I don't need to modify every customer for various tiers.

OR Can I do this within ZC natively without the dualpricing plugin? If so I apologize for posting here but I have tried searching the forums and maybe my nomenclature verbiage is not accurate for what I am trying to do. Any advice is greatly appreciated.

Kind Regards,
Rafi

22 Feb 2013, 9:48 PM
#1165
rafi_l avatar

rafi_l

New Zenner

Join Date:
Sep 2012
Posts:
2
Plugin Contributions:
0

Re: DUAL Pricing v2

Rafi_l:

Simple question here I hope. (First I want to say I am a ZC newb so bare with me) I have read /skimmed through the majority of this thread and I hope I posting in the right spot. Everyone seems to talk about "wholesale" usage for this plugin but the "Dual Pricing" has me confused into thinking its what i need - which is nothing regarding wholesale for my purposes. ( I am going to over simplify to convey my issue) I would like two prices for the same widget, one for plain white widget and one for colored black widget. Or in other words, what I would like to do is the following example: I have a widgets I am selling but I want a second price if the widget is, lets say "painted". Which would obviously cost more. I want every customer so see both prices and choose if they want their widgets "painted", and the painted price is going to be more expensive obviously. Is this right plug-in for me? I figured Group Pricing is clearly not for me as I don't need to modify every customer for various tiers.

OR Can I do this within ZC natively without the dualpricing plugin? If so I apologize for posting here but I have tried searching the forums and maybe my nomenclature verbiage is not accurate for what I am trying to do. Any advice is greatly appreciated.

Kind Regards,
Rafi

I think I finally found my answer...I just need to get more familiar with product attributes.....

22 Feb 2013, 10:00 PM
#1166
johnnycopilot avatar

johnnycopilot

Zen Follower

Join Date:
Mar 2012
Posts:
325
Plugin Contributions:
0

Re: DUAL Pricing v2

@Rafi_l ,, I am fairly new to Zen Cart as well, so don't necessarily take my word for it. But Product Attributes will do exactly that. That is what they are for. I know this because I use them on a few of my products. Setting them up is a little tricky, but once you have a particular attribute 'set up', it's not that difficult to add that attribute to a product. I also use Dual Pricing on a different website that I have for retail and Wholesale (wholesale customers are a completely different list of customers from retail), and I don't believe that dual pricing is what you need. Just use attributes.

27 Feb 2013, 9:13 PM
#1168
idc1 avatar

idc1

Zen Follower

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

Re: DUAL Pricing v2

I'm using DP1.7 in conjunction with ZC1.3.9h. In includes/modules/products_quantity_discounts.php lies:

  case (CUSTOMERS_APPROVAL_AUTHORIZATION != '0' and $_SESSION['customer_id'] == ''):
  // customer must be logged in to browse
  $zc_hidden_discounts_on = true;
  $zc_hidden_discounts_text = TEXT_AUTHORIZATION_PENDING_PRICE;
   break;

When a web visitor is not logged in and they are viewing products with quantity discounts, the above code results in the table populating "quantity discounts unavailable" as well as "price unavailable".

I would like for it to just show the normal MSRP. The closest I have come to this is the below and 1)it doesn't format the price correctly, 2)It still displays in the table layout which I can live with but prefer it to just look as those items without discounts, 3)this may not even be the best approach.

  case (CUSTOMERS_APPROVAL_AUTHORIZATION != '0' and $_SESSION['customer_id'] == ''):
   // customer must be logged in to browse
  $zc_hidden_discounts_on = true;
  $zc_hidden_discounts_text = zen_get_products_base_price($products_id_current);
  break;

Any thoughts?

6 Mar 2013, 3:44 PM
#1169
jackie_taferner avatar

jackie_taferner

Totally Zenned

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

Re: DUAL Pricing v2

idc1, if you would like to display the regular price and not the table, then there should be no need to change the code. It should already be showing up at the top of the product page (where it normally does).

If you just want to remove the text "Price Unavailable" or "Quantity Discounts Unavailable", then do a search for that text under Tools > Developers Tool Kit. Scroll to the bottom and enter those keywords in the last search box, and select Catalog to find out which file needs to be changed. Then you can just change that text to a space so it will disappear.

Make sure your Customer Shop Status is set to "Not Required"

Customer Shop Status - View Shop and Prices
(Admin - Catalog)
Set whether the customer must be approved to shop. If you wish customers to login to see prices, it is recommended that you use option 2 so that search engine spiders can index your pages.
Options are:
0 = Not required
1 = Must login to browse
2 = May browse but no prices unless logged in
3 = Showroom Only
Default: 0

8 Mar 2013, 7:51 PM
#1170
idc1 avatar

idc1

Zen Follower

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

Re: DUAL Pricing v2

Thanks for the input Jackie. I am not trying to change or remove the text. I am trying to get the MSRP to show.

I have these settings

customer shop status - view and shop prices.........0
customer authorization status - authorization pending........3 (admin recommended using 2 or 3 in which option 3 fit the needs better.)

The code I mentioned in my previous post seemed to pull the correct information, but it formatted it as 39.9900 instead of $39.99

8 Mar 2013, 8:07 PM
#1171
jackie_taferner avatar

jackie_taferner

Totally Zenned

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

Re: DUAL Pricing v2

Hmm, the Retail MSRP price should already be displayed right underneath the Product title. If you wanted to show the price twice, you could copy and paste the price block located in the tpl_product_info_display.php template. Perhaps a visual would help me understand better; can you provide a link to your website?

8 Mar 2013, 9:49 PM
#1172
idc1 avatar

idc1

Zen Follower

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

Re: DUAL Pricing v2

jackie.taferner:

Hmm, the Retail MSRP price should already be displayed right underneath the Product title. If you wanted to show the price twice, you could copy and paste the price block located in the tpl_product_info_display.php template. Perhaps a visual would help me understand better; can you provide a link to your website?

No problem as I completely understand needing the visual. Please keep in mind this is only a problem for items with qty discounts.

http: // shop DOT cosmoimports DOT com/index.php?main_page=index&cPath=1080

The link also reflects the code I pasted a couple posts back.

11 Mar 2013, 9:55 PM
#1173
jackie_taferner avatar

jackie_taferner

Totally Zenned

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

Re: DUAL Pricing v2

Ok, thanks for the link. Do you have any quantity discounts set for your Retail customers? If it is blank, then they wouldn't show up. But if you at least have the first level of discounts at a Retail price, then I think they would show up.

19 Mar 2013, 12:04 PM
#1174
pietpetoors avatar

pietpetoors

Zen Follower

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

Re: DUAL Pricing v2

I see when a client who is on the wholesale pricing checks out, the system only adds VAT to the postage but it does not add VAT to the product price.
I have two accounts, one where the dual pricing is set to 0 and one with 1
The 0 account ads VAT to product and postage but the 1 account only ads VAT to the postage
Where can i fix this?

19 Mar 2013, 2:25 PM
#1175
pietpetoors avatar

pietpetoors

Zen Follower

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

Re: DUAL Pricing v2

I see when a client who is on the wholesale pricing checks out, the system messes up the tax completely
It show on the invoice zero tax (but tax is set on 14%) then even though it shows zero tax it adds the tax to the product price BUT in the final breakdown only shows tax on the shipment and not the product. But the grand total is correct with tax added.
If I log in with a user who is on the normal pricing then it calculates and displays everything correctly.
I use Zen 1.5.1 and Dual Pricing 2.1
See the two screen shots below:
Attachment 12206
and
Attachment 12207

19 Mar 2013, 5:11 PM
#1176
jackie_taferner avatar

jackie_taferner

Totally Zenned

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

Re: DUAL Pricing v2

Hi piepetoors,
The module is built not to charge any tax to wholesale customers, since those distributors would then charge the sales tax to their customers (that's how it works in the US). If you still need to charge VAT to your wholesalers that will require customization to the code. I think you'd need to edit includes/functions/functions_prices.php (find the places in the code that mention taxes, and all Dual Pricing modifications are commented as well).

19 Mar 2013, 7:24 PM
#1177
pietpetoors avatar

pietpetoors

Zen Follower

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

Re: DUAL Pricing v2

If you look at the first image above you will see that it did in fact add the tax but it does not show it. Look at the Sub Total amount, it have 14% tax added, but it does not show in the breakdown
It was working correctly with the previous version of Dual Pricing, this happened after I upgraded to 2.1

19 Mar 2013, 7:30 PM
#1178
pietpetoors avatar

pietpetoors

Zen Follower

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

Re: DUAL Pricing v2

I think you'd need to edit includes/functions/functions_prices.php
It is not that file. I just loaded the functions_prices.php of version 2.0 and it still does the same

22 Mar 2013, 12:14 AM
#1179
jackie_taferner avatar

jackie_taferner

Totally Zenned

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

Re: DUAL Pricing v2

Ok, try reverting the includes/orders.php file to your original backup. Or, if you want to make modifications to the tax function, just search for "Dual pricing" in that file, and all the changes should be commented so you can see where taxes are affected.

26 Mar 2013, 12:19 PM
#1180
harri avatar

harri

New Zenner

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

Re: DUAL Pricing v2

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 :)