Zen Cart Logo
Forums / All Other Contributions/Addons / Dual Pricing Version 2

Dual Pricing Version 2

Locked

Views: 25,436

Results 1 to 20 of 32
This thread is locked. New replies are disabled.
15 Apr 2006, 1:24 PM
#1
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Dual Pricing Version 2

Finally sorted it

amazing how quick things get done when the client opens his wallet :)

Anyway

http://www.chrome-orange.co.uk/contrib/dp.zip

this is based on my original dual pricing 1.5 so if anyone else has made any changes I have not incorporated them.

There is a text file with the necessary DB changes in there but this is a new installation NOT an upgrade.

Backup before you add anythng to your database or overwrite your files.

If you are upgrading form a previous version then you need to change the wholesalr price to varchar 150 and the options wholesale price to varchar 150.

that's it really.

I have tested it in my test shop which is 1.2.6 i think.

The 1.3 version is due on Sunday or Monday. Still tweeking the shopping cart part.

Andy

15 Apr 2006, 10:25 PM
#3
marknew avatar

marknew

Zen Follower

Join Date:
Oct 2005
Posts:
274
Plugin Contributions:
0

Re: Dual Pricing Version 2

This mod just gets better, thanks Chrome Orange. Any chance of adding a way to hide some wholesale products from retail customers?
Mark.

16 Apr 2006, 10:44 AM
#4
xingxing avatar

xingxing

New Zenner

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
45
Plugin Contributions:
0

Re: Dual Pricing Version 2

Chrome Orange : Thanks! I installed this mod. and it works. Your new mod. can input many wholesale price level! Great! ::tup
However, the customers.php has a problem. All the fields value are lost when try to modify the customer wholesale level. I have used WinMerge to compare the zencart 1.3 customers.php with yours. Now it is fine!
Again, thank you for your mod. ::tup

16 Apr 2006, 4:51 PM
#5
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: Dual Pricing Version 2

hi

can I have a look at your customers.php file please

[email protected]

thanks

17 Apr 2006, 8:08 AM
#6
xingxing avatar

xingxing

New Zenner

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
45
Plugin Contributions:
0

Re: Dual Pricing Version 2

Yes! I will email my customers.php to you.
Thank you!

17 Apr 2006, 11:05 AM
#7
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: Dual Pricing Version 2

xingxing:

Yes! I will email my customers.php to you.
Thank you!
thank you

18 Apr 2006, 3:14 AM
#8
tuffy avatar

tuffy

New Zenner

Join Date:
Apr 2006
Posts:
20
Plugin Contributions:
0

Re: Dual Pricing Version 2

awesome mod, although I installed and am getting errors in numerous places...

I installed this on v 1.3 with no other modifications

first when I go to customers it brings up 5 errors before it lists the customers..the errors are as follows:

Warning: array_merge() [function.array-merge]: Argument #4 is not an array in /home/dbrcc/public_html/catalog/admin/customers.php on line 1028

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/dbrcc/public_html/catalog/admin/customers.php on line 1030

Warning: array_merge() [function.array-merge]: Argument #3 is not an array in /home/dbrcc/public_html/catalog/admin/customers.php on line 1030

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/dbrcc/public_html/catalog/admin/includes/classes/object_info.php on line 29

Warning: Variable passed to each() is not an array or object in /home/dbrcc/public_html/catalog/admin/includes/classes/object_info.php on line 30

then, when you click to edit a customer...at the very top of zencart it gives these errors:

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/dbrcc/public_html/catalog/admin/includes/classes/object_info.php on line 29

Warning: Variable passed to each() is not an array or object in /home/dbrcc/public_html/catalog/admin/includes/classes/object_info.php on line 30

any help would be appreicated

18 Apr 2006, 7:43 AM
#9
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: Dual Pricing Version 2

I've added the customers file from xingxing (thanks for that :) ) to the download

give that a go.

19 Apr 2006, 2:09 PM
#10
islandnewbie avatar

islandnewbie

New Zenner

Join Date:
May 2005
Posts:
24
Plugin Contributions:
0

Re: Dual Pricing Version 2

Hi

Nice mode, really like the option of multiple wholesale pricing!!!

I am having one problem

Our shop uses alot of priced attributes (dropdowns) mainly per product. When viewing a specific product info, the attribute dropdown is there, but all prices are $0.00. However, when you add an item to the cart, the correct priced attribute shows, checkout seems to be working fine.

Thanks again,

Islandnewbie

19 Apr 2006, 2:31 PM
#11
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: Dual Pricing Version 2

Islandnewbie:

Hi

Nice mode, really like the option of multiple wholesale pricing!!!

I am having one problem

Our shop uses alot of priced attributes (dropdowns) mainly per product. When viewing a specific product info, the attribute dropdown is there, but all prices are $0.00. However, when you add an item to the cart, the correct priced attribute shows, checkout seems to be working fine.

Thanks again,

Islandnewbie
which version of the shop are you using?

19 Apr 2006, 2:36 PM
#12
islandnewbie avatar

islandnewbie

New Zenner

Join Date:
May 2005
Posts:
24
Plugin Contributions:
0

Re: Dual Pricing Version 2

thanks for the quick response.

I am using v1.3

On my test site, here is a link to one of the products. You can see the price is missing, but add it to the cart, it is there

http://buckinghamservices.net/wbhcart130/i...&products_id=56

Thanks again

IslandNewbie

19 Apr 2006, 10:38 PM
#13
jaeca avatar

jaeca

New Zenner

Join Date:
Apr 2006
Location:
Toronto
Posts:
57
Plugin Contributions:
0

Re: Dual Pricing Version 2

Hey Chrome Orange...

I know this might be a lot of trouble to you...

but is it possible to do like a dual "product description"

that way, the wholesalers can see a message that normal consumers cant?

this will be good for high volume purchasing, etc.

thanks!

21 Apr 2006, 8:05 AM
#14
islandnewbie avatar

islandnewbie

New Zenner

Join Date:
May 2005
Posts:
24
Plugin Contributions:
0

Re: Dual Pricing Version 2

Hi Chrome Orange

I know you are busy, but wanted to make sure you recieved my answer to your question.

Islandnewbie

[thanks for the quick response.

I am using v1.3

On my test site, here is a link to one of the products. You can see the price is missing, but add it to the cart, it is there

http://buckinghamservices.net/wbhcart130/i...&products_id=56

Thanks again

IslandNewbie]

21 Apr 2006, 8:12 AM
#15
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: Dual Pricing Version 2

I did, yes

will be looking into that later, hopefully, certainly over the weekend

Andy

25 Apr 2006, 8:44 PM
#16
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: Dual Pricing Version 2

FOUND IT!

ok

look for

$options_values_price = $product_att_query->fields['options_values_price'];

and replace with

$options_values_price = $pre_selected->fields['options_values_price'];

its near the bottom, approx line 1195 in functions_prices.php

25 Apr 2006, 9:04 PM
#17
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: Dual Pricing Version 2

downloads updated

26 Apr 2006, 7:03 AM
#18
islandnewbie avatar

islandnewbie

New Zenner

Join Date:
May 2005
Posts:
24
Plugin Contributions:
0

Re: Dual Pricing Version 2

Thanks Chrome Orange

The fix worked fine.....pricing is now showing in the product field for priced attributes.

Love the module....thanks for sharing it with the forum....

Islandnewbie

:D

26 Apr 2006, 7:02 PM
#19
paulinenmu avatar

paulinenmu

New Zenner

Join Date:
Sep 2005
Posts:
23
Plugin Contributions:
0

Re: Dual Pricing Version 2

Hello, this mod looks like it is very close to accomplishing what I'm looking to do.

Is there a way to add it so only specific customers have access to certain products at wholesale pricing? Like maybe an easy admin page where you can access a customer, and check off which products and/or categories that they can purchase at wholesale.

IE. Bob Smith can buy pillows and bed sheets at wholesale, but Frank Jones can only buy bed sheets and clocks at wholesale.

Would this be terribly difficult to add in? I'd be willing to even fund some of the development.

26 Apr 2006, 8:53 PM
#20
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: Dual Pricing Version 2

PaulineNMU:

Hello, this mod looks like it is very close to accomplishing what I'm looking to do.

Is there a way to add it so only specific customers have access to certain products at wholesale pricing? Like maybe an easy admin page where you can access a customer, and check off which products and/or categories that they can purchase at wholesale.

IE. Bob Smith can buy pillows and bed sheets at wholesale, but Frank Jones can only buy bed sheets and clocks at wholesale.

Would this be terribly difficult to add in? I'd be willing to even fund some of the development.
how many customers?