News:

Support the VirtueMart project and become a member

Main Menu

Hot to get shoppergroup info? (administration->Order page)

Started by EvanGR, November 11, 2022, 15:25:36 PM

Previous topic - Next topic

EvanGR

Hello,

I need to get (at least) the shoppergroup id(s) for the user, in the Order page.
If I could get the complete shoppergroup data (name etc), would be even better!
Any help appreciated!

Thanks

pinochico

you know user_id, then call model for shoppergroups and put inside user_id.
Or?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

EvanGR

Yes, user id is known. I am looking at the shoppergroup model, what is the method to get a user's assigned shopper groups by user id?
Thanks!

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

EvanGR

This method expects the user id, not the shopper group id? Correct?

pinochico

I think expect user_id and return shoppergroup_id.

You try call and debug in your view?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products