Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Duplicate shipping modules


Mitchellcaines

Recommended Posts

Posted

Hi, Mitchell here

 

I am trying to make a few duplicates of oscommerce' default "table rate" shipping method but are having no success.

 

I have added "table2.php" in /topcomp.com.au/includes/modules/shipping

I have added "table2.php" in /topcomp.com.au/includes/languages/english/modules/shipping

 

I changed:

 

<?php

/*

$Id: table2.php 1739 2007-12-20 00:52:16Z hpdl $

 

FROM

 

<?php

/*

$Id: table.php 1739 2007-12-20 00:52:16Z hpdl

This change was made in the /topcomp.com.au/includes/languages/english/modules/shipping/table2.php

 

I changed: The same in /topcomp.com.au/includes/modules/shipping/table2.php

 

As a result of this i get the following error in http://www.topcomp.com.au/admin/modules.php?set=shipping (oscommerce admin shipping modules list

 

Error:Fatal error: Cannot redeclare class table in /home/.absolved/mitchellcaines/topcomp.com.au/includes/modules/shipping/table2.php on line 13

 

From that like 13 if i change the word "table" to "tablex (x is variable) the error message goes away and there is a blank space for the new table rate, but it does not show up in the checkout section of my website

 

Any help greatly appreciated

 

Thanks a lot

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...