Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Sign in to follow this  

Module Pagamento Digital

Recommended Posts


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 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.



Edited by digitalshoptime

Share this post

Link to post
Share on other sites

<input type="hidden" name="frete" id="frete" value="<?php echo number_format($showOrder['frete_value'], 2, '.', ''); ?>" />


<input type="hidden" name="frete" id="frete" value="<?php echo  number_format($order_total['ot_shipping'], 2, '.', ''); ?>" />

Edited by web-project

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this