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

#   run import otherwise than via cron?

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 7 months ago [\#147783](#147783) by [magnum](/forum/user/6307-magnum "View magnum's Profile")  *[run import otherwise than via cron?](/forum/37-import-export-csv-xls/866536-run-import-otherwise-than-via-cron#147783 "-- url of the page with the problem -- :   www.honda-magnum.com  -- HikaShop version -- : 2.2.2 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.2.17 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  is there a possibility to run import otherwise than via cron from within a standalone php-program?  we want to import product data from a warehouse mgt system on a regular basis. (only upon manual request) that wms outputs several csv's in a proprietary format on a remote system from which, if one has been created, a hikashop-compatible one must be derived, then trigger the import and cleanup afterwards.  is there a way to run the import via some require&#95;once or a function call from the php program that transfers the wms-files to the webserver and generates the hikashop input? with the hikashop cron mechanism we would need two or three consecutive crons and synchronisation problems are very likely to occur...")* was created by *[magnum](/forum/user/6307-magnum "View magnum's Profile")*

-- url of the page with the problem -- : [ www.honda-magnum.com](http://www.honda-magnum.com)
-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5.14
-- PHP version -- : 5.2.17
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

is there a possibility to run import otherwise than via cron from within a standalone php-program?

we want to import product data from a warehouse mgt system on a regular basis. (only upon manual request) that wms outputs several csv's in a proprietary format on a remote system from which, if one has been created, a hikashop-compatible one must be derived, then trigger the import and cleanup afterwards.

is there a way to run the import via some require_once or a function call from the php program that transfers the wms-files to the webserver and generates the hikashop input?
with the hikashop cron mechanism we would need two or three consecutive crons and synchronisation problems are very likely to occur...

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 7 months ago [\#147830](#147830) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[run import otherwise than via cron?](/forum/37-import-export-csv-xls/866536-run-import-otherwise-than-via-cron#147830 "-- url of the page with the problem -- :   www.honda-magnum.com  -- HikaShop version -- : 2.2.2 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.2.17 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  is there a possibility to run import otherwise than via cron from within a standalone php-program?  we want to import product data from a warehouse mgt system on a regular basis. (only upon manual request) that wms outputs several csv's in a proprietary format on a remote system from which, if one has been created, a hikashop-compatible one must be derived, then trigger the import and cleanup afterwards.  is there a way to run the import via some require&#95;once or a function call from the php program that transfers the wms-files to the webserver and generates the hikashop input? with the hikashop cron mechanism we would need two or three consecutive crons and synchronisation problems are very likely to occur...")*

Hi,

The easiest way will be to create mass actions from the menu System &gt; Mass actions.
Before that you will have to create a plugin to add a trigger in the triggers list, like: Code:

function onMassactionTableTriggersLoad(&amp;$table,&amp;$triggers,&amp;$triggers_html,&amp;$loadedData){ if($table-&gt;table == 'product') $triggers['onBeforeProductCreate']=JText::_('BEFORE_A_PRODUCT_IS_CREATED'); }

Then create another function which can be called by url (joomla part), and in this function call the desired trigger.
It require good php knowledge.

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

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

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

Time to create page: 0.199 seconds

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

[](#top)
