1. webstar
  2. RO CSVI
  3. Wednesday, 21 December 2022
  4.  Subscribe via email
Hi, I have a php script that inputs a list of order IDs into a template to export. This seems to work fine 100% of the time. My issue is I'm seeing HUGE files being generated on my server randomly, from the same script. Its like the script/template has been triggered without any Order IDs defined.

Is there any way I can force my template to ONLY export when their ARE order IDs input?
Accepted Answer Pending Moderation
Hello,
In export template on Source tab there is an option to not Output Empty file by setting the field to No. Check if that setting will help to solve your issue.
Attachments (1)
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
Hm, I'm not sure that would help - Its already set. The problem isnt that its outputing an empty file - Its being triggered somehow with NO input Order IDs so its just defaulting to exporting ALL orders weve ever had - which is over 200,000
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello,

Looks like your question was misinterpreted, as you said, that will not help.

Not running the export when no order numbers have been selected is not possible with the current setup as that would prevent the option to export all orders, as you found out :)

What you could do probably is edit your PHP script to put just 0 in the order ID field, as this will not export anything. Together with the option to not export empty file, should resolve your issue.

Let us know how that goes.
Kind regards,

RolandD

=========================
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. # 3
Accepted Answer Pending Moderation
Ah good - Idea - Could certainly add a 0 to the script - Many thanks
  1. more than a month ago
  2. RO CSVI
  3. # 4
  • Page :
  • 1


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