• Resolved lapalys

    (@lapalys)


    Hi

    WP 4.9.6, WC 3.3.5, template flowvin with child (with WC 2.5 and 3.0 files in it)

    As guest, in my checkout page (merged with cart page WooCommerce Single Page Checkout), I have the choice to select “pickup” or a “flat rate” (depends on the postal code), something simple. Then I enter H2L3Z6 (code postal in Montreal,Qc) and select the flat rate (20$).

    When a I click on [Pay via paypal], the PayPal’s website open and the total is without the shipping fees.

    In the source page, the flat-rate:6 is well checked

    <ul id=”shipping_method”>

    • <input type=”radio” name=”shipping_method[1]” data-index=”1″ id=”shipping_method_1_local_pickup15″ value=”local_pickup:15″ class=”shipping_method” /><label for=”shipping_method_1_local_pickup15″>Retrait en magasin</label>
    • <input type=”radio” name=”shipping_method[2]” data-index=”2″ id=”shipping_method_2_flat_rate6″ value=”flat_rate:6″ class=”shipping_method” checked=’checked’ /><label for=”shipping_method_2_flat_rate6″>Forfait: <span class=”woocommerce-Price-amount amount”><span class=”woocommerce-Price-currencySymbol”>$</span>20.00</span></label>
    • If I see the debugger, there is :

      User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36
      ——WebKitFormBoundaryoWzZWTYkLCgR5g5c
      Content-Disposition: form-data; name=”shipping_method[2]”
      flat_rate:6
      ——WebKitFormBoundaryoWzZWTYkLCgR5g5c
      Content-Disposition: form-data; name=”calc_shipping_country”
      CA
      ——WebKitFormBoundaryoWzZWTYkLCgR5g5c
      Content-Disposition: form-data; name=”calc_shipping_state”

      so the flat-rate is well send to the order.

      I connect to the DB with phpMyAdmin, I see in wp_postmeta for my order :
      …|_order_shipping|0.00|…

      The rest of the website is correct. I can make orders and change the status, receive order by mail, ….

      What should I check in WooCommerce to have those shipping fees in the order ?

      Thanks.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, I have the same issue along with a few more but I am trying to fix the same deal you are and I hope we can get a answer.

    All the best,

    Rudyman43

    Thread Starter lapalys

    (@lapalys)

    Hi

    Here is my solution (may be not the best but it works for me). I saw that the shipping is called 4x when an order is create. The last time, there is something wrong in the parameters then use the default shipping (pickup for me).

    in this file : \public_html\wp-content\plugins\woocommerce\includes\class-wc-checkout.php
    line 965
    comment : $this->update_session( $posted_data );

    Hope it helps

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shipping fees not in the payment’ is closed to new replies.