OK - I will move it's contents to admin!
Printable View
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.
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).
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
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?
btw, i am not great at apache logs but i think i am getting a 302 error...
i have moved stuff in control to my admin folder, but still get the error when install sql:
1054 Unknown column 'discount_price_w' in 'products_discount_quantity'
in:
[ALTER TABLE products_discount_quantity ADD discount_price_w VARCHAR( 150 ) DEFAULT '0' AFTER discount_price_w;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.