twocheckout.twig (2000B)
1 <form action="{{ action }}" method="post"> 2 <input type="hidden" name="sid" value="{{ sid }}" /> 3 <input type="hidden" name="total" value="{{ total }}" /> 4 <input type="hidden" name="cart_order_id" value="{{ cart_order_id }}" /> 5 <input type="hidden" name="card_holder_name" value="{{ card_holder_name }}" /> 6 <input type="hidden" name="street_address" value="{{ street_address }}" /> 7 <input type="hidden" name="city" value="{{ city }}" /> 8 <input type="hidden" name="state" value="{{ state }}" /> 9 <input type="hidden" name="zip" value="{{ zip }}" /> 10 <input type="hidden" name="country" value="{{ country }}" /> 11 <input type="hidden" name="email" value="{{ email }}" /> 12 <input type="hidden" name="phone" value="{{ phone }}" /> 13 <input type="hidden" name="ship_street_address" value="{{ ship_street_address }}" /> 14 <input type="hidden" name="ship_city" value="{{ ship_city }}" /> 15 <input type="hidden" name="ship_state" value="{{ ship_state }}" /> 16 <input type="hidden" name="ship_zip" value="{{ ship_zip }}" /> 17 <input type="hidden" name="ship_country" value="{{ ship_country }}" /> 18 {% set i = 0 %} 19 {% for product in products %} 20 <input type="hidden" name="c_prod_{{ i }}" value="{{ product.product_id }},{{ product.quantity }}" /> 21 <input type="hidden" name="c_name_{{ i }}" value="{{ product.name }}" /> 22 <input type="hidden" name="c_description_{{ i }}" value="{{ product.description }}" /> 23 <input type="hidden" name="c_price_{{ i }}" value="{{ product.price }}" /> 24 {% set i = i + 1 %} 25 {% endfor %} 26 <input type="hidden" name="id_type" value="1" /> 27 {% if demo %} 28 <input type="hidden" name="demo" value="{{ demo }}" /> 29 {% endif %} 30 <input type="hidden" name="lang" value="{{ lang }}" /> 31 <input type="hidden" name="return_url" value="{{ return_url }}" /> 32 <div class="buttons"> 33 <div class="pull-right"> 34 <input type="submit" value="{{ button_confirm }}" class="btn btn-primary" /> 35 </div> 36 </div> 37 </form>