shipping-method

Applied coupons disable Free shipping conditionally in Woocommerce

僤鯓⒐⒋嵵緔 提交于 2020-01-04 05:37:20
问题 I am trying to get it so that if a customer were to add a coupon code (Any of them) the Free Shipping option would go away and the flat rate fee would be implemented. - You would think this would be an easy thing to implement, there would be 100's of plugins and ways described to do this, but I have not found any. I do not want to pay $89 for the plugin to do this one thing A side bonus would be if they are using a coupon but are spending over $249 they can still qualify for Free shipping. I

Applied coupons disable Free shipping conditionally in Woocommerce

天涯浪子 提交于 2020-01-04 05:37:01
问题 I am trying to get it so that if a customer were to add a coupon code (Any of them) the Free Shipping option would go away and the flat rate fee would be implemented. - You would think this would be an easy thing to implement, there would be 100's of plugins and ways described to do this, but I have not found any. I do not want to pay $89 for the plugin to do this one thing A side bonus would be if they are using a coupon but are spending over $249 they can still qualify for Free shipping. I

Set Minimum item cost in Woocommerce Shipping method rates

倖福魔咒の 提交于 2020-01-02 22:28:10
问题 In Woocommerce, I have a Flat Rate Shipping set up with 1 Zone & 3 Shipping Options. In each of the Shipping Options I have Shipping Classes and in each of these Shipping Class Costs for each of my major product categories. My problem is that I can't seem to correctly set a minimum fee for the Shipping Class Costs. For example, when I use something like this in a Shipping Class Cost 1.43 * [qty] [fee min_fee="20"] it multiplies my product cost by 20, instead of simply having the fee be a

Shipping cost discount based on a shipping classes in Woocommerce

萝らか妹 提交于 2019-12-31 05:08:28
问题 I'm trying to apply a discount to one shipping class for products currently in a cart. This is applied on the checkout view. In Woocommerce backend, the option is set to charge each shipping class individually. Also, I use only one shipping method named "flat rate". Based on Override all shipping costs for a specific shipping class in Woocommerce, the following code that should apply the discount: add_filter('woocommerce_package_rates', 'shipping_class_null_shipping_costs', 10, 2); function

How to set a shipping cost by item in Woocommerce

梦想与她 提交于 2019-12-30 11:29:29
问题 In Woocommerce, when I add multiple products in cart, the shipping only applies to to 1 product. How should I change that to apply the cost to each item? Like in the following image, the shipping cost for printer is applied but the LCD monitor is not. How to set a shipping cost by item in Woocommerce? 回答1: In the Woocommerce Shipping Settings for "Flat rate" Shipping Method, there is many ways to get dynamic settings based on: Item quantity, using [qty] argument Total item cost, using [cost]

Disable “Place order” button for specific shipping zone in WooCommerce

落花浮王杯 提交于 2019-12-24 02:56:18
问题 I am trying to deactivate the "Place order" button if a specific shipping class is selected. Name of the shipping class is "Zone 6". Based on "Remove Woocommerce "place order" button for a specific shipping class" answer thread, I have make some changes to handle shipping zones instead: add_filter('woocommerce_order_button_html', 'remove_order_button_html' ); function remove_order_button_html( $button ) { // HERE define your targeted shipping zone $targeted_shipping_zone = "Zone 6"; $found =

Display a delivery day range based on shipping country in Woocommerce

末鹿安然 提交于 2019-12-23 01:13:29
问题 In Woocommerce, I'm trying to add an estimated delivery day range on cart and checkout pages. I have set 2 shipping Zones: Germany and other European countries (outside Germany) called "DHL Europe". I need to display a different delivery day range for Germany shipping country than other European shipping countries: Germany shipping country will display "Lieferzeit 3-5 Werktage" (and when there is no shipping costs) . Other European shipping countries will display "Lieferzeit 5-7 Werktage" My

Woocommerce shipping modifications required to support HTTP API shipping calcs

独自空忆成欢 提交于 2019-12-13 03:01:29
问题 Woocommerce shipping calculations running too often. Woocommerce shipping setup works great until you build a custom shipping plugin that uses external quoting systems via HTTP API calls, at which point you realize that the shipping is calculated dozens of times unnecessarily during the order process - slowing everything down. We make API calls to external servers at our Australian Postal System and also a courier aggregator system to get post and shipping rates. This takes about 5 seconds to

Magento 2.2.4: “Sorry, no quotes are available for this order at this time”

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 17:02:55
问题 The checkout was working smoothly and I've checked the test orders in admin panel. While during the maintenance I clean up the cache and upgrade the static content. Right after unexpectedly, I am getting message at the time of checkout "Sorry, no quotes are available for this order at this time". I have configured UPS shipping method under configuration. You can also replicate it, by accessing the website at https://awscales.com I have also tried cache clean, re-index but no luck. I am unable

Hide specific shipping methods for a specific user roles in Woocommerce

痞子三分冷 提交于 2019-12-11 14:23:34
问题 In Woocommerce I am using WooCommerce Wholesale Pro Suite (from IgniteWoo) and Flat Rate Box Shipping plugins to add B2B to our eshop. I am trying to disable the Flat Rate Box Shipping for specific user roles, guests and customers. I found this code after searching online: add_filter( 'woocommerce_package_rates', 'hide_shipping_for_user_role', 10, 2 ); function hide_shipping_for_user_role( $rates, $package ) { // Role ID to be excluded $excluded_role = "wholesale_customer"; // Shipping rate