Re: New Royal Mail Modules
Hi,
I've installed the new Royal Mail module and i've notice an error... On the cart view i get this error message below the google checkout button
"Error: Shipping Methods not configured
rm1stpacketsf (ignored)
rmamsmallpacket (ignored)"
Shouldn't this be hidden or is it a known bug?
Thanks
Tim
Re: New Royal Mail Modules
Ok... it was a google checkout thing I had to fix.. however I believe this is an issue with this plugin... When I go to the google checkout screen it doesn't pick up the shipping rates but it does when I have one of the default shipping modules running....
Any thoughts on this?
Re: New Royal Mail Modules
I have the same problem. I used the google shipping generator, but it is displaying errors for the shipping methods it doesn't pick up.
Re: New Royal Mail Modules
Quote:
Originally Posted by
HeathenMagic
I have the same problem. I used the google shipping generator, but it is displaying errors for the shipping methods it doesn't pick up.
Hi,
Would you like to tell me which shipping modules your using and I'll give you an modified version of the file! PS when actually on Googlecheckout the shipping rates are not picked up properly, I will only be fixing the error below the googleheckout icon!
Tim
Re: New Royal Mail Modules
Quote:
Originally Posted by
timryc01
Hi,
Would you like to tell me which shipping modules your using and I'll give you an modified version of the file! PS when actually on Googlecheckout the shipping rates are not picked up properly, I will only be fixing the error below the googleheckout icon!
Tim
Hello there,
Thanks for that. I get the same result as you (below Google Checkout). Another error I get is below this also, but that is probably to do with another part of google checkout.
I have:-
Royal mail 1st packet
Royal mail 1st packet recorded
Airsure small packet
Airsure small packet extra insurance
International signed for small packet
Airmail small packet
Royal Mail special delviery next day
Royal mail special deliver 9.00 am
these are part of this mod of course
and the one that still displays is store pickup.
Regards,
Russ
Big Royal Mail Modules not hiding when free shipping enabled. freeshipper module
Hi all,
Just a Note of interest regarding the hiding of RM Modules when using the Freeshipper module
RE:
Quote:
Originally Posted by
TPHoare
Try as I might I can't get the RM modules to hide if Free Shipping is applied. Weights are set to zero, zones are not an issue and hide if invalid is set to true. Have I forgotten something or is this just something that the RM modules are not programmed to do?
I am using the Freeshipper module not Freeshipping options module.
Quote:
Originally Posted by
TPHoare
Sort of half solved my problem. Have inserted:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_RM1STPACKET_STATUS == 'True') ? true : false);
}
but will only work if hide if invalid switch is off in relevant shipping module admin.
Still good enough for me. Wish I knew what I was doing.
I was having the same problem, but I have a slightly different solution that doesn't require the hide if invalid switch to be set to off.
The freeshipper module allows you to set an item to "Always free shipping" and works by setting the weight for that item to zero. Unfortunately all the Big Royal Mail Modules give a shipping value to any weight that is less than or equal to 0.1Kg and increases the value according to the weight.
On the plus side this means the Big Royal Mail Module will assign the minimum value to all products that do not have a weight.
On the minus side it means that the Big Royal Mail Modules will not hide when the freeshipper module is used.
The following solution will resolve the problem but it does require that you give every product either a weight or tick the "Always free shipping" option and have the freeshipper module installed. (best to give all products a weight anyway, even downloads, in case you later remove the freeshipper module)
Failure to do so will result in the following error message at the checkout when a product with no weight AND not selected as always free shipping:
TITLE_NO_SHIPPING_AVAILABLE
TEXT_NO_SHIPPING_AVAILABLE
OK so with that understood, each Big Royal Mail Module that you wish to use will need editing thus (but make a backup first just to be safe):
1. Access the modules at includes\modules\shipping
2. Edit the Big Royal Mail Module you wish to use (e.g. \includes\modules\shipping\rm2ndletter.php)
3. Perform a search for "if ($total_weight <=" (without the " quotes)
you should find the following lines in each module:
Code:
if ($total_weight <= $zones_table[$i]) {
$this->enabled = true;
break;
}
} // end of looping through
4. insert the following code before the line: break;
Code:
// disable when entire cart is free shipping defined by total weight = 0 as initiated by freeshipper
if ($total_weight <=0) {
$this->enabled = ((MODULE_SHIPPING_xxxxxxxxxxx_STATUS == 'false') ? true : false);
}
5. Notice the xxxxxxxxxxx part. This needs to be changed to the name of the module you are editing.
e.g. if you are editing rm2ndletter.php it should look like this: MODULE_SHIPPING_RM2NDLETTER_STATUS
Remember to use UPPERCASE letters.
6. save the file and upload it to includes\modules\shipping
the finished code should look like this (assuming your editing rm2ndletter.php):
Code:
if ($total_weight <= $zones_table[$i]) {
$this->enabled = true;
// disable when entire cart is free shipping defined by total weight = 0 as initiated by freeshipper
if ($total_weight <=0) {
$this->enabled = ((MODULE_SHIPPING_RM2NDLETTER_STATUS == 'false') ? true : false);
}
break;
}
} // end of looping through
That's it. I hope this is helpful, it works for me. If I've made any mistakes or anyone has another solution, I would be glad to hear it.
TFB
Re: New Royal Mail Modules
Is it possible to hide shipping options based on product size?
For example, most of my products are shipped in small Jiffy envelopes which fall within the Royal Mail 'Large Letter' size category. However, I now have products where the package needs to be shipped as a 'Packet' - is it possible to hide the Large Letter shipping option if a large product is purchased?
Thanks in advance,
Jonathan
1 Attachment(s)
Re: New Royal Mail Modules
I've been trying to use the Eurozone, International Datapost, and International Standard from the Big Royal Mail module version: 2.21a (latest).
All other Royal mail modules work, except those 3 above. They do display the quotes correctly, but then it keeps getting stuck. When selecting any of those 3 as a shipping option, it keeps going back to index.php?main_page=checkout_shipping and does not want to proceed to index.php?main_page=checkout_payment :no:
Can anyone please shed a light on this thing? I've taken a look at the source code, trying to replace the function quote($method = '') with a simple function that returns an array from var_export but it still does not want to proceed to payment.
??
Here's a screenshot.
Re: New Royal Mail Modules
Nevermind I've fixed it. The solution is not to allow any underscore in the class name. v2.2.3 download is available here: http://www.babygekko.net/downloads/t...t_view/gid,22/
Re: New Royal Mail Modules
Hello all, I hope I get this right as I'm new and I'm not used to posting on these things :blush:
I've installed this module on my site (it isn't live yet), and it's an absolute beauty, thank you so much to all who've worked on it! I have tested it and cant find anything wrong with how it works. However the backend looks a bit odd. When I'm in admin, modules, shipping, above the table of modules there is a whole bunch of code, it's quite long, but here is an excerpt
PHP Code:
case false: if($order->info['total'] < MODULE_SHIPPING_RM1STPACKETSF_MIN_ORDERVALUE){ $this->enabled = false; return ; }else if(MODULE_SHIPPING_RM1STPACKETSF_MAX_ORDERVALUE != -1 && $order->info['total'] > MODULE_SHIPPING_RM1STPACKETSF_MAX_ORDERVALUE){ $this->enabled = false; return ; } break; } // end of switch on subtotal // check that it is a valid country being shipped to. $dest_country = $order->delivery['country']['iso_code_2']; $dest_zone = 0; for ($i=1; $i<=$this->num_zones; $i++) { $countries_table = constant('MODULE_SHIPPING_RM1STPACKETSF_ZONES_COUNTRIES_' . $i); $country_zones = preg_split("/,/", preg_replace('/\s*/','',$countries_table) ); if (in_array($dest_country, $country_zones)) { $dest_zone = $i; break; } } // ship to country is invalid for this service if ($dest_zone == 0) { $this->enabled = false; return ; }else{ $this->enabled = false; // enabled set to true if valid shipping weight found $zones_cost = constant('MODULE_SHIPPING_RM1STPACKETSF_ZONES_COST0_' . $dest_zone); $zones_table = preg_split("/[:,]/" , preg_replace('/\s*/','',$zones_cost) ); $size = sizeof($zones_table); for ($i=0; $i<$size; $i+=2) { if ($total_weight <= $zones_table[$i]) { $this->enabled = true; break; } } // end of looping through return ; } // end of valid country } // end of if hide invalid shipping methods is set } // class methods function quote($method = '') { global $order, $shipping_weight, $shipping_num_boxes, $currency; $currencies = new currencies(); $dest_country = $order->delivery['country']['iso_code_2']; $dest_zone = 0; $error = false; for ($i=1; $i<=$this->num_zones; $i++)
If you want more of an idea of how it looks, here is a screenshot
http://i207.photobucket.com/albums/b...hotofadmin.jpg
What I want to know, is does anyone else get anything like this? is it something I need to worry about, given that the module does seem to work?
Thanks in advance for any help...if it isn't already apparent I am no programmer, so the less jargon the better :smile:
Cheers!