[Skip to main content](#vessel-content)

#   Create a clone of the Fedex shipping plugin

##

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

10 years 7 months ago [\#236278](#236278) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  *[Create a clone of the Fedex shipping plugin](/forum/28-shipping-methods/883789-create-a-clone-of-the-fedex-shipping-plugin#236278 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.5.34  Nicolas, I've created a custom modification of the Fedex shipping plugin that deals with custom-specified boxes and packing products in those boxes. I need to install this plugin WITH the standard Fedex shipping plugin so that both may be used to create shipping methods for separate warehouses.  I know the modified plugin works since initially it was to replace the standard plugin. So it is tested and working.  So I've updated the customized plugin via: - renamed all the files from fedex&#42; to fedexcb&#42; (.php, .xml, .wsdl, configuration and my own helper.php file) - modified the xml manifest to change the necessary names - modified the class name in the fedexcb.php file from plgHikashopshippingFedex to plgHikashopshippingFedexCB - modified the path to my helper file to fedexcb&#95;Helper.php - modified the path to the wsdl file in fedexcb.php - modified the '$name' variable in fedexcb.php from 'fedex' to 'fedexcb' - modified the '$doc&#95;form' variable in fedexcb.php from 'fedex' to fedexcb'  Yet I'm still running into a conflict with the two fedex plugins installed and enabled simultaneously. If I disable either one things seem to work. Any obvious suggestions as to what part of the plugin or configuration might still be conflicting?  Thanks, Paul")* was created by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")*

-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.5.34

Nicolas, I've created a custom modification of the Fedex shipping plugin that deals with custom-specified boxes and packing products in those boxes. I need to install this plugin WITH the standard Fedex shipping plugin so that both may be used to create shipping methods for separate warehouses.

I know the modified plugin works since initially it was to replace the standard plugin. So it is tested and working.

So I've updated the customized plugin via:
- renamed all the files from fedex* to fedexcb* (.php, .xml, .wsdl, configuration and my own helper.php file)
- modified the xml manifest to change the necessary names
- modified the class name in the fedexcb.php file from plgHikashopshippingFedex to plgHikashopshippingFedexCB
- modified the path to my helper file to fedexcb_Helper.php
- modified the path to the wsdl file in fedexcb.php
- modified the '$name' variable in fedexcb.php from 'fedex' to 'fedexcb'
- modified the '$doc_form' variable in fedexcb.php from 'fedex' to fedexcb'

Yet I'm still running into a conflict with the two fedex plugins installed and enabled simultaneously. If I disable either one things seem to work. Any obvious suggestions as to what part of the plugin or configuration might still be conflicting?

Thanks,
Paul

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgzNzg5LWNyZWF0ZS1hLWNsb25lLW9mLXRoZS1mZWRleC1zaGlwcGluZy1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

10 years 7 months ago [\#236330](#236330) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Create a clone of the Fedex shipping plugin](/forum/28-shipping-methods/883789-create-a-clone-of-the-fedex-shipping-plugin#236330 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.5.34  Nicolas, I've created a custom modification of the Fedex shipping plugin that deals with custom-specified boxes and packing products in those boxes. I need to install this plugin WITH the standard Fedex shipping plugin so that both may be used to create shipping methods for separate warehouses.  I know the modified plugin works since initially it was to replace the standard plugin. So it is tested and working.  So I've updated the customized plugin via: - renamed all the files from fedex&#42; to fedexcb&#42; (.php, .xml, .wsdl, configuration and my own helper.php file) - modified the xml manifest to change the necessary names - modified the class name in the fedexcb.php file from plgHikashopshippingFedex to plgHikashopshippingFedexCB - modified the path to my helper file to fedexcb&#95;Helper.php - modified the path to the wsdl file in fedexcb.php - modified the '$name' variable in fedexcb.php from 'fedex' to 'fedexcb' - modified the '$doc&#95;form' variable in fedexcb.php from 'fedex' to fedexcb'  Yet I'm still running into a conflict with the two fedex plugins installed and enabled simultaneously. If I disable either one things seem to work. Any obvious suggestions as to what part of the plugin or configuration might still be conflicting?  Thanks, Paul")*

Hello Paul,

Your changes seem to be enough to do what you want, can you give me more information on the issue that you are having through some screenshots, an error message will probably help us.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgzNzg5LWNyZWF0ZS1hLWNsb25lLW9mLXRoZS1mZWRleC1zaGlwcGluZy1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

10 years 7 months ago [\#236370](#236370) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  Replied by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")* on topic *[Create a clone of the Fedex shipping plugin](/forum/28-shipping-methods/883789-create-a-clone-of-the-fedex-shipping-plugin#236370 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.5.34  Nicolas, I've created a custom modification of the Fedex shipping plugin that deals with custom-specified boxes and packing products in those boxes. I need to install this plugin WITH the standard Fedex shipping plugin so that both may be used to create shipping methods for separate warehouses.  I know the modified plugin works since initially it was to replace the standard plugin. So it is tested and working.  So I've updated the customized plugin via: - renamed all the files from fedex&#42; to fedexcb&#42; (.php, .xml, .wsdl, configuration and my own helper.php file) - modified the xml manifest to change the necessary names - modified the class name in the fedexcb.php file from plgHikashopshippingFedex to plgHikashopshippingFedexCB - modified the path to my helper file to fedexcb&#95;Helper.php - modified the path to the wsdl file in fedexcb.php - modified the '$name' variable in fedexcb.php from 'fedex' to 'fedexcb' - modified the '$doc&#95;form' variable in fedexcb.php from 'fedex' to fedexcb'  Yet I'm still running into a conflict with the two fedex plugins installed and enabled simultaneously. If I disable either one things seem to work. Any obvious suggestions as to what part of the plugin or configuration might still be conflicting?  Thanks, Paul")*

FYI, I've requested the client send me a dump of the PHP error log or provide me access to it. Hopefully I'll get that this morning and it will provide some answers.

When I enable my custom box Fedex plugin (fedexcb) and enable it, the HikaShop shipping methods configuration page just displays a menu with NO styling.

Two screen shots attached. One is 'normal' with only one of the Fedex or Fedexcb plugins enabled (doesn't matter which one). The second is what happens on the same shipping methods configuration page with both are enabled.
[ ![Screen&#95;Shot&#95;2016-04-12&#95;at&#95;7&#95;51&#95;42&#95;AM.png](/forum/attachment/30606) ](/forum/attachment/30606 "...7&#95;51&#95;42&#95;AM.png")

[ ![Screen&#95;Shot&#95;2016-04-12&#95;at&#95;7&#95;51&#95;18&#95;AM.png](/forum/attachment/30607) ](/forum/attachment/30607 "...7&#95;51&#95;18&#95;AM.png")

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

- [ ![Screen&#95;Shot&#95;2016-04-12&#95;at&#95;7&#95;51&#95;42&#95;AM.png](/forum/attachment/30606) ](/forum/attachment/30606 "...7&#95;51&#95;42&#95;AM.png") [ ](/forum/attachment/30606?download=1 "...7&#95;51&#95;42&#95;AM.png")
- [ ![Screen&#95;Shot&#95;2016-04-12&#95;at&#95;7&#95;51&#95;18&#95;AM.png](/forum/attachment/30607) ](/forum/attachment/30607 "...7&#95;51&#95;18&#95;AM.png") [ ](/forum/attachment/30607?download=1 "...7&#95;51&#95;18&#95;AM.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgzNzg5LWNyZWF0ZS1hLWNsb25lLW9mLXRoZS1mZWRleC1zaGlwcGluZy1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

10 years 7 months ago [\#236374](#236374) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Create a clone of the Fedex shipping plugin](/forum/28-shipping-methods/883789-create-a-clone-of-the-fedex-shipping-plugin#236374 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.5.34  Nicolas, I've created a custom modification of the Fedex shipping plugin that deals with custom-specified boxes and packing products in those boxes. I need to install this plugin WITH the standard Fedex shipping plugin so that both may be used to create shipping methods for separate warehouses.  I know the modified plugin works since initially it was to replace the standard plugin. So it is tested and working.  So I've updated the customized plugin via: - renamed all the files from fedex&#42; to fedexcb&#42; (.php, .xml, .wsdl, configuration and my own helper.php file) - modified the xml manifest to change the necessary names - modified the class name in the fedexcb.php file from plgHikashopshippingFedex to plgHikashopshippingFedexCB - modified the path to my helper file to fedexcb&#95;Helper.php - modified the path to the wsdl file in fedexcb.php - modified the '$name' variable in fedexcb.php from 'fedex' to 'fedexcb' - modified the '$doc&#95;form' variable in fedexcb.php from 'fedex' to fedexcb'  Yet I'm still running into a conflict with the two fedex plugins installed and enabled simultaneously. If I disable either one things seem to work. Any obvious suggestions as to what part of the plugin or configuration might still be conflicting?  Thanks, Paul")*

Hello,

1. You should probably :
- Activate the Joomla debug mode ("Administration-&gt;Global configuration-&gt;System-&gt;Debug System/Language")
- Set the "error reporting" option of the Joomla configuration to "maximum"
- Test it again so that you can see if it display an error message which will help you to understand from what your issue is coming.

2. I only see 1 type of FedEx plugin, so you should make sure that you changed the name ("Hikashop FedEx Shipping Plugin") of your plugin through the xml file.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgzNzg5LWNyZWF0ZS1hLWNsb25lLW9mLXRoZS1mZWRleC1zaGlwcGluZy1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

10 years 7 months ago [\#236555](#236555) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  Replied by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")* on topic *[Create a clone of the Fedex shipping plugin](/forum/28-shipping-methods/883789-create-a-clone-of-the-fedex-shipping-plugin#236555 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.5.34  Nicolas, I've created a custom modification of the Fedex shipping plugin that deals with custom-specified boxes and packing products in those boxes. I need to install this plugin WITH the standard Fedex shipping plugin so that both may be used to create shipping methods for separate warehouses.  I know the modified plugin works since initially it was to replace the standard plugin. So it is tested and working.  So I've updated the customized plugin via: - renamed all the files from fedex&#42; to fedexcb&#42; (.php, .xml, .wsdl, configuration and my own helper.php file) - modified the xml manifest to change the necessary names - modified the class name in the fedexcb.php file from plgHikashopshippingFedex to plgHikashopshippingFedexCB - modified the path to my helper file to fedexcb&#95;Helper.php - modified the path to the wsdl file in fedexcb.php - modified the '$name' variable in fedexcb.php from 'fedex' to 'fedexcb' - modified the '$doc&#95;form' variable in fedexcb.php from 'fedex' to fedexcb'  Yet I'm still running into a conflict with the two fedex plugins installed and enabled simultaneously. If I disable either one things seem to work. Any obvious suggestions as to what part of the plugin or configuration might still be conflicting?  Thanks, Paul")*

Embarrassing! Finally got a php error log. Found that the helper file I created for this is what was getting in the way. It is still active in the original Fedex plugin (having not yet replaced that one with the standard one). So the class in that plugin was being declared a second time with the cloned plugin. Just FYI.

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgzNzg5LWNyZWF0ZS1hLWNsb25lLW9mLXRoZS1mZWRleC1zaGlwcGluZy1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
