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

#   I want YES to be enable by default to IMAGES AND FILE, in the pup-up uppload

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

9 years 4 months ago [\#270837](#270837) by [wawa](/forum/user/50471-wawa "View wawa's Profile")  *[I want YES to be enable by default to IMAGES AND FILE, in the pup-up uppload](/forum/26-product-category-display/890506-i-want-yes-to-be-enable-by-default-to-images-and-file-in-the-pup-up-uppload#270837 "Hello i have the HikaShop Business 3.0.1, i want on section IMAGES AND FILE, in the pup-up upload in the FREE DOWNLOAD to setup the button YES by DEFAULT (green) ???  You can see on the attach file. I want YES to be enable by default ( green) ??? How to do it ??? Thanks")* was created by *[wawa](/forum/user/50471-wawa "View wawa's Profile")*

Hello
i have the HikaShop Business 3.0.1, i want on section IMAGES AND FILE, in the pup-up upload in the FREE DOWNLOAD to setup the button YES by DEFAULT (green) ???

You can see on the attach file. I want YES to be enable by default ( green) ??? How to do it ???
Thanks
[ ![FireShotCapture7-PierreDuretService-Administration&#95;-http&#95;&#95;&#95;www.electromenagerlongueuil.png](/forum/attachment/38415) ](/forum/attachment/38415 "...rlongueuil.png")

- [ ![FireShotCapture7-PierreDuretService-Administration&#95;-http&#95;&#95;&#95;www.electromenagerlongueuil.png](/forum/attachment/38415) ](/forum/attachment/38415 "...rlongueuil.png") [ ](/forum/attachment/38415?download=1 "...rlongueuil.png")

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

9 years 4 months ago [\#270844](#270844) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[I want YES to be enable by default to IMAGES AND FILE, in the pup-up uppload](/forum/26-product-category-display/890506-i-want-yes-to-be-enable-by-default-to-images-and-file-in-the-pup-up-uppload#270844 "Hello i have the HikaShop Business 3.0.1, i want on section IMAGES AND FILE, in the pup-up upload in the FREE DOWNLOAD to setup the button YES by DEFAULT (green) ???  You can see on the attach file. I want YES to be enable by default ( green) ??? How to do it ??? Thanks")*

Hi,

Before the line:
$status = $fileClass-&gt;save($file, $file_type);
you can add the code:
$file-&gt;file_free_download = 1;
in the file administrator/components/com_hikashop/controllers/product.php

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

9 years 4 months ago [\#270898](#270898) by [wawa](/forum/user/50471-wawa "View wawa's Profile")  Replied by *[wawa](/forum/user/50471-wawa "View wawa's Profile")* on topic *[I want YES to be enable by default to IMAGES AND FILE, in the pup-up uppload](/forum/26-product-category-display/890506-i-want-yes-to-be-enable-by-default-to-images-and-file-in-the-pup-up-uppload#270898 "Hello i have the HikaShop Business 3.0.1, i want on section IMAGES AND FILE, in the pup-up upload in the FREE DOWNLOAD to setup the button YES by DEFAULT (green) ???  You can see on the attach file. I want YES to be enable by default ( green) ??? How to do it ??? Thanks")*

Hello i apply the instructions, but the default button is still the right one (no) .thanjs

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

9 years 4 months ago [\#270900](#270900) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[I want YES to be enable by default to IMAGES AND FILE, in the pup-up uppload](/forum/26-product-category-display/890506-i-want-yes-to-be-enable-by-default-to-images-and-file-in-the-pup-up-uppload#270900 "Hello i have the HikaShop Business 3.0.1, i want on section IMAGES AND FILE, in the pup-up upload in the FREE DOWNLOAD to setup the button YES by DEFAULT (green) ???  You can see on the attach file. I want YES to be enable by default ( green) ??? How to do it ??? Thanks")*

Then probably some similar modification is necessary somewhere else in that file.

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

- **[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")**
- [![Jabatec's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5180.png)](/forum/user/5180-jabatec "View Jabatec's Profile")
- [ Offline](/forum/user/5180-jabatec)

Less More

- Posts: 90
- Thank you received: 15
-
- [](https://jabatec.com)
-

5 years 6 months ago [\#331949](#331949) by [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")  Replied by *[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")* on topic *[I want YES to be enable by default to IMAGES AND FILE, in the pup-up uppload](/forum/26-product-category-display/890506-i-want-yes-to-be-enable-by-default-to-images-and-file-in-the-pup-up-uppload#331949 "Hello i have the HikaShop Business 3.0.1, i want on section IMAGES AND FILE, in the pup-up upload in the FREE DOWNLOAD to setup the button YES by DEFAULT (green) ???  You can see on the attach file. I want YES to be enable by default ( green) ??? How to do it ??? Thanks")*

Hi,
I am trying to solve the same problem, but the following line does not exist in the file product.php

$status = $fileClass-&gt;save($file, $file_type);

Thank you
Javier

---

Javier Ballester

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

5 years 6 months ago [\#331950](#331950) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[I want YES to be enable by default to IMAGES AND FILE, in the pup-up uppload](/forum/26-product-category-display/890506-i-want-yes-to-be-enable-by-default-to-images-and-file-in-the-pup-up-uppload#331950 "Hello i have the HikaShop Business 3.0.1, i want on section IMAGES AND FILE, in the pup-up upload in the FREE DOWNLOAD to setup the button YES by DEFAULT (green) ???  You can see on the attach file. I want YES to be enable by default ( green) ??? How to do it ??? Thanks")*

Hi,

Please double check. I still see that line in the manageUpload function of that file with the latest version of HikaShop.

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

- **[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")**
- [![Jabatec's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5180.png)](/forum/user/5180-jabatec "View Jabatec's Profile")
- [ Offline](/forum/user/5180-jabatec)

Less More

- Posts: 90
- Thank you received: 15
-
- [](https://jabatec.com)
-

5 years 6 months ago [\#331967](#331967) by [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")  Replied by *[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")* on topic *[I want YES to be enable by default to IMAGES AND FILE, in the pup-up uppload](/forum/26-product-category-display/890506-i-want-yes-to-be-enable-by-default-to-images-and-file-in-the-pup-up-uppload#331967 "Hello i have the HikaShop Business 3.0.1, i want on section IMAGES AND FILE, in the pup-up upload in the FREE DOWNLOAD to setup the button YES by DEFAULT (green) ???  You can see on the attach file. I want YES to be enable by default ( green) ??? How to do it ??? Thanks")*

Hi, sorry, yes line 746

[ ![hikashop-upload-to-yes.png](/forum/attachment/52544) ](/forum/attachment/52544 "...oad-to-yes.png")

When importing files the default value is also "no",

but after reviewing the forum, I have been doing tests and hikashop allows access via csv import, to all the important fields of image registration and files that are linked to a product. Imports, i haven't tried all of them, but filename and files_free_download work fine.

These fields are:
files &#124; files_name &#124; files_description &#124; files_limit &#124; files_ordering &#124; files_free_download &#124; images &#124; images_name &#124; images_description &#124; images_limit &#124; images_ordering &#124; images_free_download &#124;

Thanks for the job.
Javier

---

Javier Ballester

- [ ![hikashop-upload-to-yes.png](/forum/attachment/52544) ](/forum/attachment/52544 "...oad-to-yes.png") [ ](/forum/attachment/52544?download=1 "...oad-to-yes.png")

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

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

- **[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")**
- [![Jabatec's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5180.png)](/forum/user/5180-jabatec "View Jabatec's Profile")
- [ Offline](/forum/user/5180-jabatec)

Less More

- Posts: 90
- Thank you received: 15
-
- [](https://jabatec.com)
-

5 years 4 months ago [\#333090](#333090) by [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")  Replied by *[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")* on topic *[I want YES to be enable by default to IMAGES AND FILE, in the pup-up uppload](/forum/26-product-category-display/890506-i-want-yes-to-be-enable-by-default-to-images-and-file-in-the-pup-up-uppload#333090 "Hello i have the HikaShop Business 3.0.1, i want on section IMAGES AND FILE, in the pup-up upload in the FREE DOWNLOAD to setup the button YES by DEFAULT (green) ???  You can see on the attach file. I want YES to be enable by default ( green) ??? How to do it ??? Thanks")*

Hi Nicolas,
I think that with the last update this file has been modified.
In again include the following line to be able to activate by default the option "downloads yes" but I think it does not work

$ file-&gt; free_download_file = 1;
Thanks
Javier

---

Javier Ballester

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

5 years 4 months ago [\#333093](#333093) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[I want YES to be enable by default to IMAGES AND FILE, in the pup-up uppload](/forum/26-product-category-display/890506-i-want-yes-to-be-enable-by-default-to-images-and-file-in-the-pup-up-uppload#333093 "Hello i have the HikaShop Business 3.0.1, i want on section IMAGES AND FILE, in the pup-up upload in the FREE DOWNLOAD to setup the button YES by DEFAULT (green) ???  You can see on the attach file. I want YES to be enable by default ( green) ??? How to do it ??? Thanks")*

Hi,

Of course, all the core files of HikaShop are overwritten on each update.
That change being in a core file, it's normal that you loose it when you update your HikaShop.
Note however that we've added instead the line below instead, thinking about you :
$file-&gt;file_free_download = (int)$config-&gt;get('default_file_free_download_on_upload', 0);
That way, you don't need to modify that file anymore.
Instead, you can open the table hikashop_config via your PHPMyAdmin and add an entry with the config_namekey default_file_free_download_on_upload and the value 1 and then it will work like you want and that change will be permanent, even when you update in the future.

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

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

[](#top)
