CRON JOBS - List and Descriptions

---
description: >-
 There are cron jobs running on both servers (ops.babycentral.co and
 portal.babycentral.co).  Why do we have 2 separate servers for the same thing?
---

CRON JOBS - List and Descriptions



#

Jobs running on ops.babycentral.co



###

index.php skuvault/feeds/closeSkuvaultOrders



Automatically sets orders to “Complete” in Skuvault if they have been set to Shipped in our Skuvault portal or have been fulfilled in Shopify (for countries that use Skuvault, currently BBC HK & SG).

####

###

index.php shopify/orders\to\database X (where X is store\id taken from oc\store table)

Pulls unfulfilled orders from the given Shopify store and saves information to table shopify\order and shopify\order\product.  Used mainly to keep track of which orders need to be dropshipped and to send suppliers notifications of these.  Data is also used to generate reports for CS and purchasing on outstanding orders

{% embed url="https://portal.babycentral.co/centralhq/index.php?route=outstandingorders" fullWidth="false" %}

> \[NOTE FROM CLARISSA: I think this script is not quite working as it should.. When an order is modified in Shopify, it should change in the database, but I don’t think this is happening at the moment..]



###

panel/index.php shopify/bbc\exports/exportProducts ALL\PRODUCTS X (where X is store\id taken from oc\store table)

Exports all product data for a particular store and saves it to a spreadsheet to be uploaded to Shopify using Matrixfy. Matrixfy is set up to read this file once a day (in middle of night)



###

panel/index.php shopify/bbc\exports/exportManualCollections X (where X is store\id taken from oc\store table)

Exports all manual collection data for a particular store and saves it to a spreadsheet to be uploaded to Shopify using Matrixfy.  Matrixfy is set up to read this file once a day (in middle of night).  Anything that is not a collection for a particular brand  is set up as a manual collection in Shopify



###

panel/index.php shopify/bbc\exports/exportSmartCollections X (where X is store\id taken from oc\store table)

Exports all smart collection data for a particular store and saves it to a spreadsheet to be uploaded to Shopify using Matrixfy. Matrixfy is set up to read this file once a day (in middle of night). Smart collections are all brand  is set up as a manual collection in Shopify



###

panel/index.php shopify/bbc\exports/exportProductCollections X (where X is store\id taken from oc\store table)

Exports all the products in a particular store and the collections those products should be in and then saves it to a spreadsheet to be uploaded to Shopify using Matrixfy. Matrixfy is set up to read this file once a day (in middle of night).  



###

index.php shopify/shopify\menu\creator

On each shopify site, the main navigation menus (on both desktop and mobile) are imported from static files on ops.babycentral.co.  Running this script regenerates all these files (note that the menu of each store should exclude empty categories, so this script needs to be run on a daily basis to reflect products coming in/out of stock)



###

index.php hktvmall/import\orders

> TO BE COMPLETED BY TEDDY

###

index.php hktvmall/update\stock\cron

> TO BE COMPLETED BY TEDDY

###

index.php hktvmall/update\stock\cron/setProductsToUpdate

> TO BE COMPLETED BY TEDDY

###

index.php shopify/translations\category/setCollectionsToUpdate

> TO BE COMPLETED BY TEDDY

###

index.php shopify/translations\category collection\type=brand

> TO BE COMPLETED BY TEDDY

###

index.php shopify/translations\category collection\type=category

> TO BE COMPLETED BY TEDDY

\


#

Jobs running on portal.babycentral.co



###

centralhq/cron\jobs/send\shopify\shipping\emails.php

Sends emails to customers in HONG KONG when orders are ready for self-pickup OR have been shipped using a third party courier service (it emails them the shipping info).  Emails are sent using our mandrill account.



###

centralhq/cron\jobs/update\google\translations.php X Y Z

Fetches google translations for all products and collections for language X, in language Y for stores in country Z (note that we only fetch translations for products that are not marked as having been manually translated)



###

centralhq/cron\jobs/google\feed.php X Y

Creates a CSV file with all product information for Google Merchant centre for store X in language Y.  Google Merchant Centre fetches this file on a daily basis



###

centralhq/cron\jobs/facebook\feed.php X Y

Creates a CSV file with all product information for Facebook for store X in language Y. Facebook fetches this file on a daily basis



###

centralhq/skuvault\feeds/skuvault\products.php

\

Subscribe to Bloom and Grow Documentation

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe