VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Cyber Beginner on June 24, 2016, 16:46:27 PM

Title: In Product Details view -no space between "Manufacturer" and company's name
Post by: Cyber Beginner on June 24, 2016, 16:46:27 PM
Joomla! 3.5.1 / K2 v2.7.0 / VirtueMart 3.0.2

In Product Details view -no space between "Manufacturer" and company's name.
Do you have any idea, how could I solve this issue? (see attachment)

Thanks in advance for your help.
Title: Re: In Product Details view -no space between "Manufacturer" and company's name
Post by: jenkinhill on June 24, 2016, 16:56:07 PM
Use Firebug to see what css to use.  http://forum.virtuemart.net/index.php?topic=116620.0

You should use VirtueMart 3.0.16 with Joomla 3.5.1 or VM emails won't work. Test on a backup as it looks like you are using a commercial template.  http://dev.virtuemart.net/projects/virtuemart/files
Title: Re: In Product Details view -no space between "Manufacturer" and company's name
Post by: Cyber Beginner on June 24, 2016, 18:42:14 PM
Thanks for your response.
I already downloaded the recommended version of VM and I'd install it.
Sorry for my basic questions but I'm really very beginner.
I tried to solve this issue with Firebug, I didn't find any css which could be responsible for the missing space. I tried to find this text in different language files as well, but I didn't find it.
On the left side of Firebug (see attachment), I found the text "Manufacturer" and when I insert a space after the word, I have screened instead of "ManufacturerCompany Name" the "Manufacturer Company Name" result – what I'd like.
The only one problem: I don't know how to save this change – or where could I edit this code (seems to be html)?
Can you help me?
Title: Re: In Product Details view -no space between "Manufacturer" and company's name
Post by: GJC Web Design on June 25, 2016, 01:49:06 AM
overwrite components\com_virtuemart\views\productdetails\tmpl\default_manufacturer.php
Title: Re: In Product Details view -no space between "Manufacturer" and company's name
Post by: Cyber Beginner on June 25, 2016, 15:53:37 PM
Thanks for your response.
My php file you recommended to change can you see below, I couldn't figure out what I have to overwrite for getting the solution of my problem.
Could you help me?


<?php
/**
*
* Show the product details page
*
* @package VirtueMart
* @subpackage
* @author Max Milbers, Valerie Isaksen

* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: default_manufacturer.php 8610 2014-12-02 18:53:19Z Milbo $
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
?>
<div class="manufacturer">
    <?php
   $link
= JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $this->product->virtuemart_manufacturer_id[0] . '&tmpl=component', FALSE);
   
$text = $this->product->mf_name;

   
/* Avoid JavaScript on PDF Output */
   
if (strtolower(vRequest::getCmd('output')) == "pdf") {
echo JHtml::_('link', $link, $text);
   } else {
?>
        <span class="bold"><?php echo vmText::_('COM_VIRTUEMART_PRODUCT_DETAILS_MANUFACTURER_LBL') ?></span><a class="manuModal" href="<?php echo $link ?>"><?php echo $text ?></a>
    <?php } ?>
</div>
Title: Re: In Product Details view -no space between "Manufacturer" and company's name
Post by: GJC Web Design on June 25, 2016, 16:28:19 PM
$text = ' '.$this->product->mf_name;

might work
Title: Re: In Product Details view -no space between "Manufacturer" and company's name
Post by: Cyber Beginner on June 25, 2016, 16:55:53 PM
[SOLVED]

Awesome!
Problem is solved.
Thanks for your help I really appreciate it!
:)