1. kostas7
  2. RO CSVI
  3. Monday, 12 September 2016
  4.  Subscribe via email
Hello,
Is it possible to import the current date to a Virtuemart custom field?
Thanks,
Best Regards,
Kostas.
Accepted Answer Pending Moderation
Hello Kostas,
There is no direct way currently to set pattern like "date("Y-m-d";)" but there are two ways of doing it.

One way is that you can write your own rule plugin where you can use the date pattern like date("Y-m-d";) and update your custom field.

Second is that In your import file, you have some custom text for date field and you can create a replacement rule, set this custom text in find field and replace it with the date you want in the replace field in the rule. And of course you need to change the date in the replace field in the rule every time you need to have the current date.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello Kostas,
If the VirtueMart custom field you are trying to import is of type date then you should be able to import the current date. If you are looking for anything more, post the sample import file to check.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Thanks, Tharuna,
Do I have to set the date manually (i.e 2016/09/12) each time I run the Import or there's a pattern like the "date("Y-m-d";)" which I use in PHP scripts?
Best Regards,
Kostas.
  1. more than a month ago
  2. RO CSVI
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!