Jump to content

Resolved - More Than One Flat Rate Postage Option


Guest hdcm

Recommended Posts

Hi All :)

Is it possible to have more than 1 flat rate shipping option?

For Example

1. Express Post

2. Registered Post

3. International Post

Etc?

If it is possible could someone please outline the code and changes required. I can do minor modifications but i am not a php guru!

Thanks in advance.

Link to comment
Share on other sites

  • 1 month later...

Hi All :)

Is it possible to have more than 1 flat rate shipping option?

For Example

1. Express Post

2. Registered Post

3. International Post

Etc?

If it is possible could someone please outline the code and changes required. I can do minor modifications but i am not a php guru!

Thanks in advance.

+1 I too need to setup 2 or 3 different shipping options. Anyone??

Link to comment
Share on other sites

You could try making a copy of the Flat Rate module and renaming it. You would need to do the following:

1. Go to /modules/shipping/ and make a copy of the Flat_Rate folder. Rename the copy to "Express_Post".

2. In the Express_Post folder open config.xml in a code editor. Change the line

<uid>[email protected]</uid>


to


<uid>[email protected]</uid>


and change 


<name><![CDATA[Flat_Rate]]></name>


to


<name><![CDATA[Express_Post]]></name>






3. In the file /Express_Post/shipping.class.php change the line


class Flat_Rate {


to


class Express_Post {






4. In the file /Express_Post/language/module.definitions.xml change the line


<group name="flat_rate">


to


<group name="express_post">


and change


<string name="module_title"><![CDATA[Flat Rate]]></string>


to


<string name="module_title"><![CDATA[Express Post]]></string>




Edit the module description if you want to.





5. In the file /Express_Post/skin/admin/index.tpl change


<div id="Flat_Rate" class="tab_content">


to


<div id="Express_Post" class="tab_content">


and change


<p>{$LANG.flatrate.module_description}</p>


to


<p>{$LANG.express_post.module_description}</p>

You should now have both Flat Rate and Express Post shipping modules in your admin dashboard.

Link to comment
Share on other sites

  • 2 weeks later...
Guest mjparty

You could try making a copy of the Flat Rate module and renaming it. You would need to do the following:

1. Go to /modules/shipping/ and make a copy of the Flat_Rate folder. Rename the copy to "Express_Post".

2. In the Express_Post folder open config.xml in a code editor. Change the line

<uid>[email protected]</uid>


to


<uid>[email protected]</uid>


and change 


<name><![CDATA[Flat_Rate]]></name>


to


<name><![CDATA[Express_Post]]></name>






3. In the file /Express_Post/shipping.class.php change the line


class Flat_Rate {


to


class Express_Post {






4. In the file /Express_Post/language/module.definitions.xml change the line


<group name="flat_rate">


to


<group name="express_post">


and change


<string name="module_title"><![CDATA[Flat Rate]]></string>


to


<string name="module_title"><![CDATA[Express Post]]></string>




Edit the module description if you want to.





5. In the file /Express_Post/skin/admin/index.tpl change


<div id="Flat_Rate" class="tab_content">


to


<div id="Express_Post" class="tab_content">


and change


<p>{$LANG.flatrate.module_description}</p>


to


<p>{$LANG.express_post.module_description}</p>

You should now have both Flat Rate and Express Post shipping modules in your admin dashboard.

This works VERY well - thanks for the post - I have made 2 extra options for my site. (Pickup/Store Delivery within 10kms)

Link to comment
Share on other sites

  • 2 months later...
Guest cdorling

Hallo

I followed this useful tip, and new postage options did indeed pop up in Admin, and I could set price, give a name, give green tick, save etc. But when it comes to placing an order, the new postage method(s) I set up unfortunately don't appear. I've checked that the coding changes I madeare correct, and the fact it's showing in Admin means that I've uploaded it properly. Before I check again, has anyone else got a new postage option showing as an option in the basket whilst ordering? And/or is there one particular coding change thats specific to the basket that I need to treble check?

Thanks, Chris

Link to comment
Share on other sites

Hi Chris,

I double-checked my instructions and it all worked - the copy of flat rate showed up in the shopping cart. Do you have any Allowed Zones set up? If so try removing them to see if that's causing the issue. I don't think caching would be the problem, but you can try disabling it just to eliminate that possibility. The only other possibility I can think of is if you have a typo somewhere in the edits. If the problem isn't Allowed Zones or caching, could you post the edited lines from your module.

Link to comment
Share on other sites

  • 3 months later...
Guest cdorling

It's taken me a while to get back, but alls working now - I hadn't used identical spelling for my new postage type throughout.

Great 'tweak'.

Link to comment
Share on other sites

  • 8 months later...

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