Shipping displays after coupon is used.


  • Default avatar
    shirtdoctors    
     12 years ago
    0

    Some clients and myself are getting confused with the way the shipping amount is changed around. Below is an order placed with a $40 gift certificate, the coupon discount is auto adjusted to $32.33 automatically by VM, below is how it's displayed initially

    SubTotal: $30.00
    Tax Total: $2.33
    Shipping and Handling Fee: $10.97
    Shipping Tax: $0.00
    Coupon Discount: - $40.00
    Total: $3.30

    but once they receive the auto generated email it changes to this.

    SubTotal : $30.00
    Shipping and Handling Fee : $3.30
    Tax Total : $2.33
    Coupon Discount: - $32.33
    Total: $3.30

    And the next problem that comes up when it's directed to paypal, because the coupon is being used to pay for the item, paypal gives them a notice to enter an item amount greater than $0. The only charge would be $3.30 but paypal has it as shipping.

    Is there a way to keep the auto generated message to display the shipping at the original price? And why is paypal not allowing payment to process if they just need to pay the balance for shipping?

    Hope this makes sense..

    Thanks.
  • Your avatar
    seyi    
     12 years ago
    0

    these posts should help with displaying of shipping:
    https://awodev.com/forum/awocoupon/help-section/shipping-amount-after-gift-certificate-000#comment-1506

    For the second problem, if you do not care for paypal to show shipping and product charges separately, you can alter what is sent to paypal. In admin section ->virtuemart->store->list payment methods->paypal->configuration tab, you could try changing
    <?php
    "amount" => round$db->f("order_total")-$db->f("order_shipping"), 2),
    "shipping" => sprintf("%.2f"$db->f("order_shipping")),
    ?>


    to
    <?php
    "amount" => round$db->f("order_total"), 2),
    "shipping" => 0,
    ?>


    Be sure to back it up before altering.

  • Default avatar
    shirtdoctors    
     12 years ago
    0

    Seyi,
    You're too kind, thanks again for your help you're the best.