Final Confirmation Shipping $0 when using Certificate v1.5.1


  • Default avatar
    mowlman    
     4 years ago
    0

    AWOCOUPON PRO ver 1.5.1.
    Vertuemart 1.1.9

    Correct shipping amount is not being displayed on final order confirmation page, specifically it is showing $0 when a gift cert is used.
    In basket shipping shows as Shipping and Handling Fee: $9.86
    But on final confirm page it shows as $0 Shipping Rate: Basic Shipping; $0.00;


    On Final Confirmation at
    \components\com_virtuemart\themes\s5_shopper_frenzy\templates\checkout\get_final_confirmation.tpl.php
    CODE BLOCK Around line 75
    // Print out the Selected Shipping Method
    if(!ps_checkout::noShippingMethodNecessary()) {

        echo '<tr><td valign="top"><strong>'.$VM_LANG->_('PHPSHOP_INFO_MSG_SHIPPING_METHOD') . ":</strong></td>";
        $rate_details = explode( "|", $shipping_rate_id );
        echo '<td>';
        foreach( $rate_details as $k => $v ) {
            // thepisu: old sample data cointaned ">" instead of ">"...
            // so we don't have to make safe if ">" is found
            if (strpos($v,">")===false) {
                $v = shopMakeHtmlSafe($v);
            }
            if( $k == 3 ) {
                echo $CURRENCY_DISPLAY->getFullValue( $v )."; ";           //SHIPPING IS ECHOED HERE
            } elseif( $k > 0 && $k < 4) {
                    if ($k ==2 ){
                        echo $v.'; ';
            }
                //echo $v.'; ';  //comment out do not want carrier displayed

        }


    I found the hack to correct for confirmation email and within basket, but not for the final confirmation page.

    Any ideas? Thanks.
  • Your avatar
    seyi    
     4 years ago
    0

    Hello,

    Have you looked in awocoupon->installation check?
    "Show Shipping Discount in Coupon Display field 2" should be installed for the confirmation page to show the correct shipping.
  • Default avatar
    mowlman    
     4 years ago
    0

    I'm showing all installed with No errors.

    This happens when using a gift cert / coupon which covers the entire order including shipping, so the final order total is $0. I have the payment step and Final Conformation step showing on the same page, so maybe I can check for some sort of flag and not display the shipping on the final confirm section since the shipping and handling is displayed properly at the top of the page within the RO version of the basket?

    I performed a couple of tests, showing results at the bottom of this post

    Status Name Description
    Installed  Core (Required) File: www/administrator/components/com_virtuemart/classes/ps_coupon.php
    Required. This injection is the core of AwoCoupon Pro and no coupon code from within AwoCoupon will work without it. 
    Installed  Add Shipping fields to Coupon Form File: www/components/com_virtuemart/themes/[template_name]/templates/common/couponField.tpl.php
    Optional. Only required if you are using coupons for shipping. This sends the shipping information on coupon entry to AwoCoupon. 
    Installed  Order Number in Checkout File: www/administrator/components/com_virtuemart/classes/ps_checkout.php
    Optional. Only required if you want to be able to run reports on coupon usage for customers. This captures the order number of the coupon used. 
    Installed  Call AwoCoupon on Selection of Shipping File: www/administrator/components/com_virtuemart/classes/ps_checkout.php
    Optional. Only required if you are using coupons for shipping. This calls the AwoCoupon once a shipper has been selected. 
    Installed  Display Correct Shipping in Basket File: www/administrator/components/com_virtuemart/html/basket.php
    Optional. Only required if you are using coupons for shipping. This displays the correct coupon value to the customer. 
    Installed  Show Shipping Discount in Coupon Display field 1 File: www/administrator/components/com_virtuemart/html/basket.php
    Optional. This enables the display of shipping discount in the coupon display field. 
    Installed  Show Shipping Discount in Coupon Display field 2 File: www/administrator/components/com_virtuemart/html/ro_basket.php
    Optional. This enables the display of shipping discount in the coupon display field. 
    Installed  Retrieve Calculated Shipping from AwoCoupon File: www/administrator/components/com_virtuemart/html/checkout.index.php
    Optional. Only required if you are using coupons for shipping. This sets the correct amount for shipping that is calculated in AwoCoupon. 
    Installed  Sellable Gift Certificates File: www/administrator/components/com_virtuemart/classes/ps_order.php
    Optional. Only required for sellable gift certificates. This triggers a gift certificate event where a code is created and emailed out. 
    Installed  Persistent Coupon Field File: www/administrator/components/com_virtuemart/html/basket.php

    When using a gift cert / coupon which has a balance of 947.13 (subtotal is higher than the coupon balance)
    Subtotal: $968.50
    Shipping and Handling Fee: $34.43
    Coupon Discount: - $947.13

    Total: $55.80

    The Bottom Shipping Rate: Basic Shipping; $34.43; which is correct

    HOWEVER, (when subtotal is lower than the coupon balance)
    Subtotal: $942.50
    Shipping and Handling Fee: $32.79
    Coupon Discount: - $947.13

    Total: $28.16
    The Bottom Shipping Rate displayed on the final confirm is now incorrect showing as : Shipping Rate: Basic Shipping; $28.16; matching the order total, and not the shipping fee.

  • Your avatar
    seyi    
     4 years ago
    0

    Hmm, you will have to take a look at the www/administrator/components/com_virtuemart/html/ro_basket.php to see what the problem could be. Also, maybe the injection is having an adverse effect. Try uninstalling it.