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

#   hikashop\_cart\_module remove tag

##

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2697
- Thank you received: 74
-
-

11 years 7 months ago -  11 years 7 months ago [\#197035](#197035) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[hikashop\_cart\_module remove tag](/forum/50-feature-request/876122-hikashop-cart-module-remove-tag#197035 "-- HikaShop version -- : 240 -- Joomla version -- : 341  in modules/mod&#95;hikashop&#95;cart is it possible in a next version to get the div tag removed from core code ?  only echo $html; will be fine  Thank you")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

-- HikaShop version -- : 240
-- Joomla version -- : 341

in modules/mod_hikashop_cart is it possible in a next version to get the div tag removed from core code ?
Code:

&lt;div class="hikashop_cart_module" id="hikashop_cart_module"&gt; &lt;?php echo $html; ?&gt; &lt;/div&gt;

only echo $html; will be fine

Thank you

Last edit: 11 years 7 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 7 months ago [\#197090](#197090) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[hikashop\_cart\_module remove tag](/forum/50-feature-request/876122-hikashop-cart-module-remove-tag#197090 "-- HikaShop version -- : 240 -- Joomla version -- : 341  in modules/mod&#95;hikashop&#95;cart is it possible in a next version to get the div tag removed from core code ?  only echo $html; will be fine  Thank you")*

Hi,

Could you give us more details about this request ?
What are the inconvenience ?

This div, so class name or id can be very useful in some cases for css properties, etc.
I guess that many users have css rules based on that so removing it will not be a good solution for many people I think.

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

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2697
- Thank you received: 74
-
-

11 years 7 months ago [\#197171](#197171) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[hikashop\_cart\_module remove tag](/forum/50-feature-request/876122-hikashop-cart-module-remove-tag#197171 "-- HikaShop version -- : 240 -- Joomla version -- : 341  in modules/mod&#95;hikashop&#95;cart is it possible in a next version to get the div tag removed from core code ?  only echo $html; will be fine  Thank you")*

the problem is always html and css hard coded , that's terrible !
at the end one get div into div into div ...

you could add that &lt;div class="hikashop_cart_module" id="hikashop_cart_module"&gt; into a view and your users will not see the difference if they want to use it

same thing for your filter.php many &lt;br /&gt; or even &gt; , even the icon is hard coded

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

11 years 7 months ago -  11 years 7 months ago [\#197175](#197175) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[hikashop\_cart\_module remove tag](/forum/50-feature-request/876122-hikashop-cart-module-remove-tag#197175 "-- HikaShop version -- : 240 -- Joomla version -- : 341  in modules/mod&#95;hikashop&#95;cart is it possible in a next version to get the div tag removed from core code ?  only echo $html; will be fine  Thank you")*

Hi,

If you remove it, you won't get the cart module to update dynamically when the AJAX mode is activated. The system rely on that div being there in order to work.
Maybe you don't need that capability on your website but plenty of other users do need it, so we can't remove it.
As you say, hard coding HTML or CSS is not a good practice, and that's why we try to avoid it, even though there are still a few places where that it the case (you mentioned the filters and that's something we'll change in the future).
Regarding the cart module, with next version of HikaShop the cart module will have a layout for its HTML display so you'll be able to override it in your template and remove that HTML if you want, like any other view of HikaShop.

And there is no need to be harsh in your messages. We understand you the same.

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2697
- Thank you received: 74
-
-

11 years 7 months ago [\#197218](#197218) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[hikashop\_cart\_module remove tag](/forum/50-feature-request/876122-hikashop-cart-module-remove-tag#197218 "-- HikaShop version -- : 240 -- Joomla version -- : 341  in modules/mod&#95;hikashop&#95;cart is it possible in a next version to get the div tag removed from core code ?  only echo $html; will be fine  Thank you")*

thanks Jerome but I was not harsh at all

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

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2697
- Thank you received: 74
-
-

11 years 4 months ago [\#204809](#204809) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[hikashop\_cart\_module remove tag](/forum/50-feature-request/876122-hikashop-cart-module-remove-tag#204809 "-- HikaShop version -- : 240 -- Joomla version -- : 341  in modules/mod&#95;hikashop&#95;cart is it possible in a next version to get the div tag removed from core code ?  only echo $html; will be fine  Thank you")*

version 2.5.0 -&gt; Merci !

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

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2697
- Thank you received: 74
-
-

11 years 2 months ago -  11 years 2 months ago [\#212259](#212259) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[hikashop\_cart\_module remove tag](/forum/50-feature-request/876122-hikashop-cart-module-remove-tag#212259 "-- HikaShop version -- : 240 -- Joomla version -- : 341  in modules/mod&#95;hikashop&#95;cart is it possible in a next version to get the div tag removed from core code ?  only echo $html; will be fine  Thank you")*

is it possible to do the same thing for mod_hikashop and all other modules (already done for cart and currency) ?
maybe with a commentar *// id necessary for AJAX*

thank you

Last edit: 11 years 2 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZlYXR1cmUtcmVxdWVzdC84NzYxMjItaGlrYXNob3AtY2FydC1tb2R1bGUtcmVtb3ZlLXRhZz90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14288
-
-

11 years 2 months ago [\#212277](#212277) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[hikashop\_cart\_module remove tag](/forum/50-feature-request/876122-hikashop-cart-module-remove-tag#212277 "-- HikaShop version -- : 240 -- Joomla version -- : 341  in modules/mod&#95;hikashop&#95;cart is it possible in a next version to get the div tag removed from core code ?  only echo $html; will be fine  Thank you")*

Hi,

I've checked the cart module but we didn't remove the hikashop_cart_module DIV.
It's still there, but it will only display if the cart has HTML to display: [ take.ms/5jPiu](http://take.ms/5jPiu)

We actually already have the same code in the hikashop_module code:
[ take.ms/WLZqp](http://take.ms/WLZqp)
The DIV around it will only be displayed if there HTML coming from the view to be displayed inside it.

So I don't see what you want us to do ?

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

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2697
- Thank you received: 74
-
-

11 years 2 months ago -  11 years 2 months ago [\#212381](#212381) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[hikashop\_cart\_module remove tag](/forum/50-feature-request/876122-hikashop-cart-module-remove-tag#212381 "-- HikaShop version -- : 240 -- Joomla version -- : 341  in modules/mod&#95;hikashop&#95;cart is it possible in a next version to get the div tag removed from core code ?  only echo $html; will be fine  Thank you")*

a tmpl folder for each mod_
[ ![screenshot&#95;2015-08-25&#95;&#95;06&#95;27&#95;49.png](/forum/attachment/26117) ](/forum/attachment/26117 "...&#95;&#95;06&#95;27&#95;49.png")

in my template Code:

if(!empty($html)){echo $html; }

same here (tmpl missing)
[ ![screenshot&#95;2015-08-25&#95;&#95;06&#95;28&#95;28.png](/forum/attachment/26118) ](/forum/attachment/26118 "...&#95;&#95;06&#95;28&#95;28.png")

- [ ![screenshot&#95;2015-08-25&#95;&#95;06&#95;27&#95;49.png](/forum/attachment/26117) ](/forum/attachment/26117 "...&#95;&#95;06&#95;27&#95;49.png") [ ](/forum/attachment/26117?download=1 "...&#95;&#95;06&#95;27&#95;49.png")
- [ ![screenshot&#95;2015-08-25&#95;&#95;06&#95;28&#95;28.png](/forum/attachment/26118) ](/forum/attachment/26118 "...&#95;&#95;06&#95;28&#95;28.png") [ ](/forum/attachment/26118?download=1 "...&#95;&#95;06&#95;28&#95;28.png")

Last edit: 11 years 2 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZlYXR1cmUtcmVxdWVzdC84NzYxMjItaGlrYXNob3AtY2FydC1tb2R1bGUtcmVtb3ZlLXRhZz90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14288
-
-

11 years 2 months ago [\#212402](#212402) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[hikashop\_cart\_module remove tag](/forum/50-feature-request/876122-hikashop-cart-module-remove-tag#212402 "-- HikaShop version -- : 240 -- Joomla version -- : 341  in modules/mod&#95;hikashop&#95;cart is it possible in a next version to get the div tag removed from core code ?  only echo $html; will be fine  Thank you")*

Ah I understand. That makes sense.
We'll do that.

Thank you for your feedback.

The following user(s) said Thank You: [erickb](/forum/user/4069-erickb "View erickb's Profile")

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

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2697
- Thank you received: 74
-
-

11 years 2 months ago [\#212441](#212441) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[hikashop\_cart\_module remove tag](/forum/50-feature-request/876122-hikashop-cart-module-remove-tag#212441 "-- HikaShop version -- : 240 -- Joomla version -- : 341  in modules/mod&#95;hikashop&#95;cart is it possible in a next version to get the div tag removed from core code ?  only echo $html; will be fine  Thank you")*

thanks a lot Nicolas

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZlYXR1cmUtcmVxdWVzdC84NzYxMjItaGlrYXNob3AtY2FydC1tb2R1bGUtcmVtb3ZlLXRhZz90bXBsPW1hcmtkb3du) 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.078 seconds

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