Insert Module into a custom tab not working correctly

  • Posts: 256
  • Thank you received: 2
7 years 6 months ago #281429

-- url of the page with the problem -- : mirageweddingbackdrops.co.uk/dev/index.p...untry-style-backdrop
-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.8.1

Hello I am using Modules Anywhere plugin to add a module into a custom filed I have created for a 'Get a Quote' tab.

It seems to be working and reading the snippet code but its not displaying the form. I have taken a screen shot of what the html code is displaying.
Looking at the HTML code it is displaying the form under the specification tab which I have commented out of the PHP but wont display under my new custom tab.

Thanks

Attachments:

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

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
7 years 6 months ago #281447

Hello,

You should look at the page source code and not the page DOM.
There you will be able to see that some of your customization break the DOM content and that's why you have something strange in your screenshot.
I will more recommend you to perform comments using PHP than HTML comments ; as you will see, there is an unwanted side effect with module anywhere start/end tags.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 256
  • Thank you received: 2
7 years 6 months ago #281517

Thanks for that, commenting out with // as improved the look on the front however. The form will still not display in the tab, but its still appearing in the commented out specification section.

Attachments:

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

  • Posts: 83780
  • Thank you received: 13568
  • MODERATOR
7 years 6 months ago #281568

Hi,

Modules anywhere just replaces its tags by the content of the module specified in each tag at the end of the page display.
So there are several things to check:
- if you disable modules anywhere, do you see the tag in the tab ? If no, then the problem is not with the module or modules anywhere but the way you've added your custom tab.
- if you display the module in a template position, do you see it ? If yes, then the module is apparently properly configured.
- if you display the module with the modules anywhere tag in the HikaShop description, do you see it ? If yes, then the issue is probably the view you've added your custom field value in the custom tab.

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

  • Posts: 256
  • Thank you received: 2
7 years 6 months ago #281651

Hello,
- When I disable modules anywhere, yes the tag appears .
- Modules Anywhere displays the module fine in an article or using a standard module position.
- I tested in the description section of the Hikashop product and no it still does not appear here either.

I know the the module is configured probably has it works fine in articles and normal module positions. Looking at the HTML it displays the Module Anywhere tags but just not its content.

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

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
7 years 6 months ago #281652

Hello,

If you do not understand something in my message ; please explain

You should look at the page source code and not the page DOM.
There you will be able to see that some of your customization break the DOM content and that's why you have something strange in your screenshot.
I will more recommend you to perform comments using PHP than HTML comments ; as you will see, there is an unwanted side effect with module anywhere start/end tags.


But i can assure you that my message already contains the solution of your issue.
Issue which is not related to HikaShop or Module Anywhere ; but to some customization you made in the views.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 256
  • Thank you received: 2
7 years 6 months ago #281754

Okay but can you help me resolve it in the PHP? I only added PHP to read the custom fields I have created for the products.

I am using this PHP for the tab
<li id="hikashop_show_tabular_overview_li" class="hikashop_tabs_li ui-corner-top">
<a onclick="displayTab('overview');" href="javascript:void(0);">
<?php echo JText::_('Overview');?>
</a>
</li>


and this PHP for the contents
<div class="hikashop_tabs_content" id="hikashop_show_tabular_overview">

<?php
if(!empty($this->element->overview)) {
echo $this->element->overview;
} else {
echo '<div style="display:none;">';
echo '</div>'; }
?>
</div>

Last edit: 7 years 6 months ago by dancingkazzaf.

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

  • Posts: 12953
  • Thank you received: 1778
7 years 6 months ago #281759

Hello,

I just checked your website and everything seems to be ok, the only thing that is missing is the module that is supposed to display the "Module Anywhere" component. As you can see through the HTML code of your product page :

         <h3>Get a Quote</h3>
<!-- START: Modules Anywhere --><!-- END: Modules Anywhere -->	  </div>
         <!----------------->

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

  • Posts: 256
  • Thank you received: 2
7 years 6 months ago #281988

Hello,
Yes exactly thats what I have been trying to tell you. The modules there its just not displaying its contents.
Something is stopping it.
But its work fine on a regular article or module position. Just not in a Hikashop product whether in description or tabs.

I have checked the module assignment too and its set to all.

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

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
7 years 6 months ago #281989

Hello,

Since there are other modules in the description of the product page and since there are the tags of "module anywhere" ; all we can say it's the modules are displayed and the last one is handle by "module anywhere" but we can't tell you why it do not display a content inside.
Unfortunately, it's far outside of the limit of our support since it's no more related to HikaShop.

Please understand that the fact that you have the tags of module anywhere mean that it has been called.
So it's related to module anywhere exclusively.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.115 seconds
Powered by Kunena Forum