Developer forum

Forum » Development » Shipping Provider rules

Shipping Provider rules

Arker Soe
Arker Soe
Reply

Hi,

I am trying to create a custom shipping provider and want to have fee rules like in the shipping method setting.

The custom fee rules of the shipping method can make the shipping method eligible for an order or not and show or hide in the cart in frontend.

But when attach my shipping provider to the method and check "use fee rules from provider", I do not know where to make the the shipping method eligible for an order or not.

the custom shipping provider is based on "ShippingProvider" class and I still get the price from overridden "CalculateShippingFee" function.

and that method is always available if it is active and for the right country selected.

what I want is setting conditions and make the shipping method eligible for orders according to them like the standard function "use custom fee rules"

I will be very thankful if code samples are provided.

Regards

Arker Soe


Replies

 
Arker Soe
Arker Soe
Reply

Hello

Can someone help me with this please?

 

You must be logged in to post in the forum