News:

Looking for documentation? Take a look on our wiki

Main Menu

Show title in shop frontpage?

Started by virtueb, August 14, 2014, 23:13:33 PM

Previous topic - Next topic

virtueb

Hi,

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

Thanks in advance...

seyi

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
Seyi A
--------------------
Promotion enhancement for Virtuemart:
   - AwoCoupon FREE - http://www.awocoupon.com/starter
   - AwoCoupon Pro - http://awodev.com/products/joomla/awocoupon
   - AwoRewards - http://awodev.com/products/joomla/aworewards
   - AwoAffiliate - http://awodev.com/products/joomla/awoaffiliate

virtueb

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.

seyi

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.
Seyi A
--------------------
Promotion enhancement for Virtuemart:
   - AwoCoupon FREE - http://www.awocoupon.com/starter
   - AwoCoupon Pro - http://awodev.com/products/joomla/awocoupon
   - AwoRewards - http://awodev.com/products/joomla/aworewards
   - AwoAffiliate - http://awodev.com/products/joomla/awoaffiliate