Shopper group prices

  • Posts: 154
  • Thank you received: 10
11 years 11 months ago #78516

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.

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 11 months ago #78543

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

$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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 11 years 11 months 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.047 seconds
Powered by Kunena Forum