Developer forum

Forum » Templates » RE: individual Shipping Fee for each product

RE: individual Shipping Fee for each product

Jens Jakob Vedel Kristensen
Reply

Hi,

I have a question I hope you can help me figuring out, at least if it is possible.

The request:

We need to have a specific shipping fee/price for each product in eCommerce. The product specific shipping fee/price should be automatically selected in Ecom Checkout, so the user is not presented with any options for shipping during checkout. In total there will be 10-15 different shipping fees/prices, that each could be asigned to products individually. All the products in the shop will have a specific shipping fee/price assigned.

My thoughts:

Create the 15 different shipping methods, and for each shipping method set up a parameter with the specific fee amount and selecting the individual product(s) for which this shipping fee should apply. In the checkout step templates apply the necessary logic to make sure the correct shipping fees are applied.

The question:

In checkout step template, is it possible to check which shipping fees are assigned to the specific product in the cart? And based on this check we have to make sure that the specific shipping method is automatically applied, so the total order amount is adjusted.

If possible, what would be the preferable way of doing so? 
Would this require custom development (provider/handler/extender)? 

We are using razor templates, and the solution is currently using DW 8.7.2.2.

I hope there is a solution for this :-)


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Jens Jakob

An order only supports one shipping per order only, so if you have more than one product in the cart you have a problem.

Another approach is to have each of the shippings as products and then your products also as seperate products. Then you can create "Parts list" products (or BOM - Bill Of Material), which is a virtual product that consists of other products - a bundle. You then create a bundle for each product with a shipping product attached.

BR Nicolai

 
Nuno Aguiar
Reply

Hi Jens,

 

We had a similar issue in the past that we resolved differently.

  • We changed the weight unit to be "X" instead of kilos
  • Each product had a weight of 1 X, some had 2 Xs some 2.5X
  • In the Shipping Fees we assigned a curreny amount per X

 

For my case in particular the idea was to charge a fee based on the amount of product in the cart, and some products were worth more than others (hence the 2X and 2.5X), but I guess it could work for you as well.

 

Best Regards,

Nuno Aguiar

 
Jens Jakob Vedel Kristensen
Reply

Hi guys,

Thank you very much for the fast response.

In this particular case, I think it would be best to use the Parts list approach, but your suggestion (Nuno) might also work. 

We would like to avoid having to change too much in our Ecommerce templates, so I hope to achieve this with the Parts List approach.

Do Parts list products work the same way as any other Ecommerce products? Or what do we need to be aware of with regards to our Ecommerce Tempaltes / Ecommerce setup and checkout?

@Nuno: did your method require a lot of special code or Razor logic in your Ecommerce templates / checkout?

 
Nuno Aguiar
Reply

Hi Jens,

 

None. We were not showing the weight anywhere, so it waas just a matter of interpreting the weight in a ambiguous unit. The only downside was populating the fee rules. We had to create one fee rule for every possibility until. For example, if all products we 1X or multiples of X, we created the following fees:

  • 1 X - 1€
  • 2 X - 2€
  • 3 X - 3€
  • until what was reasonable for an eCom order, let's say 30 X - 30€

 

Best Regards,

Nuno Aguiar

 
Jens Jakob Vedel Kristensen
Reply

Hi Nuno

Thank you again for a speedy reply :-) Your solution might actually work, depending on the details in the setup.

If I may trouble you with a couple of questions, I assume you are using the new DW functionality for defining fees based on rules, is that correct?

There will be a maximum of 20 fee amounts, so it is doable. But I am not quite sure if I understand the way you made the relation between product and and the specific fee?

I just tried to see if I could figure it out. Is it something like the attached screenshot?

On the single product, there is a value entered in the weight field e.g. "1".

When defining the fee, what specifically do you need to define?

I assume:

  • a fee amount
  • select the products for which this fee applies
  • What else?

Is it the weight limit that should correspond to the entered value in the weight field on the product?

fee_weight.JPG
 
Nuno Aguiar
Reply

Hi Jens,

 

I actually used this technique before the upgrade to the fee matrix, but yes, you are on the right track. Let's assume the following (based on your screenshot):

  • The shops charges $100 per item
  • So if I order 3, I am charged $300 for shipping
  • Let's assume users don't purchase more than 15 items per order
     
  • It means all items have a wieght of 1
  • It also means I need to create at least 15 fee rules (from 1 to 15)

 

I never tested filtering for only some products. In my project it applied to all products. What did happen was that some products costed $200 to ship, hence had a weight of 2.

 

Does this answer your question?

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum