to realise 2 topics (a zip download of all product images and other stuff and to modify a PDF printout) I need to understand how I can access the Magento2 product data on an isolated PHP page which is not embedded into the "normal" Magento2 structure. Files are located into the same root folder - but they don't exist in the backend as a page, block or widget.
My idea was to hand over the productId as a get parameter.
Is that possible - or is there any better way to realise this?
Thanks in advance.
Solved! Go to Solution.
I would suggest implementing this via a Magento module rather than a standalone php script. You will very likely want to make sure that only you can access it, etc.
This blog post by Alan Storm is a good introduction on how to create your first Hello World extension.