on 02-11-2015 11:14 AM
Hello,
How to create cronjob to says from stage to online catalog ?
Hi Saleh!
I'm assuming you mean to say 'to sync from Stage to Online'. For this you may create another dependent catalog version to your Staged catalog version, i.e.:
hMC > Catalog > Catalogs > Open your catalog and the 'Staged' catalog version > Catalog Versions tab > Right-click on the table of Dependent Catalog Versions
Then, after you create this sync job, you can simply create a cronjob and select this newly created sync job as its job.
hMC > System > Right-click CronJobs > Create 'CronJob' > Select the job in the list
Best regards,
Niko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No .. the job is not running and i create new cron job that using the same type of dependent sync!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
When i create the cron job from that type , the start cronjob now button disabled !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can also do this via impex...
$productCatalog1=MyProductCatalog
$sourceProductCV=sourceVersion(catalog(id[default=$productCatalog1]),version[default='Staged'])[unique=true,default='$productCatalog1:Staged']
$targetProductCV=targetVersion(catalog(id[default=$productCatalog1]),version[default='Online'])[unique=true,default='$productCatalog1:Online']
INSERT_UPDATE CatalogVersionSyncJob;code[unique=true];$sourceProductCV;$targetProductCV;
"#%afterEach: {
import de.hybris.platform.catalog.jalo.SyncItemCronJob;
import de.hybris.platform.catalog.jalo.SyncItemJob;
SyncItemJob catalogSyncJob =impex.getLastImportedItem();
SyncItemCronJob syncJob = catalogSyncJob.newExecution();
syncJob.setLogToDatabase(false);
syncJob.setLogToFile(true);
syncJob.setForceUpdate(false);
catalogSyncJob.configureFullVersionSync(syncJob);
catalogSyncJob.perform(syncJob, true);
}"
;sync MyProductCatalog:Staged->Online;;;;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.