wagnerwagner / merx

Merx is a plugin to create online shops with Kirby.
https://merx.wagnerwagner.de
102 stars 10 forks source link

Hardcoded template names #9

Open IvanConor opened 4 years ago

IvanConor commented 4 years ago

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!

tobiasfabian commented 4 years ago

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.