New CheckBox not working
Posted: Wed Nov 04, 2015 4:55 pm
Hi, I need a new checkbox to put in the checkout template threecolumn_special_blue_css3, it is a single selection checkbox that the customers can use to require the items packed in a gift package. To do that I added a new checkbox field in Virtuemart Shopper Field and I gave to it the name "confezione_regalo", then I checked "confezione_regalo" also in OPC Shopper Field tab on the "Custom OPC rendering" column, all the other field columns are unchecked.
I also added the following code to the template files onepage.logged.tpl.php and onepage.unlogged.tpl.php
As the result now I can see this checkbox in the checkout template, but if I complete the order with the checkbox marked, the order details show always unchecked...
Can you please help to fix it?
Best regards
Alessandro
I also added the following code to the template files onepage.logged.tpl.php and onepage.unlogged.tpl.php
- Code: Select all
<div class="right_label"><label for="confezione_regalo">Confezionare in carta regalo (Gratis)
<input value="1" type="checkbox" id="confezione_regalo" name="confezione_regalo">
</label>
</div>
As the result now I can see this checkbox in the checkout template, but if I complete the order with the checkbox marked, the order details show always unchecked...
Can you please help to fix it?
Best regards
Alessandro