if (defined('JPATH_VM_ADMINISTRATOR')) { // helpers _core_register('VmModel', JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'vmmodel.php'); _core_register('calculationHelper', JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'calculationh.php'); _core_register('CurrencyDisplay', JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'currencydisplay.php'); _core_register('VmMediaHandler', JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'mediahandler.php'); _core_register('VmImage', JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'image.php'); _core_register('ShopFunctions', JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'shopfunctions.php'); //tables _core_register('TableMedias', JPATH_VM_ADMINISTRATOR . DS . 'tables' . DS . 'medias.php'); _core_register('TableCategories', JPATH_VM_ADMINISTRATOR . DS . 'tables' . DS . 'categories.php'); _core_register('TableProducts', JPATH_VM_ADMINISTRATOR . DS . 'tables' . DS . 'products.php'); _core_register('TableCustoms', JPATH_VM_ADMINISTRATOR . DS . 'tables' . DS . 'customs.php'); _core_register('TableRatings', JPATH_VM_ADMINISTRATOR . DS . 'tables' . DS . 'ratings.php'); _core_register('TableManufacturer_medias', JPATH_VM_ADMINISTRATOR . DS . 'tables' . DS . 'manufacturer_medias.php'); _core_register('TableManufacturers', JPATH_VM_ADMINISTRATOR . DS . 'tables' . DS . 'manufacturers.php'); // models _core_register('VirtueMartModelCategory', JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'category.php'); _core_register('VirtueMartModelProduct', JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'product.php'); _core_register('VirtueMartModelRatings', JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'ratings.php'); _core_register('VirtueMartModelVendor', JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'vendor.php'); _core_register('VirtueMartModelVirtueMart', JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'virtuemart.php'); _core_register('VirtueMartModelManufacturer', JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'manufacturer.php'); _core_register('VirtueMartModelCustom', JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'custom.php'); _core_register('VirtueMartModelCustomfields', JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'customfields.php'); } if (defined('JPATH_VM_SITE')) { _core_register('VirtueMartCart', JPATH_VM_SITE . DS . 'helpers' . DS . 'cart.php'); _core_register('CouponHelper', JPATH_VM_SITE . DS . 'helpers' . DS . 'coupon.php'); _core_register('shopFunctionsF', JPATH_VM_SITE . DS . 'helpers' . DS . 'shopfunctionsf.php'); }
if (defined('JPATH_VM_ADMINISTRATOR')) { // helpers _core_register('calculationHelper', JPATH_VM_ADMINISTRATOR . '/helpers/calculationh.php'); _core_register('CurrencyDisplay', JPATH_VM_ADMINISTRATOR . '/helpers/currencydisplay.php'); _core_register('VmMediaHandler', JPATH_VM_ADMINISTRATOR . '/helpers/mediahandler.php'); _core_register('VmImage', JPATH_VM_ADMINISTRATOR . '/helpers/image.php'); _core_register('ShopFunctions', JPATH_VM_ADMINISTRATOR . '/helpers/shopfunctions.php'); // models _core_register('VirtueMartModelCategory', JPATH_VM_ADMINISTRATOR . '/models/category.php'); _core_register('VirtueMartModelProduct', JPATH_VM_ADMINISTRATOR . '/models/product.php'); _core_register('VirtueMartModelRatings', JPATH_VM_ADMINISTRATOR . '/models/ratings.php'); _core_register('VirtueMartModelVendor', JPATH_VM_ADMINISTRATOR . '/models/vendor.php'); _core_register('VirtueMartModelVirtueMart', JPATH_VM_ADMINISTRATOR . '/models/virtuemart.php'); } if (defined('JPATH_VM_SITE')) { _core_register('VirtueMartCart', JPATH_VM_SITE . '/helpers/cart.php'); _core_register('CouponHelper', JPATH_VM_SITE . '/helpers/coupon.php'); _core_register('shopFunctionsF', JPATH_VM_SITE . '/helpers/shopfunctionsf.php'); } if (!defined('ADD_TO_CART')) { vmJsApi::css('vm-ltr-site'); vmJsApi::css('vm-ltr-common'); vmJsApi::css('jquery.fancybox-1.3.4'); $document = JFactory::getDocument(); $file = 'components/com_virtuemart/assets/js/vmprices.js'; $file1 = 'components/com_virtuemart/assets/js/fancybox/jquery.fancybox-1.3.4.pack.js'; $document->addScript($file); $document->addScript($file1); VmConfig::loadJLang('com_virtuemart', true); define('ADD_TO_CART', 1); }