VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: JimmyGuiu on May 04, 2019, 22:15:17 PM

Title: Page styles that are not overwritten with Virtuemart updates
Post by: JimmyGuiu on May 04, 2019, 22:15:17 PM
Hi there,

I want to created a new cart view layout, but I'm afraid that when I will update Virtuemart it will overwrite.
How can I load the new layout without overwriting it when Virtuemart is updated?
Title: Re: Page styles that are not overwritten with Virtuemart updates
Post by: GJC Web Design on May 04, 2019, 23:04:05 PM
read the documentation?

https://docs.virtuemart.net/tutorials/templating-layouts/78-introduction-template-system.html
http://forum.virtuemart.net/index.php?topic=90935.0

all views can be over ridden
Title: Re: Page styles that are not overwritten with Virtuemart updates
Post by: JimmyGuiu on May 06, 2019, 23:40:23 PM
Thaks GJC, the overwrite runs perfect.

New step, the idea is create a new cart style that you can choose on the backend Virtuemart setting. What's need to be done to make this style one choice of the virtuemart backend and doesn't overwrite the original default?
Title: Re: Page styles that are not overwritten with Virtuemart updates
Post by: GJC Web Design on May 07, 2019, 08:31:29 AM
exactly the same answer - over rides

but a bit of redesigning the wheel here .. there are commercial VM checkouts available to cover most styles and workflows
Title: Re: Page styles that are not overwritten with Virtuemart updates
Post by: jenkinhill on May 07, 2019, 10:32:20 AM
If you have multiple overrides - eg cat1.php, cat2.php etc in /templates/YourJoomlaTemplate/html/com_virtuemart/category/  then any of these can be selected on the Virtuemart category view settings tab for each category, so if you wish you can have a different override for as many categories as you like. You can also apply productdetail overrides for each of those categories or for individual products if you wish.

The system is very flexible, but most users start off with a commercial template and possibly modify that as needed. As GJ suggests it gives you a head start.
Title: Re: Page styles that are not overwritten with Virtuemart updates
Post by: JimmyGuiu on May 09, 2019, 23:31:22 PM
Hi there,

Thanks both of you for your answers.
I know about commercial template but I'd like to learn and maybe I can share with all the community the new cart style.