Skip to main content

Shopper group prices

14 years 2 days ago #78516 by anypc
Shopper group prices was created by anypc
Hi!

Quick question:

I have a product 'Wellness oil' This sells in 50ml 100ml and 150ml.
With characteristics I set the different amounts with the correct price. This works great!

50ml - €5
100ml - €8
150 ml - €12

Now, I also sell to resellers, they have a shoppergroup 'reseller'.

When I add the price for the group in characteristics that works great! I added:

50ml - €4
100ml - €6
150ml - €8

The problem is, that if my reseller logs in het sees both the customer price ánd the reseller price. I would like it to just show the reseller price.
The best case scenario would be that the reseller only sees the price of the reseller excluding the tax rate. I don't know if that's possible but that would be even better.
-> Customer sees €5 (inc) and Reseller sees €3.31 (ex).

I already got it to work by using another shoppergroup called 'customers' and adding the default customer price into that group, but in this configuration the people that aren't logged in can't see the price :(

Another quick question, is it possible to add a new user to the group 'customers' automaticcaly? Not important per se, but it would be nice..

Any help would be greatly appreciated!

Proud of my website www.hetcomputerwinkeltje.nl

Currently just running catalog mode, but hope to go live soon again :)

Please Log in or Create an account to join the conversation.

14 years 2 days ago - 14 years 2 days ago #78543 by Jerome
Replied by Jerome on topic Shopper group prices
Hi,

It can be done with a view modification.
The view "product | listing_price" is used by other views to display prices.

Prices for "all" are always loaded because everybody could access to them.
So, you want to hide them, if you have some specific prices.

You can do something similar than I wrote here:
www.hikashop.com/forum/2-general-talk-ab...y.html?lang=en#78541

Except that, you would not display specific "<span>" but you would skip the price
Code:
$specialPrice = false; foreach($this->row->prices as $price) { if($price->price_access != 'all') { $specialPrice = true; break; } } foreach($this->row->prices as $price) { if($specialPrice && $price->price_access == 'all') { continue; } if($first)$first=false;

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Last edit: 14 years 2 days ago by Jerome.
The following user(s) said Thank You: anypc

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum