Feed plugin not working

  • Posts: 128
  • Thank you received: 3
8 years 7 months ago #235753

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.5.0
-- PHP version -- : 5.3.24

I have created a product feed plugin similar to the Google products plugin. What I can't figure out is why it seems to not be working. I took the Google products plugin code and tweaked it. Here's the plugin

File Attachment:

File Name: gog_products_1_0.zip
File Size:2 KB


What I'm trying to get it to do for right now is just download a file from a server via ftp using the credentials entered into the parameters and I would like it to update every 10 minutes via CRON. It's not even downloading the file right now though and I know I've input the correct parameters. Am I missing something in my code?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 7 months ago #235791

Hi,

The way you coded the plugin, it will only connect to the FTP if:
- you have either HikaShop Essential or Business (it won't work with the Starter edition).
- you have configured the cron task in the HikaShop configuration:
www.hikashop.com/support/documentation/5...ashop-cron-task.html
- the plugin is enabled
- the plugin's "Enable auto update" option is activated
- the plugin's "Local xml file path" option is not empty
- the plugin's "FTP User Name", "FTP Password" and "File Name" options are not empty

Also, the _connectionToGoGDB function is missing a return. So it will always return false and you'll never see the message "Product information retrieved from Gallery of Guns".
Another problem is the host name you're using in the "connect" call which contains /inventory/
I don't think that it's makes it a valid host name. The /inventory/ folder should be given in the $name variable normally.

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum