VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: virtueb on August 14, 2014, 23:13:33 PM

Title: Show title in shop frontpage?
Post by: virtueb on August 14, 2014, 23:13:33 PM
Hi,

how can i in my override from shop frontpage get shop title? Something like "VmConfig::get('...?

Thanks in advance...
Title: Re: Show title in shop frontpage?
Post by: seyi on August 15, 2014, 15:32:44 PM
If you only have 1 vendor, you can get the vendor store name like such:

<?php
$db JFactory::getDBO();
$db->setQuery'SELECT vendor_name FROM #__virtuemart_vendors WHERE virtuemart_vendor_id=1' );
$store_name $db->loadResult();
?>



To get the global site name:

<?php
JFactory
::getConfig()->get('sitename');
?>


I think
Title: Re: Show title in shop frontpage?
Post by: virtueb on August 16, 2014, 09:20:11 AM
Hi,
thank you, i want to have this, and i think the second solution is that what i need: http://prntscr.com/4db5qu :)

Many thanks.
Title: Re: Show title in shop frontpage?
Post by: seyi on August 16, 2014, 16:02:26 PM
You actually want the first solution then. 

The second solution is for the field admin->global configuration->Site Name field.  This is the name of the site, not the store name within Virtuemart.