Answer the question
In order to leave comments, you need to log in
How to make a selection on Simpla CMS options from an array of additional parameters?
There are a lot of improvements (2 parameters for the variant or 3), but here it was necessary to make much more parameters for the variant.
What was done, a table was created to create additional options.
Accordingly, these additional options are selectively added when editing a product.
For example:
Create additional options:
Weight:
Height:
Length:
Width:
Next, go to the product card and link additional options to the product. All OK.
We fill in the options and additional options (parameters) and then the output of the additional ones themselves. options.
{foreach $product->dopvariant as $dv}
<label>{$dv->name}</label>
<select id="{$dv->id}" name="{$dv->id}">
{foreach $product->variants as $v}
<option value="{$v->id}">{$v->dopvariant.{$dv->id}}</option>
{/foreach}
{/foreach}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question