Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardcoded template names #9

Open
IvanConor opened this issue Jun 17, 2020 · 1 comment
Open

Hardcoded template names #9

IvanConor opened this issue Jun 17, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@IvanConor
Copy link

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
Copy link
Member

tobiasfabian commented Jul 8, 2020

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.

@tobiasfabian tobiasfabian added the enhancement New feature or request label Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants