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

#  Profile for m2008

##

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

**[ Offline](/forum/user/43075-m2008)**

- **User Type:** User

- **Register Date:** 14 May 2016
- **Last login:** 10 years 1 month ago
- **Time Zone:**  UTC +0:00
- **Local Time:** 15:25

- **Posts:** 1
- **Profile views:** 44

- **Gender:** Unknown
- **Birthdate:** Unknown

- Posts

#  m2008's recent posts  (1 messages )

All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year     All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year

| <a id="forumtop"> </a> [  ](#forumbottom) | Subject | Replies / Views | Last Post | <a id="forumbottom"> </a> [   ](#forumtop) |
|---|---|---|---|---|
| [](/forum/23-market-how-to/886368-file-uploading-will-be-required#249595) | [file uploading will be Required](/forum/23-market-how-to/886368-file-uploading-will-be-required#249595 "Hi an Thank you for your good component  I want that user upload file via product creation and it must be (Required) how can i do this?! (uploading file will be Required).")        Category: [Market: How to?](/forum/23-market-how-to "If you didn't find the answer on our documentation neither on existing posts, please ask your question about HikaMarket here.")     Topic started 10 years 1 month ago, by [m2008](/forum/user/43075-m2008 "View m2008's Profile")       [Last Post](/forum/23-market-how-to/886368-file-uploading-will-be-required#249606 "Hi,  There is no built-in option for that kind of check ; but it is possible to add it using a small custom plugin.  Thanks to the trigger &quot;onBeforeProductCreate&quot; you can catch the product creation. In that function you can check that you're in the front-end (so in HikaMarket) and get the current logged vendor. Afterwards, you can check the product content and set the variable &quot; $do &quot; to False if you want to refuse the product creation.   www.hikashop.com/support/documentation/6...ntation.html#product  To check that HikaMarket is initialized and get the current vendor you can use that code  You can also use the trigger &quot;onBeforeProductUpdate&quot; if you also want to check the product files for the updates (and not just the creation) but you'll have to add more checks because a product can be update partially ; so you have to be sure that the product update is coming from the HikaMarket product edition (reading the parameters in the URL could be a good solution).  Regards,") 10 years 1 month ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:1  Views:838 | [Last Post](/forum/23-market-how-to/886368-file-uploading-will-be-required#249606 "Hi,  There is no built-in option for that kind of check ; but it is possible to add it using a small custom plugin.  Thanks to the trigger &quot;onBeforeProductCreate&quot; you can catch the product creation. In that function you can check that you're in the front-end (so in HikaMarket) and get the current logged vendor. Afterwards, you can check the product content and set the variable &quot; $do &quot; to False if you want to refuse the product creation.   www.hikashop.com/support/documentation/6...ntation.html#product  To check that HikaMarket is initialized and get the current vendor you can use that code  You can also use the trigger &quot;onBeforeProductUpdate&quot; if you also want to check the product files for the updates (and not just the creation) but you'll have to add more checks because a product can be update partially ; so you have to be sure that the product update is coming from the HikaMarket product edition (reading the parameters in the URL could be a good solution).  Regards,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      10 years 1 month ago |

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

Time to create page: 0.120 seconds

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

[](#top)
