WordPress.org

Forums

WooCommerce - excelling eCommerce
How to get shipping cost and order total using ajax on product page (1 post)

  1. Jageshmk
    Member
    Posted 1 year ago #

    Hi

    Is it possible to get available shipping methods, shipping cost and order total using ajax on product page.
    i am showing a popup when click "add to cart" button, that popup will contain all added products with quantity and price, but i cant get shipping costs or available shipping methods and order total. order total showing zero and available shipping methods returns empty when i am using $woocommerce->cart->get_total() and $available_methods = $woocommerce->shipping->get_available_shipping_methods(); respectively.

    Please advice

    http://wordpress.org/plugins/woocommerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic