[Skip to main content](#vessel-content)

#   Related Products Module Before Description

##

- **[Ghiasite](/forum/user/36840-ghiasite "View Ghiasite's Profile")**
- [![Ghiasite's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36840-ghiasite "View Ghiasite's Profile") Topic Author
- [ Offline](/forum/user/36840-ghiasite)

Less More

- Posts: 2
- Thank you received: 0
-
-

11 years 6 months ago [\#197737](#197737) by [Ghiasite](/forum/user/36840-ghiasite "View Ghiasite's Profile")  *[Related Products Module Before Description](/forum/26-product-category-display/876236-related-products-module-before-description#197737 "-- url of the page with the problem -- : knvvl.micpoint.nl -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1  I would like to display the module related products before the description of the product instead of under it. I tried modifying the product-show view but was not able.")* was created by *[Ghiasite](/forum/user/36840-ghiasite "View Ghiasite's Profile")*

-- url of the page with the problem -- : knvvl.micpoint.nl
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1

I would like to display the module related products before the description of the product instead of under it.
I tried modifying the product-show view but was not able.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzYyMzYtcmVsYXRlZC1wcm9kdWN0cy1tb2R1bGUtYmVmb3JlLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 6 months ago [\#197740](#197740) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Related Products Module Before Description](/forum/26-product-category-display/876236-related-products-module-before-description#197740 "-- url of the page with the problem -- : knvvl.micpoint.nl -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1  I would like to display the module related products before the description of the product instead of under it. I tried modifying the product-show view but was not able.")*

Hi,

Via the menu Display &gt; Views, edit the view "product / show_default" and add the code: Code:

&lt;?php echo JHTML::_('content.prepare','{loadmodule XX}'); ?&gt;

Where XX is the id of the related products module, before: Code:

&lt;div id="hikashop_product_description_main" class="hikashop_product_description_main"&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzYyMzYtcmVsYXRlZC1wcm9kdWN0cy1tb2R1bGUtYmVmb3JlLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Ghiasite](/forum/user/36840-ghiasite "View Ghiasite's Profile")**
- [![Ghiasite's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36840-ghiasite "View Ghiasite's Profile") Topic Author
- [ Offline](/forum/user/36840-ghiasite)

Less More

- Posts: 2
- Thank you received: 0
-
-

11 years 6 months ago -  11 years 6 months ago [\#197983](#197983) by [Ghiasite](/forum/user/36840-ghiasite "View Ghiasite's Profile")  Replied by *[Ghiasite](/forum/user/36840-ghiasite "View Ghiasite's Profile")* on topic *[Related Products Module Before Description](/forum/26-product-category-display/876236-related-products-module-before-description#197983 "-- url of the page with the problem -- : knvvl.micpoint.nl -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1  I would like to display the module related products before the description of the product instead of under it. I tried modifying the product-show view but was not able.")*

It's not working.
This is de code i have Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.3.5 * @author hikashop.com * @copyright (C) 2010-2015 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;div id="hikashop_product_top_part" class="hikashop_product_top_part"&gt; &lt;?php $this-&gt;setLayout('show_block_social'); echo $this-&gt;loadTemplate(); ?&gt; &lt;/div&gt; &lt;?php if(HIKASHOP_RESPONSIVE){ ?&gt; &lt;div class="&lt;?php echo HK_GRID_ROW; ?&gt;"&gt; &lt;?php } ?&gt; &lt;div id="hikashop_product_left_part" class="hikashop_product_left_part &lt;?php echo HK_GRID_COL_6; ?&gt;"&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;leftBegin)) { echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;leftBegin); } $this-&gt;row = &amp; $this-&gt;element; $this-&gt;setLayout('show_block_img'); echo $this-&gt;loadTemplate(); if(!empty($this-&gt;element-&gt;extraData-&gt;leftEnd)) { echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;leftEnd); } ?&gt; &lt;/div&gt; &lt;div id="hikashop_product_right_part" class="hikashop_product_right_part &lt;?php echo HK_GRID_COL_6; ?&gt;"&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;rightBegin)) echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;rightBegin); ?&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;topBegin)) { echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;topBegin); } ?&gt; &lt;h3&gt; &lt;span id="hikashop_product_name_main" class="hikashop_product_name_main"&gt; &lt;?php if (hikashop_getCID('product_id')!=$this-&gt;element-&gt;product_id &amp;&amp; isset ($this-&gt;element-&gt;main-&gt;product_name)) echo $this-&gt;element-&gt;main-&gt;product_name; else echo $this-&gt;element-&gt;product_name; ?&gt; &lt;/span&gt; &lt;?php if ($this-&gt;config-&gt;get('show_code')) { ?&gt; &lt;?php } ?&gt; &lt;/h3&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;topEnd)) { echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;topEnd); } ?&gt; &lt;div id="hikashop_product_vote_mini" class="hikashop_product_vote_mini"&gt; &lt;?php $config =&amp; hikashop_config(); if($this-&gt;params-&gt;get('show_vote_product') == '-1'){ $this-&gt;params-&gt;set('show_vote_product',$config-&gt;get('show_vote_product')); } if($this-&gt;params-&gt;get('show_vote_product')){ $js = ''; $this-&gt;params-&gt;set('vote_type','product'); if(isset($this-&gt;element-&gt;main)){ $product_id = $this-&gt;element-&gt;main-&gt;product_id; }else{ $product_id = $this-&gt;element-&gt;product_id; } $this-&gt;params-&gt;set('vote_ref_id',$product_id); echo hikashop_getLayout('vote', 'mini', $this-&gt;params, $js); } ?&gt; &lt;/div&gt; &lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt; &lt;?php if ($this-&gt;params-&gt;get('show_price')) { $this-&gt;row = &amp; $this-&gt;element; $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); } ?&gt; &lt;?php if(!empty($this-&gt;fields)){ $this-&gt;setLayout('show_block_custom_main'); echo $this-&gt;loadTemplate(); } if(HIKASHOP_J30) { $this-&gt;setLayout('show_block_tags'); echo $this-&gt;loadTemplate(); } ?&gt; &lt;/span&gt; &lt;?php echo preg_replace('#&lt;hr *id="system-readmore" */&gt;.*#is','',$this-&gt;row-&gt;product_description); Echo "&lt;a href=#omschrijving&gt;Meer informatie&lt;/a&gt;" ?&gt;&lt;br /&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;rightMiddle)) echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;rightMiddle); ?&gt; &lt;?php $this-&gt;setLayout('show_block_dimensions'); echo $this-&gt;loadTemplate(); ?&gt;&lt;br /&gt; &lt;?php if($this-&gt;params-&gt;get('characteristic_display') != 'list') { $this-&gt;setLayout('show_block_characteristic'); echo $this-&gt;loadTemplate(); ?&gt; &lt;br /&gt; &lt;?php } $form = ',0'; if (!$this-&gt;config-&gt;get('ajax_add_to_cart', 1)) { $form = ',\'hikashop_product_form\''; } if (hikashop_level(1) &amp;&amp; !empty ($this-&gt;element-&gt;options)) { ?&gt; &lt;div id="hikashop_product_options" class="hikashop_product_options"&gt; &lt;?php $this-&gt;setLayout('option'); echo $this-&gt;loadTemplate(); ?&gt; &lt;/div&gt; &lt;br /&gt; &lt;?php $form = ',\'hikashop_product_form\''; if ($this-&gt;config-&gt;get('redirect_url_after_add_cart', 'stay_if_cart') == 'ask_user') { ?&gt; &lt;input type="hidden" name="popup" value="1"/&gt; &lt;?php } } if (!$this-&gt;params-&gt;get('catalogue') &amp;&amp; ($this-&gt;config-&gt;get('display_add_to_cart_for_free_products') &#124;&#124; !empty ($this-&gt;element-&gt;prices))) { if (!empty ($this-&gt;itemFields)) { $form = ',\'hikashop_product_form\''; if ($this-&gt;config-&gt;get('redirect_url_after_add_cart', 'stay_if_cart') == 'ask_user') { ?&gt; &lt;input type="hidden" name="popup" value="1"/&gt; &lt;?php } $this-&gt;setLayout('show_block_custom_item'); echo $this-&gt;loadTemplate(); } } $this-&gt;formName = $form; if($this-&gt;params-&gt;get('show_price')){ ?&gt; &lt;span id="hikashop_product_price_with_options_main" class="hikashop_product_price_with_options_main"&gt; &lt;/span&gt; &lt;?php } if(empty ($this-&gt;element-&gt;characteristics) &#124;&#124; $this-&gt;params-&gt;get('characteristic_display')!='list'){ ?&gt; &lt;div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main"&gt; &lt;?php $this-&gt;row = &amp; $this-&gt;element; $this-&gt;ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form\')){ return hikashopModifyQuantity(\'' . $this-&gt;row-&gt;product_id . '\',field,1' . $form . ',\'cart\'); } else { return false; }'; $this-&gt;setLayout('quantity'); echo $this-&gt;loadTemplate(); ?&gt; &lt;/div&gt; &lt;?php } ?&gt; &lt;div id="hikashop_product_contact_main" class="hikashop_product_contact_main"&gt; &lt;?php $contact = $this-&gt;config-&gt;get('product_contact',0); if (hikashop_level(1) &amp;&amp; ($contact == 2 &#124;&#124; ($contact == 1 &amp;&amp; !empty ($this-&gt;element-&gt;product_contact)))) { $empty = ''; $params = new HikaParameter($empty); global $Itemid; $url_itemid=''; if(!empty($Itemid)){ $url_itemid='&amp;Itemid='.$Itemid; } echo $this-&gt;cart-&gt;displayButton(JText :: _('CONTACT_US_FOR_INFO'), 'contact_us', $params, hikashop_completeLink('product&amp;task=contact&amp;cid=' . $this-&gt;element-&gt;product_id.$url_itemid), 'window.location=\'' . hikashop_completeLink('product&amp;task=contact&amp;cid=' . $this-&gt;element-&gt;product_id.$url_itemid) . '\';return false;'); } ?&gt; &lt;/div&gt; &lt;span id="hikashop_product_id_main" class="hikashop_product_id_main"&gt; &lt;input type="hidden" name="product_id" value="&lt;?php echo $this-&gt;element-&gt;product_id; ?&gt;" /&gt; &lt;/span&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;rightEnd)) echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;rightEnd); ?&gt; &lt;/div&gt; &lt;?php if(HIKASHOP_RESPONSIVE){ ?&gt; &lt;/div&gt; &lt;div id="hikashop_product_bottom_part" class="hikashop_product_bottom_part"&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;bottomBegin)) echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;bottomBegin); ?&gt; &lt;?php } ?&gt;&lt;?php echo JHTML::_('content.prepare','{loadmodule hikashop_submodules}'); ?&gt; &lt;div id="hikashop_product_description_main" class="hikashop_product_description_main"&gt; &lt;?php echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$this-&gt;element-&gt;product_description)); ?&gt; &lt;/div&gt; &lt;span id="hikashop_product_url_main" class="hikashop_product_url_main"&gt; &lt;?php if (!empty ($this-&gt;element-&gt;product_url)) { echo JText :: sprintf('MANUFACTURER_URL', '&lt;a href="' . $this-&gt;element-&gt;product_url . '" target="_blank"&gt;' . $this-&gt;element-&gt;product_url . '&lt;/a&gt;'); } ?&gt; &lt;/span&gt; &lt;?php $this-&gt;setLayout('show_block_product_files'); echo $this-&gt;loadTemplate(); ?&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;bottomMiddle)) echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;bottomMiddle); ?&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;bottomEnd)) echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;bottomEnd); ?&gt; &lt;/div&gt;

Last edit: 11 years 6 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile"). Reason: Use of [code] ... [/code] tags.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzYyMzYtcmVsYXRlZC1wcm9kdWN0cy1tb2R1bGUtYmVmb3JlLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 6 months ago [\#198002](#198002) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Related Products Module Before Description](/forum/26-product-category-display/876236-related-products-module-before-description#198002 "-- url of the page with the problem -- : knvvl.micpoint.nl -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1  I would like to display the module related products before the description of the product instead of under it. I tried modifying the product-show view but was not able.")*

Hi,

Nothing is displayed, or the tag is displayed but not replaced ?
I think that "hikashop_submodules" is not a valid value, here is the Joomla documentation about the loadmodule and loadposition features:
[ docs.joomla.org/How\_do\_you\_put\_a\_module\_inside\_an\_article%3F](https://docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F)

ps: the plugin "Content - Load Modules" must be published.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzYyMzYtcmVsYXRlZC1wcm9kdWN0cy1tb2R1bGUtYmVmb3JlLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.183 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
