1. siaweb
  2. Tooltip
  3. Monday, 12 May 2014
Good afternoon.
Please tell me how can I customize the output in "default_relatedproducts" the following options product_sku + product_name + product_s_desc + manufacturer + product_price

defined ( '_JEXEC' ) or die ( 'Restricted access' );
<div class="product-related-products">
<h4><?php echo JText::_('COM_VIRTUEMART_RELATED_PRODUCTS'); ?></h4>

foreach ($this->product->customfieldsRelatedProducts as $field) {
$db = JFactory::getDBO();
$qt='SELECT `product_price` FROM `#__virtuemart_product_prices` WHERE `virtuemart_product_id` = '.$field->custom_value.'';
$db->setQuery($qt); $result = $db->loadResult(); $sena = $this->currency->getSymbol();

<div class="product-field product-field-type-<?php echo $field->field_type ?>" style="text-align: left; float:left; width: 100%">
<span class="product-field-display" style="text-align: left"><?php echo $field->display ?></span>
<span class="product-field-desc"><?php echo jText::_($field->custom_field_desc) ?></span>
<?php echo $this->currency->createPriceDiv ('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $result) ?>

<?php } ?>
Responses (6)

There are replies in this post but you are not allowed to view the replies from this post.
bonusthemes logo
Quick Ask
General Discussion
  1. 20 posts
  2. 0 subcategories
Pre-Sales Questions
  1. 15 posts
  2. 0 subcategories
Joomla! Templates
  1. 566 posts
  2. 39 subcategories
Quick Search
Recent Replies
Working hours

Business hours are:
08.00 a.m. to 16.00 p.m.

Monday to Friday.

Copyright © 2007-2019 Bonus Themes. All rights reserved.

BonusThemes.com is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.