[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/893127-cart-not-updating-anymore-in-plugin) | [Cart not updating anymore in plugin](/forum/31-development/893127-cart-not-updating-anymore-in-plugin "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.x -- Browser(s) name and version -- : FF  Hi Guys,  In the past I used the following code to update the cart using a plugin:  This isn't working anymore in the new Hikashop version. Can you tell me the new way to update the cart with the ajax cart activated...?  Thanks 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 11 months ago, by [Rixters](/forum/user/28762-rixters "View Rixters's Profile")       [Last Post](/forum/31-development/893127-cart-not-updating-anymore-in-plugin#287660 "Jerome,  Many thanks for this. We should now be able to look at this and properly figure out how to make our plug-in work for us.  For our purposes, we'd need to use our current business model which is that the coupon has to be applied to the cart manually. We don't always want every customer to have access to the free offer.  Thanks once again for listening - I'm sure that other Hikashop users will find this very useful.") 8 years 9 months ago     by [bonzomedia](/forum/user/1859-bonzomedia "View bonzomedia's Profile") | Replies:13  Views:3154 | [Last Post](/forum/31-development/893127-cart-not-updating-anymore-in-plugin#287660 "Jerome,  Many thanks for this. We should now be able to look at this and properly figure out how to make our plug-in work for us.  For our purposes, we'd need to use our current business model which is that the coupon has to be applied to the cart manually. We don't always want every customer to have access to the free offer.  Thanks once again for listening - I'm sure that other Hikashop users will find this very useful.") by [bonzomedia](/forum/user/1859-bonzomedia "View bonzomedia's Profile")      8 years 9 months ago |
| [](/forum/31-development/893544-filters-shouldnt-apply-to-the-selector-in-list-view) | [Filters shouldn't apply to the selector in list view](/forum/31-development/893544-filters-shouldnt-apply-to-the-selector-in-list-view "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3  Hello,  You are filtering the Display -&gt; Views view filters when a filter has been set.  I.E. Select Template 'Protostar' the list of items should be filters by protostar as they are great! But then change to say another template, you can't as only Protostar is selectable. You need to stop the filtering on this filter.  I looked at the codebase, but it doesn't follow the Joomla! MVC so thought it would be quicker to report it since you know your codebase.  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 8 years 9 months ago, by [mikekiy](/forum/user/33571-mikekiy "View mikekiy's Profile")       [Last Post](/forum/31-development/893544-filters-shouldnt-apply-to-the-selector-in-list-view#286379 "Hi,  Thank you for your feedback. It requires changing the code: to:  in the file administrator/components/com&#95;hikashop/views/view/view.html.php We'll add that to the next version on our end.") 8 years 9 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:1819 | [Last Post](/forum/31-development/893544-filters-shouldnt-apply-to-the-selector-in-list-view#286379 "Hi,  Thank you for your feedback. It requires changing the code: to:  in the file administrator/components/com&#95;hikashop/views/view/view.html.php We'll add that to the next version on our end.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      8 years 9 months ago |
| [](/forum/31-development/893395-create-ajax-function-in-hikashop-payment-plugin) | [create Ajax function in hikashop payment plugin](/forum/31-development/893395-create-ajax-function-in-hikashop-payment-plugin "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.7 -- PHP version -- : 7.0  I'm trying to create a payment plugin that uses ajax, but when I create the function onAjax&#91;plugin&#93; it not register in the trigger array, there is any solution for that?  function created in the braintree.php file in the Hikashoppayment group plugin  call to the function in the javascript")        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 10 months ago, by [plnabais](/forum/user/51510-plnabais "View plnabais's Profile")       [Last Post](/forum/31-development/893395-create-ajax-function-in-hikashop-payment-plugin#286063 "Hi,  No. But there is nothing complex. Just call in Ajax the notification URL of the plugin with an extra parameter. For example:  And in your onPaymentNotification function of the plugin, you can do such code at the beginning:") 8 years 9 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:9  Views:4256 | [Last Post](/forum/31-development/893395-create-ajax-function-in-hikashop-payment-plugin#286063 "Hi,  No. But there is nothing complex. Just call in Ajax the notification URL of the plugin with an extra parameter. For example:  And in your onPaymentNotification function of the plugin, you can do such code at the beginning:") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      8 years 9 months ago |
| [](/forum/31-development/893374-customize-file-upload-system) | [customize file upload system](/forum/31-development/893374-customize-file-upload-system "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.x  Hi dear I need customize hikashop file upload system for my custom project. I checked hikashop admin folders and find process file upload method on this path: administrator/components/com&#95;hikashop/helpers/upload.php and method process. In method process file uploaded temporary in folder now my question it is: which method control file save and file delete? I need control delete and save file all time. 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 8 years 10 months ago, by [kaya](/forum/user/25605-kaya "View kaya's Profile")       [Last Post](/forum/31-development/893374-customize-file-upload-system#285666 "Hi,  The files saving / deleting is done in administrator/components/com&#95;hikashop/classes/file.php  The save button of the products is controlled in the file administrator/components/com&#95;hikashop/classes/product.php in the function backSaveForm") 8 years 10 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:2128 | [Last Post](/forum/31-development/893374-customize-file-upload-system#285666 "Hi,  The files saving / deleting is done in administrator/components/com&#95;hikashop/classes/file.php  The save button of the products is controlled in the file administrator/components/com&#95;hikashop/classes/product.php in the function backSaveForm") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      8 years 10 months ago |
| [](/forum/31-development/893282-inserting-an-order-through-a-plugin) | [Inserting an order through a plugin](/forum/31-development/893282-inserting-an-order-through-a-plugin "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.3 -- PHP version -- : 7.0.26 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : no error  Hello,  I try to create a new order through a plugin, but it is not displayed in the the orders page. I tried using two different methods:  First using the order API:  In this case it is creating the element in the &quot;xx&#95;hikashop&#95;order&quot; database table, but not in the &quot;xx&#95;hikashop&#95;order&#95;product&quot; one. What is missing so that the order appears in the order admin list?  The other method I created is by inserting directly the elements in the tables &quot;xx&#95;hikashop&#95;order&quot;, &quot;xx&#95;hikashop&#95;history&quot; &amp; &quot;xx&#95;hikashop&#95;order&#95;product&quot; and updating the product quantity in the table &quot;xx&#95;hikashop&#95;product&quot;. Although everything seems to be fine, the new orders do not appear in the hikashop back-end.")        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 10 months ago, by [sauvain](/forum/user/37052-sauvain "View sauvain's Profile")       [Last Post](/forum/31-development/893282-inserting-an-order-through-a-plugin#285096 "Great, thanks") 8 years 10 months ago     by [sauvain](/forum/user/37052-sauvain "View sauvain's Profile") | Replies:2  Views:1983 | [Last Post](/forum/31-development/893282-inserting-an-order-through-a-plugin#285096 "Great, thanks") by [sauvain](/forum/user/37052-sauvain "View sauvain's Profile")      8 years 10 months ago |
| [](/forum/31-development/893222-need-another-one-button-add-to-cart-and-go-to-the-cart) | [Need another one button "add to cart and go to the cart"](/forum/31-development/893222-need-another-one-button-add-to-cart-and-go-to-the-cart "-- HikaShop version -- : 3.2.1  I need to create two buttons &quot;add to cart&quot; on the product page.  1. Traditional add to cart that is work well. 2. And &quot;Add to cart and go to the cart&quot;  The second button need to add to the cart current product and after that go to the cart,  What is the optimal way for 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 8 years 10 months ago, by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")       [Last Post](/forum/31-development/893222-need-another-one-button-add-to-cart-and-go-to-the-cart#284712 "Hi,  It's actually a bug of that popup when the canonical URL of the product is filled. Change the code:  to:  in the file administrator/components/com&#95;hikashop/controllers/product.php and it will then provide a correct link in the HTML of the popup. We'll add that patch for the next version of HikaShop which is to be released soon.") 8 years 10 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:2849 | [Last Post](/forum/31-development/893222-need-another-one-button-add-to-cart-and-go-to-the-cart#284712 "Hi,  It's actually a bug of that popup when the canonical URL of the product is filled. Change the code:  to:  in the file administrator/components/com&#95;hikashop/controllers/product.php and it will then provide a correct link in the HTML of the popup. We'll add that patch for the next version of HikaShop which is to be released soon.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      8 years 10 months ago |
| [](/forum/31-development/893079-function-for-products-front-page-display) | [Function for product's front page display ?](/forum/31-development/893079-function-for-products-front-page-display "Hello, i currently develop a plugin for hikashop product's but i have a problem, in my plugin I use onHikashopAfterDisplayView function for display my html but this function is triggered when all...")        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 11 months ago, by [Krok](/forum/user/49481-krok "View Krok's Profile")       [Last Post](/forum/31-development/893079-function-for-products-front-page-display#283966 "Thank you so much, it's work on my product page and i don't need javascript to delete my button and my modal. Tank you") 8 years 11 months ago     by [Krok](/forum/user/49481-krok "View Krok's Profile") | Replies:2  Views:2124 | [Last Post](/forum/31-development/893079-function-for-products-front-page-display#283966 "Thank you so much, it's work on my product page and i don't need javascript to delete my button and my modal. Tank you") by [Krok](/forum/user/49481-krok "View Krok's Profile")      8 years 11 months ago |
| [](/forum/31-development/892963-order-discount-price-not-saved-to-db-when-using-discount-only-with-coupons) | [order\_discount\_price not saved to db when using discount - only with coupons](/forum/31-development/892963-order-discount-price-not-saved-to-db-when-using-discount-only-with-coupons "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2  Hi  I'm expanding a custom plugin that saves orders as an xml file using onAfterOrderUpdate. I would like to calculate the discount amount as a percentage of the order price. I can do that with coupon codes as order&#95;discount&#95;price is saved to the database. This is however not the case with discounts.Why this difference?  How can I access the discount information from my plugin?  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 8 years 11 months ago, by [dyvel](/forum/user/39996-dyvel "View dyvel's Profile")       [Last Post](/forum/31-development/892963-order-discount-price-not-saved-to-db-when-using-discount-only-with-coupons#283576 "Hi,  In the onBeforeOrderCreate function of your plugin, you can simply add the data of your custom item field to each product object in the array $order-&gt;cart-&gt;products using the column name of the custom field as attribute of the product object. Note that the &quot;frontend&quot; display setting of the custom field needs to be activated or the field will be skipped by HikaShop.") 8 years 11 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:5  Views:2150 | [Last Post](/forum/31-development/892963-order-discount-price-not-saved-to-db-when-using-discount-only-with-coupons#283576 "Hi,  In the onBeforeOrderCreate function of your plugin, you can simply add the data of your custom item field to each product object in the array $order-&gt;cart-&gt;products using the column name of the custom field as attribute of the product object. Note that the &quot;frontend&quot; display setting of the custom field needs to be activated or the field will be skipped by HikaShop.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      8 years 11 months ago |
| [](/forum/31-development/892765-view-notification) | [View notification](/forum/31-development/892765-view-notification "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.1 -- PHP version -- : 7.0  hello, I need to access to the additional field created called trk&#95;number, in the view changestatus.php subview notification.php, I have tried to load the additional data in the function changestatus() in the view.html.php to the following code:  After accepting the field trk&#95;number in this form I need to save it in the order.  I always received that the count($this-&gt;fields)=0, when it must have at least 1")        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 11 months ago, by [plnabais](/forum/user/51510-plnabais "View plnabais's Profile")       [Last Post](/forum/31-development/892765-view-notification#282563 "Hi,  Supposing that you have added an input in the changestatus.php or the notification.php view file to set the value and pass it to the server when the user validates the form, you can implement the trigger &quot;onBeforeOrderUpdate&quot; in a small plugin of the group hikashop to add the value from the $&#95;POST to $order-&gt;trk&#95;number and it will be saved automatically by HikaShop.   www.hikashop.com/support/documentation/6...#onBeforeOrderUpdate") 8 years 11 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:2536 | [Last Post](/forum/31-development/892765-view-notification#282563 "Hi,  Supposing that you have added an input in the changestatus.php or the notification.php view file to set the value and pass it to the server when the user validates the form, you can implement the trigger &quot;onBeforeOrderUpdate&quot; in a small plugin of the group hikashop to add the value from the $&#95;POST to $order-&gt;trk&#95;number and it will be saved automatically by HikaShop.   www.hikashop.com/support/documentation/6...#onBeforeOrderUpdate") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      8 years 11 months ago |
| [](/forum/31-development/892710-plugin-hikashop-bloquer-le-payement-en-attendant-une-autorisation-par-ladmin) | [Plugin HikaShop, bloquer le payement en attendant une autorisation par l'admin](/forum/31-development/892710-plugin-hikashop-bloquer-le-payement-en-attendant-une-autorisation-par-ladmin "Bonjour, je suis développeur PHP et je suis entrain de me poser une question, en effet, j'ai un plugin qui permet à la customisation d'objets sauf que j'ai un problème, pour toute impression, il...")        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 9 years 4 days ago, by [Krok](/forum/user/49481-krok "View Krok's Profile")       [Last Post](/forum/31-development/892710-plugin-hikashop-bloquer-le-payement-en-attendant-une-autorisation-par-ladmin#282300 "Bonjour,  Vous trouverez un peu plus d'informations sur les triggers disponibles dans notre documentation développeur. Avec notamment le trigger &quot;onCheckoutWorkflowLoad&quot; :   www.hikashop.com/support/documentation/6...CheckoutWorkflowLoad  Cordialement,") 9 years 1 day ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:5  Views:1972 | [Last Post](/forum/31-development/892710-plugin-hikashop-bloquer-le-payement-en-attendant-une-autorisation-par-ladmin#282300 "Bonjour,  Vous trouverez un peu plus d'informations sur les triggers disponibles dans notre documentation développeur. Avec notamment le trigger &quot;onCheckoutWorkflowLoad&quot; :   www.hikashop.com/support/documentation/6...CheckoutWorkflowLoad  Cordialement,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      9 years 1 day ago |
| [](/forum/31-development/892720-classe-pour-affichage-dans-produit) | [Classe pour affichage dans produit](/forum/31-development/892720-classe-pour-affichage-dans-produit "Bonjour, je me permet de vous envoyer ce message pour savoir si, dans le plugin hikashop, il y avais des classes spécialement dédié au form front-end de produit c'est à dire la page produit, car...")        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 9 years 3 days ago, by [Krok](/forum/user/49481-krok "View Krok's Profile")       [Last Post](/forum/31-development/892720-classe-pour-affichage-dans-produit#282283 "Bonjour,  Pour vos message en Français, veuillez utiliser la section Française du forum. Vous êtes actuellement dans une section Anglaise ; ou les messages doivent être en Anglais.  Au niveau de votre question, je suis dans le regret de vous informer qu'il ne nous est pas possible de comprendre de quoi vous parlez et ce que vous souhaitez faire. Je crains que vous n'utilisiez pas le même vocabulaire que nous ce qui rends la communication compliquée.  Par exemple, il n'y a aucune &quot;classe&quot; onHikashopAfterDisplayView, il s'agit d'un trigger (un événement) généré par HikaShop dans le système de Joomla. CF :   www.hikashop.com/support/documentation/6...r-documentation.html  Cordialement,") 9 years 2 days ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:1  Views:1879 | [Last Post](/forum/31-development/892720-classe-pour-affichage-dans-produit#282283 "Bonjour,  Pour vos message en Français, veuillez utiliser la section Française du forum. Vous êtes actuellement dans une section Anglaise ; ou les messages doivent être en Anglais.  Au niveau de votre question, je suis dans le regret de vous informer qu'il ne nous est pas possible de comprendre de quoi vous parlez et ce que vous souhaitez faire. Je crains que vous n'utilisiez pas le même vocabulaire que nous ce qui rends la communication compliquée.  Par exemple, il n'y a aucune &quot;classe&quot; onHikashopAfterDisplayView, il s'agit d'un trigger (un événement) généré par HikaShop dans le système de Joomla. CF :   www.hikashop.com/support/documentation/6...r-documentation.html  Cordialement,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      9 years 2 days ago |
| [](/forum/31-development/892630-classes) | [Classes](/forum/31-development/892630-classes "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.8.1 -- PHP version -- : 7.0 -- Browser(s) name and version -- : - Browser(s) name and version -- : Chrome Version 61.0.3163.100 (Official Build) (64-bit)  Hello, where I can acess to the classes defined in hikashop?")        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 9 years 1 week ago, by [plnabais](/forum/user/51510-plnabais "View plnabais's Profile")       [Last Post](/forum/31-development/892630-classes#281793 "Hello,  See :   www.hikashop.com/support/documentation/6...umentation.html#code  Regards,") 9 years 1 week ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:1  Views:2629 | [Last Post](/forum/31-development/892630-classes#281793 "Hello,  See :   www.hikashop.com/support/documentation/6...umentation.html#code  Regards,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      9 years 1 week ago |
| [](/forum/31-development/892541-integrating-with-a-3rd-party-website) | [Integrating with a 3rd party website](/forum/31-development/892541-integrating-with-a-3rd-party-website "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.1 -- PHP version -- : 7.1.8  Hello  We posted a question a couple of weeks ago about integrating with a dropshipping store Gooten (  www.hikashop.com/forum/23-market-how-to/...ip-sites-gooten.html ) and are considering developing a plugin to get the products from the Gooten site and put them into Hikashop  Our question is what is the best way to handle this in regards to creating a plugin for Hikashop?  Should we import products manually and then just use the plugin to send orders to the Gooten website or pull the information and create a new product via the plugin aswell. In extension of that, what would be the best way to determine which products are from a 3rd party? We will be uploading our own products in addition to having products from this dropshipping website so we need to determine which products are from them as to only send the order information to Gooten about the products they provide.  This is the first time I have used an API and getting different systems to talk to eachother so I am trying to get an accurate idea of how to tackle it. If there's any other feedback someone could give it would be greatly appreciated.  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 9 years 2 weeks ago, by [twhcreations](/forum/user/3186-twhcreations "View twhcreations's Profile")       [Last Post](/forum/31-development/892541-integrating-with-a-3rd-party-website#281497 "Thanks nicolas for the detailed reply. It might be better just to pull all the product information via their API. I'll give something a go!") 9 years 2 weeks ago     by [twhcreations](/forum/user/3186-twhcreations "View twhcreations's Profile") | Replies:3  Views:2985 | [Last Post](/forum/31-development/892541-integrating-with-a-3rd-party-website#281497 "Thanks nicolas for the detailed reply. It might be better just to pull all the product information via their API. I'll give something a go!") by [twhcreations](/forum/user/3186-twhcreations "View twhcreations's Profile")      9 years 2 weeks ago |
| [](/forum/31-development/892266-add-new-description-field-to-profucts) | [Add new description field to profucts](/forum/31-development/892266-add-new-description-field-to-profucts "Hello how are you? Thank you for helping me fix the problem I searched the question. I did not found the answer How can I add a description field in the add product section and view field on the front-end?")         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 9 years 1 month ago, by [p30yaran](/forum/user/52927-p30yaran "View p30yaran's Profile")       [Last Post](/forum/31-development/892266-add-new-description-field-to-profucts#280782 "Hi,  What list of functions are you talking about ? If you're talking about some kind of developer documentation, you can find it here:   www.hikashop.com/support/documentation/6...r-documentation.html") 9 years 3 weeks ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:13  Views:1985 | [Last Post](/forum/31-development/892266-add-new-description-field-to-profucts#280782 "Hi,  What list of functions are you talking about ? If you're talking about some kind of developer documentation, you can find it here:   www.hikashop.com/support/documentation/6...r-documentation.html") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      9 years 3 weeks ago |
| [](/forum/31-development/892356-informations-about-hikapi-and-minor-fixes) | [Informations about HikAPI and minor fixes](/forum/31-development/892356-informations-about-hikapi-and-minor-fixes "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.8.1 -- PHP version -- : 7.0.21 -- Browser(s) name and version -- : Firefox 7.0.21  Hi!  I am currently on the way of creating a plugin for handling the interaction between Hikashop on Joomla! and another service located on a different site. For this, I thought it would be cleaner to create a kind of Rest API by a plugin, rather than by an external script like i previously used to do for other plugins in Joomla!.  After a little search, i found your pask work: , and because it looked quite simple, i choosed to give it a try. It was not fully functional as it was, but actually with 2 minor fixes, it works not bad (see end of message for the fixes).  But there are 2 things that puzzle me a little: when i displayed in &quot;hikapihelper.php&quot; for a check, it came with almost 50 already declared urls, that really look like there was already a full API declared. To begin with, i have no idea where these values come from, they are already present when i do the display in the first line of the class &#95;&#95;construct. Here is a small example of these values:  Now there are 2 problems with this, the first is that these urls are not working currently. I tried to mess a little with what's inside the &quot;ctrl&quot; field to try to load something, but I couldn't make it work. The second problem is less important, just that the system doesn't allow me to redeclare these urls. If i want to implement it, i have to use another url.  I know that this project is a bit old, probably left to die, but with very few advices to solve these problems, it could be useful and i would probably gain lots of time.. what i would like to know: &#95;where do all these already declared urls come from, and were they intended to be functional? &#95;is there a quick fix i could do to make them work, if they were intended to work? It might be coming from a little change in HikaShop, i can do the fixes if I have little advices on this.  Thanks!  FOR THE FIXES: &#95;hikapihelper.php line 253: removed the reference here, as it caused all newly declared url to take the &quot;ctrl&quot; value from the last url declaration, caused by a reference chain that makes all &quot;ctrl&quot; fields point to the same value: becomes &#95;hikapi.php line 82: &quot;$base&quot; comes empty when the joomla site is located in the root of the server, causing &quot;strpos&quot; to fail: becomes &#95;test.php: for the function &quot;processRequest&quot;, the $url comes as declared in the first array (params are not removed). Instead of doing you have to do like declared in the array")        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 9 years 1 month ago, by [marc@ma74.net](/forum/user/42540-marc-ma74-net "View marc@ma74.net's Profile")       [Last Post](/forum/31-development/892356-informations-about-hikapi-and-minor-fixes#280720 "Hello,  Since the variable &quot;ctrl&quot; is translated ; there is not more reference on the plugin object when you give the parameter ctrl. CF :   github.com/HikaShop/hikapi/blob/master/p...ikapihelper.php#L606  Afterwards, maybe it's a PHP 7 side effect and we might want to unset l&#95;ctrl each time in the loop to be sure that it will not affect something else, but since there is no reference for that l&#95;ctrl variable, it should not affect the ctrl one.  Yes you can see to perform a fork on HikAPI on github and propose a &quot;pull request&quot;. The GitHub interface allow you to modify the files online, you do not need to install a special software in your computer for simple tasks.  Regards,") 9 years 3 weeks ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:3  Views:1860 | [Last Post](/forum/31-development/892356-informations-about-hikapi-and-minor-fixes#280720 "Hello,  Since the variable &quot;ctrl&quot; is translated ; there is not more reference on the plugin object when you give the parameter ctrl. CF :   github.com/HikaShop/hikapi/blob/master/p...ikapihelper.php#L606  Afterwards, maybe it's a PHP 7 side effect and we might want to unset l&#95;ctrl each time in the loop to be sure that it will not affect something else, but since there is no reference for that l&#95;ctrl variable, it should not affect the ctrl one.  Yes you can see to perform a fork on HikAPI on github and propose a &quot;pull request&quot;. The GitHub interface allow you to modify the files online, you do not need to install a special software in your computer for simple tasks.  Regards,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      9 years 3 weeks ago |
| [](/forum/31-development/892364-same-files-in-different-directories-why) | [Same Files in different Directories - Why?](/forum/31-development/892364-same-files-in-different-directories-why "-- 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!")        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 9 years 4 weeks ago, by [TInkyWinky](/forum/user/51674-tinkywinky "View TInkyWinky's Profile")       [Last Post](/forum/31-development/892364-same-files-in-different-directories-why#280480 "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,") 9 years 4 weeks ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:3  Views:2106 | [Last Post](/forum/31-development/892364-same-files-in-different-directories-why#280480 "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,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      9 years 4 weeks ago |
| [](/forum/31-development/892317-call-plugin-on-order-display-administrator-and-custom-fields) | [call plugin on order display administrator and custom fields](/forum/31-development/892317-call-plugin-on-order-display-administrator-and-custom-fields "Hi, is there a method i can call in my plugin to get a shipping plugin to be showed in the administrator order view (/administrator/index.php?option=com&#95;hikashop&amp;ctrl=order&amp;task=edit&amp;cid&#91;&#93;=1) page ?  also is there a way i can check or even create a custom field upon running a plugin, so that i can make sure the custom fields i need, exists and if not just create them automatic ?  regards Jesper")        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 9 years 1 month ago, by [Skelgaard](/forum/user/40730-skelgaard "View Skelgaard's Profile")       [Last Post](/forum/31-development/892317-call-plugin-on-order-display-administrator-and-custom-fields#280465 "thanx all... got it all working :)") 9 years 4 weeks ago     by [Skelgaard](/forum/user/40730-skelgaard "View Skelgaard's Profile") | Replies:12  Views:2087 | [Last Post](/forum/31-development/892317-call-plugin-on-order-display-administrator-and-custom-fields#280465 "thanx all... got it all working :)") by [Skelgaard](/forum/user/40730-skelgaard "View Skelgaard's Profile")      9 years 4 weeks ago |
| [](/forum/31-development/892187-pressing-enter-in-product-page-automatically-changes-quantity-to-1) | [Pressing enter in product page automatically changes quantity to -1](/forum/31-development/892187-pressing-enter-in-product-page-automatically-changes-quantity-to-1 "Hi! We are developing a plugin with a handy barcode scanner. We remarked that when we use the barcode the quantity fileds goes to &quot;unlimited&quot;. At first I thought it was the hardwares problem. But when I m in any field and I press enter I get unlimited also. Is this a bug?")        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 9 years 1 month ago, by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")       [Last Post](/forum/31-development/892187-pressing-enter-in-product-page-automatically-changes-quantity-to-1#279585 "Hello,  Your issue is probably coming from the fact that pressing &quot;enter&quot; on a form, will always use the first HTML form button (the &quot;unlimited&quot; button in your case), so the solution will probably be to directly add a hidden button which won't do anything just before the &quot;unlimited&quot; one.  To do that you'll just have to edit the code of the &quot;form&quot; file of the &quot;product&quot; view of your back-end template via &quot;Hikashop-&gt;Display-&gt;Views&quot;.") 9 years 1 month ago     by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile") | Replies:1  Views:2139 | [Last Post](/forum/31-development/892187-pressing-enter-in-product-page-automatically-changes-quantity-to-1#279585 "Hello,  Your issue is probably coming from the fact that pressing &quot;enter&quot; on a form, will always use the first HTML form button (the &quot;unlimited&quot; button in your case), so the solution will probably be to directly add a hidden button which won't do anything just before the &quot;unlimited&quot; one.  To do that you'll just have to edit the code of the &quot;form&quot; file of the &quot;product&quot; view of your back-end template via &quot;Hikashop-&gt;Display-&gt;Views&quot;.") by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")      9 years 1 month ago |
| [](/forum/31-development/892139-how-to-create-a-menu-in-hikashop-configuration) | [How to create a menu in hikashop configuration](/forum/31-development/892139-how-to-create-a-menu-in-hikashop-configuration "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.8.0 -- PHP version -- : 5.6  Hi Nicolas,  How to create a menu in hikashop configuration in coding part. See the attached screenshot.")         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 9 years 1 month ago, by [sivaranjani](/forum/user/45208-sivaranjani "View sivaranjani's Profile")       [Last Post](/forum/31-development/892139-how-to-create-a-menu-in-hikashop-configuration#279355 "Hi,  You need to create a Joomla plugin of the group &quot;hikashop&quot;, implement the onHikashopBeforeDisplayView trigger (   www.hikashop.com/support/documentation/6...hopBeforeDisplayView  ), and in it, add your menu elements to $view-&gt;menus when it exists and that you're in the backend and it will work. You can do a var&#95;dump of that variable to check the format that you need to use for your menu elements.") 9 years 1 month ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:2425 | [Last Post](/forum/31-development/892139-how-to-create-a-menu-in-hikashop-configuration#279355 "Hi,  You need to create a Joomla plugin of the group &quot;hikashop&quot;, implement the onHikashopBeforeDisplayView trigger (   www.hikashop.com/support/documentation/6...hopBeforeDisplayView  ), and in it, add your menu elements to $view-&gt;menus when it exists and that you're in the backend and it will work. You can do a var&#95;dump of that variable to check the format that you need to use for your menu elements.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      9 years 1 month ago |
| [](/forum/31-development/891955-watermark-section-of-admin-config-page-wont-upload-an-image) | [Watermark section of admin config page won't upload an image](/forum/31-development/891955-watermark-section-of-admin-config-page-wont-upload-an-image "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 7.0.23 -- Browser(s) name and version -- : Chrome 60.0.3112.113 -- Error-message(debug-mod must be tuned on) -- : none  Hi there good people  Check this out (in circles on attached image)  This is one issue I'd like resolved, but more importantly, when I try to upload a watermark image via the drag and drop option (it just opens the image in the browser and not inserts it to hikashop) and the second option of &quot;Choose File&quot; it shows the image is ready to upload but won't actually upload it.  Thoughts?")         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 9 years 1 month ago, by [Masters](/forum/user/46422-masters "View Masters's Profile")       [Last Post](/forum/31-development/891955-watermark-section-of-admin-config-page-wont-upload-an-image#278510 "Hi,  This indicates a javascript error on the page. Please look at the error console of your browser on that page and it should provide an error message which will allow us to better understand the situation.") 9 years 1 month ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:2085 | [Last Post](/forum/31-development/891955-watermark-section-of-admin-config-page-wont-upload-an-image#278510 "Hi,  This indicates a javascript error on the page. Please look at the error console of your browser on that page and it should provide an error message which will allow us to better understand the situation.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      9 years 1 month ago |
| <a id="forumbottom"> </a> [   ](#forumtop) |  |

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

Time to create page: 0.046 seconds

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