How to link the header-class in the mini Cart?

  • Posts: 11
  • Thank you received: 0
5 years 3 weeks ago #312696

-- url of the page with the problem -- : www.naturstein-biermann.de/pflegeprodukte-shop
-- HikaShop version -- : 4.2.1 Business
-- Joomla version -- : 3.9.0
-- PHP version -- : 7.2.19
-- Browser(s) name and version -- : firefox developer

Hello everybody, how can I link the header class of the HikashopCart module?

With the normal menu modules I adjusted the /modules/mod_menu/tmpl/default.php?
before line 19:

$header_tag = $params->get('header_tag', 'h3');
$header_class = ' class="' . $params->get('header_class', '') . '"';
$mTitle = $module->title;
$mLink = $params->get('window_open', '');
$headlineStart = '<' . $header_tag . $header_class . '>';
$headlineEnd = '</' . $header_tag . '>';

and
before line 21:
<a href="<?php echo $mLink; ?>">
	<?php echo $headlineStart; ?>
		<?php echo $mTitle; ?>
	<?php echo $headlineEnd; ?>
</a>
then i changed "Modulstil>System>none"
and it works fine.

but how does it work with hikashop-cart-modul? because the .php looks completely different here?



Thx for help

Attachments:

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
5 years 3 weeks ago #312704

Hi,

The title of a module and the bordering around the content of the module is called a "chrome" in Joomla.
If you want to change the way the title/bordering of the modules, normally, you want to modify the chrome of the modules in the template:
docs.joomla.org/Customising_the_way_modules_are_displayed
What you're doing with the modification you desribed is basically to remove the chrome added by the template for the module, and add the corresponding HTML yourself in the module.
That's indeed a possible alternative but then you have to do it for each module.
However, the modification should be quite similar even for HikaShop modules.
In the file modules/mod_hikashop_cart/tmpl/default.php you'll find the code:

<div class="hikashop_cart_module <?php echo @$module->params['moduleclass_sfx']; ?>" id="hikashop_cart_module">
and you want to add these pieces of code either before or after that line.

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

Time to create page: 0.047 seconds
Powered by Kunena Forum