radykal | Support Center Chooser

For which product do you need support?

Fancy Product Designer Multistep Product Configurator Another

Start a new topic
Answered

Changin the name of download

Can I change the final name of the archive to download for.
Actually all png download with the name of Product.png.

 


Best Answer

Sorry that is currently not possible or at least only after the download.


Answer

Sorry that is currently not possible or at least only after the download.

Hi Bruno Bermejo Almagro,

Is possible. I change name with date time.

Here is code for FancyProductDesigner-all.js around line 6505

     

fpdInstance.getProductDataURL(function(dataURL) {
// add this
var d = new Date();
var currTime = d.getFullYear() + '-' + d.getMonth() + '-' + d.getDate() + '-' + d.getHours() + '-' + d.getMinutes() + '-' + d.getMilliseconds();

fpdInstance.$container.find('.fpd-download-anchor').attr('href', dataURL)
	.attr('download', currTime + '.' + type + '')[0].click();

    And final result is (example)  2017-10-9-11-34-906.png

Login or Signup to post a comment