Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

UK postage with handling fee


davehodg

Recommended Posts

I noticed that having any kind of handling fee broke the UK postage tables contribution. It seems there were some undefined varibales.

 

 

zones.php has this after the main calculation:

         if ($shipping == -1) {

          $shipping_cost = 0;

          $shipping_method = MODULE_SHIPPING_ZONES_UNDEFINED_RATE;

        } else {

          $shipping_cost = ($shipping + MODULE_SHIPPING_ZONES_HANDLING

+ SHIPPING_HANDLING);

        }

      }

that last one should be a no_brainer, right?

 

Hm, looks like i only have one of those in the database:

mysql> select configuration_group_id , configuration_key, configuration_title, configuration_value  from configuration where configuration_key LIKE "%HANDLING%";

+------------------------+--------------------------------+---------------------+---------------------+

| configuration_group_id | configuration_key              |configuration_title | configuration_value |

+------------------------+--------------------------------+---------------------+---------------------+

|                      6 | MODULE_SHIPPING_ZONES_HANDLING | Handling Fee        |                     |

+------------------------+--------------------------------+---------------------+---------------------+

 

OK, having checked, yes, lose "SHIPPING_HANDLING" and it works.

 

Hope this helps someone!

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.

Guest
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...