[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/895274-using-com-ajax-with-a-hikashop-group-plugin) | [Using com\_ajax with a Hikashop group plugin](/forum/31-development/895274-using-com-ajax-with-a-hikashop-group-plugin "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.6.36 -- Error-message(debug-mod must be tuned on) -- : PHP Fatal error: Call to undefined function hikashop&#95;get() in /home/threeby4/subdomains/learn/plugins/hikashop/massaction&#95;category/massaction&#95;category.php on line 17  I'm creating a custom plugin. Because it responds to several Hikashop events, the plugin is in the Hikashop group.  I'd like to respond to ajax requests. So I've created a function in my plugin's main class. This seemed to work at some point, but at present any time I specify group=hikashop in the URL (e.g. index.php?option=com&#95;hikashop&amp;plugin=myplugin&amp;group=hikashop&amp;format=json I get this PHP error:  PHP Fatal error: Call to undefined function hikashop&#95;get() in /home/threeby4/subdomains/learn/plugins/hikashop/massaction&#95;category/massaction&#95;category.php on line 17  Probably I'm going to need to move my Ajax function to a separate custom plugin in the default ajax group. But before I take that path I thought I'm mention this issue. It doesn't seem that the massaction&#95;category plugin should be responding by default to a com&#95;ajax URL.  I'd appreciate any thoughts. 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 3 months ago, by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")       [Last Post](/forum/31-development/895274-using-com-ajax-with-a-hikashop-group-plugin#295447 "Hi,  This happens because com&#95;ajax uses a normal trigger, and to use a normal trigger Joomla does this: - First, it loads all the plugins of the target group - Then, it calls the trigger on all the plugins of the target group which implements the trigger The issue you have is then caused by two things: - We assumed that plugins from the &quot;hikashop&quot; group would only be loaded by HikaShop (or another of our extensions), which means that we assumed that HikaShop would always be already loaded when plugins of the &quot;hikashop&quot; group would be loaded. - In that mass action plugin, hikashop&#95;get is called directly in the constructor of the class (so directly when the plugin is loaded, and not only when a trigger is called.  We'll look in adding some code on our end to avoid such issue.  Note also that HikaShop actually has it's own system to allow plugins to be called in ajax (and actually much more). Our system will allow the plugin to have its own controllers and views so you could build complete frontend and backend interfaces from only a plugin with that. I invite you to look at the plugins/hikashop/email&#95;history/ plugin for an example. This plugins handles the Customers&gt;Email history menu item in the backend. The controller and the views of that area are completely in that plugin and the code is not complex so it's a good example.") 8 years 3 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:2  Views:3522 | [Last Post](/forum/31-development/895274-using-com-ajax-with-a-hikashop-group-plugin#295447 "Hi,  This happens because com&#95;ajax uses a normal trigger, and to use a normal trigger Joomla does this: - First, it loads all the plugins of the target group - Then, it calls the trigger on all the plugins of the target group which implements the trigger The issue you have is then caused by two things: - We assumed that plugins from the &quot;hikashop&quot; group would only be loaded by HikaShop (or another of our extensions), which means that we assumed that HikaShop would always be already loaded when plugins of the &quot;hikashop&quot; group would be loaded. - In that mass action plugin, hikashop&#95;get is called directly in the constructor of the class (so directly when the plugin is loaded, and not only when a trigger is called.  We'll look in adding some code on our end to avoid such issue.  Note also that HikaShop actually has it's own system to allow plugins to be called in ajax (and actually much more). Our system will allow the plugin to have its own controllers and views so you could build complete frontend and backend interfaces from only a plugin with that. I invite you to look at the plugins/hikashop/email&#95;history/ plugin for an example. This plugins handles the Customers&gt;Email history menu item in the backend. The controller and the views of that area are completely in that plugin and the code is not complex so it's a good example.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      8 years 3 months ago |
| [](/forum/31-development/895149-solved-geting-the-stock-from-external-erp-server-and-save-it-after-ordering) | [\[SOLVED\] Geting the stock from external ERP server and save it after ordering](/forum/31-development/895149-solved-geting-the-stock-from-external-erp-server-and-save-it-after-ordering "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.10  Hi, I'm when i create an order on my shop, i'm getting the REAL stock from another server, from an ERP. So, let's say that in ERP i have stock 200 for Product A, i add Product A in cart, quantity 1, on checkout page when i press Finish, what trigger can i use to save the remaining stock 199 in hikashop ? A) onBeforeOrderUpdate(&amp;$order,&amp;$do) B) onBeforeProductUpdate(&amp;$element,&amp;$do)? (I think this is triggered only when i add or edit the product, not when stock is updated, right?) C) onBeforeOrderCreate  And i have to use this function to get each product from the order to change the stock?  And if so, how do i save the changes, with: $product-&gt;save(); ?")        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 4 months ago, by [oxido](/forum/user/29793-oxido "View oxido's Profile")       [Last Post](/forum/31-development/895149-solved-geting-the-stock-from-external-erp-server-and-save-it-after-ordering#295002 ":woohoo: That was it nicolas! Thank you!") 8 years 4 months ago     by [oxido](/forum/user/29793-oxido "View oxido's Profile") | Replies:12  Views:4091 | [Last Post](/forum/31-development/895149-solved-geting-the-stock-from-external-erp-server-and-save-it-after-ordering#295002 ":woohoo: That was it nicolas! Thank you!") by [oxido](/forum/user/29793-oxido "View oxido's Profile")      8 years 4 months ago |
| [](/forum/31-development/895168-remove-p-tag-from-linevar-product-name-in-e-mail-template) | [Remove p tag from {LINEVAR:PRODUCT\_NAME} in e-mail template](/forum/31-development/895168-remove-p-tag-from-linevar-product-name-in-e-mail-template "-- HikaShop version -- : 3.5.0 -- Joomla version -- : 3.8.10 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hi,  The e-mail template has a variable called {LINEVAR:PRODUCT&#95;NAME}. When yhe e-mail is sent this variable is replaced with the product name but is encapsulated in a p tag. How can I remove the P tag so I can put the output on one line with {LINEVAR:PRODUCT&#95;CODE}?  Regards!")        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 4 months ago, by [Rixters](/forum/user/28762-rixters "View Rixters's Profile")       [Last Post](/forum/31-development/895168-remove-p-tag-from-linevar-product-name-in-e-mail-template#294907 "Found the answer myself. The p tag is added in the Preload Version template") 8 years 4 months ago     by [Rixters](/forum/user/28762-rixters "View Rixters's Profile") | Replies:1  Views:3154 | [Last Post](/forum/31-development/895168-remove-p-tag-from-linevar-product-name-in-e-mail-template#294907 "Found the answer myself. The p tag is added in the Preload Version template") by [Rixters](/forum/user/28762-rixters "View Rixters's Profile")      8 years 4 months ago |
| [](/forum/31-development/895160-changing-display-message-to-invalid-configuration) | [Changing display message to "invalid configuration"](/forum/31-development/895160-changing-display-message-to-invalid-configuration "Hello,  We have many products with a number of variants, but with those characteristic selections, certain configurations do not exist. When this happens, the master product code shows up on our site. If that product doesn't exist, I would instead like it to say &quot;invalid configuration.&quot; (Think: You have a shirt sizes and colors, but a green medium does not exist.) I think my answer is in this string of code that I have attached, however, I cannot get the message to populate properly. How should I be rewriting this code?")         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 4 months ago, by [DylanHika](/forum/user/54202-dylanhika "View DylanHika's Profile")       [Last Post](/forum/31-development/895160-changing-display-message-to-invalid-configuration#294855 "Hi,  Normally, when a variant doesn't exist for a combination of characteristic values, the stock (quantity) is 0 and the product variant cannot be purchased. So in such case, instead of the &quot;add to cart&quot; button, you should see a &quot;no stock&quot; message. If you want to customize that message, you can use a translation override:   www.hikashop.com/download/languages.html#modify  Note that you can also change the &quot;characteristic selection method&quot; setting in the HikaShop configuration to &quot;list&quot; or &quot;table&quot; which will prevent the customer from being able to select / see variants that don't exist.") 8 years 4 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:3566 | [Last Post](/forum/31-development/895160-changing-display-message-to-invalid-configuration#294855 "Hi,  Normally, when a variant doesn't exist for a combination of characteristic values, the stock (quantity) is 0 and the product variant cannot be purchased. So in such case, instead of the &quot;add to cart&quot; button, you should see a &quot;no stock&quot; message. If you want to customize that message, you can use a translation override:   www.hikashop.com/download/languages.html#modify  Note that you can also change the &quot;characteristic selection method&quot; setting in the HikaShop configuration to &quot;list&quot; or &quot;table&quot; which will prevent the customer from being able to select / see variants that don't exist.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      8 years 4 months ago |
| [](/forum/31-development/894980-iframing-specific-dashboard-components) | [Iframing specific dashboard components](/forum/31-development/894980-iframing-specific-dashboard-components "-- HikaShop version -- : 3.4.0 Business -- Joomla version -- : 3.8.8 -- PHP version -- : 7.x -- Browser(s) name and version -- : chrome / firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Is there any feasible way to iframe (or otherwise display) the #hikashop&#95;dashboard&#95;stat&#95;last&#95;orders div? I need this specific information to show up on another related dashboard site I'm building for the client (who is using hikashop business). They want an 'all-in-1' page, so they don't have to go to the joomla backend of the site.  any suggestions are welcome. 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 5 months ago, by [derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")       [Last Post](/forum/31-development/894980-iframing-specific-dashboard-components#294359 "Hello,  Your $order&#95;type is not quoted. I don't understand why you do not have a query error.  Regards,") 8 years 4 months ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:11  Views:3357 | [Last Post](/forum/31-development/894980-iframing-specific-dashboard-components#294359 "Hello,  Your $order&#95;type is not quoted. I don't understand why you do not have a query error.  Regards,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      8 years 4 months ago |
| [](/forum/31-development/894881-sending-customer-email-when-updating-order-status) | [Sending customer email when updating order status](/forum/31-development/894881-sending-customer-email-when-updating-order-status "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.8.8 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : No errors  I would expect this to send an email to the customer? But no emails are being sent (they do not appear in the customer emails history). If I change it manually through the shop then it works when I tick (notify customer).  Any advice?")        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 5 months ago, by [turfymurphy](/forum/user/57013-turfymurphy "View turfymurphy's Profile")       [Last Post](/forum/31-development/894881-sending-customer-email-when-updating-order-status#293679 "OK Great, it seems to work outside of the plugin directory, I placed the file in the main root public&#95;html folder and it works fine.") 8 years 5 months ago     by [turfymurphy](/forum/user/57013-turfymurphy "View turfymurphy's Profile") | Replies:12  Views:3894 | [Last Post](/forum/31-development/894881-sending-customer-email-when-updating-order-status#293679 "OK Great, it seems to work outside of the plugin directory, I placed the file in the main root public&#95;html folder and it works fine.") by [turfymurphy](/forum/user/57013-turfymurphy "View turfymurphy's Profile")      8 years 5 months ago |
| [](/forum/31-development/894893-query-dynamic-id) | [Query dynamic id](/forum/31-development/894893-query-dynamic-id "Hi,  I do have such query which displays characteristic values of the product in product listing:  Now the issue that i have 2 size characteristics. One for clothes and second for shoes with different id's. Is there a way to have dynamic characteristic&#95;parent&#95;id? I have spent some time but only what i could think is to set id based on category id which works well but it gives other issues for module which display random products...  Could Anyone with better knowledge give some hint please?  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 5 months ago, by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")       [Last Post](/forum/31-development/894893-query-dynamic-id#293641 "Hi,  So your hint Nicolas was really awesome. ;) My products have 2 characteristics so first option won't work. For the second one, i dont want to enter some id for every product as it will take time. What i did, i added NOT Operator and changed &quot;where characteristic&#95;parent&#95;id='.$cat&#95;id.' &quot; to &quot;WHERE NOT characteristic&#95;parent&#95;id='.$cat&#95;id.' &quot; and entered id which i dont want to show. Now all works perfect. I hope this will help someone in the future.  Thanks for support Nicolas.  Have a great day") 8 years 5 months ago     by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile") | Replies:2  Views:3084 | [Last Post](/forum/31-development/894893-query-dynamic-id#293641 "Hi,  So your hint Nicolas was really awesome. ;) My products have 2 characteristics so first option won't work. For the second one, i dont want to enter some id for every product as it will take time. What i did, i added NOT Operator and changed &quot;where characteristic&#95;parent&#95;id='.$cat&#95;id.' &quot; to &quot;WHERE NOT characteristic&#95;parent&#95;id='.$cat&#95;id.' &quot; and entered id which i dont want to show. Now all works perfect. I hope this will help someone in the future.  Thanks for support Nicolas.  Have a great day") by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")      8 years 5 months ago |
| [](/forum/31-development/894818-javascript-isnt-loaded-by-onhikashopafterdisplayview-at-the-address-view) | [Javascript isn't loaded by onHikashopAfterDisplayView at the address view](/forum/31-development/894818-javascript-isnt-loaded-by-onhikashopafterdisplayview-at-the-address-view "I'm creating a plugin, I use onHikashopAfterDisplayView trigger to add javascript to needed page. At the checkout view all is working fine but at the address view it doesn't work. I'm a beginner :)...")         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 5 months ago, by [alin](/forum/user/51267-alin "View alin's Profile")       [Last Post](/forum/31-development/894818-javascript-isnt-loaded-by-onhikashopafterdisplayview-at-the-address-view#293316 "Thank you very much for detailed explanation - now it's working like needed. I faced jQuery compatibility issues with Chosen library that HikaShop loads but I think it's other story... At now plugin...") 8 years 5 months ago     by [alin](/forum/user/51267-alin "View alin's Profile") | Replies:4  Views:3440 | [Last Post](/forum/31-development/894818-javascript-isnt-loaded-by-onhikashopafterdisplayview-at-the-address-view#293316 "Thank you very much for detailed explanation - now it's working like needed. I faced jQuery compatibility issues with Chosen library that HikaShop loads but I think it's other story... At now plugin...") by [alin](/forum/user/51267-alin "View alin's Profile")      8 years 5 months ago |
| [](/forum/31-development/894732-how-to-submit-current-table-to-checkout) | [How To Submit Current Table to Checkout.](/forum/31-development/894732-how-to-submit-current-table-to-checkout "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.7 -- PHP version -- : 7.1.15 -- Browser(s) name and version -- : Firefox Developer Edition  Hi,  We having our own tables with hikashop products on it with the custom calculation of price. How can we push this table to have hikashop checkout (payment gateway and order form).  Can someone guide me how to do it or any reference that i can use to make it work.")         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 5 months ago, by [alainz](/forum/user/44013-alainz "View alainz's Profile")       [Last Post](/forum/31-development/894732-how-to-submit-current-table-to-checkout#292820 "Hi,  If I understand correctly, you want that when you click on &quot;donate now&quot; on your screenshot, it goes to the checkout with the corresponding amount to be paid. In that case, you want to create a custom field of the table &quot;item&quot; called &quot;amount&quot; via the menu Display&gt;Custom fields, create a product that you'll be using in the checkout of HikaShop, enable the HikaShop donation plugin via the Joomla plugins manager, and have your donate now button be a link to the add to cart HTML URL with the amount to be paid also in it:   www.hikashop.com/forum/2-general-talk-ab...ct-fields.html#16220    demo.hikashop.com/index.php/en/hikashop/...t-page/donation-page") 8 years 5 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:3272 | [Last Post](/forum/31-development/894732-how-to-submit-current-table-to-checkout#292820 "Hi,  If I understand correctly, you want that when you click on &quot;donate now&quot; on your screenshot, it goes to the checkout with the corresponding amount to be paid. In that case, you want to create a custom field of the table &quot;item&quot; called &quot;amount&quot; via the menu Display&gt;Custom fields, create a product that you'll be using in the checkout of HikaShop, enable the HikaShop donation plugin via the Joomla plugins manager, and have your donate now button be a link to the add to cart HTML URL with the amount to be paid also in it:   www.hikashop.com/forum/2-general-talk-ab...ct-fields.html#16220    demo.hikashop.com/index.php/en/hikashop/...t-page/donation-page") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      8 years 5 months ago |
| [](/forum/31-development/875790-want-price-per-unit-before-the-price) | [want price per unit before the price](/forum/31-development/875790-want-price-per-unit-before-the-price "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.x  Hello,  We want the line price per unit. before the price instead of behind. but not to be shown in the listing of products. can u tell me how to do that! i attached two images one of the products listing and one of a product itself. I can not seem to figure it out. Please help. 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 11 years 7 months ago, by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")       [Last Post](/forum/31-development/875790-want-price-per-unit-before-the-price#292643 "Hi,  There was two modifications in the message from Xavier. The first one was to add JRequest::getCmd('layout') == 'show' so that the per unit would only display on the product page, not on listings. If you applied that change, it's normal that it didn't change the location of the per unit text. The second modification was to swap that block of code with the code before it :  and that is the modification you want to do. This code hasn't changed since 3 years ago so the modification is still valid and it's still in the same view file you need to do it.") 8 years 5 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:6  Views:3892 | [Last Post](/forum/31-development/875790-want-price-per-unit-before-the-price#292643 "Hi,  There was two modifications in the message from Xavier. The first one was to add JRequest::getCmd('layout') == 'show' so that the per unit would only display on the product page, not on listings. If you applied that change, it's normal that it didn't change the location of the per unit text. The second modification was to swap that block of code with the code before it :  and that is the modification you want to do. This code hasn't changed since 3 years ago so the modification is still valid and it's still in the same view file you need to do it.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      8 years 5 months ago |
| [](/forum/31-development/894551-bulk-add-to-cart) | [Bulk Add To Cart](/forum/31-development/894551-bulk-add-to-cart "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.7 -- PHP version -- : 7.1.14  I'm going to be starting a project soon which will require me to give Hikashop a new interface allowing registered users to submit a CSV string which will identify 1 to X items to be added to the User's shopping cart (similar in function to Hikashop's Bulk Product Input within the Administrator tools).  Adding a feature like this doesn't seem to be a normal in-Hikashop customization route, so I am guessing that I will need to physically add a new View and a new Controller. Submitting to a page without a Layout value gives me an Access error, and using a layout value overrides the submitted Task value. A little tinkering has shown me that a better understanding of Hikashop's custom Router may provide serious help on this project. Is there any formal documentation or guidance on the Router?  I have inserted a new View folder and templates, and can reach them through a custom browser address (&quot;?option=com&#95;hikashop&amp;view=bulk&quot;), but I haven't managed to create a suitable Menu Item Type option under Hikahsop's list yet.  In this new Controller (extending hikashopController), the standard Joomla method of submitting an action value with the format &quot;controller:taskname&quot; doesn't automatically trigger the class method &quot;taskname&quot;, so I am using an IF statement to trigger it, and plan to redirect the browser back to the same page after the submitted CSV text is parsed and items are added to the cart, with confirmation reported via Joomla Messages.  Any other suggestions or moving pieces I should be concerned about? 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 8 years 6 months ago, by [icomex](/forum/user/4967-icomex "View icomex's Profile")       [Last Post](/forum/31-development/894551-bulk-add-to-cart#291887 "Thank you very much! That sounds precisely like what I will need.") 8 years 6 months ago     by [icomex](/forum/user/4967-icomex "View icomex's Profile") | Replies:2  Views:3248 | [Last Post](/forum/31-development/894551-bulk-add-to-cart#291887 "Thank you very much! That sounds precisely like what I will need.") by [icomex](/forum/user/4967-icomex "View icomex's Profile")      8 years 6 months ago |
| [](/forum/31-development/894305-hikashop-module) | [hikashop module](/forum/31-development/894305-hikashop-module "i developed a module for hikashop product view but there is problem. i don't know how to force the module to follow hikashop configuration rules. in hikashop configuration i choose when &quot;add to cart&quot; clicked &quot;stay on same page and show a pop up&quot;, but this module go to checkout directly. how can i fix this ? is there any block of code to do that ? regard")        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 7 months ago, by [ebrahimahamdi](/forum/user/45709-ebrahimahamdi "View ebrahimahamdi's Profile")       [Last Post](/forum/31-development/894305-hikashop-module#290666 "Hi,  If you want to use the direct add to cart URL and not the javascript functions HikaShop provides, then you need to add an extra &quot;url&quot; parameter to your add to cart URL with the URL where you want to be redirected to after the add to cart process. The URL you add as value of that parameter needs to be urlencoded.") 8 years 7 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:4136 | [Last Post](/forum/31-development/894305-hikashop-module#290666 "Hi,  If you want to use the direct add to cart URL and not the javascript functions HikaShop provides, then you need to add an extra &quot;url&quot; parameter to your add to cart URL with the URL where you want to be redirected to after the add to cart process. The URL you add as value of that parameter needs to be urlencoded.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      8 years 7 months ago |
| [](/forum/31-development/889885-onbeforecartupdate-in-hikashop-3) | [onBeforeCartUpdate in HIkashop 3?](/forum/31-development/889885-onbeforecartupdate-in-hikashop-3 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6 -- PHP version -- : 5.6  Hi there,  I'm finally testing Hikashop version 3 and a plugin I developed for Hikashop 2.6.4 does not seem to be working in HIkashop3.  According to the documentation all the triggers should still work in V3, right? However my onBeforeCartUpdate function does not get called and it works fine on V2.6.4  Is there an issue with this trigger?  I have seen other posts where it is suggested to replace onBeforeCartUpdate by onBeforeCartSave, is that the solution? The developper documentation does not mention onBeforeCartSave and keeps referencing onBeforeCartUpdate. What parameters do you get with onBeforeCartSave?  Many 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 6 months ago, by [sabroso](/forum/user/38789-sabroso "View sabroso's Profile")       [Last Post](/forum/31-development/889885-onbeforecartupdate-in-hikashop-3#290657 "Hi,  If you use the new add to cart system, then the add to cart is done in AJAX and the server returns a JSON with a specific set of data to the browser. So you can't ouput HTML like that, it just won't be added to the page and it might well even break the javascript handling the add to cart.  What you can do potentially is add an exit; after the echo in your code and use the developer tools' network feature of your browser to look at what is returned by the server for the XHR (AJAX) request sent when you click on the add to cart button.   developers.google.com/web/tools/chrome-d...network-performance/") 8 years 7 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:19  Views:5837 | [Last Post](/forum/31-development/889885-onbeforecartupdate-in-hikashop-3#290657 "Hi,  If you use the new add to cart system, then the add to cart is done in AJAX and the server returns a JSON with a specific set of data to the browser. So you can't ouput HTML like that, it just won't be added to the page and it might well even break the javascript handling the add to cart.  What you can do potentially is add an exit; after the echo in your code and use the developer tools' network feature of your browser to look at what is returned by the server for the XHR (AJAX) request sent when you click on the add to cart button.   developers.google.com/web/tools/chrome-d...network-performance/") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      8 years 7 months ago |
| [](/forum/31-development/892014-categorybild-alt-text) | [Categorybild Alt-Text](/forum/31-development/892014-categorybild-alt-text "-- HikaShop version -- : 3.2 -- Joomla version -- : 3.8 -- PHP version -- : 7.1.9 -- Browser(s) name and version -- : Firefox 55  Hello, Is there a possibility to give the category picture an alt text. There is always a missing ALT text in the SEO check. And is planned to allow input in one of the next versions?  Best regards Kurt")         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 [Kurt](/forum/user/794-kurt "View Kurt's Profile")       [Last Post](/forum/31-development/892014-categorybild-alt-text#290533 "Hi,  Actually, the main blocking thing for that capability was that the interface had not been moved to the new upload system we added back in HikaShop to the product edition page. And we've added that new interface with a recent version of HikaShop:   monosnap.com/file/20TJudCoHybnByYkNB2f6PtQr9OPrw  So now that we have that, it should be quite easy to add that capability like we did on the product edition interface. In fact it's high on our todo list now.") 8 years 7 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:5274 | [Last Post](/forum/31-development/892014-categorybild-alt-text#290533 "Hi,  Actually, the main blocking thing for that capability was that the interface had not been moved to the new upload system we added back in HikaShop to the product edition page. And we've added that new interface with a recent version of HikaShop:   monosnap.com/file/20TJudCoHybnByYkNB2f6PtQr9OPrw  So now that we have that, it should be quite easy to add that capability like we did on the product edition interface. In fact it's high on our todo list now.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      8 years 7 months ago |
| [](/forum/31-development/894220-i-create-a-plugin-for-add-custom-js-in-product-page-but-i-have-a-problem) | [I create a plugin for add custom js in product page but i have a problem](/forum/31-development/894220-i-create-a-plugin-for-add-custom-js-in-product-page-but-i-have-a-problem "Hello ! I create a plugin for add custom javascript in product page but the javascript code added by Factory::getDocument()-&gt;addScriptDeclaration(/&#42;Script set in a field&#42;/); is add ~250 times in same...")        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 7 months ago, by [Krok](/forum/user/49481-krok "View Krok's Profile")       [Last Post](/forum/31-development/894220-i-create-a-plugin-for-add-custom-js-in-product-page-but-i-have-a-problem#290235 "Well, if you're sure, you can always add such code:  That way, the code after this code will only run once on each page.") 8 years 7 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:2774 | [Last Post](/forum/31-development/894220-i-create-a-plugin-for-add-custom-js-in-product-page-but-i-have-a-problem#290235 "Well, if you're sure, you can always add such code:  That way, the code after this code will only run once on each page.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      8 years 7 months ago |
| [](/forum/31-development/894026-developping-a-plugin-that-extend-custom-field-ajax-file-field) | [Developping a plugin that extend custom field Ajax File field.](/forum/31-development/894026-developping-a-plugin-that-extend-custom-field-ajax-file-field "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5  Guys, I ask you for guidance, please explain to me how can i extend and use class hikashopFieldAjaxfile in my own custom field plugin. I tried to understand how the datepicker plugin is working, but without much success. I want only to add some restriction to the files that can be uploaded through this custom field. Iknow that Hikashop has already implemented a restriction system for files, but i want to allow users to upload many types of files. But when a user sell an audio file, i want to allow him to upload 1 demo file that should be an mp3 file, or wav. I can not add these restrictions to Hikashop's main settings,because the users can also upload images.  How can i use this: class plgHikashopMyclass extends hikashopFieldAjaxfile { } ? I want this field to be visible in frontend, cuz i'm using hikamarket. This is necessary in every plugin? ?")        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 8 months ago, by [oxido](/forum/user/29793-oxido "View oxido's Profile")       [Last Post](/forum/31-development/894026-developping-a-plugin-that-extend-custom-field-ajax-file-field#289149 "Hello,  1 - No you don't need to declare an override function if you don't want to override that function. 2 - We don't use constructors based on the class name for a very long time ; it's deprecated in PHP 5 and even refused by PHP 7 ! 3 - If you do not have the required PHP skills ; we would recommend you to contact someone to help you. 4 - Feel free to submit a feature request if you have an idea which can be interesting for the all community. 5 - But if you need that new feature to be implemented into the HikaShop core class in a short delay ; it might be faster to contact some of the HikaShop partners.  Regards,") 8 years 8 months ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:1  Views:3738 | [Last Post](/forum/31-development/894026-developping-a-plugin-that-extend-custom-field-ajax-file-field#289149 "Hello,  1 - No you don't need to declare an override function if you don't want to override that function. 2 - We don't use constructors based on the class name for a very long time ; it's deprecated in PHP 5 and even refused by PHP 7 ! 3 - If you do not have the required PHP skills ; we would recommend you to contact someone to help you. 4 - Feel free to submit a feature request if you have an idea which can be interesting for the all community. 5 - But if you need that new feature to be implemented into the HikaShop core class in a short delay ; it might be faster to contact some of the HikaShop partners.  Regards,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      8 years 8 months ago |
| [](/forum/31-development/893995-changing-the-display-on-mod-currency-switch) | [Changing the display on mod\_currency\_switch](/forum/31-development/893995-changing-the-display-on-mod-currency-switch "-- url of the page with the problem -- :   www.dkloc.ch/  -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.2.1  Hello,  Does anybody know how to change the display for mod&#95;currency&#95;switch ? I would like to only display the symbol and not the currency name. I have search for a few hours and found a $currency-&gt;display() method, but the arguments were only the IDs and nothing else.  Thanks Adrian")        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 8 months ago, by [luciolis](/forum/user/56322-luciolis "View luciolis's Profile")       [Last Post](/forum/31-development/893995-changing-the-display-on-mod-currency-switch#289056 "Hi,  As Jerome said, you could change the line: in the file administrator/components/com&#95;hikashop/types/currency.php and remove .' '.$currency-&gt;currency&#95;code to not have the code, only the symbol. However, it would be better to do an override of the module via the template manager, and copy/paste the code of the type and modify it there. That way, you wouldn't loose your changes after each update of HikaShop.") 8 years 8 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:4  Views:3011 | [Last Post](/forum/31-development/893995-changing-the-display-on-mod-currency-switch#289056 "Hi,  As Jerome said, you could change the line: in the file administrator/components/com&#95;hikashop/types/currency.php and remove .' '.$currency-&gt;currency&#95;code to not have the code, only the symbol. However, it would be better to do an override of the module via the template manager, and copy/paste the code of the type and modify it there. That way, you wouldn't loose your changes after each update of HikaShop.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      8 years 8 months ago |
| [](/forum/31-development/893850-changed-notification-system) | [Changed notification system?](/forum/31-development/893850-changed-notification-system "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.5  Hi There! I have an override on the remove from wishlist method so that it shows a notification when an item is removed from the wishlist. When I developed this override HikaShop was using jQuery notify to show notifications and I just had to add this code to my javascript:  It's been sometime and I remember this was working fine, but currently the site does not load jQuery notify plugin and notifications seem to be using a different (and nicer system) with this call to update the cart:  Can you please point out the code to show a notification about product removed so that I can use the new notification system?  Thank you!!  Carlos.")        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 8 months ago, by [karendunne](/forum/user/51903-karendunne "View karendunne's Profile")       [Last Post](/forum/31-development/893850-changed-notification-system#288805 "Hello,  Before using jQuery notify ; we load jQuery and we also load the &quot;notify&quot; lib. If you do want to use the notifyjs lib ; best for you would be to download it and use it manually. CF :   notifyjs.com/  And don't forget to also include jQuery via the Joomla core before.  Please understand that you're asking for help for elements which are outside the limit of our support. And, right now it's not that we don't want to help you a bit but... How could we help you with the JavaScript if we do not know anything regarding what you have done nor we can see your plugin in action ?") 8 years 8 months ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:7  Views:2926 | [Last Post](/forum/31-development/893850-changed-notification-system#288805 "Hello,  Before using jQuery notify ; we load jQuery and we also load the &quot;notify&quot; lib. If you do want to use the notifyjs lib ; best for you would be to download it and use it manually. CF :   notifyjs.com/  And don't forget to also include jQuery via the Joomla core before.  Please understand that you're asking for help for elements which are outside the limit of our support. And, right now it's not that we don't want to help you a bit but... How could we help you with the JavaScript if we do not know anything regarding what you have done nor we can see your plugin in action ?") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      8 years 8 months ago |
| [](/forum/31-development/893896-db-driven-custom-field) | [DB Driven custom field?](/forum/31-development/893896-db-driven-custom-field "-- HikaShop version -- : 3.3 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.1.14  I don't think this is currently included, but I'm thinking about updating a customer's very old, custom online order system using Hikashop as it's skeleton. The old system's product definitions included several fields that were populated by lookup values from large, simple indexes (stored in database tables of their own).  Hikashop's simple dropdown field types require us to enter each value, which is perfectly understandable. However, if Hikashop has incorporated Joomla form fields, there is one which looks up a pair of values from a database.  Is there any way to create a new &quot;field type&quot; for use in Hikashop's custom fields interface which uses JFormFieldSQL? If not, maybe it could use a lookup list from a document written in XML or preferably JSON?  I fear I'm looking at the beginning of a really massive headache, here.")        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 8 months ago, by [icomex](/forum/user/4967-icomex "View icomex's Profile")       [Last Post](/forum/31-development/893896-db-driven-custom-field#288549 "Cool! Thank you for the lead.  If I can make it work gracefully, I'll post it back to you here.") 8 years 8 months ago     by [icomex](/forum/user/4967-icomex "View icomex's Profile") | Replies:2  Views:3448 | [Last Post](/forum/31-development/893896-db-driven-custom-field#288549 "Cool! Thank you for the lead.  If I can make it work gracefully, I'll post it back to you here.") by [icomex](/forum/user/4967-icomex "View icomex's Profile")      8 years 8 months ago |
| [](/forum/31-development/893763-how-to-modify-custom-fields-with-a-plug-in) | [How to modify custom fields with a plug-in](/forum/31-development/893763-how-to-modify-custom-fields-with-a-plug-in "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.1  I've created some custom fields for the table &quot;order&quot;, and a skeleton plug-in in plugins/hikashop. When the plugin is triggered by the onAfterOrderCreate event, I'd like to log some data in my newly created fields. I would expect the fields to be found in the order object, but alas!  Where can I access these order fields?  Thanks and regards, Paul")        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 [paulvanharen](/forum/user/20480-paulvanharen "View paulvanharen's Profile")       [Last Post](/forum/31-development/893763-how-to-modify-custom-fields-with-a-plug-in#287772 "Hi,  Yes, In the $order object you get in onAfterOrderCreate , you only have the custom order fields that are being saved with the order creation. If your custom order field is not in the checkout, then it won't be in $order in that trigger.  But as Jerome said, you can run a MySQL query to set it. Or you can even use the onBeforeOrderCreate trigger to set it in $order and it will be saved for you when the order is created in the database.") 8 years 9 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:1823 | [Last Post](/forum/31-development/893763-how-to-modify-custom-fields-with-a-plug-in#287772 "Hi,  Yes, In the $order object you get in onAfterOrderCreate , you only have the custom order fields that are being saved with the order creation. If your custom order field is not in the checkout, then it won't be in $order in that trigger.  But as Jerome said, you can run a MySQL query to set it. Or you can even use the onBeforeOrderCreate trigger to set it in $order and it will be saved for you when the order is created in the database.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      8 years 9 months ago |
| <a id="forumbottom"> </a> [   ](#forumtop) |  |

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

Time to create page: 0.045 seconds

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