Author Topic: Manufacturer Title in detail page not showing  (Read 438 times)

hotrod

  • Jr. Member
  • **
  • Posts: 126
Manufacturer Title in detail page not showing
« on: April 24, 2020, 14:03:14 pm »
On my old site I was about to use a language over ride to have it say Part Manufactured By :  On the new site I'm not getting that title next to Manufacturer
VirtueMart 3.6.10
Joomla! 3.9.18
PHP Version    PHP 7.3.13  
Dedicated Server.
http://forum.virtuemart.net/index.php?topic=124355.0

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 379
    • MiniJoomla
  • VirtueMart Version: 3
Re: Manufacturer Title in detail page not showing
« Reply #1 on: April 24, 2020, 14:14:33 pm »
You must find the right code on detail page and add new constant language :)

I use template override:

templates/[my custom template]/html/com_virtuemart/productdetails/default.php

then code is

Code: [Select]
<?php
                            
// Manufacturer of the Product
                            
if (VmConfig::get('show_manufacturers'1) && !empty($this->product->virtuemart_manufacturer_id)) {
                                echo 
$this->loadTemplate('manufacturer');
                            }
                            
?>


Ok, i go to manufacturer template:

templates/[my custom template]/html/com_virtuemart/productdetails/default_manufacturer.php

and voialá :)

I see line, where can I add language constat:

Quote
$mans[] = '<a class="manuModal" rel="{handler: \'iframe\', size: {x: 700, y: 850}}" href="'.$link .'">'.$name.'</a>';

But I see in code is some if

Code: [Select]
// Avoid JavaScript on PDF Output
if (!$this->writeJs) {

then I must check VirtueMart setup

Is very easy and for me (non-programmer) only 45 seconds.

And How do I add language constant?

Check some another php code from default view (on line 171):

Code: [Select]
<?php echo vmText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL'?>
(change to your own constant and add to language INI file.)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

hotrod

  • Jr. Member
  • **
  • Posts: 126
Re: Manufacturer Title in detail page not showing
« Reply #2 on: April 24, 2020, 14:24:38 pm »
Where is the template file located.. and I just add that code..   Or am I created a template over ride? and placing it where?..  lol   I'm lost.  seems like there should be a simple setting to show the word manufacturer  wondering why it was removed..
VirtueMart 3.6.10
Joomla! 3.9.18
PHP Version    PHP 7.3.13  
Dedicated Server.
http://forum.virtuemart.net/index.php?topic=124355.0

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 379
    • MiniJoomla
  • VirtueMart Version: 3
Re: Manufacturer Title in detail page not showing
« Reply #3 on: April 24, 2020, 14:27:44 pm »
Quote
seems like there should be a simple setting to show the word manufacturer  wondering why it was removed..

Yep, it was be better, but not exist.

Quote
Where is the template file located

I think you must learn about documentation how can you use template override:

https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

hotrod

  • Jr. Member
  • **
  • Posts: 126
Re: Manufacturer Title in detail page not showing
« Reply #4 on: April 24, 2020, 14:31:49 pm »
 :-\ ;D
VirtueMart 3.6.10
Joomla! 3.9.18
PHP Version    PHP 7.3.13  
Dedicated Server.
http://forum.virtuemart.net/index.php?topic=124355.0

hotrod

  • Jr. Member
  • **
  • Posts: 126
Re: Manufacturer Title in detail page not showing
« Reply #5 on: April 24, 2020, 14:33:51 pm »
A simpler way would be to add Part Manufactured BY: in there name..   That will work ;D
VirtueMart 3.6.10
Joomla! 3.9.18
PHP Version    PHP 7.3.13  
Dedicated Server.
http://forum.virtuemart.net/index.php?topic=124355.0

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 379
    • MiniJoomla
  • VirtueMart Version: 3
Re: Manufacturer Title in detail page not showing
« Reply #6 on: April 24, 2020, 14:34:00 pm »
Quote
Or am I created a template over ride? and placing it where?

yes
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 379
    • MiniJoomla
  • VirtueMart Version: 3
Re: Manufacturer Title in detail page not showing
« Reply #7 on: April 24, 2020, 14:35:17 pm »
Quote
A simpler way would be to add Part Manufactured BY: in there name..   That will work

work everything, but than you see in dropdown with manufacture name on products list every product name with this text :D
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

hotrod

  • Jr. Member
  • **
  • Posts: 126
Re: Manufacturer Title in detail page not showing
« Reply #8 on: April 24, 2020, 14:35:56 pm »
yes..
VirtueMart 3.6.10
Joomla! 3.9.18
PHP Version    PHP 7.3.13  
Dedicated Server.
http://forum.virtuemart.net/index.php?topic=124355.0