- Posts: 11
- Thank you received: 0
How to link the header-class in the mini Cart?
- SchmidtSon
-
Topic Author
- Offline
Less
More
6 years 10 months ago #312696
by SchmidtSon
How to link the header-class in the mini Cart? was created by SchmidtSon
-- 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:
and
before line 21:
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
-- 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:
Code:
$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:
Code:
<a href="<?php echo $mLink; ?>">
<?php echo $headlineStart; ?>
<?php echo $mTitle; ?>
<?php echo $headlineEnd; ?>
</a>
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.
6 years 10 months ago #312704
by nicolas
Replied by nicolas on topic How to link the header-class in the mini Cart?
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:
and you want to add these pieces of code either before or after that line.
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:
Code:
<div class="hikashop_cart_module <?php echo @$module->params['moduleclass_sfx']; ?>" id="hikashop_cart_module">
Please Log in or Create an account to join the conversation.
Time to create page: 0.150 seconds