Shipping Surcharge Based on Dimension

  • Posts: 32
  • Thank you received: 1
  • Hikashop Business
2 months 3 days ago #365698

-- url of the page with the problem -- : www.militaryplaques.com
-- HikaShop version -- : 5.1.3
-- Joomla version -- : 5.2.3
-- PHP version -- : 8.2.27
-- Browser(s) name and version -- : Firefox

I've looked through the forum etc but can't see an answer to this.

Our pricing is based on dimensions. e.g. 20" diameter = $100. All standard shipping, until now, has been included in the base price so cart calculations and shipping have been straightforward. However, I now have to add a 15% shipping surcharge to all items ordered that are 36" and above. This cannot be added to the base price.

How do I get the 15% on all items in a cart that are 36" and above?

Please Log in or Create an account to join the conversation.

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
2 months 3 days ago #365705

Hi,

I can see that you use the characteristic system to allow the customers to select the size of their plaques.
I can also see that you've removed the "shipping" view from your checkout workflow and that you apparently didn't configure any shipping method.
What you can do is this:
- for the variants below 36" set a weight of 0
- for the variants that are 36" or above set a weight of 1
- make sure the "Force shipping for virtual / weightless items" setting is turned on and that you add back the "shipping" view in your checkout
- configure manual shipping methods via the System>Shipping methods menu:
1. with a maximum weight of 0.5 and a price of 0
2. with a minimum weight of 0.5 and a percentage of 15 and the "include virtual product price" setting turned off. That way, the shipping method will only be available if at least one 36" or more product is in the cart and only these products will be taken into account for the 15% shipping cost calculation.

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 1
  • Hikashop Business
1 week 10 hours ago #366633

Apologies, just gettting back to this ....

The item size is created in a custom field and I see no way to add a weight within the custom field set up

John

Please Log in or Create an account to join the conversation.

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
1 week 5 hours ago #366634

Hi,

It is indeed impossible to take into account custom item fields for shipping method costs calculations. What I described in my previous message is only possible if you use a characteristic with variants for the item size selection.

What you could do is to use the cart fee plugin:
www.hikashop.com/marketplace/product/279-cart-fee.html
With it, you can add extra fees to the cart.
For example, you could configure it:
- with a condition: {itemsize}>36 (where itemsize can be replaced by the column name of the custom item field)
- with the logic "OR"
- with a formula like: {price}*0.15
However, this will take into account the subtotal amount, so the 15% fee will be calculated on all the products in the cart.

If you want a 15% fee calculated only on the total of the products with an item size > 36 where the item size is in a custom item field, the only solution to get exactly that is to develop a custom plugin.
If that's something you want us to work on for you, that's possible. You can request a quote via our contact form:
www.hikashop.com/support/contact-us.html

The following user(s) said Thank You: thenorthernoffice

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum