News:

Looking for documentation? Take a look on our wiki

Main Menu

virtuemart 1.9.8k -. Category template problems

Started by meriturva, October 31, 2011, 09:12:46 AM

Previous topic - Next topic

meriturva

I have noted two different problems related to category template.

I have duplicated the default.php template into components\com_virtuemart\views\category\tmpl\ directory and i see the new template into the combo list of the admin pages but:

1) when i edit the category, select the new template and click on saved the new settings is discarted so i see always the "no override" option selected (without error report).
2) if i go to the main configuration -> templates-> "Category Layout" option is see the new template, select it and save the settings is saved correctly but on the front page the template used is always the default.php

thanks.
Meriturva

Milbo

Quote from: meriturva on October 31, 2011, 09:12:46 AM
I have duplicated the default.php template into components\com_virtuemart\views\category\tmpl\ directory and i see the new template into the combo list of the admin pages but:
"default.php" is NOT a template, it is a layout!
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

PRO


meriturva

Sorry about the "name". yes it is the layout!

Anyway i have followed the instruction here: http://forum.virtuemart.net/index.php?topic=90935.0
and the problems i have posted are present on category layout.

Meriturva

PRO

Meriturva,

In your JOOMLA template folder /html

Create a folder called com_virtuemart
THEN each view you want to override create a folder for it.

Like for category you would have

templates/MY_TEMPLATE/html/com_virtuemart/category/default.php

THEN, edit THAT default.php file, and it will always work.

meriturva

I know about the overrides.... but system permits to use the first approach...so i think the bugs has to be fixed.
Meriturva

Milbo

Hmm, but it works for me for the category layout. I just tested it.
It works for the template override case (used milkyway). It showed the one in the template, then I just changed the standard joomla template to ja purity and it showed the one in the core. Everytime I used the test.php. Okey what I not tested yet is when you set that in per config, but you described your problem as using the override in the category edit.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

ah found it.

The value of the default category layout set in the config was not taken. Fixed and improved.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Stephen Roberts

I doubt this is a bug, but I've been pounding my head against the wall with a problem. I have a Joomla! theme I bought called "theme131". When I create:

/templates/theme131/html/com_virtuemart/category/default.php

and modify it, NOTHING happens. When I switch to the Beez template and have:

/templates/beez/html/com_virtuemart/category/default.php

it works as expected. Is there a reason overriding would work for Beez but not for theme131? Is there something I could look at to figure this out?
Sell downloadable (virtual) products in VirtueMart 2 and deliver downloads via local server, Amazon S3, and more! http://www.digitollsoftware.com

PRO

is it set to default template?

AND do you have it set for the virtuemart layout?

Milbo

Quote from: BanquetTables.pro on November 02, 2011, 11:32:28 AM
is it set to default template?

AND do you have it set for the virtuemart layout?
The set for virtuemart standard layout shouldnt be used. Makes only sense in very rare cases. It is better to select the prefered template as joomla standard.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Stephen Roberts

Yes, I've set theme131 as the default Joomla! template, and I've tried both "Use joomla default" and "theme131" for the shop template in Virtuemart configuration. Can you think of anything else that would affect this? templateDetails.xml?
Sell downloadable (virtual) products in VirtueMart 2 and deliver downloads via local server, Amazon S3, and more! http://www.digitollsoftware.com

Stephen Roberts

I have no idea what happened, but it's magically working now so all is well with the world. :) Thanks for your time. Great work so far! I've been very impressed with the new architecture as far as how the database is set up and the code now following more Joomla! standards.
Sell downloadable (virtual) products in VirtueMart 2 and deliver downloads via local server, Amazon S3, and more! http://www.digitollsoftware.com

Stephen Roberts

I ran into another issue. When overriding the productdetails, I discovered that instead of using default.php it's using pdf.php. Is there a setting for this somewhere or is this a bug?
Sell downloadable (virtual) products in VirtueMart 2 and deliver downloads via local server, Amazon S3, and more! http://www.digitollsoftware.com

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/