LDAV / woocommerce-pdf-italian-add-on

WooCommerce PDF Invoices Italian Add-on
GNU General Public License v2.0
4 stars 5 forks source link

limit file location override to receipts #3

Closed Spreeuw closed 9 years ago

Spreeuw commented 9 years ago

This is an extra check to make sure the file location is not overriden for other template types (which may be filtered later).

Please test!

LDAV commented 9 years ago

Hello Spreeuw there's no location override in the original code. It only checks if a template exists...

Spreeuw commented 9 years ago

What I mean is that anyone filtering with priority 20 or higher may miss out if their location is different (like yours). In that case your filter would already have redirected to your receipt template before they get a chance to to their thing. This is just a sanity check.

Ewout

Spreeuw commented 9 years ago

There was one more issue with other document types, see e3d22fa & e1892f3