How to change Shipping Cost per two product in woocommerce? - php

I am using woocommerce plugin in a wordpress site.
The shipping method is to be calculated on the basic of USPS Priority 1-Day mail $5.75 per pound (lbs).
Each shirt ways 1/2 a pound in weight, so 2 shirts should not be charged additional shipping.
Means I want to calculate the shipping method for per two shirt i.e. $5.75 not as cost per product.
then the shipping will be calcalated as like ths
3 -4 shirts $11.50 and 5 shirts $17.25 etc...
The basic requirement is if I would be able to change the shipping cost per product to per two product the query will be solved. How Can I get this method.
Any help will be appreciated.

Related

Magento 2 table rates- minimal amount necessary?

I use the Magento 2 table rates as calculation system for shipping costs.
For low weight products the shipping is for free. Or in the table rates file noted as € 0,00.
But it seems not to work for customer view in shopping cart. If a customer gets as high as € 0,00 for shipping costs the Magento system shows "Shipping: Not calculated yet".
So I think the Magento table rates system cannot deal with total shipping costs of € 0,00.
Is this indeed the situation or can I do something to get the € 0,00 amount accepted in the Magento store cart?
Thank you for reading and thinking it over!

How to set a shipping cost by item in Woocommerce

In Woocommerce, when I add multiple products in cart, the shipping only applies to to 1 product. How should I change that to apply the cost to each item?
Like in the following image, the shipping cost for printer is applied but the LCD monitor is not.
How to set a shipping cost by item in Woocommerce?
In the Woocommerce Shipping Settings for "Flat rate" Shipping Method, there is many ways to get dynamic settings based on:
Item quantity, using [qty] argument
Total item cost, using [cost] argument
A fee, using [fee] argument with additional parameters percent, min_fee and max_fee
You can also use +, -, * and / operators and parenthesis.
Here are some example:
[qty]*2 - Cost by item
4+([qty]*2.5) - Initial cost with an additional cost by item
[fee percentage='10' min_fee='' max_fee='20'] - Percentage fee limited to a max amount
[fee percentage='10' min_fee='4' max_fee=''] - Percentage fee with a minimal cost
Related thread: Set Minimum item cost in Woocommerce Shipping method rates
Advanced shipping cost customizations:
It's possible to customize even more shipping costs using woocommerce_package_rates filter hook.
See all StackOverFlow related threads using woocommerce_package_rates filter hook.

Progressive Flat rate shipping method based on item quantity in Woocommerce

I Would like to add different progressive flat rates shipping cost for 2 different shipping Zones domestic and international: A fixed amount for the first item and an additional cost for every additional items.
eg: Standard domestic postage $10, and $20 international, with $5 additional for each extra item.
Is this possible through woocommerce shipping setting? or this need some custom coding?
Any help is appreciated.
You can use the following cost line that will give you a fixed cost + an additional cost by item. This need to be differently for each shipping zone.
For your "Domestic" shipping Zone, use: 5+([qty]*5) So the first item will be at 10 (5+5) and each additional item will add +5 to the cost.
For your "International" shipping Zone, use: 15+([qty]*5) So the first item will be at 20 (15+5) and each additional item will add +5 to the cost..

How to increase shipping cost depending on quantity of order?

Pretty much I want to increase the shipping cost depending on the number of items in order... e.g. by default shipping cost is 10$ but when number items goes beyond 20 it will add 3$ to shipping cost so it would be 13$
I tried changing codes but it's complicated somehow
I had to find all places that include shipping tax like in 1-blockcart module, 2-one page checkout, 3-payment, 4-inserting to database... And then change some codes. And it's a lot of work and hard
Prestashop includes a shipping range functionality. You can define shipping cost depending of the total weight of your products.
If you want a simple implementation, you can define all your products weight to 1Kg and add shipping cost ranges like those:
0kg => 20kg : 10$
20kg => 40kg : 13$
40kg => 99999kg : 15$

Ubercart - Product discount based on total number of all products in cart

I'm using Ubercart in Drupal for a simple web store. I'm having trouble calculating a product discount based on the total number of all products in the cart. For example, I'm easily able to define discounts for if a user buys more than one of the same product, using the uc_custom_price module. But I want to give the discount if they buy more than one of any product. If they buy item 1 for 10 dollars and then add item 2 for 10 dollars, then I want both items to now cost 8 dollars.
Hopefully this makes sense. I searched the forums and googled for a couple of hours, but I just can't get this to work correctly. Thanks for your help.
Check Rules + Ubercart module. Or write custom code on order creation

Categories