Skip to main content

Cart Module override - Align cart image

9 years 7 months ago #268080 by andreasuriani
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:

<?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
*/
defined('_JEXEC') or die('Restricted access');
?><?php
if(!empty($html)){
?>
<div class="hikashop_cart_module" id="hikashop_cart_module">
<?php "<img src=\"images/cart_new.png\" width=\"18\" height=\"18\" align=\"middle\" />".$html; ?>
</div>
<?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.... ;)

Please Log in or Create an account to join the conversation.

9 years 7 months ago #268081 by Jerome
Hello,

Unfortunately, the answer is exactly the same than in that thread :
www.hikashop.com/forum/product-category-...uct-page.html#267485

Regards,

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

Please Log in or Create an account to join the conversation.

9 years 7 months ago #268183 by andreasuriani
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 or Create an account to join the conversation.

9 years 7 months ago #268205 by Jerome
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 & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

9 years 7 months ago - 9 years 7 months ago #268241 by andreasuriani
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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum