Post by jasonc310771 » Wed Sep 18, 2013 7:26 pm

We have three methods of posting;

Royal Mail for small items under 2kg
myHermes for 2kg to 15kg
and Parcel Force for everything over 15kg

But the problem is that myHermes does not accept items that are to big so need to allow the shipping page to know if the item can be sent by the myHermes method before showing it in the shipping page.

Where in OC can I change the script so it does not show the myHermes method if the item is over a certain size. I have created a new field in the product DB for the volume of the item called 'volume' ! but not sure which script to create a vqMod for.

OR

has a vqMod/extension already been created to cater for this sort of thing ?

Active Member

Posts

Joined
Fri Mar 01, 2013 6:46 pm

Post by Johnathan » Thu Sep 19, 2013 12:14 am

You could possibly use Restrict Shipping Methods for this. You'd create a restriction so that myHermes is only enabled when the item dimensions (i.e. the "Width Max", "Height Max", and "Length Max") fields are under a certain value. This field compares each item individually, but if you wanted to use the total volume of the items, then you could also use the "Volume Max" field instead.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by jasonc310771 » Thu Sep 19, 2013 5:43 am

Wow I did not think there was one, ah just checked and see it is an external site so would not have found this on OC site. I shall consider this one.

Out of interest which script or tpl file is used to display the shipping options in the overlay. I am going to try my hand at creating my own vqMod.

Active Member

Posts

Joined
Fri Mar 01, 2013 6:46 pm

Post by stokeyblokey » Thu Sep 19, 2013 8:51 am

Formula based shipping could also handle this well, I use it for something similar ;-)

Stokey


User avatar
Active Member

Posts

Joined
Sat Aug 31, 2013 10:19 pm

Post by Johnathan » Thu Sep 19, 2013 10:54 pm

jasonc310771 wrote:Wow I did not think there was one, ah just checked and see it is an external site so would not have found this on OC site. I shall consider this one.

Out of interest which script or tpl file is used to display the shipping options in the overlay. I am going to try my hand at creating my own vqMod.
It is available in the opencart.com store as well, but there are so many extensions there that things can be hard to find: http://www.opencart.com/index.php?route ... on_id=1614

The shipping methods are pulled from the list of extensions the same way the admin panel does it to display them in Extensions > Shipping. Take a look at the code for that controller file to see how it's done.
stokeyblokey wrote:Formula based shipping could also handle this well, I use it for something similar ;-)
You're right that Formula-Based Shipping can also create rates based on dimensions, but the shipping methods the original poster wanted to use (Royal Mail, myHermes, Parcel Force) would need to be restricted by something outside them, like Restrict Shipping Methods.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 1 guest