MEDIAZONE Posted July 25, 2006 Share Posted July 25, 2006 Hi All I am setting up a DVD Store. I need the ability to be able to specify which products show into list forms in the right hand column. For example NEW RELEASES 1. NAME 2. NAME 3. NAME 4. NAME 5. NAME 6. NAME 7. NAME 8. NAME 9. NAME 10. NAME COMING SOON 1. NAME 2. NAME 3. NAME 4. NAME 5. NAME 6. NAME 7. NAME 8. NAME 9. NAME 10. NAME Does anyone know if a contribution is available to achieve this or anyone point me in the direction of how i can go ahead and achieve this. I have search the contribs but nothing came up Many Thanks Simon Your Media Zone Remember to ALWAYS BACKUP Life is like box of chocs - You never know what your gonna get! Do you feel lucky punk? Well do ya! P-A-R-T WHY COS I GOTTA! Link to comment Share on other sites More sharing options...
Jan Zonjee Posted July 25, 2006 Share Posted July 25, 2006 I need the ability to be able to specify which products show into list forms in the right hand column. What about including a file in the right hand column which is nothing more than a pure, plain vanilla HTML file with that box (that you edit manually)? Link to comment Share on other sites More sharing options...
MEDIAZONE Posted July 25, 2006 Author Share Posted July 25, 2006 What about including a file in the right hand column which is nothing more than a pure, plain vanilla HTML file with that box (that you edit manually)? i did think of that but didnt know how to code it to call the file Many Thanks Simon Your Media Zone Remember to ALWAYS BACKUP Life is like box of chocs - You never know what your gonna get! Do you feel lucky punk? Well do ya! P-A-R-T WHY COS I GOTTA! Link to comment Share on other sites More sharing options...
Jan Zonjee Posted July 25, 2006 Share Posted July 25, 2006 i did think of that but didnt know how to code it to call the file One way of doing it is adding a file to includes/boxes, for the sake of argument call it productinfo.phpThen that file could be: <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td> <?php $productinfo_box_contents = array(); $productinfo_box_contents[] = array('text' => BOX_PRODUCTINFORMATION); new infoBoxHeading($productinfo_box_contents, false, false); // next line re-defines the array to get rid of BOX_HEADING_INFORMATION $productinfo_box_contents = array(); $productinfo_box_string = '<ol class="might_need_to_define_one"><li><a href="'. tep_href_link('product_info.php', 'products_id=32').'"> Product 1</a></li>' . '<li><a href="'. tep_href_link('product_info.php', 'products_id=442').'"> Product 3</a></li>' . '<li><a href="'. tep_href_link('product_info.php', 'products_id=21').'"> Product 4</a></li></ol>'; $productinfo_box_contents[] = array('align' => 'left', 'text' => $productinfo_box_string ); new infoBox($productinfo_box_contents); ?> </td> </tr> </table> </td> </tr> Of course the define for BOX_PRODUCTINFORMATION was put somewhere, in this case includes/languages/english.php: define('BOX_PRODUCTINFORMATION', 'Product information'); and you insert the file by adding it to your column_right.php with: require(DIR_WS_BOXES . 'productinfo.php'); If you don't need the links that preserve osCsid's you can use plain HTML instead. Link to comment Share on other sites More sharing options...
MEDIAZONE Posted July 25, 2006 Author Share Posted July 25, 2006 One way of doing it is adding a file to includes/boxes, for the sake of argument call it productinfo.phpThen that file could be: <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td> <?php $productinfo_box_contents = array(); $productinfo_box_contents[] = array('text' => BOX_PRODUCTINFORMATION); new infoBoxHeading($productinfo_box_contents, false, false); // next line re-defines the array to get rid of BOX_HEADING_INFORMATION $productinfo_box_contents = array(); $productinfo_box_string = '<ol class="might_need_to_define_one"><li><a href="'. tep_href_link('product_info.php', 'products_id=32').'"> Product 1</a></li>' . '<li><a href="'. tep_href_link('product_info.php', 'products_id=442').'"> Product 3</a></li>' . '<li><a href="'. tep_href_link('product_info.php', 'products_id=21').'"> Product 4</a></li></ol>'; $productinfo_box_contents[] = array('align' => 'left', 'text' => $productinfo_box_string ); new infoBox($productinfo_box_contents); ?> </td> </tr> </table> </td> </tr> Of course the define for BOX_PRODUCTINFORMATION was put somewhere, in this case includes/languages/english.php: define('BOX_PRODUCTINFORMATION', 'Product information'); and you insert the file by adding it to your column_right.php with: require(DIR_WS_BOXES . 'productinfo.php'); If you don't need the links that preserve osCsid's you can use plain HTML instead. The Beatles come in to my head singing "Get by with a little help from my friends" Many thanks that is exactly what i wanted AWESOME Many Thanks Simon Your Media Zone Remember to ALWAYS BACKUP Life is like box of chocs - You never know what your gonna get! Do you feel lucky punk? Well do ya! P-A-R-T WHY COS I GOTTA! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.