Post by labeshops » Wed Nov 23, 2011 1:26 am

I've figured out a little modification/hack for mutli-store users I thought I'd share. I'm using 1.5.1.3 but I think it should work for any 1.5 version.

Why do this?
As we know, Google and other search engines rank your site higher for unique content and using this little hack, you could have the same product on multiple stores with totally unique descriptions so google would rank the product separately for each store. There may also be times when you want to vary your product description for each store to tailor it to the specific targeted market of that store - my main reason for figuring this out.

This little hack uses the standard opencart support for languages to allow you to vary the description - including meta tags, keywords, and tags - for any store you want.

Making it Work
Step 1: You need to disable the display of the languages selector on your store front. I created my first vqmod to do this and am attaching it here - thanks to Qphoria for helping me sort it out. If you don't use vqmod, look at it and delete the 11 lines manually from which ever template you want. It also will load the default language set for that particular store.

removes the language selector box from the store and reads whatever default language you have set in the store settings

Step 2: Then in your admin in settings > localisation > languages, add a new language. Copy everything that is in your default language except make the name something you will remember - for example the store name you want to use these descriptions on (example - I created one called "Crossdress' for use on my crossdressfashions.com store I'm working on and if you compare the same product on this store and my main labeshops.com you will see the differences..as I edit them that is!! Make the code anything you want (in my example, I used cd for "Crossdress"). Save

Step 3: Go to System > Settings and edit or create a new store. On the local tab, change the language from your default to the one you created above. Save.

Done!

Now when you add or edit a product, you will have this new language available and can set the product title, meta description, meta keywords, description and tags which will appear ONLY on the store you told to use that language file. (Since you are actually usually a duplicate of your default language, all other text on your store will still be in your default language.)
Last edited by labeshops on Wed Nov 23, 2011 2:44 am, edited 1 time in total.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by labeshops » Wed Nov 23, 2011 1:50 am

Okay, so small issue I'm working out. Realized in deleting the entire language code, it's not calling the language file. Will update as soon as I fix it lol

Okay, I updated the vqmod above so that it deletes the default code (and removes the language selector from the front end of the store) and loads the default language for that particular store. I'm sure there is a more elegant way to do the later but as I am not good at coding from scratch, best I could do is modify the standard code to accomplish it. Anyone who would like to rewrite this part, please feel free and post your changes here.

You can compare the descriptions between:

http://www.sensualelegance.com/gloves-o ... ves-em2219 or http://www.sensualelegance.com/sheer-ga ... ngs-em1725 which uses the standard english language file

and

http://www.crossdressfashions.com/black ... ves-em2219 or http://www.crossdressfashions.com/sheer ... ngs-em1725 which uses my cross dress specific one.

I did these quickly so you could see it works and will be updating a lot of my products eventually.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA
Who is online

Users browsing this forum: No registered users and 1 guest