merx
merx copied to clipboard
Hardcoded template names
Hi there,
I was using the plugin in my installation and encountered issues when I wanted (for a clearer and user-friendlier structure) inside blueprints pages and templates folders to change the pages' names (for example, from checkout to shop-checkout), and in that way differentiate between my other page templates and the shop ones immediately (since unfortunately it is not possible in kirby to put them inside, let's say, a folder called 'shop', because kirby doesn't approve of structuring inside these blueprints/pages and template folders) I realise that is is possible to adjust those in the plugin code itself, but on any next update I would have to care for that as well. Is there any option/idea/possibility to make these changeable, so that is more flexible?
Thank you!
Hey @IvanConor,
thanks for your question.
You don’t have to name the checkout page checkout.txt
. It’s completely up to you how to name this page.
The only thing you can’t customize is the template of orders. An order always has to be order.txt
. The parent folder for all orders can be customized with the ww.merx.ordersPage
option.
There also is an option for the success page: ww.merx.successPage
I’ll leave this issue open. Maybe we can add a ww.merx.orderTemplate
in the future to make order template customizable.
Let me know if you have further question.