osCmax v2.5 User Manual
Results 1 to 8 of 8

How do you retain Session/Product ID in Standard HTML site

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 ...

      
  1. #1
    New Member
    Join Date
    Nov 2004
    Posts
    7
    Rep Power
    0


    Default How do you retain Session/Product ID in Standard HTML site

    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?

  2. #2
    New Member
    Join Date
    Nov 2004
    Posts
    7
    Rep Power
    0


    Default Almost

    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. #3
    New Member
    Join Date
    Nov 2004
    Posts
    7
    Rep Power
    0


    Default

    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. #4
    New Member
    Join Date
    Jul 2004
    Posts
    19
    Rep Power
    0


    Default

    feel free to share...
    thats how we all learn till someone makes a post

  5. #5
    New Member
    Join Date
    Nov 2004
    Posts
    7
    Rep Power
    0


    Default

    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. #6
    New Member
    Join Date
    Nov 2004
    Posts
    7
    Rep Power
    0


    Default

    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. #7
    New Member
    Join Date
    Nov 2004
    Posts
    7
    Rep Power
    0


    Default

    Solved it again. 8 hours later. Guess I had to just sleep on it.

  8. #8
    Member
    Join Date
    May 2005
    Location
    Berkshire, UK
    Posts
    56
    Rep Power
    0

Similar Threads

  1. HTML editor above product description field disapeared
    By winkscustoms in forum osCmax v1.7 Discussion
    Replies: 5
    Last Post: 06-17-2005, 07:36 PM
  2. Question about Product Details and Fonts/html
    By mnpolock in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 02-16-2005, 07:30 AM
  3. I need to use html code when writing product description!!
    By Robzz in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 02-07-2005, 03:14 AM
  4. Can you add html tags for font to the product description
    By mnpolock in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 01-31-2005, 03:09 PM
  5. SSL Errors, Session Cookie, Session Cache, NOVICE Problems?
    By hanool in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 09-07-2003, 11:49 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •