News:

Support the VirtueMart project and become a member

Main Menu

[SOLVED]Template override does not work

Started by veeco, September 29, 2012, 06:44:40 AM

Previous topic - Next topic

veeco

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 ?
Work On Doxa Web Developer Indonesia - http://doxadigital.com |

jenkinhill

#1
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?
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

veeco

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]
Work On Doxa Web Developer Indonesia - http://doxadigital.com |

veeco

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 !
Work On Doxa Web Developer Indonesia - http://doxadigital.com |