Guest Posted September 16, 2005 Share Posted September 16, 2005 Does anybody know if you can set up specials to be displayed on the homepage as with the 'new products for month.' ?? Thanks Link to comment Share on other sites More sharing options...
Pottypotsworth Posted September 16, 2005 Share Posted September 16, 2005 Sure do, have done it on my Diecast and Plastic models store. Its not easy, but they way i did it was.... 1) Open /includes/boxes/specials.php and copy the code from it into a new page. 2) Save new page as mainspecials.php in /includes/modules/ 3) Open your index.php and create a call to your new page by doing... <?php include(DIR_WS_MODULES . FILENAME_MODULE_MAINSPECIALS); ?> 4) Edit mainspecials.php to get the look and layout of the module how you want it. I obviously dont know how good you are at coding, but you will have to play around a fair bit to get it looking how you want, i literally deleted all the infobox lines and just echo'd out the variables from the sql statement in my layout. You could also look at specials.php on the root of your store and create mainspecials.php from that, do which ever you find easier. Also, please note there may be a better way of doing the above but thats how i hacked it together short on time :) Link to comment Share on other sites More sharing options...
Guest Posted September 16, 2005 Share Posted September 16, 2005 Sure do, have done it on my Diecast and Plastic models store. Its not easy, but they way i did it was.... 1) Open /includes/boxes/specials.php and copy the code from it into a new page. 2) Save new page as mainspecials.php in /includes/modules/ 3) Open your index.php and create a call to your new page by doing... <?php include(DIR_WS_MODULES . FILENAME_MODULE_MAINSPECIALS); ?> 4) Edit mainspecials.php to get the look and layout of the module how you want it. I obviously dont know how good you are at coding, but you will have to play around a fair bit to get it looking how you want, i literally deleted all the infobox lines and just echo'd out the variables from the sql statement in my layout. You could also look at specials.php on the root of your store and create mainspecials.php from that, do which ever you find easier. Also, please note there may be a better way of doing the above but thats how i hacked it together short on time :) <{POST_SNAPBACK}> Do I call mainspecials from the English Index file or is is part of the main index.php? Like the site. What did you use to plug worldpay into the site? tnx Link to comment Share on other sites More sharing options...
Pottypotsworth Posted September 16, 2005 Share Posted September 16, 2005 Do I call mainspecials from the English Index file or is is part of the main index.php? Like the site. What did you use to plug worldpay into the site? tnx <{POST_SNAPBACK}> The include call needs to be put in the main index.php file where you want the specials module to appear. As for world pay, use this contrib... Worldpay v4 Good luck Link to comment Share on other sites More sharing options...
Pottypotsworth Posted September 16, 2005 Share Posted September 16, 2005 Forgot to add, Open /includes/filenames.php and add the following to the bottom before ?> define('FILENAME_MODULE_MAINSPECIALS', 'mainspecials.php'); Cant edit original post? Am i just being thick? Link to comment Share on other sites More sharing options...
Guest Posted September 16, 2005 Share Posted September 16, 2005 Anychance you could send me or let me have a look at your mainspecials file? im havin no luck. Ideally I just want to have maybe 4 specials in total which are sat in the middle of the homepage and possibly within a table. As with your site the description and price/saving displayed next to each. So... if I have a mainspecials file, add an 'include' to index.php and a 'define' to filenames.php.......it should all work? Link to comment Share on other sites More sharing options...
mark27uk3 Posted September 16, 2005 Share Posted September 16, 2005 Hi Lucy, Save yourself some time and use this contribution. http://www.oscommerce.com/community/contri...efault+specials Mark Lifes a bitch, then you marry one, then you die! Link to comment Share on other sites More sharing options...
Guest Posted September 16, 2005 Share Posted September 16, 2005 cool.. ill give it a try and let u all know Link to comment Share on other sites More sharing options...
Pottypotsworth Posted September 16, 2005 Share Posted September 16, 2005 So... if I have a mainspecials file, add an 'include' to index.php and a 'define' to filenames.php.......it should all work? <{POST_SNAPBACK}> Yep, but the contribution seems like a better idea for you. Had i known (or even been bothered to search) i woulda pointed you there myself. Link to comment Share on other sites More sharing options...
Guest Posted September 16, 2005 Share Posted September 16, 2005 Actually looked for a contrib like that but didnt find it. Anyway.... This has worked a treat so thank you all for helping today :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.