dn2018
Forum Replies Created
-
Forum: Plugins
In reply to: [Estonian Shipping Methods for WooCommerce] Change Shipping OrderI created a function based on the code in the below link to sort my shipping options, although I am sorting from cheap to expensive with local pick-up at the end, rather than by type. https://www.businessbloomer.com/woocommerce-sort-shipping-costs-low-high/
I’m sure you can google other ways to sort shipping options if this one doesn’t quite fit.
Forum: Plugins
In reply to: [Estonian Shipping Methods for WooCommerce] Tarnemoodul ja tarneklassidYes, see the previous topic in the forum https://www.ads-software.com/support/topic/disable-omniva-and-smart-post-for-some-products/
You need to use a plugin that creates conditions for shipping methods.
You wrote above it was just one product, but if it is 50 then I would definitely create a shipping class and exclude all shipping options for that class. Then add the shipping class to the 50 products and you’re done. You can change shipping class through excel upload.
Overall I have made my shipping system rather complicated but I have a shipping class called Bulky that excludes all shipping methods except local pickup. Note that if you are using WPML you will in some cases have “translated” shipping classes to exclude as well.
Excluding shipping methods You find this menu in WooCommerce-Settings-Restrictions
- This reply was modified 4 years ago by dn2018.
Actually I just checked, and with the plugin istalled a menu item under each individual product appears where you can add restrictions for just that product.
Hi,
I would create a new shipping class “Pickup” and add this class to just the one product you want excluded, and then exclude all shipping methods except local pick-up for that shipping class. Keep in mind you need the “WooCommerce Conditional Shipping and Payments” (or similar) plugin to do this.
- This reply was modified 4 years ago by dn2018.
I use that plugin at it works perfectly for me. I see all the Estonian shipping methods I have activated and can exclude them as required.
However, I don’t think you can exclude shipping methods for individual products, but you could create a shipping class for the products you want to exclude, and use that in the condition.
Forum: Plugins
In reply to: [Estonian Shipping Methods for WooCommerce] Update crashed wp adminWorks fine for me
Forum: Plugins
In reply to: [WooCommerce] Shipping class costs not workingDeactivating the ATUM Multi-Inventory plugin makes everything normal, so I have contacted their support but not heard back yet.
Forum: Plugins
In reply to: [WooCommerce] Shipping class costs not workingYes, that is almost correct. What makes it even more strange is that the VAT is added from the correct shipping class cost. So let’s say shipping for the class “Medium” is 10€ plus 2€ VAT, then the 2€ is added to the total cost and also added to the total VAT in the specification, but the 10€ is not added.
Shipping class is populated and working fine for other shipping methods.
Another problem that appeared at the same time was lots of “Warning: A non-numeric value encountered in”. This was solved by changing the decimal sign from . to , in all flat rate methods costs. Other methods didn’t need to be changed and work as before with no issue.
I can not do the conflict test right now, but will attempt when possible.
It is not difficult to make two copies of the Omniva shipping method and call them _M and _L and then give the three methods three different prices
In “estonian-shipping-methods-for-woocommerce.php” it should look like this around line 50 or so:
// Omniva. 'WC_Estonian_Shipping_Method_Omniva_Parcel_Machines_EE' => false, 'WC_Estonian_Shipping_Method_Omniva_Parcel_Machines_EE_M' => false, 'WC_Estonian_Shipping_Method_Omniva_Parcel_Machines_EE_L' => false,
Further down around line 130 it looks like this:
require_once WC_ESTONIAN_SHIPPING_METHODS_INCLUDES_PATH . '/methods/class-wc-estonian-shipping-method-omniva-parcel-machines-ee.php'; require_once WC_ESTONIAN_SHIPPING_METHODS_INCLUDES_PATH . '/methods/class-wc-estonian-shipping-method-omniva-parcel-machines-ee-m.php'; require_once WC_ESTONIAN_SHIPPING_METHODS_INCLUDES_PATH . '/methods/class-wc-estonian-shipping-method-omniva-parcel-machines-ee-l.php';
The second two lines you see link to a copy of the file in the first line. In the two copies you need to change the names accordingly, like this for size L:
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly /** * Omniva parcel machines shipping method * * @class WC_Estonian_Shipping_Method_Omniva_Parcel_Machines_EE * @extends WC_Estonian_Shipping_Method * @category Shipping Methods * @package Estonian_Shipping_Methods_For_WooCommerce */ class WC_Estonian_Shipping_Method_Omniva_Parcel_Machines_EE_L extends WC_Estonian_Shipping_Method_Omniva { /** * Class constructor */ function __construct() { // Identify method $this->id = 'omniva_parcel_machines_ee_l'; $this->method_title = __( 'Omniva Estonia L', 'wc-estonian-shipping-methods' ); // Construct parent parent::__construct(); $this->country = 'EE'; } }
Back in the WooCommerce shipping setting you give each of the three Omniva methods the desired price. You now need to use a plugin to select the appropriate shipping method for each shipping class. Meaning, if the shipping class of your order is “Medium” you need to hide S and L so the customer can only select M. I use “WooCommerce Conditional Shipping and Payments”. This could probably also be done with a filter, but I don’t know how.
I have the same problem, however the Lithuanian package automats shown when selecting Estonia are not the correct ones, or at least not the same ones shown when selecting Lithuania, and even includes one Estonian automat (Kristiine Keskus). One automat has the location “YOUR SANDBOX”.
Forum: Plugins
In reply to: [Estonian Shipping Methods for WooCommerce] Pakiautomaati mitte mahtuv kaupI have solved it by having several copies of each shipping method. So, an Omniva S, Omniva M, Omniva L and so on with different prices. I then have equivalent shipping classes per product, S, M, L, XL and Bulky, where the biggest shipping class of an order determines which shipping method is available to the customer. Bulky excludes all package automat methods.
It is a little difficult to understand exactly what you mean, but I think I am looking for something along the same lines.
I have several of the WooCommerce built in shipping methods activated as well as methods from this plugin. Currently the plugin methods come last in the list of shipping methods but I would like to reverse this and also put a particular method as the default at the top. Any ideas how this could be achieved?
On your page the methods seem to be in alphabetic order, but that is not the case for me.
Forum: Plugins
In reply to: [Estonian Shipping Methods for WooCommerce] Shipping classAs a test I managed to create three Omniva Estonia tabs “Omniva Estonia S | Omniva Estonia M | Omniva Estonia L” in the Shipping settings, each with a different price and they are then excluded based on the largest shipping class present in the basket. In other words, works great. Only problem is the steep price of the other plugin and eventually it will get messy with 3-5 versions of each shipping method for each country.