toalka Posted April 12, 2016 Share Posted April 12, 2016 Hi, I need to add radio which change, will lead to the change in total price. I add this code in order-detail.tpl: <tr class="cart_disc"> <td colspan="1" class="text-right"> <input id="discount_option_1_0" class="discount_option_radio" type="radio" name="discount_option" data-key="1" data-id_address="1" value="1" checked="checked"> </td> <td colspan="2" class="text-right">Pago a 30 dias mediante transferencia. Dto -2%</td> <td colspan="2" class="price" id="disc1">-0,00 €</td> </tr> <tr class="cart_disc"> <td colspan="1" class="text-right"> <input id="discount_option_2_1" class="discount_option_radio" type="radio" name="discount_option" data-key="2" data-id_address="2" value="2"> </td> <td colspan="2" class="text-right">Pronto pago antes de la salida de la mercaderia Dto. -5%</td> <td colspan="2" class="price" id="disc2">-0,00 €</td> </tr> <tr class="cart_disc"> <td colspan="1" class="text-right"> <input id="discount_option_3_2" class="discount_option_radio" type="radio" name="discount_option" data-key="3" data-id_address="3" value="3"> </td> <td colspan="2" class="text-right">Pago mediante Tarjeta de credito. Dto. -2%</td> <td colspan="2" class="price" id="disc3">-0,00 €</td> </tr> <tr class="cart_disc"> <td colspan="1" class="text-right"> <input id="discount_option_4_3" class="discount_option_radio" type="radio" name="discount_option" data-key="4" data-id_address="4" value="4"> </td> <td colspan="2" class="text-right">Pago a mas de 30 dias, NO aplicable ningun Dto.</td> <td colspan="2" class="price" id="disc4">0,00 €</td> </tr> How to connect it with Order.php to make it works? Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now