Display shipping options based on custom field for product

  • Hello there.


    I’m working on a site which offers free shipping across all of their products with a couple of exceptions. For a handful of products I need to force two shipping options; Paid For or Collection Only.


    I was thinking the best way to do this would be to add a custom field to a product which lets the administrator choose which products are exempt from free delivery. I’d then need to perform a check in the cart to see whether any of these products exist, and if so, show the two delivery options.


    Is this at all possible or am I overthinking it?


    Thank you.

  • drewm

    Approved the thread.
  • A slight update.


    I've managed to temporarily solve this using weights.


    The free shipping option is for a minimum weight of 9 and I've set up two extra shipping methods to sit alongside this (no limits). I'm now setting any product that isn't eligible for free shipping with a weight greater than 9 so that the customer is forced the premium shipping option (due to its priority) with the option to change this at the checkout.


    It seems a bit hacky but it is working for the time being.


    Any other suggestions are greatly appreciated, though.