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

  • Posts: 10
  • Thank you received: 0
  • Hikashop Business
7 months 4 days ago #312696

-- url of the page with the problem -- :
-- 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 . '>';

before line 21:
<a href="<?php echo $mLink; ?>">
	<?php echo $headlineStart; ?>
		<?php echo $mTitle; ?>
	<?php echo $headlineEnd; ?>
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


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

  • Posts: 69547
  • Thank you received: 10412
7 months 4 days ago #312704


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:
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.056 seconds
Powered by Kunena Forum