Author Topic: virtuemart 1.9.8k -. Category template problems  (Read 6587 times)

meriturva

  • Beginner
  • *
  • Posts: 39
virtuemart 1.9.8k -. Category template problems
« on: October 31, 2011, 09:12:46 am »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9942
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: virtuemart 1.9.8k -. Category template problems
« Reply #1 on: October 31, 2011, 13:33:47 pm »
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!
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10365
  • VirtueMart Version: 3+
Re: virtuemart 1.9.8k -. Category template problems
« Reply #2 on: October 31, 2011, 14:37:47 pm »
why not use a template override?
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

meriturva

  • Beginner
  • *
  • Posts: 39
Re: virtuemart 1.9.8k -. Category template problems
« Reply #3 on: October 31, 2011, 14:38:28 pm »
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

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10365
  • VirtueMart Version: 3+
Re: virtuemart 1.9.8k -. Category template problems
« Reply #4 on: October 31, 2011, 15:51:02 pm »
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.
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

meriturva

  • Beginner
  • *
  • Posts: 39
Re: virtuemart 1.9.8k -. Category template problems
« Reply #5 on: October 31, 2011, 16:22:07 pm »
I know about the overrides.... but system permits to use the first approach...so i think the bugs has to be fixed.
Meriturva

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9942
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: virtuemart 1.9.8k -. Category template problems
« Reply #6 on: October 31, 2011, 18:25:11 pm »
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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9942
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: virtuemart 1.9.8k -. Category template problems
« Reply #7 on: October 31, 2011, 19:43:49 pm »
ah found it.

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

Stephen Roberts

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 142
    • SundaySchool.com
Re: virtuemart 1.9.8k -. Category template problems
« Reply #8 on: November 02, 2011, 06:02:53 am »
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

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10365
  • VirtueMart Version: 3+
Re: virtuemart 1.9.8k -. Category template problems
« Reply #9 on: November 02, 2011, 11:32:28 am »
is it set to default template?

AND do you have it set for the virtuemart layout?
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9942
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: virtuemart 1.9.8k -. Category template problems
« Reply #10 on: November 02, 2011, 12:21:29 pm »
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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Stephen Roberts

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 142
    • SundaySchool.com
Re: virtuemart 1.9.8k -. Category template problems
« Reply #11 on: November 02, 2011, 15:58:01 pm »
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

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 142
    • SundaySchool.com
Re: virtuemart 1.9.8k -. Category template problems
« Reply #12 on: November 02, 2011, 16:09:48 pm »
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

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 142
    • SundaySchool.com
Re: virtuemart 1.9.8k -. Category template problems
« Reply #13 on: November 02, 2011, 23:26:43 pm »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9942
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: virtuemart 1.9.8k -. Category template problems
« Reply #14 on: November 03, 2011, 15:01:49 pm »
Please explain more detailed
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/