Cron Job to import - magento

Our magento store is connected to Cybertill Connector to import products and categories.
I was checking if there is any possibility to schedule a daily task to import products automatically via setting up cron in cpanel?
I have saved a link which is running when I click to import products (Admin>>connector>>product import) from magento admin http://mystorename.com/index.php/admin/connector/pullproducts/key/4c58ba58a5gt986cv/
I will appreciate if someone provide me proper steps to schedule a cron.
Sorry, I am new to magento and php if I missed anything or you want to ask something please let me know.
Thanks
Manish

The link which you mentioned is not the link which can be used in the cron jobs.
You should give the path to cron.php file with is in your Megento installation to run the cron jobs.
And here are the links to setup the cron job in cPanel. Refer these and try to create.
http://docs.klaviyo.com/article/172-set-up-magento-cron-job
http://magento.stackexchange.com/questions/8012/cron-job-command-in-cpanel
https://documentation.cpanel.net/display/ALD/Cron+Jobs#CronJobs-Addacronemail

Related

Joomla Cron for administration

In my website, I want to update data from external source everyday.
I create an administration module and he works manually but I need automate the process.
I think a cron can do that but the problem is the login ?
Joomla 3.
Set up the cronjob on the joomla server needs no login. Login is only needed via Http Requests, A cron job on the server dosent need a login (cron job on same server with joomla)
But as module it will not work. Why just hit a php script as cronjob?
A module needs joomla rendering in most cases and this will not work!

Submitting Sitemap.xml to Google

How frequently it is recommended to generate and upload Sitemap.xml to Google for an e-commerce site where products are added and removed on daily basis?
Thanks.
You can set cron job to run daily. The instruction to set up cron job can be found here
Magento and Google Sitemap - Cron

Best way to import 80.000 products in Magento every night?

So I've been asked by a client for an online store in which he need each night to delete all the products and import again aprox. 80.000 products.
Of course I thought about Magento. But as we all know the importing process is a pain in the ass.
The best option is to use MAGMI of course and the import doesn't take long and it also has a nice utility that quickly empties the database and resets the product ID counter.
The problem is with the bloody reindex operation.
MAGMI has a plugin called Magento Reindexer which doesn't work in my case. I guess it needs to ensure security configuration enable "shell_exec()" calls from php. I dunno how to do that.
To my only choice is to reindex using the browser from the admin.
Of course it's not the best solution specially since it times out and it doesn't work.
So I need to give the client two options:
to create a cron job that would use MAGMI's Clear Catalog utility to empty the database and then use MAGMI to import the same CSV file every night. So all the client would have to do is reupload the CSV file in the same location every night.
Give the client the possibility to manually make the import when he wants using MAGMI and of course empty the database using the same Clear Catalog utility from the MAGMI interface.
Either way I have to find a solution for the reindexing problem.
Does anyone have a similar experience or maybe a solution?
Thanks in advance!
You do not need to empty the database with each import. Magmi has the ability to update products on the fly without deleting them first.
If your concern is removing products that are no longer in the CSV, you can use a plugin I wrote and posted on StackOverflow here: https://stackoverflow.com/a/18447266/1332068
The indexer issue has also been asked about and answered on this site as well.
https://stackoverflow.com/a/19384326/1332068
I urge you to search thoroughly before asking questions as there are several solutions already available for Magmi on this site.

how to run an admin task in joomla with a cron job?

I wrote a custom component in Joomla! that pulls in content from an XML feed and stores it in the Joomla database. I want the admin URL (/administrator/index?option=com_mycomp) to run via cron once every night to run the component. I can't figure out how to make this work, though, since the component is an administrator task and you have to be logged in to run it.
How do I get by this? I tried including my user/pw in the url (http:admin:password#www.mysite.com/joomla/administrator....) but it doesn't work. Is there anyway other way to send login credentials, or any other way to do this?
I know this thread is very old, but here's how I handled a similar task.
The "trick" is to take the custom PHP code you have created, and embed it into an article within your Joomla website.
I did this by using the JUMI extension, that allows custom PHP code to be stored within the Joomla repository and embedded, as required, within an article.
Then, create a CRON task that will activate the appropriate URL for the page containing the code you want to run.
Just put your script in the administrator directory of the component like
/administrator/components/com_yourcomponent/cron.yourcomponent.php
This is how FeedGator handles cron tasks [Sounds very similar to what you're trying to do.] ... you can also write a frontend controller in your component per one of the comments
========== [Update] ============
I created this ultra-simple installable component that could also be used for this purpose. It allows for a frontend menu item to be assigned to a php page (including the route as suggested). So you:
install the component
create new menu item, (may want to use a 'hidden' menu) select the 'show' view option and enter the script to run via cron in 'file to include' like path/yourcron.php
call the 'page' in your cron or test using: yourjoomlasite.com/index.php?option=com_show or yourjoomlasite.com/your-menu-alias
Mostly corn urls works from front-end even if your component deals with administrator only in Joomla.
So whatever your code in admin cron get it to front-end & so that your cronurl becomes like index.php?option=com_yourcomponent&task=cronjob.
Use this url to set cron using cPanel.
However this solution doesn't need to see whether admin is logged or not.

Magento 1.5.0.1 - Where does the Google Sitemap get created?

I am using Mangento 1.5.0.1 and have configured the admin section to export Google XML Sitemaps daily.
Mangento uses cron to execute this however the cron job runs but never outputs a sitemap nor does it email me an error.
I was thinking maybe I need to manually create the folders / files and then maybe they would then be populated by the cron job.
So my question is, where in the file system does Magento create these files?
Thanks
Paul
From memory I think sitemap.xml normally gets created in the Magento directory - usually whatever is the public root of your website. Of course this is configurable.

Resources