Results 1 to 1 of 1
Nov 11, 2009, 18:53 #1
- Join Date
- Nov 2009
- 0 Post(s)
- 0 Thread(s)
PHP code required for shipping modules on virtuemart
First off I am using Virtuemart 1.1 shopping cart on Joomla 1.0.15.
I am using the Auspost Shipping Module that calculates the shipping cost based on the size and weight of my products. This is looked up using an online delivery rate calculator.
This is working fine, however, I would like to have a flat shipping rate applied to some of my products but Auspost doesn't deal with this.
Therefore, I am using an additional shipping module whereby I enter all the rates and weights. I have set up a flat rate based on a very low weight as this is irrelevant to the product.
This works except I get an error returned from the Auspost module at checkout saying invalid weight parameter.
What I require is some PHP code that will look to see if the flat rate applies to the product ordered. If so, process without looking further to Auspost.
If it doesn't apply, then use Auspost Module to calculate shipping cost.
If this is possible, please let me know and I will then provide you the current code.
Thanks for any help.