If not, could any one be so kind as to hint to the correct location where i can do a little mod to bring the theme selection fron the back end to the front.
Im looking to mod versions 1.3.2 and 1.4.0 but 1 or the other is all i require to get an understanding of how its done
Modules for OpenCart 188.8.131.52
Homepage Module [Free - since OpenCart 0.7.7]
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
EDIT: ok i moved everything to the correct folders for the relivent opencart versions.
Followed the instructions to set it up in the backend, thats all fine.
Followed the instructions to add the module to the layout.tpl's
I now get this error
"Fatal error: Class 'Controllermodulemodulecatalogselecta' not found in /home/www/moonlite-solutions.co.uk/cart/132/system/engine/front.php on line 39"
I have double checked that every file is in place, and double checked they are all in the correct folders, so im abit stumped
That would be very good of you if you could!Qphoria wrote:I was also inspired a while back and never got around to it. I have it working now tho. I can release it today (freebie)
I realise what the error is now, it seems because the files were written for a pre 1.3.2 release some of the locations it searches for are different.
One thing i noticed though, the visible template name on the front end module doesnt always reflect the template being shown initially.
For example, say you have default template set in the backend, but you have a few other templates that are called something which begins with a letter lower than D (for default), when you load the front end, default template is loaded but the first option in the drop down list could be another template.
But apart from all that, thank you very much
What i was refering to was that the theme switcher drop down tab's first option should reflect the default template set in the backend, otherwise people may confuse the current theme with the one being listed in the drop down.
One easy work around would be to set a default template in the backend of the cart which has a folder name that begins first alphabetically out of the list of templates.
Take this example, two themes, one called Default, another called Brown.
Default is the theme marked as the default template in the backend.
When you load the frontend page, the theme will be default, but the theme displayed on the drop down tab is Brown.
Maybe im nit picking, just thought some people may get confused with theme names if for example you use the drop down to show off different themes you are perhaps selling.
EDIT: obviously once you navigate away from the first instance then the drop down will match the current theme, its only an initial problem.
But that isn't what happens. Look at my demo. I have "default" set as my default theme. And on the catalog site, it shows "Default" which is the second option. I don't know how you are getting it to show the wrong template in the dropdown. The code will select the "current" theme for the dropdown.SXGuy wrote: Maybe im nit picking, just thought some people may get confused with theme names if for example you use the drop down to show off different themes you are perhaps selling.
Currently unavailable for freelance work and consulting.
What i have done is re-wrote it, so it previews a little thumbnail of each template in the module position using the drop down, and added a button to switch to the selected template.
makes it looks abit nicer i think.
All you have to do, is make sure your template folder names are all lower case
Thumbnail previews should all be called "ss.png" and should be placed in each template_name/image folder.
Edit line 24 to include your own website url
You can take a look at the example here -> http://www.moonlite-solutions.co.uk/cart/132
Should anyone wish to tidy up my code, please feel free, i would be very greatful, as im not the best scripter in the world (quite novice)
Anyway here is the file, obviously, please make a backup of your old file just incase.
Users browsing this forum: No registered users and 15 guests