cemfundog Posted January 22, 2010 Share Posted January 22, 2010 Hello I need to to make a button link to a category. I am trying to figure out how I can make a button link to a specific category without logging the customer out when they click on it. I have tried using the regular oscommerce php code by setting the filename and using a php href but it logs the customer out every time they click it. Here is what I tried: <?php echo '<a href="' . tep_href_link(FILENAME_PORTABLE_CATEGORY, '', 'SSL') . '">' . tep_image_button('index_07.png', HEADER_TITLE_PORTABLE) . '</a>'; ?> and I have the filename set as: define('FILENAME_PORTABLE_CATEGORY', 'index.php?cPath=22'); I need help, thank you in advance for even looking at this. Any help would be greatly appreciated. I have searched this forum up and down for existing answers, but to no avail. Please help... Link to comment Share on other sites More sharing options...
germ Posted January 22, 2010 Share Posted January 22, 2010 Hello I need to to make a button link to a category. I am trying to figure out how I can make a button link to a specific category without logging the customer out when they click on it. I have tried using the regular oscommerce php code by setting the filename and using a php href but it logs the customer out every time they click it. Here is what I tried: <?php echo '<a href="' . tep_href_link(FILENAME_PORTABLE_CATEGORY, '', 'SSL') . '">' . tep_image_button('index_07.png', HEADER_TITLE_PORTABLE) . '</a>'; ?> and I have the filename set as: define('FILENAME_PORTABLE_CATEGORY', 'index.php?cPath=22'); I need help, thank you in advance for even looking at this. Any help would be greatly appreciated. I have searched this forum up and down for existing answers, but to no avail. Please help... Try: <?php echo '<a href="' . tep_href_link(FILENAME_PORTABLE_CATEGORY, 'cPath=22', 'SSL') . '">' . tep_image_button('index_07.png', HEADER_TITLE_PORTABLE) . '</a>'; ?> define('FILENAME_PORTABLE_CATEGORY', 'index.php'); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
cemfundog Posted January 22, 2010 Author Share Posted January 22, 2010 That worked, thank you so much for your help. My problem is solved... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.