This is a discussion on How do you retain Session/Product ID in Standard HTML site within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Does anybody know how I would attach the Session ID to a new link that I have created? I have ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Does anybody know how I would attach the Session ID to a new link that I have created? I have built a site outside of oscommerce's site and I want this site to be able to reference the same Session ID that the OScommerce would reference. I should be able to link it, but have not been able to find out how to add it to a link as the original design uses several different modules and php files to accomplish this, and I am trying to accomplish this on one php page. Is this possibble? |
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| After lots of searching I came up with this so far and it works. <a href="<?php echo tep_href_link(FILENAME_INTRO, '', 'SSL'); ?>" ><?php echo ENTER; ?> I had to define the new link's target page intro.php) in the filename.php file for some of you who didn't know you had to do that. So now here's the problem. It allows me to have a new link on a pagewhich adds the session id to the links url. Now that I am here, how do I make this link use an image instead of using ENTER as the link.. Anybody...Anybody... |
|
#3
| |||
| |||
| Wow, trial and error really sucks. I must have tried 20+ different ways until I got it to work. Hopefully I can get it to work on all of my pages properly. |
|
#4
| |||
| |||
| feel free to share... thats how we all learn till someone makes a post |
|
#5
| |||
| |||
| Here is the code I used. It worked perfectly. Not that hard, but I'm new to the OSCommerce & PHP. Since I'm now, I really can't explain it in terms that are understandable yet. Ill leave that for the more experienced. <a href="<?php echo tep_href_link(FILENAME_PRODUCT_MEN, '', 'SSL'); ?>" ><?php echo tep_image_button('product_men_off.gif'); ?></a> Based on this code, PRODUCT_MEN has to be defined in your INCLUDES/filename.php file The image file product_men_off.gif is uploaded in the INCLUDES/LANGUAGES/ENGLISH/IMAGES/BUTTONS folder |
|
#6
| |||
| |||
| Now I've ran into another problem. Is it possible to put a product ID on a product statically instead of dynamically. I have to put the product ID from the OSCommerce site on all my product pages in my standard html site. If anyone has dealt with adding a product ID's to a custom web pages project, please post up. Just to be clear on what I am doing, I have built a custom website from the ground up. Now they want a shopping cart added, but the OSCommerce is not the type of look I am interested in. I want it to look loke an ordinary site, but have the functionality of the OSCommerce built in. Take a look if you need more info on what I am trying to accomplish. www.hugahater.com/catalog/intro.php |
|
#7
| |||
| |||
| Solved it again. 8 hours later. Guess I had to just sleep on it. |
|
#8
| |||
| |||
| |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HTML editor above product description field disapeared | winkscustoms | osCMax v1.7 Discussion | 5 | 06-17-2005 07:36 PM |
| Question about Product Details and Fonts/html | mnpolock | osCMax v1.7 Discussion | 1 | 02-16-2005 07:30 AM |
| I need to use html code when writing product description!! | Robzz | osCommerce 2.2 Installation Help | 1 | 02-07-2005 03:14 AM |
| Can you add html tags for font to the product description | mnpolock | osCMax v1.7 Discussion | 4 | 01-31-2005 03:09 PM |
| SSL Errors, Session Cookie, Session Cache, NOVICE Problems? | hanool | osCommerce 2.2 Modification Help | 1 | 09-07-2003 11:49 AM |