News:

Support the VirtueMart project and become a member

Main Menu

Category page template and product page template

Started by camble, August 18, 2014, 11:07:38 AM

Previous topic - Next topic

camble

Hello,
I know there's been a lot of coverage of template usage for individual categories and products, but I don't think I've come across anything what I need so if you can point me towards the correct solution or help me out that would be fantastic.

All I want is to be able to use a (custom) template for all categories to use, then a different (custom) template for the product details page to use. These two templates will be different than the homepage and internal page templates (which is the default website template).

I am using Joomla 2.5 and VM 2.6.6.


Thank you in advance
Liam

GJC Web Design

what are you calling
Quoteinternal page templates
?  Joomla template?

Joomla templates are Joomla templates - VM templates are VM templates

if you want a non std VM cat and prod templates then you make them and put them in your

templates/YOURTEMPLATE/html/com_virtuemart/category   or  /productdetails

thats it - it uses the std joomla templating over ride system  - google that for further explaination

or http://forum.virtuemart.net/index.php?topic=90935.msg298367#msg298367
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

If you are talking about changing the Joomla templates then you can set the default shop J! template and category j! template in Config/Templates/Shopfront Settings  but the cat template is also used for product details. I'd probably use Chameleon to control the cat/product template change ( http://www.metamodpro.com/chameleon/chameleon ) but I have not tested it within VM.
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

camble

Quote from: GJC Web Design on August 18, 2014, 13:44:11 PM
what are you calling
Quoteinternal page templates
?  Joomla template?

Joomla templates are Joomla templates - VM templates are VM templates

if you want a non std VM cat and prod templates then you make them and put them in your

templates/YOURTEMPLATE/html/com_virtuemart/category   or  /productdetails

thats it - it uses the std joomla templating over ride system  - google that for further explaination

or http://forum.virtuemart.net/index.php?topic=90935.msg298367#msg298367

The internal template I mentioned was for non-VM pages such as About Us.


Quote from: jenkinhill on August 18, 2014, 13:47:49 PM
If you are talking about changing the Joomla templates then you can set the default shop J! template and category j! template in Config/Templates/Shopfront Settings  but the cat template is also used for product details. I'd probably use Chameleon to control the cat/product template change ( http://www.metamodpro.com/chameleon/chameleon ) but I have not tested it within VM.

I think you're understanding what I mean... Basically for example, I want to use Beez2 for the category page but Atomic for the product details page. Obviously the two templates will be my own custom templates, but different templates altogether in theory rather than using the same template and having overrides because it will limit me on the design.

GJC Web Design

the way to do it is as explained -> over rides

templates/YOURTEMPLATE/html/com_virtuemart/category   or  /productdetails
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

camble

Quote from: GJC Web Design on August 18, 2014, 15:57:45 PM
the way to do it is as explained -> over rides

templates/YOURTEMPLATE/html/com_virtuemart/category   or  /productdetails

That will require me to use the same template but with some elements different (overrides) though won't it?

My understanding of overrides is that if for example my homepage is using my own custom template, and I have used overrides for the way the basket looks which is perfect, but in the case of what I'm trying to achieve I want two totally different templates to be used for the category page and the product page - is that possible or have I not understood it correctly?

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

camble

Quote from: jenkinhill on August 18, 2014, 17:44:12 PM
The way I described is what you seem to want.

I did use Metamod a while back on a site but I can't remember whether it was Pro and whether it was exactly what I'm looking for here, so I'll give it a go and report back.

Cheers
Liam

jenkinhill

Not Metamod, but use Chameleon by the same developer. It is not too expensive to try out. I have used it elsewhere but not with VM.
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

camble

Quote from: jenkinhill on August 19, 2014, 11:13:56 AM
Not Metamod, but use Chameleon by the same developer. It is not too expensive to try out. I have used it elsewhere but not with VM.

Sorry you're correct.

Just to let you know that I've installed Chameleon and it is absolutely perfect for what I wanted. I have been able to upload a new template and easily assign it to the Category page, then assign another template to the Product Details page which I'll be modifying shortly.

Thank you very much Jenkinhill and GJC for the support!