Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Custom Shipping Module doesn't work


Recommended Posts

Hi, im trying to make my custom shipping module,

using the documentation I download from the contributions page.


The exercise in that documentation works fine,

but when I enable my own module and try to make

a order, the order stays at the first order page

and doesn't continue to the next step/page.


Here's the "quote" method in my shpping module:



function quote() {

global $cart, $shipping_quoted, $shipping_test2_cost, $shipping_test2_method;


$shipping_total = $cart->show_total();

if ( ($GLOBALS['shipping_quote_all'] == '1') || ($GLOBALS['shipping_quote_test2'] == '1') ) {

$shipping_quoted = 'test2';

$shipping_test2_cost = MODULE_SHIPPING_TEST2_RATE/100 * $shipping_total;

$shipping_test2_method = MODULE_SHIPPING_TEST2_TEXT_WAY;





I have skip the other methods where some constants are installed or removed

from the database.


any idea ?

Link to comment
Share on other sites

  • 2 weeks later...



I just had a quick play around with my own module for calculating a X% insurance and modified the table rates to go off order total quantity. I had similar issues as you mentioned and found that if you remove the underscores in the classdef you should be right :-) Worked for me :-)


Good luck!




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...