VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: veeco on September 29, 2012, 06:44:40 AM

Title: [SOLVED]Template override does not work
Post by: veeco on September 29, 2012, 06:44:40 AM
Hello,
i'm using different layout for different category, so i plan to build template override :
i already create:
<template>/com_virtuemart/category/layout1.php

but on category's admin page i don't see layout1 in the list of 'Category Browse Page'.
I tried to change category template from 'use shop default' to my template name, but the problem still exist

did i miss something ?
Title: Re: Template override does not work
Post by: jenkinhill on September 29, 2012, 11:11:46 AM
I assume you mean joomla_root/templates/(your template)/html/com_virtuemart/category/  or is the override for joomla_root/templates/(your template)/html/com_virtuemart/categories/

What VirtueMart/Joomla versions?
Title: Re: Template override does not work
Post by: veeco on September 29, 2012, 19:07:28 PM
hi i'm using joomla 2.5.7 /vm 2.0.10 (the latest stable at this moment of writing)

my override is: joomla_root/templates/(your template)/html/com_virtuemart/category/smart- probably spam -.php (see attached file)
this view is based on the non-SEF url i use, which is: index.php?option=com_virtuemart&view=category&virtuemart_category_id=1&Itemid=101

in back-end, the override is not listed in "Category Browse Page"  (see attached file), i tried using select my template manually in shop template, but no difference

what's the difference between using "Use shop default" and choose my template manually ?
what do i miss ?

Thanks


[attachment cleanup by admin]
Title: Re: [SOLVED]Template override does not work
Post by: veeco on September 29, 2012, 19:26:20 PM
After debug one by one... i finally found my mistake... it was TYPO error... i missmatch the word 'category' with 'categroy'..
oh mann... looks like i need a vacation this weekend..

Thanks guys !