shipping

Finding the optimal 3D box sizes for a group of 3D rectangular items

梦想与她 提交于 2020-01-01 05:48:26
问题 When I say box I am talking about shipping boxes. I have a number of random sized, small items that I need to pack into as few boxes as possible. I need to know what box sizes are optimal. All items are rectangular prisms. It's easy to exclude a box size for an item which is too large to fit. I know the box sizes (they are the available box sizes which I have in-stock) Items can be positioned horizontally or vertically, not diagonal. As many boxes as required can be used. The goal is to use

Display total cart shipping volume value in Woocommerce

淺唱寂寞╮ 提交于 2019-12-30 12:59:26
问题 I use woocommerce for wholesale customers who order containers of furniture - normally 40 foot containers with a volume of 68 cubic meters. Is there a way I can show somewhere on the website - maybe in the header area a box with showing the total m3 of products in their basket? I need to show the client when they reach 68m3 so they know they have filled a container. And is there a way to flash up a message if a client tries to submit an order less than 68m3 indicating to them that they still

Get the Cart shipping label and cost in Woocommerce

天大地大妈咪最大 提交于 2019-12-30 10:45:08
问题 I need to display the shipping cost in other side of cart page. I tried: <?php $current_shipping_cost = WC()->cart->get_cart_shipping_total(); echo $current_shipping_cost; ?> But print value nad don't title of shipping cost, because i use as title: "Express delivery with UPS 24/48 hours 4.90 euro"… How can I get order shipping cost in woocommerce? 回答1: To get and display the chosen shipping method label (and other related data, if needed) in cart page (or in checkout page) : foreach( WC()-

woocommerce payment methods

拜拜、爱过 提交于 2019-12-25 16:52:57
问题 I want to edit woocommerce payment according to chosen shipping method. I tried it like this, but it doesn't work. add_filter('woocommerce_available_payment_gateways','wpml_filter_gateways',1); function wpml_filter_gateways( $gateways ) { if( isset( $available_methods['flat_rate:dobirka'] )){ unset($gateways['paypal']); } return $gateways; } Any ideas? Cheers. 回答1: See link1, link2... May be it will help you... function payment_gateway_disable_country( $available_gateways ) { global

Update Shipping Address Similar to Billing Address before/after placing an order using Observer?

感情迁移 提交于 2019-12-25 06:45:29
问题 Brief: I am using "Magestore giftvoucher" module in that by default Shipping Address not getting saved, when an order is placed (with gift card product only). As Gift-voucher is not a Physical product and hence not been shipped. It goes to recipient by Email. But somehow I want to make shipping address similar to Billing Address. So What I have tried : under app/code/local/Magestore/Giftvoucher/Model/Observer.php In Function :-> orderSaveAfter I wrote below code but with no luck it was not

I need to create a custom postage price depending on quantity ordered for Paypal button

有些话、适合烂在心里 提交于 2019-12-25 00:43:25
问题 For example item price is £6.78 postage and packaging should be: Single copy: £1.50 2-3 copies £3.00 4-6 copies: £4.00 7-8 copies: £5.00 9 copies: £6.00 10 or more free Any idea how I can do this? The current code for the item is: <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="CUWB7BQEL337J"> <input type="image" src="https://www.paypalobjects.com/en_GB/i

UPS API - printing the returned shipping label GIF data

牧云@^-^@ 提交于 2019-12-24 17:24:30
问题 So I'm working my way through the UPS API 'create shipping label' process...I'm at the final stage, where having validated everything, UPS return the actual shipping label to me in GIF format, from their example document, here's what is returned via XML (I've edited out all the other preceding XML bits).. <GraphicImage>FSDJHSDJHJ3487EHNE9U8DY9VHRFV89SDFHFSDJHFSDIDFH SJKDFSJKDFSJIU9GFIUGJIFDUJG9UKGLDJFDKJDGKJDFKGDJLDFKSJGKDFJDKGFDG9E0ER

Set a custom shipping rate cost calculated on cart total weight in WooCommerce

痞子三分冷 提交于 2019-12-24 06:49:37
问题 In Woocommerce I have installed a shipping plug in but it calculates shipping per item in cart instead of per order total. What I need is to calculate the shipping cost this way: - First kg is $5 - And $1 by kilo for all others. Is it possible to do it? With the plugin if there is 2 items in cart of 1 kg each, it calculates the shipping as 2 x $5 = $10 Instead what I should need is: $5 (first kilo) + $1 (additional kilo) = $6 (for 2 kg) . I have no response from plugin developer, so looking

Display a custom message based on customer shipping zone in Woocommerce

折月煮酒 提交于 2019-12-24 01:36:15
问题 In woocommerce, I need to display custom message on cart or checkout page, based on shipping zone, like "you'll be charged 10% more for this zip code". I feel its easy but I can't get it work ! And its drive me crazy! Any help is appreciated. My workaround is about customizing that kind of default message : add_filter( 'woocommerce_no_shipping_available_html', 'wf_customize_default_message', 10, 1 ); // For Checkout page add_filter( 'woocommerce_cart_no_shipping_available_html', 'wf_customize

php : get TNT Australia live shipping rates of all tnt shipping methods

五迷三道 提交于 2019-12-24 00:16:24
问题 I want to get live rates of all shipping methods of TNT Australia between origin and delivery address. Like Road Express, Overnight Express, Overnight PAYU Satchel, 9:00 Express, 10:00 Express, etc. I am using below code. function sendToTNTServer( $Xml ) { $postdata = http_build_query( array( //For Future reference //the xml_in= ( the = ) is appended //Automatically by PHP 'xml_in' => $Xml ) ); $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www