fedex

Woocommerce, hide shipping method based on shipping class

本小妞迷上赌 提交于 2019-11-29 21:36:07
问题 I'm trying to hide all but one shipping method based on the shipping class, essentially forcing the FedEx overnight method when a product belonging to a specific class is selected. I'm starting with this code, and modifying it as indicated below: add_filter( 'woocommerce_available_shipping_methods', 'hide_shipping_based_on_class' , 10, 1 ); function check_cart_for_share() { // load the contents of the cart into an array. global $woocommerce; $cart = $woocommerce->cart->cart_contents; $found =

Tracking API for Fedex and UPS [closed]

不羁岁月 提交于 2019-11-28 18:50:25
Is there any JavaScript API available for tracking Fedex and UPS packages? Harshal_m_joshi I googled for same but couldn't found any. Then i decide to it by server side in ROR here it is how to get UPS and Fedex xml request and response from their test servers For Fedex: track_no = '111111111111' (This is test track no) This XML Request body for fedex xml_req = "<TrackRequest xmlns='http://fedex.com/ws/track/v3'><WebAuthenticationDetail><UserCredential><Key>YOUR_ACC_KEY</Key> <Password>YOUR_ACC_PASSWORD</Password></UserCredential></WebAuthenticationDetail><ClientDetail> <AccountNumber>YOUR_ACC

How to get Fedex testing tracking number?

大兔子大兔子 提交于 2019-11-28 17:05:11
问题 I'm configuring FEDEX shipping in Magento website. I got test account number, password, API key and meter number by login in test FEDEX account. I configured myself in Magento. Looks like everything fine. But I don't know how to test is Track Order. So where can I get tracking number for shipping methods? Should I enter randomly or how can I get that? I tried some forum suggested numbers. But I got below error in my popup: Tracking information is currently not available I also checked my

Regular Expression patterns for Tracking numbers

我与影子孤独终老i 提交于 2019-11-28 15:34:42
Does anybody know good place or patterns for checking which company tracking number is the given tracking number for a package. Idea is After scanning a barcode for a package check tracking number with patterns and show which company it was shipped by. Adil Just thought I would post an update on this as I am working on this to match via jquery and automatically select the appropriate shipping carrier. I compiled a list of the matching regex for my project and I have tested a lot of tracking numbers across UPS FedEX and USPS. If you come across something which doesn't match, please let me know