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

#   Custom Price Plugin

##

- **[ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")**
- [![ahcopyart's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/27667-ahcopyart "View ahcopyart's Profile") Topic Author
- [ Offline](/forum/user/27667-ahcopyart)

Less More

- Posts: 118
- Thank you received: 3
-
-

13 years 1 month ago [\#125916](#125916) by [ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")  *[Custom Price Plugin](/forum/27-checkout/862474-custom-price-plugin#125916 "-- HikaShop version -- : Business 2.2.2  Hello, I have created a 'custom price plugin' by modifying the 'Donation' plugin. Currently this plugin is in the 'plugins/system/custom&#95;price' folder and it is called 'custom&#95;price'. Since this is a core plugin to the Hikashop install, each time I upgrade Hikashop, this plugin gets overwritten and I have to manually restore it from a backup copy stored in another folder.  Obviously this is not the ideal solution, could you please let me know what I need to change to alter its name to 'custom&#95;price&#95;qcp' to ensure the calculations are maintained through updates?  Thanks")* was created by *[ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")*

-- HikaShop version -- : Business 2.2.2

Hello, I have created a 'custom price plugin' by modifying the 'Donation' plugin. Currently this plugin is in the 'plugins/system/custom_price' folder and it is called 'custom_price'. Since this is a core plugin to the Hikashop install, each time I upgrade Hikashop, this plugin gets overwritten and I have to manually restore it from a backup copy stored in another folder.

Obviously this is not the ideal solution, could you please let me know what I need to change to alter its name to 'custom_price_qcp' to ensure the calculations are maintained through updates?

Thanks

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#125968](#125968) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom Price Plugin](/forum/27-checkout/862474-custom-price-plugin#125968 "-- HikaShop version -- : Business 2.2.2  Hello, I have created a 'custom price plugin' by modifying the 'Donation' plugin. Currently this plugin is in the 'plugins/system/custom&#95;price' folder and it is called 'custom&#95;price'. Since this is a core plugin to the Hikashop install, each time I upgrade Hikashop, this plugin gets overwritten and I have to manually restore it from a backup copy stored in another folder.  Obviously this is not the ideal solution, could you please let me know what I need to change to alter its name to 'custom&#95;price&#95;qcp' to ensure the calculations are maintained through updates?  Thanks")*

Hi,

You have to retrieve the XML and the PHP files and rename them.
After that, you have to modify both files. In the xml file, you have to change this particular line: Code:

&lt;filename plugin="custom_price"&gt;custom_price.php&lt;/filename&gt;

using the new name for the plugin and the new name (without removing the ".php" for the filename).

In the php file, you will have the chance the classname Code:

class plgSystemCustom_price extends JPlugin{

and the line which load the parameters Code:

$plugin = JPluginHelper::getPlugin('system', 'custom_price');

Finally, you can put the two files into a zip file and install the plugin in your joomla.
Unpublish the old plugin and publish the new one. That's it !

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")**
- [![ahcopyart's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/27667-ahcopyart "View ahcopyart's Profile") Topic Author
- [ Offline](/forum/user/27667-ahcopyart)

Less More

- Posts: 118
- Thank you received: 3
-
-

13 years 1 month ago [\#125975](#125975) by [ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")  Replied by *[ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")* on topic *[Custom Price Plugin](/forum/27-checkout/862474-custom-price-plugin#125975 "-- HikaShop version -- : Business 2.2.2  Hello, I have created a 'custom price plugin' by modifying the 'Donation' plugin. Currently this plugin is in the 'plugins/system/custom&#95;price' folder and it is called 'custom&#95;price'. Since this is a core plugin to the Hikashop install, each time I upgrade Hikashop, this plugin gets overwritten and I have to manually restore it from a backup copy stored in another folder.  Obviously this is not the ideal solution, could you please let me know what I need to change to alter its name to 'custom&#95;price&#95;qcp' to ensure the calculations are maintained through updates?  Thanks")*

Perfect info, I'll go try it soon

Thanks again!

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

- **[justme](/forum/user/40056-justme "View justme's Profile")**
- [![justme's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40056-justme "View justme's Profile")
- [ Offline](/forum/user/40056-justme)

Less More

- Posts: 64
- Thank you received: 7
-
-

8 years 11 months ago -  8 years 11 months ago [\#284993](#284993) by [justme](/forum/user/40056-justme "View justme's Profile")  Replied by *[justme](/forum/user/40056-justme "View justme's Profile")* on topic *[Custom Price Plugin](/forum/27-checkout/862474-custom-price-plugin#284993 "-- HikaShop version -- : Business 2.2.2  Hello, I have created a 'custom price plugin' by modifying the 'Donation' plugin. Currently this plugin is in the 'plugins/system/custom&#95;price' folder and it is called 'custom&#95;price'. Since this is a core plugin to the Hikashop install, each time I upgrade Hikashop, this plugin gets overwritten and I have to manually restore it from a backup copy stored in another folder.  Obviously this is not the ideal solution, could you please let me know what I need to change to alter its name to 'custom&#95;price&#95;qcp' to ensure the calculations are maintained through updates?  Thanks")*

Hi ahcopyart,

I have been trying to do the same, but unfortunately my knowledge of php is not good enough. So I can't get it to work. I have Hikashop 2.6.4. Business edition. I haven't had the time to update to Hikashop 3** yet. Anyway Would you mind sharing your custom price plugin that you have created?

Any help would be so much appreciated. Thanks in advance.
Justin

Last edit: 8 years 11 months ago by [justme](/forum/user/40056-justme "View justme's Profile").

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

- **[justme](/forum/user/40056-justme "View justme's Profile")**
- [![justme's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40056-justme "View justme's Profile")
- [ Offline](/forum/user/40056-justme)

Less More

- Posts: 64
- Thank you received: 7
-
-

8 years 11 months ago [\#284994](#284994) by [justme](/forum/user/40056-justme "View justme's Profile")  Replied by *[justme](/forum/user/40056-justme "View justme's Profile")* on topic *[Custom Price Plugin](/forum/27-checkout/862474-custom-price-plugin#284994 "-- HikaShop version -- : Business 2.2.2  Hello, I have created a 'custom price plugin' by modifying the 'Donation' plugin. Currently this plugin is in the 'plugins/system/custom&#95;price' folder and it is called 'custom&#95;price'. Since this is a core plugin to the Hikashop install, each time I upgrade Hikashop, this plugin gets overwritten and I have to manually restore it from a backup copy stored in another folder.  Obviously this is not the ideal solution, could you please let me know what I need to change to alter its name to 'custom&#95;price&#95;qcp' to ensure the calculations are maintained through updates?  Thanks")*

Just an extra note, I have bought the custom price plugin for the order custom field. But I can't implement this because I would have to alter my whole site and also our connected filemaker database. Our product pages are very slow because of the many variations. So I am looking for a temporary quick fix with the price change. So I can focus in the future how to change this and also upgrade to 3.2 version. This is just an extra explanation for me asking for your plugin.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MjQ3NC1jdXN0b20tcHJpY2UtcGx1Z2luP3RtcGw9bWFya2Rvd24=) 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.061 seconds

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