/*************************************************\ | Customer Poll Mod | | | | BCS Engineering | | Copyright (c) 2005 BCS Engineering, | | Carrie L. Saunders | All rights reserved. | | See http://www.bcsengineering.com/license.shtml | | for full license | | For X-cart versions 4.0.X | \*************************************************/ NOTE: You should always make a back-up copy of your files and/or database before installing any modification. INSTALLATION: 1. Log into your Admin interface and copy and paste the SQL queries in patch.sql into the Patch/Upgrade sql utility. (You can put them all in at once) 2. Upload the files named customer_polls.php, customer_polls.tpl, view_poll.php, and view_poll into their appropriate directories. 3. Add to skin1/admin/menu.tpl: {* BCSE Begin *} {$lng.lbl_customer_polls}
{* BCSE End *} Before: {$lng.lbl_countries}
4. Add to skin1/common_templates.tpl: {* BCSE Begin *} {elseif $main eq "customer_polls"} {include file="admin/main/customer_polls.tpl"} {* BCSE End *} After first {if}{include} pair 5. Add to xcart_dir/Auth.php: # BCSE Begin require $xcart_dir."/view_poll.php"; # BCSE End After: @include $xcart_dir.DIR_CUSTOMER."/https.php"; 6. Add to xcart_dir/skin1/customer/home.tpl: {* BCSE Begin *} { include file="customer/view_poll.tpl" }
{* BCSE End *} Recommended before: {if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu eq "Y"} 7. Add these new language variables: Variable: Value: Description: lbl_customer_polls Customer polls Customer Polls lbl_total_votes Total Votes Total Votes