[Skip to main content](#vessel-content)

#   Module Class Suffix doesnt work

##

- **[LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")**
- [![LAS&#95;VEGAS's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile") Topic Author
- [ Offline](/forum/user/329-las-vegas)

Less More

- Posts: 12
- Thank you received: 0
-
-

15 years 11 months ago [\#2323](#2323) by [LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")  *[Module Class Suffix doesnt work](/forum/3-bug-report/2323-module-class-suffix-doesnt-work#2323 "Hi, I added shopping cart module to position 'left'. I set &quot;Module Class Suffix&quot; as &quot;&#95;menu&quot;. But on the front end, this setting is not 'respected'. The module is put inside with wrong css class:  It should be:  This works fine with main menu module for example.")* was created by *[LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")*

Hi,
I added shopping cart module to position 'left'. I set "Module Class Suffix" as "_menu". But on the front end, this setting is not 'respected'. The module is put inside with wrong css class:
Code:

&lt;div class="module"&gt;...&lt;/div&gt;

It should be: Code:

&lt;div class="module_menu"&gt;...&lt;/div&gt;

This works fine with main menu module for example.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzIzLW1vZHVsZS1jbGFzcy1zdWZmaXgtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14294
-
-

15 years 11 months ago -  15 years 11 months ago [\#2325](#2325) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Module Class Suffix doesnt work](/forum/3-bug-report/2323-module-class-suffix-doesnt-work#2325 "Hi, I added shopping cart module to position 'left'. I set &quot;Module Class Suffix&quot; as &quot;&#95;menu&quot;. But on the front end, this setting is not 'respected'. The module is put inside with wrong css class:  It should be:  This works fine with main menu module for example.")*

That's interesting.

It actually works on our dev website but doesn't on our demo website. We will have to investigate...
It's actually a parameter which is handled automatically by joomla and since it was working on our dev website, we thought it would be working all the time.
I'll update that thread when we find the problem.

Last edit: 15 years 11 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzIzLW1vZHVsZS1jbGFzcy1zdWZmaXgtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14294
-
-

15 years 11 months ago [\#2326](#2326) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Module Class Suffix doesnt work](/forum/3-bug-report/2323-module-class-suffix-doesnt-work#2326 "Hi, I added shopping cart module to position 'left'. I set &quot;Module Class Suffix&quot; as &quot;&#95;menu&quot;. But on the front end, this setting is not 'respected'. The module is put inside with wrong css class:  It should be:  This works fine with main menu module for example.")*

You can edit the file modules/mod_hikashop/mod_hikashop.php and the file modules/mod_hikashop_cart/mod_hikashop_cart.php and change in each the code Code:

foreach($module_options as $key =&gt; $option){ $params-&gt;set($key,$option); }

to Code:

foreach($module_options as $key =&gt; $option){ if($key !='moduleclass_sfx'){ $params-&gt;set($key,$option); } }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzIzLW1vZHVsZS1jbGFzcy1zdWZmaXgtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")**
- [![LAS&#95;VEGAS's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile") Topic Author
- [ Offline](/forum/user/329-las-vegas)

Less More

- Posts: 12
- Thank you received: 0
-
-

15 years 11 months ago [\#2329](#2329) by [LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")  Replied by *[LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")* on topic *[Re: Module Class Suffix doesnt work](/forum/3-bug-report/2323-module-class-suffix-doesnt-work#2329 "Hi, I added shopping cart module to position 'left'. I set &quot;Module Class Suffix&quot; as &quot;&#95;menu&quot;. But on the front end, this setting is not 'respected'. The module is put inside with wrong css class:  It should be:  This works fine with main menu module for example.")*

Thanks, that code fixes the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzIzLW1vZHVsZS1jbGFzcy1zdWZmaXgtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[reace](/forum/user/272-reace "View reace's Profile")**
- [![reace's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar272.gif)](/forum/user/272-reace "View reace's Profile")
- [ Offline](/forum/user/272-reace)
- Entrepreneur

Less More

- Posts: 93
- Thank you received: 5
-
-
-
-

15 years 11 months ago [\#2675](#2675) by [reace](/forum/user/272-reace "View reace's Profile")  Replied by *[reace](/forum/user/272-reace "View reace's Profile")* on topic *[Re: Module Class Suffix doesnt work](/forum/3-bug-report/2323-module-class-suffix-doesnt-work#2675 "Hi, I added shopping cart module to position 'left'. I set &quot;Module Class Suffix&quot; as &quot;&#95;menu&quot;. But on the front end, this setting is not 'respected'. The module is put inside with wrong css class:  It should be:  This works fine with main menu module for example.")*

is it not better to use a preceeding space for module_suffix rather then '_' as the space should separate the new suffix from the old without losing formatting etc?

Ive not done much work with these as yet .

---

you Guys are Awesome and have excellent Support! Keep up the great Work!.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzIzLW1vZHVsZS1jbGFzcy1zdWZmaXgtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14294
-
-

15 years 11 months ago [\#2685](#2685) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Module Class Suffix doesnt work](/forum/3-bug-report/2323-module-class-suffix-doesnt-work#2685 "Hi, I added shopping cart module to position 'left'. I set &quot;Module Class Suffix&quot; as &quot;&#95;menu&quot;. But on the front end, this setting is not 'respected'. The module is put inside with wrong css class:  It should be:  This works fine with main menu module for example.")*

If you use a space, that means that the module div will have two classes:
module new_class
But if you user an _, it will only have one class which is different from the default one:
module_new_class

Ususally, I used that option to set the suffix _menu which is defined for the menu module in order to add a chrome around the module when displayed on the left or right columns of the template. That's a standard way of doing it in joomla.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzIzLW1vZHVsZS1jbGFzcy1zdWZmaXgtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.084 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
