Skip to content

Commit

Permalink
Fix shipping
Browse files Browse the repository at this point in the history
  • Loading branch information
starckio committed Sep 30, 2017
1 parent 67d2199 commit 6e319d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion site/snippets/paypal-button.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
<?php endif ?>

<?php endforeach ?>
<input type="hidden" name="shipping_<?= $i ?>" value="<?php printf('%0.2f', $postage) ?>" />
<input type="hidden" name="shipping_<?= $i ?>" value="<?php echo str_replace(',', '.', sprintf('%0.2f', $postage)) ?>" />
<button class="btn-checkout-paypal" type="submit">Payer avec PayPal</button>
</form>
4 changes: 2 additions & 2 deletions site/templates/cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
<h4 class="tva">TVA incluse <span class="devise"><?php printf('%0.2f', $vat) ?></span></h4>
<?php endif ?>

<h4 class="postage">Frais de port <span class="devise"><?php printf('%0.2f', $postage) ?></span></h4>
<h3 class="total">Total <span class="devise"><?php printf('%0.2f', $total + $postage) ?></span></h3>
<h4 class="postage">Frais de port <span class="devise"><?php echo str_replace(',', '.', sprintf('%0.2f', $postage)) ?></span></h4>
<h3 class="total">Total <span class="devise"><?php echo str_replace(',', '.', sprintf('%0.2f', $total + $postage)) ?></span></h3>

<?php snippet('paypal-button') ?>
<a class="continue-shopping" href="<?= url('products') ?>">Continuer les achats</a>
Expand Down

0 comments on commit 6e319d2

Please sign in to comment.