Search the Community
Showing results for tags 'payment pagamento digital mod'.
-
Hello everyone, I installed a payment module "Pagamento Digital" for a client. The module doesn't returns the shipping cost as should be. file: checkout_paymentdigital.php ============ form starts here ======================================= <div><strong>Clique abaixo para continuar seu pagamento</strong></div> <form name="frmPd" id="frmPd" method="post" action="https://www.pagamentodigital.com.br/checkout/pay/" target="pd_popup"> <input type="hidden" name="email_loja" id="email_loja" value="<?= $emailLoja; ?>" /> <? for ($i=0, $total=count($products); $i<$total; $i++) { ?> <input type="hidden" name="produto_codigo_<?= $i+1; ?>" id="produto_codigo_<?= $i+1; ?>" value="<?= $products[$i]['products_id']; ?>" /> <input type="hidden" name="produto_descricao_<?= $i+1; ?>" id="produto_descricao_<?= $i+1; ?>" value="<?= $products[$i]['products_name']; ?>" /> <input type="hidden" name="produto_qtde_<?= $i+1; ?>" id="produto_qtde_<?= $i+1; ?>" value="<?= $products[$i]['products_quantity']; ?>" /> <input type="hidden" name="produto_valor_<?= $i+1; ?>" id="produto_valor_<?= $i+1; ?>" value="<?= number_format($products[$i]['final_price'], 2, '.', ''); ?>" /> <? } ?> <input type="hidden" name="id_pedido" id="id_pedido" value="<?= $showOrder['orders_id']; ?>" /> <input type="hidden" name="tipo_integracao" id="tipo_integracao" value="<?= $tipoIntegracao; ?>" /> <input type="hidden" name="frete" id="frete" value="<?= number_format($showOrder['frete_value'], 2, '.', ''); ?>" /> <input type="hidden" name="email" id="email" value="<?= $showOrder['customers_email_address']; ?>" /> <input type="hidden" name="nome" id="nome" value="<?= $showOrder['customers_name']; ?>" /> <input type="hidden" name="cpf" id="cpf" value="" /> <input type="hidden" name="telefone" id="telefone" value="<?= $showOrder['customers_telephone']; ?>" /> <input type="hidden" name="endereco" id="endereco" value="<?= $showOrder['customers_street_address']; ?>" /> <input type="hidden" name="cidade" id="cidade" value="<?= $showOrder['customers_city']; ?>" /> <input type="hidden" name="estado" id="estado" value="<?= $showOrder['customers_state']; ?>" /> <input type="hidden" name="cep" id="cep" value="<?= $showOrder['customers_postcode']; ?>" /> <input type="hidden" name="free" id="free" value="<?= $showOrder['orders_id']; ?>" /> <input type="hidden" name="url_retorno" id="url_retorno" value="<?= $urlRetorno; ?>" /> <input type="hidden" name="vencimento" id="vencimento" value="<?= $vencimentoBoleto; ?>" /> <img style="cursor: hand;" src="./pagamentoDigital/images/logoGrande.gif" onClick="sendForm(document.getElementById('frmPd'));" /> </form> ===================== form end here ======================== So, we need to have the shipping value in the input id="frete" but the code there is not working at all. <input type="hidden" name="frete" id="frete" value="<?= number_format($showOrder['frete_value'], 2, '.', ''); ?>" /> Any advice are welcome. http://www.digitalshoptime.com