News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Echo "Legal info" and "Terms of service" in user registration form ?

Started by andrew.overlord, February 23, 2013, 17:22:26 PM

Previous topic - Next topic

andrew.overlord

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)

andrew.overlord

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;