简体   繁体   English

在Virtuemar选项卡/ default.php / Joomla 3.7.5中插入Chronoforms

[英]Insert Chronoforms in Virtuemar tabs / default.php / Joomla 3.7.5

I want to put chronoforms inside Virtuemart tabs. 我想将chronoforms放在Virtuemart选项卡中。 You can see the tabs in: http://dabur.cl/productos/tipo-de-producto/cremas-para-peinar/crema-reparaci%C3%B3n-nocturna-de-miel-detail.html . 您可以在以下位置查看这些标签: http : //dabur.cl/productos/tipo-de-producto/cremas-para-peinar/crema-reparaci%C3%B3n-nocturna-de-miel-detail.html

As you can see, the second tab is empty. 如您所见,第二个选项卡为空。 That's where the form should go. 那是表格应该去的地方。 First tab: product description Third tab: Disqus 第一个标签:产品说明第三个标签:Disqus

The contents of the tabs are in a default.php file, but I don't know what is the right syntax to call the form. 选项卡的内容位于default.php文件中,但我不知道调用该表单的正确语法是什么。

            <div id="myTabContent" class="tab-content">

                <?php if (!empty($this->product->product_desc)) { ?>
                    <div class="tab-pane desc fade active in" id="desc" >
                        <div class="product-description">
                            <?php /** @todo Test if content plugins modify the product description */ ?>
                            <?php echo $this->product->product_desc; ?>
                        </div>
                    </div>
                <?php } // Product Description END ?>


                <div class="tab-pane review fade" id="form" >           
                    HERE IS WHERE CHRONOFORM SHOULD BE!!!
                 </div>

                 <div id="comentarios" class="tab-pane comentarios fade">
                    <div id='disqus_thread'></div>
                        <script type='text/javascript'>
                          var disqus_shortname = 'dabur-cl'; // required: replace example with your forum shortname
                              (function() {
                              var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
                              dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
                              (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
                          })();
                        </script>
                </div><!-- //tab3 -->

            </div>

        </div> <!--/. products-desc-tab-->

Already find out. 已经发现了。 Virtuemart supports chronoform plugin, so the code is: Virtuemart支持chronoform插件,因此代码为:

<div class="tab-pane review fade" id="form" >           
        <?php echo JHTML::_('content.prepare', '{chronoforms6}form-name{/chronoforms6}');?
</div>>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Joomla 2.5在default.php中加载javaScript文件 - Joomla 2.5 Loading javaScript Files inside default.php 从default.php隐藏的传递变量不起作用-joomla 3 - passing variable as hidden from default.php is not working - joomla 3 Joomla。 如何在default.php中编辑菜单的链接? - Joomla. How to edit the link of the Menu in default.php? 在joomla组件中的default.php内部查看路径 - View path inside default.php in joomla component 如何通过Ajax将default.php中的值传递给view.html.php-joomla3.x - How to pass a value from default.php to view.html.php through ajax - joomla3.x joomla 2.5模块:如何将foreach循环放入tmpl / default.php - joomla 2.5 module: how to foreach loop put in tmpl/default.php 如何在Joomla 3 default.php文件中更改菜单类以模仿自定义菜单类 - How to change the menu classes in Joomla 3 default.php file to mimic custom menu classes 如何将$ _GET [&#39;&#39;]值从mod_modulenamet / mpl / default.php中的$ document-&gt; addStylesheet()转换为joomla模块的css.php文件 - How to $_GET [' '] value from $document->addStylesheet() in mod_modulenamet/mpl/default.php to css.php file of joomla module Joomla 3-Virtuemart-Virtuemar产品模块 - Joomla 3 - Virtuemart - Virtuemar product module 我的Concrete5页面类型将仅使用Default.php - My Concrete5 Page Types Will Only Use Default.php
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM