Author Topic: Can't show multiple prices for multiple shopper groups  (Read 291 times)

themartinbailey

  • Beginner
  • *
  • Posts: 2
  • A beginner
Can't show multiple prices for multiple shopper groups
« on: September 07, 2018, 21:22:15 pm »
I'm creating a website where 'Public' users will be charged default prices, and 'Registered' users will be charged a 'Members' shopper group price.

I want it so that whoever logs in they'll see both standard price AND the members price. I've played around with this for a few hours now, and I seem to be able to get one or other to display, but not both. I've tried creating child products, but found this confusing as you end up having two items with the same product details in your list.

If anyone can point me in the right direction that'd be appreciated.

Am using VM 3.2.14 on Joomla 3.8.12.

Thanks in advance!

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8433
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Can't show multiple prices for multiple shopper groups
« Reply #1 on: September 07, 2018, 22:38:20 pm »
Out of the box I doubt it

are the prices a standard discount? e.g. - 30%.. then u could just do it in the display

otherwise I guess you have to do a DB fetch or the function  loadProductPrices($productId,$virtuemart_shoppergroup_ids,$front) or function getRawProductPrices(&$product,$quantity,$virtuemart_shoppergroup_ids,$front,$withParent=0)
and see what works best
but if u have taxes, discounts etc you may have problems
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

themartinbailey

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: Can't show multiple prices for multiple shopper groups
« Reply #2 on: September 08, 2018, 17:37:21 pm »
Thanks for the quickly reply.

There's no issue with taxes. They display/sell everything including tax, and delivery is free within mainland UK, so that's not an issue either...

Oh well - just have to look for something else. It's a shame, as I've looked at Virtuemart several times over the years, and I've always come unstuck on something that seems relatively basic.

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1757
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Can't show multiple prices for multiple shopper groups
« Reply #3 on: September 08, 2018, 18:55:12 pm »
Calling this basic is maybe to go a bit to far. Showing public and maybe logged in prices is probably not so hard to create, but soon there will be other shoppergroups and should these prices also be shown or not ?
As GJC said using these functions in a template override could be used to find out the prices for another shopper group (guest_users) and the displaying it before displayong the actual prices belonging to your shoppergroup.
Not logged in user display their not logged in price and have to search for another specified user group, (logged_in_users) and then display the logged in prices. This assumes that the logged in users all will
belong to the same shopper group.

Not logged in users can not know of any other groups, what group should I pick for the comparison ? You have to decide what to use, in this case logged _in_users.

Logged in users know of course their own user group, but this should be exactly the same that is used for comparison when a user is not logged in, the logged _in_users, user group.

This could be a fairly easy task if you limit yourself to two usergroups used for this prupose. Otherwise it could get very complex when allowing multiple user groups.

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8433
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Can't show multiple prices for multiple shopper groups
« Reply #4 on: September 08, 2018, 19:57:43 pm »
As with anything no size fits all .. to my knowledge this is the first time anyone has asked for this functionality...
I can think of some other "things" that would be nice to have in VM but if only used by a tiny minority then other innovations will take precedence.

Do u know of any other cart that can as standard show prices from multiple shopper groups? I doubt it.

But as I said it can almost certainly be coded as a template over ride - the functions are there: if you haven't the coding skill then there are plenty of members here who have and charge reasonable rates to do such tasks incl. myself.
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation