shipping

Remove “(optional)” text from checkout fields in Woocommerce 3.4+

大城市里の小女人 提交于 2019-12-17 19:25:10
问题 I was previously using this answer to hide checkout fields based on chosen shipping method, it worked fine until an update (3.4.2 current version) I think not sure what has changed but it doesn't work as intended anymore. Previously when local pickup was chosen some fields were hidden and made optional and when delivery was chosen it would show those fields again all via dynamically without reloading the page. Now it shows and hides the fields as required however, when delivery is chosen it

WooCommerce - Hide other shipping methods when FREE SHIPPING is available

倖福魔咒の 提交于 2019-12-17 07:55:41
问题 I would like to hide other shipping options when free shipping is available on Woocommerce. Because latest version of woocommerce now is still showing other shipping options even if there's FREE shipping option. Please help 回答1: There is this recent code snippet for WooCommerce 2.6+. that you can Use: add_filter( 'woocommerce_package_rates', 'hide_other_shipping_when_free_is_available', 100, 2 ); function hide_other_shipping_when_free_is_available( $rates, $package ) { $free = array();

WooCommerce - Hide other shipping methods when FREE SHIPPING is available

风格不统一 提交于 2019-12-17 07:54:01
问题 I would like to hide other shipping options when free shipping is available on Woocommerce. Because latest version of woocommerce now is still showing other shipping options even if there's FREE shipping option. Please help 回答1: There is this recent code snippet for WooCommerce 2.6+. that you can Use: add_filter( 'woocommerce_package_rates', 'hide_other_shipping_when_free_is_available', 100, 2 ); function hide_other_shipping_when_free_is_available( $rates, $package ) { $free = array();

How to send Shipping address to Paypal, when using Paypal IPN

泄露秘密 提交于 2019-12-14 03:39:31
问题 I am trying to integrate Paypal IPN to an application which I am developing. And I am stuck in a problem which is regarding shipping address. I need to know how to send the address variables to Paypal, as a request so that User can see that address on paypal. Please tell me the variables which should be sent to paypal, which paypal treats as shipping address(or delivery address). Thanks in advance. 回答1: To send the shipping address to PayPal you need to modify your PayPal submit form. Using

Coldfusion How to authenticate webservice getShipmentSimpleQuote of WWEx?

五迷三道 提交于 2019-12-14 00:43:03
问题 How to invoke "getShipmentSimpleQuote" webservice from "Worldwide Express Freight Quote Web Service" ? I am trying to invoke/consume this webservice but i am getting error saying "Invalid authentication info" .here is wsdl file data- WWEXFreightQuoteService.wsdl <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://www.wwexship.com" xmlns:impl="http://www.wwexship.com" xmlns:intf="http://www.wwexship.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns

Flat Rate Shipping Based on Order Amount

放肆的年华 提交于 2019-12-13 18:41:22
问题 I would like to configure our store's shipping option so that we charge a flat rate based on the order total. Example : $0 - $24 -> $10 shipping, $25 - $49 -> $5 shipping, 回答1: if want to flat rate then used proccess Step1:copy app\code\copy\Mage\Shipping\Model\Carrier\Flatrate.php to app\code\local\Mage\Shipping\Model\Carrier\Flatrate.php Step2: modify collectRates function public function collectRates(Mage_Shipping_Model_Rate_Request $request) { if (!$this->getConfigFlag('active')) { return

how to get USPS shipping rate in coldfusion?

痴心易碎 提交于 2019-12-13 11:23:56
问题 i am using coldfusion and i want to get USPS Shipping charges in my application/website. Is there any function to get usps shipping rates from usps in coldfusion. Thanks Yugal 回答1: First result on google for usps ColdFusion CFC http://uspscfc.riaforge.com 来源: https://stackoverflow.com/questions/10397363/how-to-get-usps-shipping-rate-in-coldfusion

Email recipients based on Shipping method Id for Woocommerce new order notification

末鹿安然 提交于 2019-12-13 10:35:51
问题 In Woocommerce, I would like to have a new order email sent to specific persons based on the selected shipping method ID. Right now, I am only able to have every email address added to the new order email, but ultimately want to have the email be sent to one specific email based on the shipping method Id selected by the customer. Here is my code coming from this answer that works for postal code: add_filter( 'new_order' , 'so_26429482_add_recipient', 20, 2 ); function so_26429482_add

Hide specific shipping methods for specific customer roles

混江龙づ霸主 提交于 2019-12-13 06:29:33
问题 I use the Wholesale Suite Premium Prices plugin with WooCommerce. I have 6 specific wholesale roles out of 15 that I wish to hide two specific shipping methods from being selected for the 6 exceptions. I'm just trying this on my staging server at this time using code example that I found and modified to my specific conditions. Would the following work for this purpose? Any insights as to how to accomplish this would be appreciated. Lyse /* Hide specific shipping methods for specific wholesale

Hide Flat Rate shipping exclusively for a product category in Woocommerce

限于喜欢 提交于 2019-12-13 03:50:27
问题 This is an extension of this question: Remove shipping Flat Rate method for particular Category in WooCommerce 2.6 and 3+ Used the Woo Smart Coupons plugin for a Gift Card product. This HAS to be set to Variation, as we have multiple tiers to select from. (this rules out virtual products) The Gift Card has it's own category for distinction. We have two shipping options set up: Flat Rate + Local Pickup. It's pretty silly to have shipping options for a gift card that gets sent to your Inbox, so