I have a problem with the css style of the ��shipping-calculator-form�� class. I noticed that the shipping-section that is not yet filled in has one specific size, but when the client enters the data, the size changes. This changes depending on the web browser.
Another problem is that for some countries (Hungary and the UK) some fields change position.
]]>He is okay with shipping class too but since the price in shipping class are not shown in ascending/descending order, Like $1, $2, $5, $10, $20 and $50 but instead it shows by the first number like $1, $10, $2, $20, $5 and $50. When there are a lot of shipping classes, this kind of order makes it hard for my client so he want’s to set a custom value straight from the get go.
This makes him confused to set shipping based on shipping class.
So, I have 2 options. Either make the shipping class appear based on ascending order or have shipping a function to set a custom shipping price when adding the product to WooCommerce.
Or maybe there is a plugin that can help with this? Preferably a free one.
Thank you very much in advance.
]]>I hope you’re doing well. We’re testing your plugin an we’ve noticed that the plugin works perfectly with pricing conditions in secondary languages using WPML. However, when we try to apply the “shipping class” condition, the rules don’t seem to work in languages other than the primary one. Could you help us resolve this issue?
Thanks in advance for your support!
Best regards,
Gorka
Salute to the developers that provide the best plugin.
I have an idea if you guys can add Local Pick-up feature to your plugin, it would be the feature.
Where we can add single or multiple Pick-up locations by the products, SKUs, Shipping Class etc..
*Similar concept through the link attached for the team.
Feel free to ask any question, you may have.
Regards,
nzdepot.co.nz
]]>I want to use it to add a small warning about certain products that ship from 3rd party vendors or with a different shipping providers to appropriate product pages.
If not, I may go with a backup plan and create a new product tag just for those items instead.
]]>I wrote this piece of code that is supposed to change cart’s shipping class to more expensive one when there are two or more shippable items in the cart.
<?php
/*
Plugin Name: Change Shipping Class
Description: Modifies the shipping class of products in the cart based on certain conditions.
Version: 1.0
Author: XXX
*/
// Hook into the WooCommerce cart
add_action('woocommerce_before_calculate_totals', 'set_shipping_class_for_first_product');
function set_shipping_class_for_first_product($cart) {
// Check if the cart is empty
if ($cart->is_empty()) return;
// Initialize a variable to track if there's more than one shippable product
$shippable_products_count = 0;
// Loop through each cart item
foreach ($cart->get_cart() as $cart_item_key => $cart_item) {
// Check if the product can be shipped (you may adjust this condition as per your requirement)
if ($cart_item['data']->needs_shipping()) {
$shippable_products_count += $cart_item['quantity'];
}
// If this is the first shippable product encountered
if ($shippable_products_count >= 2) {
// Set the shipping class to 25 for the first shippable product
$cart_item['data']->set_shipping_class_id(25);
}
}
}
?>
And I’m testing it thoroughly and it works. But then people order my items and even though they order two items – they pay the lower amount for shipping. Like this script doesn’t work for other people.
I’ve asked a friend and he said that he sees higher price. I’ve tested in 2 phones and one PC and it also works.
What can those people do differently that it doesn’t work for them as supposed to?
]]>For example, the attached video is not valid because the WooCommerce version has been updated many times since then, but what we expect is that, as in the following image, you can choose a delivery type, so that you can choose one of the existing delivery options (in the list):
]]>flatrate of $ 5.99 for the 1st Item plus $2.50 for each additional item in the same shipping class.
the sample only shows for each additional item in the cart, they could be from two different classes with different shipping charges and I would lose money
TIA Michael
The page I need help with:?is https://magicalduck.com/wp-admin/admin.php?page=wc-settings&tab=shipping§ion=classes
]]>flatrate of $ 5.99 for the 1st Item plus $2.50 for each additional item in the same shipping class.
the sample only shows for each additional item in the cart, they could be from two different classes with different shipping charges and I would lose money
TIA Michael
]]>