cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable Flat Rate Shipping Method Only for Selected Products?

SOLVED

How to enable Flat Rate Shipping Method Only for Selected Products?

How to do the Flat Rate Shipping Method only for selected products.

 

3 ACCEPTED SOLUTIONS

Accepted Solutions

Re: How to enable Flat Rate Shipping Method Only for Selected Products?

Hi@Aveeva,

It required register/login on this website.

BTW you can download from the below link which I have created for you.
https://drive.google.com/file/d/1d455_x7B4-RAeEyaJMBpv1DW7RTsI0_Q/view

Let me know, if you still face any issue.

View solution in original post

Re: How to enable Flat Rate Shipping Method Only for Selected Products?

yes working perfect, how can i apply the condition like if Category And Product shipping is applicable don't show other shipping Methods. 

View solution in original post

Re: How to enable Flat Rate Shipping Method Only for Selected Products?

@Aveeva 
Good to hear that it is working perfect.

You need to make some customization as per your requirement (show/hide shipping method) in the following template file of your current theme.

template/checkout/onepage/shipping_method/available.phtml

View solution in original post

8 REPLIES 8

Re: How to enable Flat Rate Shipping Method Only for Selected Products?

You could try to make a product-attribute and a customisation in the cartprice-rules so you can add an attribute flat Rate shipping next to the free shipping option. If you creat a cartpricerule wirhout discount but with a flatrate option. It is a bit of a 'thinking out loud' reply. I'm not 100% sure it works. Good luck.

Re: How to enable Flat Rate Shipping Method Only for Selected Products?

Hi @Aveeva 

I have used following extension earlier for flat rate shipping for specific products. It is open source.
https://www.magecloud.net/marketplace/extension/category-and-product-shipping/

You can use it or get some clue from extension model file as per your requirements.

I hope if will help you!

Good Luck!

Re: How to enable Flat Rate Shipping Method Only for Selected Products?

@Vimal Kumar  I can't able to download, could you pls help me to do download?   https://www.magecloud.net/marketplace/extension/category-and-product-shipping/

Re: How to enable Flat Rate Shipping Method Only for Selected Products?

Hi@Aveeva,

It required register/login on this website.

BTW you can download from the below link which I have created for you.
https://drive.google.com/file/d/1d455_x7B4-RAeEyaJMBpv1DW7RTsI0_Q/view

Let me know, if you still face any issue.

Re: How to enable Flat Rate Shipping Method Only for Selected Products?

yes working perfect, how can i apply the condition like if Category And Product shipping is applicable don't show other shipping Methods. 

Re: How to enable Flat Rate Shipping Method Only for Selected Products?

@Aveeva 
Good to hear that it is working perfect.

You need to make some customization as per your requirement (show/hide shipping method) in the following template file of your current theme.

template/checkout/onepage/shipping_method/available.phtml

Re: How to enable Flat Rate Shipping Method Only for Selected Products?

Hello @Aveeva 

 

https://github.com/karliuka/m2.ShippingTweaks 

 

in this plugin, hide all other shipping methods when free available.

 

https://github.com/karliuka/m2.ShippingTweaks/blob/master/Plugin/Shipping/Model/Rate/Result.php

 

In above file, you can modify like if you get the specific product then do you logic



hope it will help you, if help you then mark as solution.


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: How to enable Flat Rate Shipping Method Only for Selected Products?

Can i get for M1.