| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Mod for Featured Products 'module' | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Mod for Featured Products 'module'
One of my clients wanted to be able to enable/disable the 'Featured Products' box (we have it on the homepage), without commenting out code in tpl's. Thought i'd share what i've done with other XC folk. So...
Here's a simple mod to allow you to control the 'Featured Products' dialog from the modules page in admin Notes: - BACKUP all files and take a dump of your xcart_modules data before changing anything just to be safe... - I haven't tested this too much - This isn't strictly a module, - it just uses the 'module' page in admin Step 1: Run this query: Code:
I don't know if there's any logic to the 'moduleid' - i've just used the value '100' as this isn't currently being used... Step 2: Wherever you have the featured products dialog appearing (we have it being called from customer/main/welcome.tpl), replace this: Code:
With this: Code:
Step 3: - Log into your admin and goto 'modules' - You should have a new 'module' called 'Featured Products' - If you don't want it, switch it off! Comments welcome, Cheers
__________________
X-Cart 4.0.17 ezUpsell PHP 4.4.1 MySQL 4.0.25-standard Apache 1.3.34 Linux |
|||||||
#2
|
|||||||||
|
|||||||||
Thats a nice simple way of being able to switch on and off other parts, Nicely done!
__________________
Groovico Used by X-carters the world over: Marketing Manager Pro Bundle For X-cart Featured Product Manager for X-cart Feed manager pro for X-cart http://www.firetanksoftware.com Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X |
|||||||||
|
|||
X-Cart forums © 2001-2020
|