Cart Module override - Align cart image

  • Posts: 177
  • Thank you received: 1
7 years 7 months ago #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 "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.... ;)

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 7 months ago #268081

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 177
  • Thank you received: 1
7 years 7 months ago #268183

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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 7 months ago #268205

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 177
  • Thank you received: 1
7 years 7 months ago #268241

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:

.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: 7 years 7 months ago by andreasuriani.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum