Zen Cart Logo

DUAL Pricing v2

Views: 363,359

Results 621 to 640 of 1,504
26 Oct 2010, 10:10 AM
#621
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

DUAL Pricing v2

When I first started pricing by attributes I had the problem where the attributes prefix '+' doubled the price. I fixed this by following instructions here:

http://www.zen-cart.com/forum/showthread.php?t=115073

However when I install dual pricing this problem arises again. Has anyone any idea how to fix it? Also, where do I put the wholesale prices? I update my attributes using a system of spreadsheets in EZ Populate, does anyone know how this module may affect that?

28 Oct 2010, 1:58 PM
#622
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: DUAL Pricing v2

You just have to love the support you get from this site :censored:

29 Oct 2010, 1:41 PM
#623
drgr33n avatar

drgr33n

New Zenner

Join Date:
Oct 2010
Posts:
84
Plugin Contributions:
0

Re: DUAL Pricing v2

moesoap this is a very old module and the author may not even be active on this forum. I would suggest you hold your tongue because if a moderator see's that you may be banned and you won't get support full stop.

Just an update I've fixed attributes and updated all the files to 1.3.9g. This mod had some serious security flaws so if you have this mod installed on your site I'd suggest upgrading to my version lol.

Over the weekend I just want to add an additional feature for invoicing. Then I will upload the new version. :clap:

29 Oct 2010, 5:39 PM
#624
drgr33n avatar

drgr33n

New Zenner

Join Date:
Oct 2010
Posts:
84
Plugin Contributions:
0

Re: DUAL Pricing v2

Scrap that I'l sort the invoices out another time. I can't upload changes here on my 3g dongle so I've added a link to v1.7 below.

Changes I made are stated in my first post here and I've fixed the attributes shopping cart issue and updated all the files to 1.3.9.

I'll upload the file changes to the contribution page when I get a decent connection :D

Hope you like it !

http://rapidshare.com/files/427820987/dual_pricing_1.7.zip

30 Oct 2010, 1:55 PM
#625
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: DUAL Pricing v2

drgr33n:

I would suggest you hold your tongue because if a moderator see's that you may be banned and you won't get support full stop.

You can see my frustration, it's been nearly two weeks since I asked for help. I couldn't be the only person to encounter this particular problem with dual pricing.

Thanks for this btw, I'll give it a go. :bigups:

Moe.

31 Oct 2010, 1:21 PM
#626
drgr33n avatar

drgr33n

New Zenner

Join Date:
Oct 2010
Posts:
84
Plugin Contributions:
0

Re: DUAL Pricing v2

Ok my changes have been acepted and the new version is available to download .

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=166

I've not finished yet I've still got a couple of idea's in mind but ran out of time on this one :D So if anyone has any good idea's etc on how to improve this further but don't fancy the challenge of hacking it up yourself post em here and I'l see what I can do.

1 Nov 2010, 12:25 AM
#627
ragareb avatar

ragareb

New Zenner

Join Date:
Nov 2010
Posts:
5
Plugin Contributions:
0

Re: DUAL Pricing v2

drgr33n:

Scrap that I'l sort the invoices out another time. I can't upload changes here on my 3g dongle so I've added a link to v1.7 below.

Changes I made are stated in my first post here and I've fixed the attributes shopping cart issue and updated all the files to 1.3.9.

I'll upload the file changes to the contribution page when I get a decent connection :D

Hope you like it !

http://rapidshare.com/files/427820987/dual_pricing_1.7.zip

I installed dual pricing v1.7 updated by drgr33n using Winmerge onto my zencart v1.3.9h. Everything looks fine except that where I have products with "Specials" prices the special discounted price is shown instead the wholesale price. If a product does not have a special discount off the retail price then the wholesale price is correctly shown for the logged in customer. Any help in resolving this issue is appreciated. Thanks

1 Nov 2010, 9:31 AM
#628
drgr33n avatar

drgr33n

New Zenner

Join Date:
Oct 2010
Posts:
84
Plugin Contributions:
0

Re: DUAL Pricing v2

Ragareb:

I installed dual pricing v1.7 updated by drgr33n using Winmerge onto my zencart v1.3.9h. Everything looks fine except that where I have products with "Specials" prices the special discounted price is shown instead the wholesale price. If a product does not have a special discount off the retail price then the wholesale price is correctly shown for the logged in customer. Any help in resolving this issue is appreciated. Thanks

Specials was never included to this addon. And to add it would be another totally new feature. I will take a look and see what I can do. I've had to modify a couple of things because the cart total was always showing 0.

1 Nov 2010, 9:37 PM
#629
ragareb avatar

ragareb

New Zenner

Join Date:
Nov 2010
Posts:
5
Plugin Contributions:
0

Re: DUAL Pricing v2

drgr33n:

Specials was never included to this addon. And to add it would be another totally new feature. I will take a look and see what I can do. I've had to modify a couple of things because the cart total was always showing 0.

Thanks drgr33n I appreciate all you efforts.

2 Nov 2010, 7:09 PM
#630
brandon avatar

brandon

New Zenner

Join Date:
Mar 2005
Posts:
64
Plugin Contributions:
0

Re: DUAL Pricing v2

Thanks drgr33n I too appreciate all you efforts!
I am running on an up-to-date Linux LAMP system.
I installed and verified a fresh 1.3.9g with demo data.

I then installed dual_pricing__wholesale_pricing_1-7a.zip as follows:

