# "Store name in body class in catalog" (OCmod) for OpenCart 2.0.0 and newer
========================================================
This mod is pretty handy if you have multistore e-shop and you still want to have just one template. But then, in CSS, you want to make small changes according to the store you are in now.
It's going to take the store name from settings, remove all characters except a-z, A-Z and 0-9 and lowercase it. Then it's going to put such name as another class to the body tag in the catalog view.
It's OCmod, so
- no changes to any core file or database
- and 1 click installation
Check out
my other extensions if you like this one.
# Requirements and Limitations
========================================================
No special requirements.
# Installation
========================================================
Step 1)
Go to Extensions => Extension Installer page.
Step 2)
Select the file in this folder "body_class_store_name.ocmod.xml" and hit Upload.
Step 3)
Hit the refresh button on Extensions => Modifications page.
You are all done. You can already see, that body element of your catalog has new class with the name of the store you are at.
# Help
========================================================
This ocmod has been tested for a standard OpenCart 2.1.0.2, 2.2.0.0 and 2.3.0.2, but it should work with any OpenCart version 2.0.0 and newer.
If you need a modification of "Store name in body class in catalog" ocmod, or any other programming tasks related to OpenCart, you can contact us at ocart.ninja@gmail.com.
Login and write down your comment.
Login my OpenCart Account