timinark Posted December 6, 2005 Posted December 6, 2005 Hi all! I want to add ordering instructions to a number ( not all ) of my products. It seems that the easiest way to do that would be an include of some sort, but I have no idea how. Then I would really like it if I could put it in some sort of box. I attempted this with a stylesheet entry like this <style type="text/css"> order { border: thin solid aqua; background: aqua; } But that didn't work. Could anybody point me in the right direction? Thanks Tim
cczernia Posted December 6, 2005 Posted December 6, 2005 Hi all! I want to add ordering instructions to a number ( not all ) of my products. It seems that the easiest way to do that would be an include of some sort, but I have no idea how. Then I would really like it if I could put it in some sort of box. I attempted this with a stylesheet entry like this <style type="text/css"> order { border: thin solid aqua; background: aqua; } But that didn't work. Could anybody point me in the right direction? Thanks Tim I would just stick it the direction in the product description. To get the stylesheet to work stick it in catalog/stylesheet.css Add this to the stylesheet: .order { border: thin solid aqua; background: aqua; } In the description under the direction add the stylesheet like this: <div class="order"> Your directions here </div> Or if you want to use tables: <table class="order"> <tr> <td>Your directions here </td> </tr> </table> Shade and Sweet Water Chris Czerniak
timinark Posted December 6, 2005 Author Posted December 6, 2005 I would just stick it the direction in the product description. To get the stylesheet to work stick it in catalog/stylesheet.css Add this to the stylesheet: .order { border: thin solid aqua; background: aqua; } In the description under the direction add the stylesheet like this: <div class="order"> Your directions here </div> Or if you want to use tables: <table class="order"> <tr> <td>Your directions here </td> </tr> </table> Chris, That is awesome, thanks. Now how can I make this an include so that I can just insert the include reference instead of the entire file? I did it the wrong way, first ( lazy newbie ) and now will be forced to change 400 descriptions. I don't want to make the same mistake again. I hope I have used the correct terminology Tim
cczernia Posted December 6, 2005 Posted December 6, 2005 Chris, That is awesome, thanks. Now how can I make this an include so that I can just insert the include reference instead of the entire file? I did it the wrong way, first ( lazy newbie ) and now will be forced to change 400 descriptions. I don't want to make the same mistake again. I hope I have used the correct terminology Tim I'm not sure. I don't think you can stick php in the sql database (but I'm not sure). You can try the easy populate contributions to update you catalog quickly. Shade and Sweet Water Chris Czerniak
timinark Posted December 6, 2005 Author Posted December 6, 2005 I'm not sure. I don't think you can stick php in the sql database (but I'm not sure). You can try the easy populate contributions to update you catalog quickly. No I need to produce one " Instructions" section and insert it into my products page. Instead of pasting the text 400 times I could just include the reference and be able to modify the actual text at will. The instructions are just text. Tim
cczernia Posted December 6, 2005 Posted December 6, 2005 No I need to produce one " Instructions" section and insert it into my products page. Instead of pasting the text 400 times I could just include the reference and be able to modify the actual text at will. The instructions are just text. Tim Ok, back up everything. Try this. Create a file called catalog/directions.php and just put the directions there. Make the changes to catalog/stylesheet.css In catalog/product_info.php toward the bottom find <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> Right ABOVE it add <td class=orders> <?php> require('directions.php'); </?> I haven't tested this so again, make sure you back up product_info.php Shade and Sweet Water Chris Czerniak
timinark Posted December 7, 2005 Author Posted December 7, 2005 Ok, back up everything. Try this. Create a file called catalog/directions.php and just put the directions there. Make the changes to catalog/stylesheet.css In catalog/product_info.php toward the bottom find <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> Right ABOVE it add <td class=orders> <?php> require('directions.php'); </?> I haven't tested this so again, make sure you back up product_info.php Okay, I see how this would work for every item, but how can I be selective. I have a good percentage that this wouldn't apply to. Thanks again Tim
cczernia Posted December 7, 2005 Posted December 7, 2005 Okay, I see how this would work for every item, but how can I be selective. I have a good percentage that this wouldn't apply to. Thanks again Tim No, this only works for one set of directions. I don't know if there is a contribution that allows you to append to the product description. If you want to update a bunch of description quickly I recommend "easy populate." Shade and Sweet Water Chris Czerniak
timinark Posted December 7, 2005 Author Posted December 7, 2005 No, this only works for one set of directions. I don't know if there is a contribution that allows you to append to the product description. If you want to update a bunch of description quickly I recommend "easy populate." Okay, One last thing I am having a little problem with CSS and IE 6 If you look at example you will see that my box does not come all the way across. I want it to stop before it gets to the picture. I tried a fixed width, but it covered the picture and I tried a % which looks great in Safari but looks like it does on IE. I tried different padding, but can't quite get there. Here is my CSS .order { border: thin solid black; background: aqua; margin-left: 5px; font-size: 10px; padding-left: 5px; padding-right: 5px; width: 75%; } Sorry to be such a bother. I really appreciate the help. Tim
cczernia Posted December 8, 2005 Posted December 8, 2005 .order {border: thin solid black; background: aqua; margin-left: 5px; font-size: 10px; padding-left: 5px; padding-right: 5px; width: 75%; } Sorry to be such a bother. I really appreciate the help. Tim Not sure. I can tell you it looks fine on IE for PC but looks wierd is longer on netscape. However, on Netscape it isn't going to the edge, it looks like it is 1/4 of the way from edge outside the image. Try and extreme width, like 20% and see what happens on the two different browsers. It that fails you there is always table :P Shade and Sweet Water Chris Czerniak
Recommended Posts
Archived
This topic is now archived and is closed to further replies.