Author Topic: Can't show multiple prices for multiple shopper groups  (Read 1128 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: 9039
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
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: 2319
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
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.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9039
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
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

SunPoweredProductions

  • Beginner
  • *
  • Posts: 3
Re: Can't show multiple prices for multiple shopper groups
« Reply #5 on: June 14, 2019, 01:19:57 am »
As with anything no size fits all .. to my knowledge this is the first time anyone has asked for this functionality...

I'm on page 2 of 92 for the search "Shopper Group" and I've seen about 5 requests for this feature dating back to 2015.
 
Do u know of any other cart that can as standard show prices from multiple shopper groups? I doubt it.

As far as I can tell, both WooCommerce and Shopify have ways to display Retail and Wholesale prices together.

The idea is that you show both prices to give the default customer an incentive to sign up or otherwise qualify for a membership to get better pricing.  I think it is a feature worth considering.  Thank you for the advice on a custom method to display both prices.

diri

  • Jr. Member
  • **
  • Posts: 68
  • VirtueMart Version: most recent dev version (trunk)
Re: Can't show multiple prices for multiple shopper groups
« Reply #6 on: June 14, 2019, 06:39:30 am »
hm. Sorry but, I've never seen wholesale prices when my status is B2C customer.

Showing wholesales prices takes merchant almost any chance to achieve reasonable prices. IMNSHO.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2943
  • VirtueMart Version: 3.6.0
Re: Can't show multiple prices for multiple shopper groups
« Reply #7 on: June 14, 2019, 10:12:02 am »
"The idea is that you show both prices to give the default customer an incentive to sign up or otherwise qualify for a membership to get better pricing.  I think it is a feature worth considering.  Thank you for the advice on a custom method to display both prices. "

You can change the templates and code to do what you want.

IMHO Showing a lower price to a guest shopper is an incentive for them to go to another ecom shop - rather than baiting them to sign up.

But - this is my personal opinion and it is possible for you to code VM to do what you require.

I doubt this will be top of the list for inclusion in core
regards
A

Joomla 3.9.8
php 7.1

SunPoweredProductions

  • Beginner
  • *
  • Posts: 3
Re: Can't show multiple prices for multiple shopper groups
« Reply #8 on: June 14, 2019, 22:25:45 pm »
hm. Sorry but, I've never seen wholesale prices when my status is B2C customer.

Showing wholesales prices takes merchant almost any chance to achieve reasonable prices. IMNSHO.

Pardon the nomenclature. By "Wholesale", I don't mean the actual wholesale price at which the products are acquired. Of course a merchant would not want to show their customers what their markup is. I work with a supplier who offers "Retail" prices to guest customers and "Wholesale" prices to customers who pay a membership fee. My apologies for the confusion.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2943
  • VirtueMart Version: 3.6.0
Re: Can't show multiple prices for multiple shopper groups
« Reply #9 on: June 15, 2019, 10:17:27 am »
Ah - that is a very different proposition and similar to Amazon Prime offering.

As GJC stated - this would require a small amount of bespoke coding to achieve
regards
A

Joomla 3.9.8
php 7.1