Page 1 of 1

[SOLVED] Theme Switching and VQMOD

Posted: Fri Nov 11, 2011 4:50 am
by webpie it.
Hi Guys

I have have come up with a problem i have not encountered before with using vqmod, and i'm really really hoping someone shoots me down and says why aren't you doing this lol.

Baically i am creating a xmas theme for one of my clients, i thought i could duplicate the current theme as this is some custom hardcode in the template so bettre to duplicate it call it say christmas theme, and that seemed like a pretty good thing to do.

I then went about styling the xmas theme so when the time came they could turn it on.

However as i was getting through the stylseheet, something hit me about vqmod.

I have about 25 vqmods running on this store, a lot with the path leading to the original theme of the store, meaning that if enabled my christmas theme, the paths set for my original template would not match, therefore vqmods not being activated.

Can anyone give me a solution to this.

One i came up with which didn;t seem right was to duplicate each mod, name it something slightly different so it didn't overwrite the original, and then change the paths in each one to match the christmas theme.

But this means when i go to create them a valentines day theme and mothers day theme i have to do this same thing.

Can anyone offer any options i have or am I being a complete jackass? lol

Appreciate any answers!

Re: Theme Switching and VQMOD

Posted: Fri Nov 11, 2011 5:47 am
by uksitebuilder
I believe the latest vqmod version allows wildcards for theme names

i.e. instead of

catalog/view/theme/default/template.........

the filename can be set as

catalog/view/theme/*/template...........

Test it on one of your vqmod xml files first to make sure it works :-)

Re: Theme Switching and VQMOD

Posted: Fri Nov 11, 2011 5:50 am
by webpie it.
Arrr very interesting!

will give that a go!

cheers simon!

will come back!

Re: Theme Switching and VQMOD

Posted: Fri Nov 11, 2011 6:06 am
by Qphoria
Correct.

instead of doing:

Code: Select all

<file name="catalog/view/theme/default/template/product/product.tpl">
you can use:

Code: Select all

<file name="catalog/view/theme/*/template/product/product.tpl">

Re: Theme Switching and VQMOD

Posted: Fri Nov 11, 2011 6:07 am
by Xsecrets
Like he said though make sure you update to the latest version. I believe that function was added in 2.1.3, but best to just make sure you have the latest.

Re: Theme Switching and VQMOD

Posted: Fri Nov 11, 2011 6:10 am
by webpie it.
Yep i'm making sure right now! :)

The latest version was updated about 6 hours ago didn't realize there was anew release!

wow talk about good timing for myself! lol


you guys are the greatest! :)

Re: Theme Switching and VQMOD

Posted: Fri Nov 11, 2011 6:14 am
by uksitebuilder
I would love to edit all my extensions and vqmods to use this syntax

but blimey can you imagine to support questions from people on older vqmod versions

I'm on the fence at the moment

Re: Theme Switching and VQMOD

Posted: Fri Nov 11, 2011 6:17 am
by Xsecrets
yeah I've held off on mine, because you know you're going to run into lots of people with older versions where it won't work.

Re: Theme Switching and VQMOD

Posted: Fri Nov 11, 2011 6:22 am
by webpie it.
This shop i am talking about went live in august, and was built around june, july so the vqmods are around from that time.

Including your SEO mod simon.

I have upgraded on this cart from VQMOD 1.2.3 to the latest just now, not seeing any side effects at the moment.

Just about to test the above suggestion you and Q made.

Re: Theme Switching and VQMOD

Posted: Fri Nov 11, 2011 6:22 am
by webpie it.
i guess you guys above are talking about it from an ext. developers point of view right?

Re: Theme Switching and VQMOD

Posted: Fri Nov 11, 2011 6:24 am
by uksitebuilder
Pretty much all vqmod xml files should have no problem running in the latest version even if it states an older version in the xml file.

I think there was a problem with the 'before' position in 2.1.2 or 3 but that has been fixed now, so you should be good to go.

--
re above posts, yah because people get lazy and dont update vqmod - and well why should they when it works fine. Only when they get problems do they check out new versions/updates

Re: Theme Switching and VQMOD

Posted: Fri Nov 11, 2011 6:28 am
by webpie it.
Just tested switching theme, applied * to one of my vqmods, checked that t worked, it did :)
then switched theme, cleared cache, refreshed the page and the vqmod was active :)

fantastic news!

----
I can see above now why you guys are on the fence on this from your point of view

Re: [SOLVED] Theme Switching and VQMOD

Posted: Fri Nov 11, 2011 6:38 am
by webpie it.
Just want to say thanks to the guys here, working great now!
great timing on this new vq update! :)

lol

Re: Theme Switching and VQMOD

Posted: Fri Nov 11, 2011 9:35 am
by rph
uksitebuilder wrote:I would love to edit all my extensions and vqmods to use this syntax

but blimey can you imagine to support questions from people on older vqmod versions

I'm on the fence at the moment
Surprisingly I haven't had one issue with it even on fairly popular free extensions like VQMod Manager.