Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Table rater per item broken in OSC 2.3.3


Snarg

Recommended Posts

Hello,

 

I would like to charge my shipping based upon the number of items the customer has ordered. When I had a 2.2x shop, the modified shipping table I had worked fine. However, it does not play well with 2.3.3. I was using the shipping table found here: http://addons.oscommerce.com/info/928/

 

When I run it with 2.3.3 and go to checkout, I get the following error:

Deprecated: Function split() is deprecated in /includes/modules/shipping/table.php on line 62

 

Warning: Cannot modify header information - headers already sent by (output started at /includes/modules/shipping/table.php:62) in /includes/functions/general.php on line 49

 

Any help either getting this module to work or pointing me to a table based shipping module that uses the number of items to charge shipping would be greatly appreciated. Thank you for your time.

Link to comment
Share on other sites

This should sort line 62

 

$table_cost = split("[:,]" , MODULE_SHIPPING_TABLE_COST);

 

becomes

 

$table_cost = preg_split("/[:,]/" , MODULE_SHIPPING_TABLE_COST);

Getting the Phoenix off the ground

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