<?php
//set home page link
$smarty->assign('appRoot', SITE_URL);
//get store info
//$smarty->assign('storeBasicInfo', getStoreBasicInfo());
//create store info vars
$smarty->assign('storeOwnerName', getStoreBasicInfoByOneParam('o_fullname'));
$smarty->assign('storeTitle', getStoreBasicInfoByOneParam('store_title'));
$smarty->assign('storeOwnerEmailAddress', getStoreBasicInfoByOneParam('o_email_address'));
$smarty->assign('storeBusinessName', getStoreBasicInfoByOneParam('b_name'));
$smarty->assign('storeABN', getStoreBasicInfoByOneParam('b_abn'));
$smarty->assign('storeAddress', getStoreBasicInfoByOneParam('b_address'));
$smarty->assign('storeState', getStoreBasicInfoByOneParam('b_state'));
$smarty->assign('storeCountry', getStoreBasicInfoByOneParam('b_country'));
$smarty->assign('storePhone', getStoreBasicInfoByOneParam('b_phone'));
$smarty->assign('storeFax', getStoreBasicInfoByOneParam('b_fax'));
$smarty->assign('storeEmailAddress', getStoreBasicInfoByOneParam('b_email_address'));
$smarty->assign('storePhone', getStoreBasicInfoByOneParam('b_phone'));
$smarty->assign('storeCurrency', getStoreBasicInfoByOneParam('currency'));
$smarty->assign('storeTaxRate', getStoreBasicInfoByOneParam('tax_rate'));
$smarty->assign('order_prefix', getStoreBasicInfoByOneParam('order_prefix'));
$order_prefix = getStoreBasicInfoByOneParam('order_prefix');
$google_analytics_id = getStoreBasicInfoByOneParam('google_analytics_id');
$smarty->assign('google_analytics_id', $google_analytics_id);
//end info vars
$smarty->assign('productTag',' ');
//list brands:
$smarty->assign('allBrands', getBrands());
$smarty->assign('totalBrands', getTotalBrands());
/// end list brands
//list categories:
$smarty->assign('allCategories', getCategories());
$smarty->assign('totalCategories', getTotalCategories());
/// end list categories
//list parent categories
$smarty->assign('allParentCategories', getParentCategories());
//end parent cat
//top navigation
$smarty->assign('topNavigation', getBlockContentsByHeading('top_navigation'));
//end top navigation
//footer navigation
$smarty->assign('footerNavigation', getBlockContentsByHeading('footer_navigation'));
//end footer navigation
//set blocks
$smarty->assign('block1', getBlockContentsByHeading('information_pages'));
$smarty->assign('block2', getBlockContentsByHeading('legal_information'));
$smarty->assign('block3', getBlockContentsByHeading('top_navigation'));
$smarty->assign('totalBlocks', getTotalBlocks());
//end blocks
//get_banners
$smarty->assign('storeBanners', getStoreBanners());
//end banners
$smarty->assign('specialProducts', getSpecialProducts());
$smarty->assign('clearenceProducts', getClearenceProducts());
$smarty->assign('newArrivalProducts', getNewArrivalProducts());
$smarty->assign('featuredProducts',getFeaturedProducts());
$smarty->assign('totalSpecialProducts', getTotalSpecialProducts());
$smarty->assign('totalClearenceProducts', getTotalClearenceProducts());
$smarty->assign('totalNewArrivalProducts', getTotalNewArrivalProducts());
$smarty->assign('totalFeaturedProducts',getTotalFeaturedProducts());
//all products
$smarty->assign('allProducts', getProducts());
$smarty->assign('totalProducts', getTotalProducts());
$smarty->assign('productImages', getProductImages());
$smarty->assign('productMainImage', getProductMainImage());
$smarty->assign('productAttributes', getProductAttributes());
//express checkout
$smarty->assign('paymentType','sale');
$smarty->assign('currencyCodeType',getStoreBasicInfoByOneParam('currency'));
//echo getStoreBasicInfoByOneParam('currency');
//end my cart
$smarty->assign('total_cart_items', getCartTotalQty($session_id));
$smarty->assign('total_cart_items', getCartTotalQty($session_id));
$smarty->assign('cart_product_list_mini', getCartItems($session_id));
$smarty->assign('grand_total_mini', getCartTotalAmount($session_id));
?>