a. hand altered the database using the alter stmts in install.sql.
Note one line is invalid:
ALTER TABLE products_discount_quantity ADD discount_price_w VARCHAR( 150 ) DEFAULT '0' AFTER discount_price_w;
since you cannot add a column after itself. I changed it to add after the last col in the table:
ALTER TABLE products_discount_quantity ADD discount_price_w VARCHAR( 150 ) DEFAULT '0' AFTER discount_price;
Is this a clue?
b. I then placed the two directories CONTROL(a new directory) and includes (overwriting existing files) into my zen root).

I see no changes at all.
I do not see a new text box under the email address box.
I do not see a place for wholesale price on any product.
No differences from pre-installation.

I am puzzled!

If I have missed some vital step, please point me to where in the README that step is documented.

2 Nov 2010, 7:12 PM
#631
drgr33n avatar

drgr33n

New Zenner

Join Date:
Oct 2010
Posts:
84
Plugin Contributions:
0

Re: DUAL Pricing v2

lol sorry control should be the admin directory. I will update it all when I've finished the mod.

Sorry I didn't realize I'd left it at control :smile:

2 Nov 2010, 7:19 PM
#632
brandon avatar

brandon

New Zenner

Join Date:
Mar 2005
Posts:
64
Plugin Contributions:
0

Re: DUAL Pricing v2

drgr33n:

lol sorry control should be the admin directory. I will update it all when I've finished the mod.

Sorry I didn't realize I'd left it at control :smile:

OK - I will move it's contents to admin!

2 Nov 2010, 7:22 PM
#633
brandon avatar

brandon

New Zenner

Join Date:
Mar 2005
Posts:
64
Plugin Contributions:
0

Re: DUAL Pricing v2

brandon:

OK - I will move it's contents to admin!

AHH - waaay more better!

shoulda realized that control was your name for admin.

should fix that sql error too.

zen has always been so easy to understand....

2 Nov 2010, 7:51 PM
#634
drgr33n avatar

drgr33n

New Zenner

Join Date:
Oct 2010
Posts:
84
Plugin Contributions:
0

Re: DUAL Pricing v2

tidying up the code and adding specials tonight ;) There are a couple of short falls with this mod like if you have discounts set the retail price displayed also gets displayed with the wholesale discount. It would be a major overall of this code to fix I'm afraid unless I just disable retail prices being displayed when a wholesale customer is logged in ? I will take a look at all this tonight.

2 Nov 2010, 7:56 PM
#635
brandon avatar

brandon

New Zenner

Join Date:
Mar 2005
Posts:
64
Plugin Contributions:
0

Re: DUAL Pricing v2

drgr33n:

tidying up the code and adding specials tonight ;) There are a couple of short falls with this mod like if you have discounts set the retail price displayed also gets displayed with the wholesale discount. It would be a major overall of this code to fix I'm afraid unless I just disable retail prices being displayed when a wholesale customer is logged in ? I will take a look at all this tonight.

The spirit of this mod would point to disabling retail when wholesale cust is logged in. That is for sure what my client wants. Basically he wants a customer to see "their" price. Period.

He actually wants to supress product display when the customer band has no price (so retail customers cannot see wholesale products, let alone wholesale prices.

I will probably just set the retail price band to some special value and hack at it at display time.

2 Nov 2010, 9:21 PM
#636
drgr33n avatar

drgr33n

New Zenner

Join Date:
Oct 2010
Posts:
84
Plugin Contributions:
0

Re: DUAL Pricing v2

There's another mod for that if you do a search on the contributions page for dual price the second one down is a add on for this hack to allow you to hide wholesale products. Maybe I can merge it into this one aswell ? I'm a bit pushed for time at the mo so might take me a few days to a week to complete these mods so be patient and I'l come up with the goods soon hehehe !

2 Nov 2010, 10:10 PM
#637
brandon avatar

brandon

New Zenner

Join Date:
Mar 2005
Posts:
64
Plugin Contributions:
0

Re: DUAL Pricing v2

drgr33n:

There's another mod for that if you do a search on the contributions page for dual price the second one down is a add on for this hack to allow you to hide wholesale products. Maybe I can merge it into this one aswell ? I'm a bit pushed for time at the mo so might take me a few days to a week to complete these mods so be patient and I'l come up with the goods soon hehehe !

Patient?? When has a receiver of the benefit of code ever been patient? Anything I don't understand is easy... :)

With how fragile the zen addon install precess is, I certainly vote for consolidation but it is your code.

I would offer to help but (1) I am under the gun and (2) adding folks to a project makes it take longer (Thanks Fred, we really owe you).

2 Nov 2010, 11:42 PM
#638
brandon avatar

brandon

New Zenner

Join Date:
Mar 2005
Posts:
64
Plugin Contributions:
0

Re: DUAL Pricing v2

I think I have what I need on pricing with your mod alone.

  1. Retail custs see only retail price.
  2. Wholesale custs see retail and wholesale.
    The other addon, which I installed after testing and verifying 1 and 2, has the further effect of allowing me to keep retail customers from seeing wholesale products.

Is this what you expected?
I like it.

I am not so sure the two addons should be combined though.

Cheers - BOS

11 Nov 2010, 1:02 AM
#639
brandon avatar

brandon

New Zenner

Join Date:
Mar 2005
Posts:
64
Plugin Contributions:
0

Re: DUAL Pricing v2

I have an issue with dual pricing and 1.3.9h

When I try to add an attribute value I get bounced to the admin home screen and no change is made to the item.

When I restore the admin/attributes_controller.php to pre-addon state, I do not get bounced and the attribute value gets added.

This suggests that the dual pricing version of attributes_controller.php is involved in the problem.

comments?

11 Nov 2010, 1:14 AM
#640
brandon avatar

brandon

New Zenner

Join Date:
Mar 2005
Posts:
64
Plugin Contributions:
0

Re: DUAL Pricing v2

btw, i am not great at apache logs but i think i am getting a 302 error...