Ecommerce base with radiobuttons
Ecommerce base with radiobuttons
Hi! How I can make attributes view as table with radiobuttons? Not as dropdownlist.
Re: Ecommerce base with radiobuttons
That is a short description of your problem.
Could you be somewhat more specific?
- Frontpage/backend
- attributes? do you mean 'options'
- do you mean options when adding to cart?
- what relevant modules + versions do you have installed?
Maybe a screenshot or link to page where you want to use it.
Thanks.
Could you be somewhat more specific?
- Frontpage/backend
- attributes? do you mean 'options'
- do you mean options when adding to cart?
- what relevant modules + versions do you have installed?
Maybe a screenshot or link to page where you want to use it.
Thanks.
Re: Ecommerce base with radiobuttons
I have some attributes for one product with different price for different volume, now user select volume and price from dropdown list (see the screen), but I want make table with lines and radiobutton as
volume1 price1 code1 (*)
volume2 price2 code2 ()
volume3 price3 code3 ()
... etc
volume1 price1 code1 (*)
volume2 price2 code2 ()
volume3 price3 code3 ()
... etc
Re: Ecommerce base with radiobuttons
I guess it comes from AddToCart template of Cart2 module.
Have a look at the contents of the $options variable. E.g.:
Have a look at the source code of the webpage and look for the options. Then you can see whether you can build your own form element. Note that the name of that element should be {$actionid}cart_options
Code: Select all
{* we have multiple options *}
<select name="{$actionid}cart_options">
{html_options options=$options}
</select>Code: Select all
{* we have multiple options *}
<!-- {$options|print_r} -->
<select name="{$actionid}cart_options">
{html_options options=$options}
</select>Re: Ecommerce base with radiobuttons
This should do the trick:
I'm not sure if there is a selected value that you could use to have a preset, but if there is one all the better.
References:
Code: Select all
{html_radios name="{$actionid}cart_options" options=$options separator='<br />'}References:
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!


