I had a situation where the product names (and slugs) were identical across different languages and as a result the PDFs were cached and served in wrong translations. Also, it became necessary to customize the filename more specifically, adding info from post metadata etc.
This PR adds two filters to customize the pdf filename: the actual name and the cache id which is used to determine if the file should be generated.
I had a situation where the product names (and slugs) were identical across different languages and as a result the PDFs were cached and served in wrong translations. Also, it became necessary to customize the filename more specifically, adding info from post metadata etc.
This PR adds two filters to customize the pdf filename: the actual name and the cache id which is used to determine if the file should be generated.
Example use: