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

#   Same Files in different Directories - Why?

##

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

Less More

- Posts: 5
- Thank you received: 0
-
-

9 years 4 weeks ago [\#280453](#280453) by [TInkyWinky](/forum/user/51674-tinkywinky "View TInkyWinky's Profile")  *[Same Files in different Directories - Why?](/forum/31-development/892364-same-files-in-different-directories-why#280453 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.8.1 -- PHP version -- : 7.1 -- Browser(s) name and version -- : Chrome  Hi there. I'm currently modifying a hikashop plugin (vendorlocationfilter) and I am wondering why some files are called the same, have the same contents but are simply in another directory. It's hard to find out which file is the one to be changed. Should I change all the files? How do they correlate? For example I have &#92;administrator&#92;components&#92;com&#95;hikamarket&#92;extensions&#92;plg&#95;hikashop&#95;vendorlocationfilter&#92;vendorlocationfilter.php and &#92;plugins&#92;hikashop&#92;vendorlocationfilter&#92;vendorlocationfilter.php  I know the second one is the one that directly affects what happens on my web site but I'm still wondering what the other file is being used for. I figured this appears to happen for many files but I cannot figure out why.  Cheers!")* was created by *[TInkyWinky](/forum/user/51674-tinkywinky "View TInkyWinky's Profile")*

-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.8.1
-- PHP version -- : 7.1
-- Browser(s) name and version -- : Chrome

Hi there.
I'm currently modifying a hikashop plugin (vendorlocationfilter) and I am wondering why some files are called the same, have the same contents but are simply in another directory. It's hard to find out which file is the one to be changed. Should I change all the files? How do they correlate?
For example I have
\administrator\components\com_hikamarket\extensions\plg_hikashop_vendorlocationfilter\vendorlocationfilter.php
and
\plugins\hikashop\vendorlocationfilter\vendorlocationfilter.php

I know the second one is the one that directly affects what happens on my web site but I'm still wondering what the other file is being used for. I figured this appears to happen for many files but I cannot figure out why.

Cheers!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5MjM2NC1zYW1lLWZpbGVzLWluLWRpZmZlcmVudC1kaXJlY3Rvcmllcy13aHk/dG1wbD1tYXJrZG93bg==) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

9 years 4 weeks ago [\#280454](#280454) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Same Files in different Directories - Why?](/forum/31-development/892364-same-files-in-different-directories-why#280454 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.8.1 -- PHP version -- : 7.1 -- Browser(s) name and version -- : Chrome  Hi there. I'm currently modifying a hikashop plugin (vendorlocationfilter) and I am wondering why some files are called the same, have the same contents but are simply in another directory. It's hard to find out which file is the one to be changed. Should I change all the files? How do they correlate? For example I have &#92;administrator&#92;components&#92;com&#95;hikamarket&#92;extensions&#92;plg&#95;hikashop&#95;vendorlocationfilter&#92;vendorlocationfilter.php and &#92;plugins&#92;hikashop&#92;vendorlocationfilter&#92;vendorlocationfilter.php  I know the second one is the one that directly affects what happens on my web site but I'm still wondering what the other file is being used for. I figured this appears to happen for many files but I cannot figure out why.  Cheers!")*

Hello,

That's simple, the "extensions" directory in HikaShop or HikaMarket are there to store the plugins provided with the components to perform a re-installation.
The plugins are stored in the Joomla plugins folder ; that's all.

Now, please do not modify HikaShop or HikaMarket core files/plugins since you won't be able to update afterwards without loosing your modifications.

Regards,

---

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

The following user(s) said Thank You: [TInkyWinky](/forum/user/51674-tinkywinky "View TInkyWinky's Profile")

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

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

Less More

- Posts: 5
- Thank you received: 0
-
-

9 years 4 weeks ago [\#280475](#280475) by [TInkyWinky](/forum/user/51674-tinkywinky "View TInkyWinky's Profile")  Replied by *[TInkyWinky](/forum/user/51674-tinkywinky "View TInkyWinky's Profile")* on topic *[Same Files in different Directories - Why?](/forum/31-development/892364-same-files-in-different-directories-why#280475 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.8.1 -- PHP version -- : 7.1 -- Browser(s) name and version -- : Chrome  Hi there. I'm currently modifying a hikashop plugin (vendorlocationfilter) and I am wondering why some files are called the same, have the same contents but are simply in another directory. It's hard to find out which file is the one to be changed. Should I change all the files? How do they correlate? For example I have &#92;administrator&#92;components&#92;com&#95;hikamarket&#92;extensions&#92;plg&#95;hikashop&#95;vendorlocationfilter&#92;vendorlocationfilter.php and &#92;plugins&#92;hikashop&#92;vendorlocationfilter&#92;vendorlocationfilter.php  I know the second one is the one that directly affects what happens on my web site but I'm still wondering what the other file is being used for. I figured this appears to happen for many files but I cannot figure out why.  Cheers!")*

Thank you, Jerome.

What do you recommend instead of modifying core components? I do like these plugins a lot, yet there are some features missing / not fully implemented I'd like to have. Please correct me if I'm wrong, but I don't see a major problem in manually updating HikaShop in case an upcoming update leads to problems with my modifications. For example, I simply needed a new field in the vendorlocationfilter module, a redirect URL in case of specific filter rules and outcomes. In addition I figured, $empty_is_all had never been used and I needed this functionality for my new field to work as intended.
Maybe I could just re-create the plugin with a different name, this way the plugin wouldn't be affected in case of an update, would it?

Best Regards,

Fabio

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5MjM2NC1zYW1lLWZpbGVzLWluLWRpZmZlcmVudC1kaXJlY3Rvcmllcy13aHk/dG1wbD1tYXJrZG93bg==) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

9 years 4 weeks ago [\#280480](#280480) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Same Files in different Directories - Why?](/forum/31-development/892364-same-files-in-different-directories-why#280480 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.8.1 -- PHP version -- : 7.1 -- Browser(s) name and version -- : Chrome  Hi there. I'm currently modifying a hikashop plugin (vendorlocationfilter) and I am wondering why some files are called the same, have the same contents but are simply in another directory. It's hard to find out which file is the one to be changed. Should I change all the files? How do they correlate? For example I have &#92;administrator&#92;components&#92;com&#95;hikamarket&#92;extensions&#92;plg&#95;hikashop&#95;vendorlocationfilter&#92;vendorlocationfilter.php and &#92;plugins&#92;hikashop&#92;vendorlocationfilter&#92;vendorlocationfilter.php  I know the second one is the one that directly affects what happens on my web site but I'm still wondering what the other file is being used for. I figured this appears to happen for many files but I cannot figure out why.  Cheers!")*

Hello,

Just create a new plugin (with a different name) which use (almost) the same code.
It's the best way to be sure that you will be able to update and keep your custom code.
Exactly like the fact to not edit code view but performing view overrides.

Regards,

---

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

The following user(s) said Thank You: [TInkyWinky](/forum/user/51674-tinkywinky "View TInkyWinky's Profile")

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

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