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

#   Cart Module override - Align cart image

##

- **[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")**
- [![andreasuriani's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28733.jpg)](/forum/user/28733-andreasuriani "View andreasuriani's Profile") Topic Author
- [ Offline](/forum/user/28733-andreasuriani)

Less More

- Posts: 177
- Thank you received: 1
-
-

9 years 7 months ago [\#268080](#268080) by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")  *[Cart Module override - Align cart image](/forum/27-checkout/889945-cart-module-override-align-cart-image#268080 "Hi all, i'm trying to do a override on HS Module Cart. All works fine but i'm not able to create a &quot;good view&quot; about cart image.  This is the override code about module:    php &quot;&quot;.$html; ?&gt;  php }  But the result is not good (look attachment file called howisit.png)  I'd like the result shoud be like file howshouldbe.png.  Any help???  ps: i don't want make a language override.... ;)")* was created by *[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")*

Hi all,
i'm trying to do a override on HS Module Cart.
All works fine but i'm not able to create a "good view" about cart image.

This is the override code about module:

&lt;?php
/**
* @package HikaShop for Joomla!
* @version 3.0.1
* @author hikashop.com
* @copyright (C) 2010-2017 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;&lt;?php
if(!empty($html)){
?&gt;
&lt;div class="hikashop_cart_module" id="hikashop_cart_module"&gt;
&lt;?php "&lt;img src=\"images/cart_new.png\" width=\"18\" height=\"18\" align=\"middle\" /&gt;".$html; ?&gt;
&lt;/div&gt;
&lt;?php }

But the result is not good (look attachment file called howisit.png)

I'd like the result shoud be like file howshouldbe.png.

Any help???

ps: i don't want make a language override.... ![;)](/media/kunena/emoticons/24.png ";)")

- [ ![howshouldbe.png](/forum/attachment/37805) ](/forum/attachment/37805 "howshouldbe.png") [ ](/forum/attachment/37805?download=1 "howshouldbe.png")
- [ ![howis.png](/forum/attachment/37806) ](/forum/attachment/37806 "howis.png") [ ](/forum/attachment/37806?download=1 "howis.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4OTk0NS1jYXJ0LW1vZHVsZS1vdmVycmlkZS1hbGlnbi1jYXJ0LWltYWdlP3RtcGw9bWFya2Rvd24=) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 7 months ago [\#268081](#268081) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Cart Module override - Align cart image](/forum/27-checkout/889945-cart-module-override-align-cart-image#268081 "Hi all, i'm trying to do a override on HS Module Cart. All works fine but i'm not able to create a &quot;good view&quot; about cart image.  This is the override code about module:    php &quot;&quot;.$html; ?&gt;  php }  But the result is not good (look attachment file called howisit.png)  I'd like the result shoud be like file howshouldbe.png.  Any help???  ps: i don't want make a language override.... ;)")*

Hello,

Unfortunately, the answer is exactly the same than in that thread :
[ www.hikashop.com/forum/product-category-...uct-page.html#267485](https://www.hikashop.com/forum/product-category-display/889827-customize-show-category-title-on-a-product-page.html#267485)

Regards,

---

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

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

- **[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")**
- [![andreasuriani's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28733.jpg)](/forum/user/28733-andreasuriani "View andreasuriani's Profile") Topic Author
- [ Offline](/forum/user/28733-andreasuriani)

Less More

- Posts: 177
- Thank you received: 1
-
-

9 years 7 months ago [\#268183](#268183) by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")  Replied by *[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")* on topic *[Cart Module override - Align cart image](/forum/27-checkout/889945-cart-module-override-align-cart-image#268183 "Hi all, i'm trying to do a override on HS Module Cart. All works fine but i'm not able to create a &quot;good view&quot; about cart image.  This is the override code about module:    php &quot;&quot;.$html; ?&gt;  php }  But the result is not good (look attachment file called howisit.png)  I'd like the result shoud be like file howshouldbe.png.  Any help???  ps: i don't want make a language override.... ;)")*

At least kindly tell me what the $ html variable refers to?

However, since this extension does not provide syhis uch an option, it would be advisable to help non-PHP php experts like me to implement it ...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4OTk0NS1jYXJ0LW1vZHVsZS1vdmVycmlkZS1hbGlnbi1jYXJ0LWltYWdlP3RtcGw9bWFya2Rvd24=) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 7 months ago [\#268205](#268205) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Cart Module override - Align cart image](/forum/27-checkout/889945-cart-module-override-align-cart-image#268205 "Hi all, i'm trying to do a override on HS Module Cart. All works fine but i'm not able to create a &quot;good view&quot; about cart image.  This is the override code about module:    php &quot;&quot;.$html; ?&gt;  php }  But the result is not good (look attachment file called howisit.png)  I'd like the result shoud be like file howshouldbe.png.  Any help???  ps: i don't want make a language override.... ;)")*

Hello,

As I told you, the answer is exactly the same.
It requires some CSS in order to perform the alignment.

I'm sorry but your question is not related to HikaShop or our support.
And your question has also not relation with coding or PHP.
You can resolve it with just some CSS and only CSS.

Regards,

---

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

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

- **[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")**
- [![andreasuriani's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28733.jpg)](/forum/user/28733-andreasuriani "View andreasuriani's Profile") Topic Author
- [ Offline](/forum/user/28733-andreasuriani)

Less More

- Posts: 177
- Thank you received: 1
-
-

9 years 7 months ago -  9 years 7 months ago [\#268241](#268241) by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")  Replied by *[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")* on topic *[Cart Module override - Align cart image](/forum/27-checkout/889945-cart-module-override-align-cart-image#268241 "Hi all, i'm trying to do a override on HS Module Cart. All works fine but i'm not able to create a &quot;good view&quot; about cart image.  This is the override code about module:    php &quot;&quot;.$html; ?&gt;  php }  But the result is not good (look attachment file called howisit.png)  I'd like the result shoud be like file howshouldbe.png.  Any help???  ps: i don't want make a language override.... ;)")*

Hello,
thanks for your reply.

Sometimes hikashop team could understand that many people aren't real expert but they are at only the beginning. Understand where is the "problem" is really helpful.

Your indication was really helpful now.

For everybody: My solution is change the CSS code in Hikashops css settings like this: Code:

.hikashop_cart_module:before { content: url(../images/cart.png); display: inline-block; vertical-align: middle; margin-bottom: -40px; margin-right: 115px; }

Thanks again.

Andrea

Last edit: 9 years 7 months ago by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile").

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

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