Put a custom title in a module

  • Posts: 35
  • Thank you received: 2
12 years 2 days ago #78681

I am trying to add a custom title within a product listing module. I can, obviously, activate the module title, but that is handled by joomla and placed outside of the module. I would prefer to have it within the module. When I edit the "product listing" module view, it places my custom title above every single product, rather than only once for the entire module.

Thanks for your help,
Carey

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

  • Posts: 12953
  • Thank you received: 1778
12 years 2 days ago #78710

Hi,

I think that you'll just have to :
- Go to "Hikashop->Display->Views"
- Edit the file listing of the product view of your front-end template
- replace this code :

<?php
if(hikashop_level(2) && JRequest::getVar('hikashop_front_end_main',0) && JRequest::getVar('task')=='listing' && $this->params->get('show_compare')) {?>
<script type="text/javascript">
By :
<?php
echo "Your product listing title";
if(hikashop_level(2) && JRequest::getVar('hikashop_front_end_main',0) && JRequest::getVar('task')=='listing' && $this->params->get('show_compare')) {?>
<script type="text/javascript">

Hope this will help you.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum