News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[SOLVED] How to choose an own layout for online order view?

Started by gba, June 09, 2017, 01:52:47 AM

Previous topic - Next topic

Studio 42

write the value in the virtuemart.cfg file, go to config and save.
see JOOMLAROOT\administrator\components\com_virtuemart\virtuemart.cfg
Afer you can use this value in your code
VmConfig::get ('layout_order_detail', 'default'));
But this don't solve your problem

Milbo

Quote from: gba on September 26, 2017, 18:31:06 PM
Hi!

Thank you for your reply.
Actually I am afraid, I do not understand how your answer is connected with my question:

I dont understand it either. I just noticed there is a small error with the hidden config layout_order_list. It becomes active, when the user is logged in. Yeh I missed one bracke } sorry.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

gba

#17
Hi!

Quotego to config and save
... this was the key for me!

To put all your hints together (including a message from Max):
1. In virtuemart.cfg add i.e. layout_order_list=mylist, save file.
2. Open VM configuration in backend, do not change anything, save settings.
3. The file /templates/mytemplate/html/com_virtuemart/orders/mylist.php is loaded - enjoy your own order list layout!
(do the same with layout_order_detail)

@ template creators: Please make use of this new VM feature to make life easier for your users  ;)

Thank you guys!