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

#   cart module code prevents module from being shown

##

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

Less More

- Posts: 57
- Thank you received: 2
-
-

12 years 4 months ago [\#161621](#161621) by [Hans987](/forum/user/5119-hans987 "View Hans987's Profile")  *[cart module code prevents module from being shown](/forum/2-general-talk-about-hikashop/869233-cart-module-code-prevents-module-from-being-shown#161621 "HIka version 2-1-3 I have a problem with the modified code of my cart module (html/com&#95;hikashop/product/cart.php). If I use this modified code, the module contains no html on every non-product pages. On product pages, it works. If I use no file &quot;cart.php&quot; in the product folder or use an older file, everything is OK. I can't figure out, which part of the module code erases the complete cart html code, the outer divs should be shown always, right?  Please help!")* was created by *[Hans987](/forum/user/5119-hans987 "View Hans987's Profile")*

HIka version 2-1-3
I have a problem with the modified code of my cart module (html/com_hikashop/product/cart.php). If I use this modified code, the module contains no html on every non-product pages. On product pages, it works.
If I use no file "cart.php" in the product folder or use an older file, everything is OK.
I can't figure out, which part of the module code erases the complete cart html code, the outer divs should be shown always, right?

Please help!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2OTIzMy1jYXJ0LW1vZHVsZS1jb2RlLXByZXZlbnRzLW1vZHVsZS1mcm9tLWJlaW5nLXNob3duP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

12 years 4 months ago [\#161636](#161636) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[cart module code prevents module from being shown](/forum/2-general-talk-about-hikashop/869233-cart-module-code-prevents-module-from-being-shown#161636 "HIka version 2-1-3 I have a problem with the modified code of my cart module (html/com&#95;hikashop/product/cart.php). If I use this modified code, the module contains no html on every non-product pages. On product pages, it works. If I use no file &quot;cart.php&quot; in the product folder or use an older file, everything is OK. I can't figure out, which part of the module code erases the complete cart html code, the outer divs should be shown always, right?  Please help!")*

Hi,

I think it's that line:
if ($jinput-&gt;get('option', 'default_value', 'filter')=="com_hikashop"){

That if will only run the code inside it if the current component page is a HikaShop page.

The following user(s) said Thank You: [Hans987](/forum/user/5119-hans987 "View Hans987's Profile")

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

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

[](#top)
