run import otherwise than via cron?

  • Posts: 3
  • Thank you received: 0
10 years 8 months ago #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_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 or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #147830

Hi,

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

	function onMassactionTableTriggersLoad(&$table,&$triggers,&$triggers_html,&$loadedData){
		if($table->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 or Create an account to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum