News:

Support the VirtueMart project and become a member

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

gba

Hi all!

In VM config there are settings for layouts for cart, category, products and product detail.
I am wondering, how I could choose layouts for other views, like order or invoice?

Thank you very much for any useful hint!

Kind regards,
Gerald

Studio 42

You have only one layout for order and invoice.
If you need to customize it, then you have to override file in your template and modify it.

gba

Hi!

This is what I feared...

@admin: Could you, please, move this thread to 'Virtuemart Development and bug reports' as a feature request?
Thank you!

Kind regards,
Gerald

K&K media production

Why more than one layout?

Where is the difference if you use a default.php override as your own layout or a whatever.php file?

gba

This is quite simple to answer:
I am using a VM template.
I want to do some customization on the template.
I want to be install future updates of the template.
And I do not want the updates to overwrite my customizations.

My question to you:
Why more than one layouts for cart, category, ...?  ;)

Kind regards,
Gerald

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

gba

Hi!

Thank you for that links.

To clarify:
I am not talking about overrides for invoices or e-mails.
I am talking about overriding the online order view.
It would be great to have an additional layout choice in VM config for that.
Therefore I asked to move this thread to 'Virtuemart Development and bug reports' as a feature request - thank you!

Kind regards,
Gerald

Studio 42

You can check values and and load own file.
Quote from: gba on June 10, 2017, 23:14:00 PM

My question to you:
Why more than one layouts for cart, category, ...?  ;)

You have multiple layouts , because you have multiple categories, product and most of views.
Cart and order has only 1 view, because you have only 1 cart. If you need to change this by context, then check the values and write own custom code for each case.

gba

Hi Studio 42!

Thank you for your comment.
It answers just part of my question, maybe not even the core  ;)

As I wrote above, I can choose the layout file for i. e. the cart - what is a great VM feature.
The same I needed for online order view.
Therefore I am still pleading to move this thread to VM feature requests (I think this is 'VirtueMart 2 + 3 » Virtuemart Development and bug reports', right?).
Thank you!

Kind regards,
Gerald

Studio 42

Quote from: gba on July 06, 2017, 07:41:32 AM
Hi Studio 42!

Thank you for your comment.
It answers just part of my question, maybe not even the core  ;)

As I wrote above, I can choose the layout file for i. e. the cart - what is a great VM feature.
The same I needed for online order view.
Therefore I am still pleading to move this thread to VM feature requests (I think this is 'VirtueMart 2 + 3 » Virtuemart Development and bug reports', right?).
Thank you!

Kind regards,
Gerald

You can try, or become a member http://extensions.virtuemart.net/english/certifications/virtuemart-supporter-membership-bronze-detail so perhaps Max add it ?
But in real , you have only to know the context (any value in the link or session value) and call 2 different files to render different order view layout for eg.

Milbo

You all dont get his idea. I already explained it some time ago.

It makes sense to select a "productdetail layout" for the product details view. For example call it "mine". In case you update your Template, you can at least switch to the other layout. This works also the other way. I suggest templaters to NOT override the default layouts. It is better to add own layouts. So if there is a problem with the template, users can easily switch back to the default.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

deepakbasnal29

Hi,

Can anyone please tell me from where i can start a new topic in forum. I am not able to find any option.

Thanks

gba

Hi VM team!

Thank you for adding hidden configs 'layout_order_detail' and 'layout_order_list'.
In http://docs.virtuemart.net/manual/general-concepts/206-hidden-configurations.html these settings are not listed, yet.
Where can I find some documentation for these settings?

Kind regards,
Gerald

Studio 42

Quote from: gba on September 26, 2017, 14:23:49 PM
Hi VM team!

Thank you for adding hidden configs 'layout_order_detail' and 'layout_order_list'.
In http://docs.virtuemart.net/manual/general-concepts/206-hidden-configurations.html these settings are not listed, yet.
Where can I find some documentation for these settings?

Kind regards,
Gerald

It's not because one exist that it's already active or are used a day.
It's only to simplify developper work when it's used in many place.
In your case
QuoteYou have only to know the context (any value in the link or session value) and call 2 different files to render different order view layout for eg.
Using a config parameter or not in all case you have to write the new code. Only how you switch can be configured(perhaps) a day by the team in the core.
I really don't understand why you want all a setting because you have to write some code in any case or the team have to add a second layout in the core specific for each shop.

gba

#14
Hi!

Thank you for your reply.
Actually I am afraid, I do not understand how your answer is connected with my question:
QuoteWhere can I find some documentation for these settings?

The new hidden config settings were published during one of the last VM releases.
I just do not know, how to use these settings in virtuemart.cfg.
Therefore I am asking for help  ;)
Anything else already has been discussed extensively in this thread.

So - any hint on how to make use of the new config settings 'layout_order_detail' and 'layout_order_list' is very much appreciated.

Kind regards,
Gerald