Ordernumber als CSV filename

  • Posts: 75
  • Thank you received: 1
9 years 10 months ago #186678

-- HikaShop version -- : 2.3.5.
-- Joomla version -- : 3.3.6
-- Error-message(debug-mod must be tuned on) -- : IE,FF,Chrome latest version.

Hello,

I want to use an unique filename for the export csv filename in massaction. Is it possible to user, for example, the ordernumber as the filename?

This is because I want to create a csv file every time an order has been confirmed and I want to ftp that file to the packaging company for grabbing and sending the order.





Hope someone can help me.

Kind regards,

Wilfried

Attachments:
Last edit: 9 years 10 months ago by wilfried. Reason: SOLVED

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #186704

Hi,

This is not possible this way, but I add this idea on our TODO list ;)

At this time, you can do as suggested in this post:
www.hikashop.com/forum/import-export-csv...th-order.html#186637

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 1
9 years 10 months ago #186797

Hello Xavier,

Thanks for the quick answer!

If I did this what shoudl I fill in into the path field on the frontend?
I now have the whole path included the csv filename

/var/www/vhosts/domainname/httpdocs/media/com_hikashop/upload/confirmed_orders/filename.csv

kind regards, WIlfried

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #186802

Hi,

You can use that code:

$params->path = str_replace('filename',$elements[0]->order_number,$path);

The following user(s) said Thank You: wilfried

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 1
9 years 10 months ago #186923

Thanks it is working now.

Wilfried

Please Log in or Create an account to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum