VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Mister Paul on August 25, 2020, 19:26:45 PM

Title: Cloning product: auto or semi-auto process?
Post by: Mister Paul on August 25, 2020, 19:26:45 PM
Hi,

I'd need to clone a product every week and change "only" 3 of it's parameters:
- Date Publish Up (+7 days)
- Date Publish Down (+7 days)
- Alias (to avoid extra long alias name, at the end of the alias name, keep only the Id of the last cloned product...)

Is there a way to do that in an auto or semi-auto mode?
Is there an already existing PHP code for cloning that I could use as a base code for a CRON task?
::)

Thanks for your help!
PAul
Title: Re: Cloning product: auto or semi-auto process?
Post by: pinochico on August 25, 2020, 20:31:55 PM
QuoteIs there an already existing PHP code for cloning that I could use as a base code for a CRON task?

No
Title: Re: Cloning product: auto or semi-auto process?
Post by: pinochico on October 01, 2020, 20:05:09 PM
Quotef you have already created a cron job in your panel, you can view it by running crontab -e under your Shell user. If you edit the file to add another cron job below the existing panel one, the panel cron job will continue to function normally in addition to your new edited code.

I don't understand - why you are talking about how to set up cron?

The question is about PHP code == create custom php code and this code calling by cron.
The question is not how setup cron, or is my mistake?
Title: Re: Cloning product: auto or semi-auto process?
Post by: GJC Web Design on October 01, 2020, 22:17:12 PM
He's a spammer  ..  banned