VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: andrew.overlord on February 23, 2013, 17:22:26 PM

Title: Echo "Legal info" and "Terms of service" in user registration form ?
Post by: andrew.overlord on February 23, 2013, 17:22:26 PM
Hi!
Through which variable can be displayed the "Legal info" and "Terms of service" in edit_address_userfields.php?
(like in cart $this->cart->vendor->vendor_terms_of_service)
thanks)
Title: Re: Echo "Legal info" and "Terms of service" in user registration form ?
Post by: andrew.overlord on February 24, 2013, 14:15:08 PM
SOLVED  :)

/*
if (!class_exists( 'VmConfig' )) {
require(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_virtuemart'.DS.'helpers'.DS.'config.php');
}
$config = VmConfig::loadConfig();
*/
$model= VmModel::getModel('vendor');
$vendor = $model->getVendor();

echo $vendor->vendor_legal_info;
echo $vendor->vendor_terms_of_service;