Jump to content

[Resolved] Rename All in One Shipping and Paypal Pro


Recommended Posts

With Brian's most valuable help the situation has been resolved.

The answer to the solution is the following:

The names of all the parts in the following files needs to be the same. If you want the new name to be "Carrier" then you will need to check or change for this.

1: Go to the shipping module folder containing your new named AIO .shipping, ie Carrier

2: Open shipping.class,php and check the name is not AIOS.

about Line 29

class Carrier{

3. If it is; change it to your required name.

4. Open the config.xml file, check the name is correct.

ie <name><![CDATA[Carrier]]></name>

With these changes the shipping costs should show up at the check out.

regards

Duncan

Link to post
Share on other sites
  • 4 months later...

Using the "token" system will update the appropriately named plugin.

Since cubecart.com does not know about "Postage", you will need to update that manually.

To get the renamed AIOS (Postage) from 105 to 107:

config.xml, line 8:
<version>1.0.7</version>

shipping.class.php, line 258:
if ($this->_weight < $r['min_weight'] && $r['min_weight'] > 0) {

/admin/index.inc.php, lines 209-219:
/* ADD/EDIT/DELETE SHIPPING ZONE */

if (isset($_GET['delete_zone']) && !empty($_GET['delete_zone']) && Admin::getInstance()->permissions('settings', CC_PERM_DELETE)) {
	if ($GLOBALS['db']->delete('CubeCart_shipping_zones', array('id' => (int)$_GET['delete_zone']))) {
		$GLOBALS['db']->delete('CubeCart_shipping_rates', array('zone_id' => (int)$_GET['delete_zone']));
		$GLOBALS['gui']->setNotify($lang['allinoneshipping']['notify_shipping_zone_delete']);
	} else {
		$GLOBALS['gui']->setError($lang['allinoneshipping']['error_shipping_zone_delete']);
	}
	httpredir(currentPage(array('delete_zone','tab')), 'shipping_zones');
}

also on line 362:
$zones[$i]['link_delete'] = currentPage(array('tab'), array('delete_zone' => $zones[$i]['id']));

 

Link to post
Share on other sites

Your file has a mixture of Macintosh, normal, and Windows line endings for each actual line. That gives double spacing. So, line numbers I gave above should be multiplied by 2 then subtract 1 as it pertains to your file.

Link to post
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
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...