- Posts: 28
- Thank you received: 0
Custom field display
I assume that just creating a 2nd hikashop content module will not do it unless it can be coded not to display on every page...
Please Log in or Create an account to join the conversation.
It's possible to do it, if you have some PHP skills, by editing the file show of the view product and storing the HTML of the specifications somewhere without displaying them and then creating a module which would just display the HTML. Then, with Advanced Module Manager, you can set that module to only display if there is something in it.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
i.e. display the view of the product without the spec and then make a call to show a separate content module in a different position?
Sorry if this is a silly question - a lot of this is still new to me.
Please Log in or Create an account to join the conversation.
It's possible to do it, if you have some PHP skills, by editing the file show of the view product and storing the HTML of the specifications somewhere without displaying them and then creating a module which would just display the HTML.
Please Log in or Create an account to join the conversation.
with a simple copy of the relevant parts of show.php that should only leave the question of how to hide empty modules in 1.6 with the incomprehensible RT template...
Please Log in or Create an account to join the conversation.
The show file needs the data from the view.html.php file in order to display it. In your module, you won't have that data available.
The easiest is to put around the tags below around the code you want in your module:
<?php ob_start(); ?>
and
<?php $_REQUEST = ob_get_clean(); ?>
Then, in your module you can just have the code: <?php echo $_REQUEST; ?>
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
That allows you to have different modifications for different templates on your website (you can use several templates on a joomla website).
Please Log in or Create an account to join the conversation.
Your PHP above worked a treat combined with blank_mod.
Now just need to work out how to only display the module when the product page is shown...
Thanks so much for the great support.
Please Log in or Create an account to join the conversation.