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

Board Categories Development HikaShop 3.0 Beta

##

#  [Development](/forum/31-development "View Category 'Development'")  582 topics

| If you are developping a plugin for Hikashop or customizing our component, this is the board to be. |
|---|
|  | Category | Last Post |
| [ ](/forum/57-hikashop-3-0-beta) | ###  [HikaShop 3.0 Beta](/forum/57-hikashop-3-0-beta "View Category 'HikaShop 3.0 Beta'")  42 topics  [  ](/forum/57-hikashop-3-0-beta/feed?format=feed&type=rss) | [Re: Quantity Bundled Products](/forum/57-hikashop-3-0-beta/891293-quantity-bundled-products#336351 "Hi,  Yes. It was added in the 3.4.0 3 years ago:   www.hikashop.com/support/documentation/5...ashop-changelog.html")     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")     5 years 3 weeks ago |

##

| <a id="forumtop"> </a> [  ](#forumbottom) | Subject | Replies / Views | Last Post |
|---|---|---|---|
| [](/forum/31-development/899755-secure-downloads-and-secure-links) | [Secure Downloads and Secure Links](/forum/31-development/899755-secure-downloads-and-secure-links "-- HikaShop version -- : 4.1 -- Joomla version -- : 3.9  Hello I want to use Hikashop to sell files virtual. I want the download links to be in the direct link of the server and in the link of the other server address and the download link of the file on the site server in the form of Secure Downloads and Secure Links. The user or other site cannot use the download link of the purchased file. is this possible.")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 6 years 6 months ago, by [aran-rad](/forum/user/34411-aran-rad "View aran-rad's Profile")       [Last Post](/forum/31-development/899755-secure-downloads-and-secure-links#318660 "Hi,  What is &quot;Secure Downloads&quot; and &quot;Secure Links&quot; ? No you just need HikaShop and add the files in the files area of your products.") 6 years 6 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:959 | [Last Post](/forum/31-development/899755-secure-downloads-and-secure-links#318660 "Hi,  What is &quot;Secure Downloads&quot; and &quot;Secure Links&quot; ? No you just need HikaShop and add the files in the files area of your products.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      6 years 6 months ago |
| [](/forum/31-development/899595-how-to-call-a-plugin-from-an-article) | [How to call a plugin from an article](/forum/31-development/899595-how-to-call-a-plugin-from-an-article "-- url of the page with the problem -- : duchampdrive.fr -- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.3.16 -- Browser(s) name and version -- : Firefox 68 -- Error-message(debug-mod must be tuned on) -- : None  Dear,  I would like to create a shipping module to show the shipping option available that are shown on the check-out page (My shipping options keep changing). For that I try to create a Custom HTML Modules (  www.kksou.com/php-gtk2/joomla/how-to-run...tom-html-modules.php ) using the 'Hikashop manual shipping plugin' plugin instead, but I don't find the plugin name and argument I should write the in. I tried to include the following code but it does not work: {plg&#95;hikashopshipping&#95;manual} Can you please provide the command that should be included.  Thank you in advance Martial")         Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 6 years 6 months ago, by [martial.duchamp@gmail.com](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile")       [Last Post](/forum/31-development/899595-how-to-call-a-plugin-from-an-article#317833 "Excellent. I works very well. Thank you.") 6 years 6 months ago     by [martial.duchamp@gmail.com](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile") | Replies:6  Views:1225 | [Last Post](/forum/31-development/899595-how-to-call-a-plugin-from-an-article#317833 "Excellent. I works very well. Thank you.") by [martial.duchamp@gmail.com](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile")      6 years 6 months ago |
| [](/forum/31-development/899495-inc-boxpacker-php-file-typo) | [inc/boxpacker.php file typo](/forum/31-development/899495-inc-boxpacker-php-file-typo "-- HikaShop version -- : 4.2.3  While reviewing our project codebase to ensure no php shortcodes in use, we've spotted what looks like a potential mistake in the Hikashop inc/boxpack.php file:  Line 10 is: ?&gt;??php  Hope this is useful!")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 6 years 7 months ago, by [brodders](/forum/user/53496-brodders "View brodders's Profile")       [Last Post](/forum/31-development/899495-inc-boxpacker-php-file-typo#317347 "Great, thanks Nicolas!") 6 years 7 months ago     by [brodders](/forum/user/53496-brodders "View brodders's Profile") | Replies:2  Views:999 | [Last Post](/forum/31-development/899495-inc-boxpacker-php-file-typo#317347 "Great, thanks Nicolas!") by [brodders](/forum/user/53496-brodders "View brodders's Profile")      6 years 7 months ago |
| [](/forum/31-development/899494-reminder-plugin) | [Reminder plugin](/forum/31-development/899494-reminder-plugin "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.3 -- Browser(s) name and version -- : Safari  Hello, I have a problem with this plugin, I am using the reminder for carts, and the link to access the cart takes me to a blank page with the following URL: site/hikashop-menu-for-user-control-panel/cart/show/cid-11505 (the email href is {VAR: URL}). I need help. Thank you.")         Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 6 years 7 months ago, by [Gonzalez Villoria](/forum/user/1171-gonzalez-villoria "View Gonzalez Villoria's Profile")       [Last Post](/forum/31-development/899494-reminder-plugin#317291 "Hi,  Well, that's just the debug of the MySQL queries on the page. The page doesn't seem to be completely blank. So in that case, you should normally see an error message when you click on a &quot;wrong&quot; link even with the debug turned off. Could you try to switch to protostar, the default template, and try to use that link again? Do you see an error message in that case? Also, how did you get that link ? Did to create a cart with a test user account of your own with a cart that you left there ? Could you also provide a screenshot of the settings of the reminder plugin ?") 6 years 7 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:1020 | [Last Post](/forum/31-development/899494-reminder-plugin#317291 "Hi,  Well, that's just the debug of the MySQL queries on the page. The page doesn't seem to be completely blank. So in that case, you should normally see an error message when you click on a &quot;wrong&quot; link even with the debug turned off. Could you try to switch to protostar, the default template, and try to use that link again? Do you see an error message in that case? Also, how did you get that link ? Did to create a cart with a test user account of your own with a cart that you left there ? Could you also provide a screenshot of the settings of the reminder plugin ?") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      6 years 7 months ago |
| [](/forum/31-development/899394-using-onafterorderupdate-in-administrator-backend) | [Using onAfterOrderUpdate in administrator backend](/forum/31-development/899394-using-onafterorderupdate-in-administrator-backend "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.1  Hi, I've been trying to create a function when admin modifies a order from backend, and I've had no luck.. I've tried using variations of below code in order.php (classes and controllers) any help would be appreciate! ( I want to create a function when admin cancels an order, needs to send an API to outside affiliate) Thanks!  function onAfterOrderUpdate (&amp;$order,&amp;$send&#95;email) { var&#95;dump('ahasdh'); exit; $config =&amp; hikashop&#95;config(); $confirmed = $config-&gt;get('order&#95;confirmed&#95;status'); $orderClass = hikashop&#95;get('class.order'); $orderInDb = $orderClass-&gt;loadFullOrder($order-&gt;order&#95;id); if (!isset ($order-&gt;order&#95;status)) return true; if ($order-&gt;order&#95;status = $confirmed) { return true; }  if ($order-&gt;order&#95;status == $confirmed) {  // my simple action to test } }")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 6 years 7 months ago, by [nozaro33](/forum/user/45757-nozaro33 "View nozaro33's Profile")       [Last Post](/forum/31-development/899394-using-onafterorderupdate-in-administrator-backend#316826 "Hi,  In that case, you can use the onBeforeOrderCreate(&amp;$order, &amp;$do) trigger. You could first create a custom field of the table &quot;order&quot; so that you could store the information you want in that column of the hikashop&#95;order table. Then, you can check the cookies of the customer in that trigger with the $&#95;COOKIE PHP global array:   www.php.net/manual/en/reserved.variables.cookies.php    www.tutorialrepublic.com/php-tutorial/php-cookies.php  And in the onBeforeOrderCreate function of your plugin, you can just have that code: $order-&gt;xxx = $var; where xxx is the column name of your custom field and $var contains the string you want to store. HikaShop will save your data for you automcatically since your code will be just before the saving process.") 6 years 7 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:1117 | [Last Post](/forum/31-development/899394-using-onafterorderupdate-in-administrator-backend#316826 "Hi,  In that case, you can use the onBeforeOrderCreate(&amp;$order, &amp;$do) trigger. You could first create a custom field of the table &quot;order&quot; so that you could store the information you want in that column of the hikashop&#95;order table. Then, you can check the cookies of the customer in that trigger with the $&#95;COOKIE PHP global array:   www.php.net/manual/en/reserved.variables.cookies.php    www.tutorialrepublic.com/php-tutorial/php-cookies.php  And in the onBeforeOrderCreate function of your plugin, you can just have that code: $order-&gt;xxx = $var; where xxx is the column name of your custom field and $var contains the string you want to store. HikaShop will save your data for you automcatically since your code will be just before the saving process.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      6 years 7 months ago |
| [](/forum/31-development/899193-custom-field-validation) | [Custom Field validation?](/forum/31-development/899193-custom-field-validation "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.15 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hey,  So we have a custom database table with some data and we want to add a field to a product say 'Purchase Code' and when they try and add the product to the cart we want to validate that the code entered exists and has not been used. Is this possible? I can do it with custom ajax routine / script. But wondered what you think is the best way?  Also, same once order is complete I want to run a quick database routine? Suggestions?  Many thanks Tony")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 6 years 8 months ago, by [mikekiy](/forum/user/33571-mikekiy "View mikekiy's Profile")       [Last Post](/forum/31-development/899193-custom-field-validation#315710 "Hi,  The best is to implement the onAfterProductQuantityCheck(&amp;$product, &amp;$wantedQuantity, &amp;$quantity, &amp;$cart&#95;products, &amp;$cart&#95;product&#95;id, &amp;$displayErrors) trigger in a plugin of the group &quot;hikashop&quot;. This trigger will be called just before a product is added to the cart. You can set $quantity to 0 to cancel the add to cart.  And for the order, I would recommend to do the same with the trigger onBeforeOrderCreate(&amp;$order, &amp;$do) You can set $do to false to cancel the creation of the order.") 6 years 8 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:1136 | [Last Post](/forum/31-development/899193-custom-field-validation#315710 "Hi,  The best is to implement the onAfterProductQuantityCheck(&amp;$product, &amp;$wantedQuantity, &amp;$quantity, &amp;$cart&#95;products, &amp;$cart&#95;product&#95;id, &amp;$displayErrors) trigger in a plugin of the group &quot;hikashop&quot;. This trigger will be called just before a product is added to the cart. You can set $quantity to 0 to cancel the add to cart.  And for the order, I would recommend to do the same with the trigger onBeforeOrderCreate(&amp;$order, &amp;$do) You can set $do to false to cancel the creation of the order.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      6 years 8 months ago |
| [](/forum/31-development/895605-add-to-cart-html-link-adds-only-1-item) | [Add to cart HTML link adds only 1 item](/forum/31-development/895605-add-to-cart-html-link-adds-only-1-item "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.11 -- PHP version -- : 7.1  Hi! I ve been using with no problems in previous version of hikashop, this url Add to cart HTML link ''  www.XXXXXX.gr/index.php?option=com&#95;hikas...&amp;cid=7107&amp;Itemid=262 '' and every time i hit this url I get a new item in my cart. If i hit the same item it keeps adding quantity. From this update , or maybe previous it doest work. It adds anly 1 item. How can I use a url to add as many items as I want. Thank you in advance")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 8 years 2 months ago, by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")       [Last Post](/forum/31-development/895605-add-to-cart-html-link-adds-only-1-item#315546 "Hi,  I can assure you that it's the case. Click twice on your add to cart link and you'll see the second time that error message: &quot;Too much quantity selected for product Sampania&quot; Note that if you have variants in the product, then it could be a limit in the variant. Note also that it could come from a limit configured in the Products&gt;Limits menu.") 6 years 9 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:8  Views:2618 | [Last Post](/forum/31-development/895605-add-to-cart-html-link-adds-only-1-item#315546 "Hi,  I can assure you that it's the case. Click twice on your add to cart link and you'll see the second time that error message: &quot;Too much quantity selected for product Sampania&quot; Note that if you have variants in the product, then it could be a limit in the variant. Note also that it could come from a limit configured in the Products&gt;Limits menu.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      6 years 9 months ago |
| [](/forum/31-development/898976-checkout-javascript-error) | [checkout javascript error](/forum/31-development/898976-checkout-javascript-error "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.3.12 -- Browser(s) name and version -- : Firefox (latest at this time) -- Error-message(debug-mod must be tuned on) -- : SyntaxError: unexpected token: ':'  Hi,  While implementing our own CAPTCHA found a javascript problem. Try this: - make sure you are not legged in - add a product to the cart - beginning the checkout - on the page for the customer try registering without validating the CAPTCHA code - the form is submitted to the server and an error is returned - on return all the script codes on the page are executed again, which is great, but joomla has some json object used just as a datablock which generate errors when you try to assign it &quot;text/javascript&quot; type and the rest of the javascript code is stopped.  This are defined with the tag:  You can find an example of this loaded by: {joomlaroot}&#92;libraries&#92;src&#92;Document&#92;Renderer&#92;Html&#92;HeadRenderer.php on the line 250. Found the code generating this problem here: {joomlaroot}&#92;media&#92;com&#95;hikashop&#92;js&#92;hikashop.js on the line 305.  I suggest removing those scripts from the list of scripts to be reloaded on AJAX since they are defined already on the header of the page.")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 6 years 10 months ago, by [nicirvine](/forum/user/13862-nicirvine "View nicirvine's Profile")       [Last Post](/forum/31-development/898976-checkout-javascript-error#314628 "Hi,  Thank you for your feedback. We'll add a check for that with the next version of HikaShop. You can add such code in the javascript updateElem function to avoid the issue for now:") 6 years 10 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:951 | [Last Post](/forum/31-development/898976-checkout-javascript-error#314628 "Hi,  Thank you for your feedback. We'll add a check for that with the next version of HikaShop. You can add such code in the javascript updateElem function to avoid the issue for now:") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      6 years 10 months ago |
| [](/forum/31-development/898698-which-file-containing-shopping-carts-variable) | [Which file containing Shopping Cart’s variable?](/forum/31-development/898698-which-file-containing-shopping-carts-variable "-- HikaShop version -- : business 3.2 -- Joomla version -- : Joomla 3.9.13 -- PHP version -- : 7.2  Hi,  we engaged shop.com for doing marketing for our website and their developer is trying to do develop a tracking code for hikashop upon checkout, Their developer are requesting Shopping Cart’s variable from us, may i know which is the file contain this?")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 6 years 11 months ago, by [waisign](/forum/user/44924-waisign "View waisign's Profile")       [Last Post](/forum/31-development/898698-which-file-containing-shopping-carts-variable#313216 "Hi,  Here are some threads explaining how to implement tracking code on the HikaShop checkout:   www.hikashop.com/forum/reports-statistic...dwords-tracking.html    www.hikashop.com/forum/4-how-to/78715-tr...filiate-website.html  Giving them these should be enough for them to implement the tracking code but if they have more precise questions we would be happy to answer.") 6 years 11 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:1054 | [Last Post](/forum/31-development/898698-which-file-containing-shopping-carts-variable#313216 "Hi,  Here are some threads explaining how to implement tracking code on the HikaShop checkout:   www.hikashop.com/forum/reports-statistic...dwords-tracking.html    www.hikashop.com/forum/4-how-to/78715-tr...filiate-website.html  Giving them these should be enough for them to implement the tracking code but if they have more precise questions we would be happy to answer.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      6 years 11 months ago |
| [](/forum/31-development/897628-override-font-awesome-css-properly) | [Override font-awesome.css properly?](/forum/31-development/897628-override-font-awesome-css-properly "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2.19  I've created a stripped down and customized version of fontawesome to use on hikashop but I'm not exactly sure where to place the file to properly override the default css file. Right now I'm simply replacing the file in the media folder but I would prefer to do a proper override so upgrading hikashop does not wipe it out.  The file I'm trying to override:")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 7 years 5 months ago, by [PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")       [Last Post](/forum/31-development/897628-override-font-awesome-css-properly#313043 "Hi,  It still requires the modification I proposed before. We don't want to make it into an option as otherwise people would disable it without knowing what they are doing and we would then have support requests from people asking us why they don't see the icons...") 7 years 14 hours ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:3518 | [Last Post](/forum/31-development/897628-override-font-awesome-css-properly#313043 "Hi,  It still requires the modification I proposed before. We don't want to make it into an option as otherwise people would disable it without knowing what they are doing and we would then have support requests from people asking us why they don't see the icons...") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      7 years 14 hours ago |
| [](/forum/31-development/898544-custom-404-error-page-sh404sef) | [Custom 404 Error Page + sh404SEF](/forum/31-development/898544-custom-404-error-page-sh404sef "-- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.2  Hello,  My site uses sh404SEF but I have disabled it for Hikashop using the &quot;By Component&quot; setting, leaving it to Joomla router. This solution has been suggested by both extensions for optimal performance. This has mostly been a success.  I am wondering about handling 404 errors &amp; showing an error page. If I test by making up a non-existing URL it just shows the system message heading &quot;Warning&quot; with a message &quot;Page not found: abcdefg&quot;  This is not the sh404SEF error page, nor is it Joomla's typical 404 page with the red title bar &amp; &quot;article not found&quot; or &quot;component not found&quot; message. Is there something happening with HikaShop with it's SEF handling?")         Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 7 years 3 weeks ago, by [itsyourit](/forum/user/44287-itsyourit "View itsyourit's Profile")       [Last Post](/forum/31-development/898544-custom-404-error-page-sh404sef#312619 "Hi Nicolas, thanks for looking further.  I did not have an override for the product / show. But I checked it and compared the code, it looks slightly different - here's what mine contained, without any override (strange!):  I created an override and replaced it with your code snippet, and it showed the system error page. I then enabled my custom error page and it showed. Curious that my unchanged &quot;show&quot; template had different code. I'd be interested in why but this change did solve the problem. Thanks!") 7 years 2 weeks ago     by [itsyourit](/forum/user/44287-itsyourit "View itsyourit's Profile") | Replies:4  Views:1623 | [Last Post](/forum/31-development/898544-custom-404-error-page-sh404sef#312619 "Hi Nicolas, thanks for looking further.  I did not have an override for the product / show. But I checked it and compared the code, it looks slightly different - here's what mine contained, without any override (strange!):  I created an override and replaced it with your code snippet, and it showed the system error page. I then enabled my custom error page and it showed. Curious that my unchanged &quot;show&quot; template had different code. I'd be interested in why but this change did solve the problem. Thanks!") by [itsyourit](/forum/user/44287-itsyourit "View itsyourit's Profile")      7 years 2 weeks ago |
| [](/forum/31-development/898520-restrict-files-upload-by-extension-using-triggers) | [Restrict files upload by extension using triggers](/forum/31-development/898520-restrict-files-upload-by-extension-using-triggers "-- url of the page with the problem -- :   teachersmarketplace.ca  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.1.14  Hi. I'm here related to question that was original started on HikaMarket Forum   www.hikashop.com/forum/23-market-how-to/...or-files.html#312195  I want to know if is possible to use new triggers: onBeforeFileCreate, onBeforeFileUpdate, onAfterFileCreate and onAfterFileUpdate. to limit the file size dynamically depending on user group. A lot of thanks for your help.")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 7 years 3 weeks ago, by [OPHWD](/forum/user/58074-ophwd "View OPHWD's Profile")       [Last Post](/forum/31-development/898520-restrict-files-upload-by-extension-using-triggers#312229 "Hi,  I suppose it's possible. However, I'm not sure that the uploader will be able to properly take into account the failed saving of the file. If you cancel the saving of the file in onBeforeFileCreate with the $do parameter set to false. That will definitely prevent the file from being added in the hikashop&#95;file table. However, the file will still be uploaded in the upload folder. And I'm not sure the uploader will be able to properly display an error back to the customer. So it's worth a try, but I can't guarantee it will work. That would require some development work to confirm that.") 7 years 3 weeks ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:1372 | [Last Post](/forum/31-development/898520-restrict-files-upload-by-extension-using-triggers#312229 "Hi,  I suppose it's possible. However, I'm not sure that the uploader will be able to properly take into account the failed saving of the file. If you cancel the saving of the file in onBeforeFileCreate with the $do parameter set to false. That will definitely prevent the file from being added in the hikashop&#95;file table. However, the file will still be uploaded in the upload folder. And I'm not sure the uploader will be able to properly display an error back to the customer. So it's worth a try, but I can't guarantee it will work. That would require some development work to confirm that.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      7 years 3 weeks ago |
| [](/forum/31-development/898513-questions-about-the-image-popup-selector) | [Questions about the image popup selector](/forum/31-development/898513-questions-about-the-image-popup-selector "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.12  Hi,  First of all, this thread comes from here:    www.hikashop.com/forum/23-market-how-to/...-popup-selector.html  Jerome has recommended me to post it here to get more help.  -----  We need to duplicate the function shown in the attachment to show paths instead of images and insert it into an external input field.  The input field is connected to a custom field of Hikashop (text type) and we need to save the selected server path into this field.  We have some questions regarding this customization:  1. How to call that popup iframe (as shown in the attachment) from a custom button / link.  2. How to change the root position of the tree to show the root of the server  3. How to insert the value selected in the iframe to the custom field  Can you help us with that?  Thanks in advance.  -- Victor")         Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 7 years 3 weeks ago, by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")       [Last Post](/forum/31-development/898513-questions-about-the-image-popup-selector#312164 "Hi,  1. That is easy. Just look at the HTML of the popup and you'll get the &quot;source&quot; attribute of the iframe tag. If you call that same URL, you'll get the interface. And to have it into a popup there are many ways to do it in Joomla:   stackoverflow.com/questions/13023602/pop-up-in-joomla    quantumwarp.com/kb/articles/30-joomla/60...3rd-party-extensions  2. There is no option for that. You could add an extra parameter to the URL of point 1 and then modify the galleryimage function of administrator/components/com&#95;hikashop/views/upload/view.html.php to change the root based on that parameter.  3. You can redefine window.hikashop.submitFct(images) in a view override of the product edition page as this will be the callback function of the image popup selector. In it, you can get the selected path(s) in the variable images and store that in your custom field input with a bit of javascript.") 7 years 3 weeks ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:973 | [Last Post](/forum/31-development/898513-questions-about-the-image-popup-selector#312164 "Hi,  1. That is easy. Just look at the HTML of the popup and you'll get the &quot;source&quot; attribute of the iframe tag. If you call that same URL, you'll get the interface. And to have it into a popup there are many ways to do it in Joomla:   stackoverflow.com/questions/13023602/pop-up-in-joomla    quantumwarp.com/kb/articles/30-joomla/60...3rd-party-extensions  2. There is no option for that. You could add an extra parameter to the URL of point 1 and then modify the galleryimage function of administrator/components/com&#95;hikashop/views/upload/view.html.php to change the root based on that parameter.  3. You can redefine window.hikashop.submitFct(images) in a view override of the product edition page as this will be the callback function of the image popup selector. In it, you can get the selected path(s) in the variable images and store that in your custom field input with a bit of javascript.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      7 years 3 weeks ago |
| [](/forum/31-development/898286-musicstore-mp3-sample-access-to-files) | [MusicStore mp3 sample - access to files](/forum/31-development/898286-musicstore-mp3-sample-access-to-files "-- HikaShop version -- : HikaShop Business: 4.2.1 -- Joomla version -- : 3.9.11  Hello  we are building a music store that will have mp3 samples. I was able to program everything in an override. Only, the upload / safe folder is protected with a .htaccess.  How can I access the mp3 in this folder and have it displayed in the audio. I don't want to switch of the .htaccess Unfortunately, I do not find the download area, otherwise I could have looked there ...  Very grateful for every tip. Maya")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 7 years 1 month ago, by [bytekultur](/forum/user/4243-bytekultur "View bytekultur's Profile")       [Last Post](/forum/31-development/898286-musicstore-mp3-sample-access-to-files#311336 "Hi,  The download controller requires a file entry in the hikashop&#95;file table and based on how the file is configured, it requires an order id of an order with the corresponding product purchased. So supposing that you add the sample fiel as a &quot;free download&quot; file in the product backend edition interface, you'll get the URL you need to use on the frontend product page. Supposing that you're editing a view file of the product page via the Display&gt;Views menu, in the variable $this-&gt;element-&gt;files you have an array of all the free download files of the product. So you can output the links like that: And if you want to generate that download link elsewhere, you can do it like that:") 7 years 1 month ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:6  Views:1679 | [Last Post](/forum/31-development/898286-musicstore-mp3-sample-access-to-files#311336 "Hi,  The download controller requires a file entry in the hikashop&#95;file table and based on how the file is configured, it requires an order id of an order with the corresponding product purchased. So supposing that you add the sample fiel as a &quot;free download&quot; file in the product backend edition interface, you'll get the URL you need to use on the frontend product page. Supposing that you're editing a view file of the product page via the Display&gt;Views menu, in the variable $this-&gt;element-&gt;files you have an array of all the free download files of the product. So you can output the links like that: And if you want to generate that download link elsewhere, you can do it like that:") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      7 years 1 month ago |
| [](/forum/31-development/898148-recaptcha-v3) | [reCAPTCHA v3](/forum/31-development/898148-recaptcha-v3 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.11 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Firefox last version  hello I use ReCaptcha plugin for HikaShop   www.hikashop.com/support/support/documen...-with-recaptcha.html  but ReCaptcha v2 please help me to change and fix HikaShop ReCaptcha v2 plugin to ReCaptcha v3 thanks")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 7 years 2 months ago, by [p30yaran](/forum/user/52927-p30yaran "View p30yaran's Profile")       [Last Post](/forum/31-development/898148-recaptcha-v3#310148 "Hi,  There is nothing to &quot;fix&quot;. Recatpcha v3 is basically recaptcha v2 with on top of that the capability to get analytics on the risk of different actions on different pages of the website. So the recaptcha plugin we provide is already v3. Should we made a v3 change, it would just be handling a score instead of true/false for the result of the captcha and you would have to setup a threshold setting in the plugin to authorize / refuse the scores based on it. So it would just make it more complex to setup (as you would need to guess what score is best for your website), while it wouldn't add any benefit. Now, another plugin could be developed for recaptcha v3 to add analytic capabilities and track the risk of the user among different actions of your website, and it could potentially be combined with the v2 plugin already there. But that's a complex development as you need to be able to define which actions you want to track on your website (so it needs to be dynamic and support Joomla actions, HikaShop actions, and other extension actions), and that also means that it would require a configuration of the actions to track on your website in the plugin.  In short, there is nothing to fix, and I would recommend to just use the plugin for what it's been made to do, since it does what it is supposed to do: look bots from registration on your website.") 7 years 2 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:2287 | [Last Post](/forum/31-development/898148-recaptcha-v3#310148 "Hi,  There is nothing to &quot;fix&quot;. Recatpcha v3 is basically recaptcha v2 with on top of that the capability to get analytics on the risk of different actions on different pages of the website. So the recaptcha plugin we provide is already v3. Should we made a v3 change, it would just be handling a score instead of true/false for the result of the captcha and you would have to setup a threshold setting in the plugin to authorize / refuse the scores based on it. So it would just make it more complex to setup (as you would need to guess what score is best for your website), while it wouldn't add any benefit. Now, another plugin could be developed for recaptcha v3 to add analytic capabilities and track the risk of the user among different actions of your website, and it could potentially be combined with the v2 plugin already there. But that's a complex development as you need to be able to define which actions you want to track on your website (so it needs to be dynamic and support Joomla actions, HikaShop actions, and other extension actions), and that also means that it would require a configuration of the actions to track on your website in the plugin.  In short, there is nothing to fix, and I would recommend to just use the plugin for what it's been made to do, since it does what it is supposed to do: look bots from registration on your website.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      7 years 2 months ago |
| [](/forum/31-development/898061-keeping-order-details-up-to-date) | [Keeping order details up to date](/forum/31-development/898061-keeping-order-details-up-to-date "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.3.3  Were wanting to keep the order details page up to date when open in a browser. So if you have an open order on your page, and someone else modifies the order (any of the field sets, Ie show&#95;general, show&#95;details, show&#95;billing, show&#95;additional etc) that we can reload that fieldset only.  We know that this URL : '/administrator/index.php?option=com&#95;hikashop&amp;ctrl=order&amp;task=show&amp;subtask='FIELDSET'&amp;cid=order-&gt;order&#95;id ;?&gt;&amp;tmpl=component',  will give the HTML of that entire fieldset, but how can we know if the values/object that generate that field only have changed so we can reload just that fieldset.  We already have in place the ability to reload the fieldset, but need to be able to determine if any of those values in that fieldset have changed.  Any suggestions?")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 7 years 3 months ago, by [cworthen75](/forum/user/57545-cworthen75 "View cworthen75's Profile")       [Last Post](/forum/31-development/898061-keeping-order-details-up-to-date#309754 "Hello,  The only ways to know if an order have been changed must be to : - Use triggers like onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email) ==&gt; you'll find more information via   www.hikashop.com/support/documentation/6...mentation.html#order  - Use the &quot;order&#95;modified&quot; column of the &quot;#&#95;hikashop&#95;order&quot; table and check if the order have been modified, but you'll have to compare it to the previous time you updated your order page  We wish you a nice day ! Kind regards, Mohamed Thelji.") 7 years 3 months ago     by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile") | Replies:1  Views:2192 | [Last Post](/forum/31-development/898061-keeping-order-details-up-to-date#309754 "Hello,  The only ways to know if an order have been changed must be to : - Use triggers like onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email) ==&gt; you'll find more information via   www.hikashop.com/support/documentation/6...mentation.html#order  - Use the &quot;order&#95;modified&quot; column of the &quot;#&#95;hikashop&#95;order&quot; table and check if the order have been modified, but you'll have to compare it to the previous time you updated your order page  We wish you a nice day ! Kind regards, Mohamed Thelji.") by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")      7 years 3 months ago |
| [](/forum/31-development/898014-load-price-from-mysql-on-product-page-based-on-custom-fields) | [Load price from mysql on product page, based on custom fields](/forum/31-development/898014-load-price-from-mysql-on-product-page-based-on-custom-fields "-- HikaShop version -- : 4.2.1  Hello!  Each my product has about 5.000 - 20.000 variants of price. They are calculated based on a few customs fields of item. I need to create a custom plugin, that will load the price from own MySQL table based on a custom fields and if-else conditions.  Actually, I already hired three freelancers on that, one stole our money and two of them give up a project. Despite I am not a programmer, I can do many things with PHP, javascript,...  I would love to ask if you could kindly give us advise on that. I believe I can do this, only what I need to know:  1) How to start a plugin. What function should I use to handle changes of custom fields on product page? Is there any, or can I use jQuery? I haven't found anything in API :(  2) How to overwrite the price of the product on product page and affect the price in cart, checkout, order in backend, confirmation email, everything..  Here is my product page:   elodyprsteny.cz/snubni/zlute-zlato/model-6441  Thank you very much for any help! I highly appreciate everything!  F.")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 7 years 3 months ago, by [FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")       [Last Post](/forum/31-development/898014-load-price-from-mysql-on-product-page-based-on-custom-fields#309543 "Hello, I am sorry for confusion. The main is that it is working for us :-)  Thank you, F.") 7 years 3 months ago     by [FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile") | Replies:8  Views:2122 | [Last Post](/forum/31-development/898014-load-price-from-mysql-on-product-page-based-on-custom-fields#309543 "Hello, I am sorry for confusion. The main is that it is working for us :-)  Thank you, F.") by [FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")      7 years 3 months ago |
| [](/forum/31-development/897643-user-order-info) | [User order info](/forum/31-development/897643-user-order-info "Hi am developing a plugin for hikashop and I do not know how to get the following info for my plugin Is it something like $user-&gt;address1? P.S I am new to Joomla development  &quot;first&#95;name&quot; &quot;last&#95;name&quot; &quot;email&quot; &quot;phone&quot; &quot;country&quot; &quot;region&quot; &quot;address1&quot; &quot;address2&quot; &quot;city&quot; &quot;zip&quot;")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 7 years 5 months ago, by [the\_g](/forum/user/58424-the-g "View the&#95;g's Profile")       [Last Post](/forum/31-development/897643-user-order-info#307573 "Hi,  It's the same as for the city, just replace the address&#95;city with the column name of the custom address field you want. You can see the column names in the menu Display&gt;Custom fields of HikaShop.") 7 years 5 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:5  Views:1704 | [Last Post](/forum/31-development/897643-user-order-info#307573 "Hi,  It's the same as for the city, just replace the address&#95;city with the column name of the custom address field you want. You can see the column names in the menu Display&gt;Custom fields of HikaShop.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      7 years 5 months ago |
| [](/forum/31-development/897641-get-product-image-path) | [Get product image path](/forum/31-development/897641-get-product-image-path "Hi,  How would i get product image in custom module. Doing like this:  Doesn't return image at all inside product variable.  The only way i could get it, was using sql query like this:  But i think there should be a better way doing this with hikashop code it self??  Please advise.  Thank you")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 7 years 5 months ago, by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")       [Last Post](/forum/31-development/897641-get-product-image-path#307535 "Hi,  Thank you Nicolas. I haven't noticed it :)  Would be great if you could improve development documantation under code samples. Because sometimes it's hard to find some code samples even via forum.  Thank you") 7 years 5 months ago     by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile") | Replies:4  Views:2799 | [Last Post](/forum/31-development/897641-get-product-image-path#307535 "Hi,  Thank you Nicolas. I haven't noticed it :)  Would be great if you could improve development documantation under code samples. Because sometimes it's hard to find some code samples even via forum.  Thank you") by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")      7 years 5 months ago |
| [](/forum/31-development/897572-custom-field-in-description-if) | [Custom field in description if](/forum/31-development/897572-custom-field-in-description-if "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2  I have customized view product/show&#95;default to show some custom fields like that  I get right output, but row displays if fields are empty. What code to add (some php if) to show row div only when fields filled up. thank you")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 7 years 5 months ago, by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")       [Last Post](/forum/31-development/897572-custom-field-in-description-if#307522 "Nicolas, that is working great. Thank you.") 7 years 5 months ago     by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile") | Replies:7  Views:1935 | [Last Post](/forum/31-development/897572-custom-field-in-description-if#307522 "Nicolas, that is working great. Thank you.") by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")      7 years 5 months ago |
| <a id="forumbottom"> </a> [   ](#forumtop) |  |

[](/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)
