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!
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!
Last edited by webpie it. on Fri Nov 11, 2011 6:28 am, edited 1 time in total.
Regards
Chris
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 :-)
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 :-)
Correct.
instead of doing:
you can use:
instead of doing:
Code: Select all
<file name="catalog/view/theme/default/template/product/product.tpl">
Code: Select all
<file name="catalog/view/theme/*/template/product/product.tpl">
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.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
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!
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!
Regards
Chris
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
but blimey can you imagine to support questions from people on older vqmod versions
I'm on the fence at the moment
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.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
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.
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.
Regards
Chris
i guess you guys above are talking about it from an ext. developers point of view right?
Regards
Chris
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
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
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
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
Regards
Chris
Just want to say thanks to the guys here, working great now!
great timing on this new vq update!
lol
great timing on this new vq update!
lol
Regards
Chris
Surprisingly I haven't had one issue with it even on fairly popular free extensions like VQMod Manager.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
-Ryan
Who is online
Users browsing this forum: Majestic-12 [Bot] and 13 guests