Author Topic: Cloning product: auto or semi-auto process?  (Read 410 times)

Mister Paul

  • Jr. Member
  • **
  • Posts: 268
  • Joomla! 3.9.6 - VirtueMart 3.4.2
Cloning product: auto or semi-auto process?
« 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

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 709
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Cloning product: auto or semi-auto process?
« Reply #1 on: August 25, 2020, 20:31:55 pm »
Quote
Is there an already existing PHP code for cloning that I could use as a base code for a CRON task?

No
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 709
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Cloning product: auto or semi-auto process?
« Reply #2 on: October 01, 2020, 20:05:09 pm »
Quote
f 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?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9815
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Cloning product: auto or semi-auto process?
« Reply #3 on: October 01, 2020, 22:17:12 pm »
He's a spammer  ..  banned
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation