News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Generic child variant radio

Started by Kuubs, November 21, 2018, 10:57:47 AM

Previous topic - Next topic

Kuubs

Hello,

Is it possible to have the generic child variant dropdown to display as a radio?

Else if that is not possible, is it possible to make another custom field which can display as a radio trigger the changes in the generic child variant dropdown (and maybe hide that dropdown from the user so it looks like that radio is the switch?)

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

Kuubs

Quote from: GJC Web Design on November 21, 2018, 16:06:29 PM
like this?

https://www.calligraphystore.it/test/it/pennini-a-punta-tronca-per-calligrafia/pennini-mitchell-per-calligrafia-dettagli.html

as far as I can remember it is just some minor restyling and choosing as radiolist in the custom field

Yeah exactly like that. I don't have the option to display it as a radio like I have with the String option in the custom field? Is that a bug or?

Studio 42


GJC Web Design

ah I see .. I used Multivariants (Type C) that do have a radio option

I see generic (Type A) don't

you could try in templates\xxx\html\com_virtuemart\sublayouts\customfield.php to use the same JHtml in A as in C to test if radios there are possible
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

Kuubs

#5
Quote from: GJC Web Design on November 21, 2018, 19:37:09 PM
ah I see .. I used Multivariants (Type C) that do have a radio option

I see generic (Type A) don't

you could try in templates\xxx\html\com_virtuemart\sublayouts\customfield.php to use the same JHtml in A as in C to test if radios there are possible

Awesome. Ok, is there a big difference in A and C because the eventual logic seems to be the same... Maybe i just switch to C.. Thanks for following up!

Quote from: Studio 42 on November 21, 2018, 18:34:09 PM
If you need a more advanced render and dont know PHP. See https://shop.st42.fr/en/products/product-child-variants.htm

Thanks if I cannot figure it out I go this route. Thanks for replying!

EDIT: yeah changing that customfield.php is way harder than I thought. I see if I can fix this with javascript and another radio list with the strings. I'll let everyone know if that works.


Honestly I really don't understand why the generic child variant doesn't have the radio list option but w/e

GJC Web Design

he he  ..   
QuoteA and C because the eventual logic seems to be the same

you can add me to the list of people that also don't understand what the difference between them is .. though I rarely get involved in this config stuff..

perhaps someone can educate us..?

i.e. case examples of why use one versa the other?
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