Author Topic: How to choose an own layout for online order view?  (Read 707 times)

gba

  • Jr. Member
  • **
  • Posts: 190
How to choose an own layout for online order view?
« on: June 09, 2017, 01:52:47 am »
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

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2182
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: How to choose an own layout for online order view?
« Reply #1 on: June 09, 2017, 17:16:44 pm »
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

  • Jr. Member
  • **
  • Posts: 190
Re: How to choose an own layout for online order view?
« Reply #2 on: June 09, 2017, 19:05:03 pm »
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

  • VirtueMart Developer Team
  • Global Moderator
  • Full Member
  • *
  • Posts: 825
  • VirtueMart Version: VM3 on J3
Re: How to choose an own layout for online order view?
« Reply #3 on: June 09, 2017, 20:35:31 pm »
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

  • Jr. Member
  • **
  • Posts: 190
Re: How to choose an own layout for online order view?
« Reply #4 on: June 10, 2017, 23:14:00 pm »
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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26198
  • Always on vacation
    • Jenkin Hill Internet
Re: How to choose an own layout for online order view?
« Reply #5 on: June 10, 2017, 23:36:04 pm »
As I have stated elsewhere, you can make your template edits and and simply save them locally & replace by ftp if ever needed.

There are a few order/invoice extensions to provide personalized invoicing if required:
https://www.olympianthemes.com/extensions/virtuemart-html-order-emails.html
http://extensions.virtuemart.net/product/products/advanced-virtuemart-invoices-detail
https://extensions.joomla.org/extension/invoice-management-advance-for-virtuemart/
https://www.artio.net/virtuemart-tools/vm-invoice-generator
Kelvyn

Jenkin Hill Internet,
Keswick, Lake District

Unsolicited PMs/emails will be ignored.

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

Currently using VM3.2.4 on Joomla 3.8 PHP 7.0.23

Testing VM3.2.4 on J!3.8

gba

  • Jr. Member
  • **
  • Posts: 190
Re: How to choose an own layout for online order view?
« Reply #6 on: June 27, 2017, 16:53:55 pm »
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

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2182
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: How to choose an own layout for online order view?
« Reply #7 on: June 27, 2017, 17:23:33 pm »
You can check values and and load own file.
 

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

  • Jr. Member
  • **
  • Posts: 190
Re: How to choose an own layout for online order view?
« Reply #8 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

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2182
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: How to choose an own layout for online order view?
« Reply #9 on: July 17, 2017, 10:40:34 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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9312
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: How to choose an own layout for online order view?
« Reply #10 on: July 27, 2017, 21:00:25 pm »
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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

deepakbasnal29

  • Beginner
  • *
  • Posts: 1
  • A beginner
Start new topic
« Reply #11 on: July 28, 2017, 08:25:44 am »
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