techgoddess Posted June 12, 2009 Share Posted June 12, 2009 I want to add a session enabled link to a new product page. I've followed the instructions on the Tips & Tricks section [http://www.oscommerce.info/kb/osCommerce/General_Information/Tips_and_Tricks/252] and even just copied and pasted the links from the article into my Product Description area under Admin/New Product and still it does not work. I've tried with PHP tags on and off, nothing. I type in this <?php <p align="center"><a href="' . tep_href_link(FILENAME_BUY_ADDITIONAL_IMAGES) .'">(Click here to add more pictures to your listing.);</a></p> ?> but what shows in the preview is this: " (Click here to add more pictures to your listing.); ?> " Suggestions or at least someone just informing me that it can't be done appreciated. Link to comment Share on other sites More sharing options...
spooks Posted June 12, 2009 Share Posted June 12, 2009 invalid construction, missing quotes, missing echo http://www.oscommerce.com/forums/index.php?sho...c=330479&hl Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
techgoddess Posted June 12, 2009 Author Share Posted June 12, 2009 Yeah but I also tried all four of the following which are from osc tips and tricks and I wouldn't think the following could have errors. <?php echo '<p><a href="' . tep_href_link('product_info.php', 'cPath=1&products_id=1') . '"><img src="images/graphic.jpg" alt="Graphic" name="graphic_name" width="66" height="100" border="0" id="graphic_name"></a></p>'; ?> <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'graphic.jpg', 'graphic text') . '</a>'; ?> <?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT) . '">' . 'CHECKOUT' . '</a>'; ?> <a href="<?php echo tep_href_link(FILENAME_CHECKOUT, '', 'SSL'); ?>" class="links"><?php echo HEADER_TITLE_CHECKOUT; ?></a> I suspect the problem has something to do with the "admin/product description" section. I don't know osc well enough to figure out how the data is pulled from admin/product description and then added to the page. Maybe it's just a straight txt entry without any type of formatting (html or php) though I would think adding the php tags should be enough. I can make session links on a straight *.php page but no matter what I try, it doesn't want to create a link in the descriptions area. I'm sure I'm just missing something. Thanks for taking a stab at it. P.S. GREAT link you provided. I was trying to figure out how to keep the session alive when moving to a different area of my website that was NOT osC and I just found the answer there. invalid construction, missing quotes, missing echo Link to comment Share on other sites More sharing options...
♥toyicebear Posted June 12, 2009 Share Posted June 12, 2009 Embed Link with SID in Description Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
techgoddess Posted June 12, 2009 Author Share Posted June 12, 2009 YAY!! This worked. Not only did it work but it was super simple. I knew it had to do with the information from the area of the admin/product description accepting only html or something like that. I did forget that that information was pulled from the database. There was also clear explanations which is always appreciated. I heard somewhere that one of the definitions of insanity it to do the same thing/action over and over and still expect different results. I was absolutely in a moment of insanity (ha-ha). I was so perplexed that I kept entering in the same information expecting it to eventually work. Thanks for saving my mental stability...for now. *smile* Embed Link with SID in Description Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.