leismeister Posted November 14, 2008 Share Posted November 14, 2008 After mashing and bashing my site to get it to look like I want it I am starting to tweak it... :blink: huh.gif One of the things I'm trying to find out is if there is a way to create a link to (all categories, all products) in database besides using the categories box. MY LINK ---->goes/displays either all categories or all products depending on link Any help would be great? Is this possible? I did a search for this and it did not turn up much. Link to comment Share on other sites More sharing options...
♥kymation Posted November 15, 2008 Share Posted November 15, 2008 There is a Contribution for an All Products page. I'm not aware of one for categories though. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
leismeister Posted November 17, 2008 Author Share Posted November 17, 2008 After mashing and bashing my site to get it to look like I want it I am starting to tweak it... :blink: huh.gif One of the things I'm trying to find out is if there is a way to create a link to (all categories, all products) in database besides using the categories box. MY LINK ---->goes/displays either all categories or all products depending on link Any help would be great? Is this possible? I did a search for this and it did not turn up much. Hey, would it work if I copy the link from browser from the and create the link that way? such as http://localhost/oscommerce2-2.2rc2a/catalog/index.php?osCsid=ae3577a27cb1360cdba89fb3827eba1b It seems to work for me but I am on localhost...would it work live? Link to comment Share on other sites More sharing options...
♥kymation Posted November 17, 2008 Share Posted November 17, 2008 No, that's very dangerous. You've includec a sid in your link (the part that looks like this) osCsid=ae3577a27cb1360cdba89fb3827eba1b That is supposed to be a unique identifier. Including it in a link can comingle customer's carts, allow a customer to see another's private data, etc. If you want to create a link, use the osCommerce tep_href_link() function. Your link would look like this: <?php echo '<a href="' . tep_href_link (FILENAME_DEFAULT) . '">'; ?> Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
leismeister Posted November 18, 2008 Author Share Posted November 18, 2008 Thanks Jim. For the info!!!! I will try that. Link to comment Share on other sites More sharing options...
leismeister Posted November 18, 2008 Author Share Posted November 18, 2008 Yes this works but it took me a few minutes to figure out that I need text 'YOUR LINK' in the php <?php echo '<a href="' . tep_href_link (FILENAME_DEFAULT) . '">YOUR LINK'; ?> I actually used image <?php echo '<a href="' . tep_href_link (FILENAME_DEFAULT) . '">'; ?><img src="YOUR IMAGE"></a> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.