VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: dazmilliom on January 13, 2016, 02:41:25 AM

Title: Product Page Templating
Post by: dazmilliom on January 13, 2016, 02:41:25 AM

Hi,

My main menu goes like this Home-->Textbooks--->which leads to a product page when a customer clicks a particular book the list of textbooks. I have my default joomla template for the home page. The Textbooks menu item has a Virtuemart category called Textbooks added to it.  Then for the styling of the menu item called Textbooks I selected another joomla template for it on the joomla menu page.

My problem is that I want a different styling for the product page for all products under the virtuamart category Textbooks as I want to remove certain Divs carried over from the Textbooks Joomla template which I dont want on the product page.

I dont know how to add a further template to the product page as I want to style the product page differently from its parent category Textbooks.

I mean I was able to remove certain Divs carried over from the home page to the Textbooks page by using a different template. But now the Textbook template is now carring over some divs into the product page which I dont want. But I dont know how to add a new template for the products page like I did for the Texbook page.

Thanks for any help
Title: Re: Product Page Templating
Post by: dazmilliom on January 13, 2016, 03:17:01 AM
I am using the latest VM3 and the latest Joomla
Title: Re: Product Page Templating
Post by: GJC Web Design on January 13, 2016, 12:51:14 PM
QuoteI am using the latest VM3 and the latest Joomla

how do we know, you know, what are the latest?...... 

make a new Joomla template style (basic joomla knowledge)  and apply this to the VM category
Title: Re: Product Page Templating
Post by: dazmilliom on January 13, 2016, 16:12:31 PM
Thanks for the reply. Sorry abt not stating the version(Joomla! 3.4.8 Stable).

My homepage has a different joomla template and VM layouts are outputted through (for example) <div class=midcontent><jdoc:include type="component" /></div>

If I add a Joomla template like you suggested to the VM category that takes care of the page layout for my menu item "Textbooks" which has the VM category "Textbooks"

However, in the VM category "textbooks" i have created over 20 products (textbooks) which i want to have a similar browse page when clicked by a customer. The problem is that the category template (which you suggested) and in which I have created some divs for sidebars is automatically transferred to the product page and I dont want this. I want another template just for the products page so that those unwanted divs are not carried over from the category template.

I know that the process is simple but I cant seem to figure out how to go about it. This is the first time am going deep with virtuemart.

Title: Re: Product Page Templating
Post by: jenkinhill on January 13, 2016, 16:44:30 PM
For extended control over modules & J! templates I suggest you look into the possibility of using MetaMod Pro or Chameleon  - http://www.metamodpro.com

Quote
(Joomla! 3.4.8 Stable)

And the VM version?
Title: Re: Product Page Templating
Post by: GJC Web Design on January 13, 2016, 16:45:33 PM
afaik the cat template will always cascade to the products.. thats the whole point

if its just divs hide them with conditional css