VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: salesgorilla on January 23, 2008, 18:06:40 PM

Title: Installation of a Theme
Post by: salesgorilla on January 23, 2008, 18:06:40 PM
I am trying to create a new Theme oriented toward a store that sells one of a kind items.

I copied the default theme and added it with some minor modifications to the Themes folder.    I then went to Configuration / Site /
to select the new theme for my site.   I am able to select the theme that I have loaded.    I then try to configure the theme, but instead of configuring my new them, it brings up the default theme.

If I try running the system with my new them, I get an error message
Fatal error: Class 'vmTemplate_houseofart' not found in /home/.../administrator/components/com_virtuemart/classes/template.class.php on line 83

Am I missing a step in the set up of the theme or is this a bug?

Many thanks for the assistance.

I am using the latest nightly build on Joomla RC4.
Title: Re: Installation of a Theme
Post by: jenkinhill on January 24, 2008, 00:25:14 AM
I have not even started looking at themes yet, so cannot help. This is something to do later after the functional bugs are sorted out. No point in having a brillant theme if the cart cannot work for the purchaser. ;)
Title: Re: Installation of a Theme
Post by: relvar on March 05, 2008, 17:06:46 PM
Hello,

Yes, you more than likely need to make a modification to the theme.php.theme.xml files in the new theme.  If you copied over the default theme, that files declare the class as vmTemplate_default which you would need to change to vmTemplate_<yourtheme> and the name in the <name>default</name> element in the theme.xml will most likely need to change as well.

Hope this helps!
-spencer
Title: Re: Installation of a Theme
Post by: gregdev on March 05, 2008, 17:47:27 PM
As of SVN rev. 1275, you only need to change the name of the template inside theme.xml. The class and constructor names no longer need to be changed. So, when you update to this version or later, any themes you've created will need to be changed. The class and constructor names are now (rev. 1275) just vmTheme (not vmTemplate_whatever).

Greg
Title: Theme.xml is a *1.1* feature - Solved
Post by: Ken Lyle on March 24, 2008, 14:30:39 PM
Duh...I'm having trouble locating theme.xml...

It's apparently in the 1.1 branch...sorry, I was confused on the decimal places, and thought that theme selection was in 1.0.1(0)...

Hope this might help someone with any similar questions...

Thanks,
K

===================

Stand by...well, I searched within Usermin for theme.xml and found nothing...

theme.xml site:virtuemart.com on Google finds nothing ???

I just patched from 1.0.8 to 1.0.15