Results 1 to 4 of 4

linking to index.htm

This is a discussion on linking to index.htm within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; Hello again...I am working on html page and planning to have it as the home page. I figured out that ...

      
  1. #1
    Active Member
    Join Date
    Nov 2003
    Posts
    120
    Rep Power
    0


    Default linking to index.htm

    Hello again...I am working on html page and planning to have it as the home page. I figured out that it wont be a problem. however, when a customer finishes a purchase he is directed to index.php. how can I direct the customer to index.htm instead.

    Also,in general , is it possible to intergrate html pages into the cart.
    Thank you for your help...you guys are great!
    Christy

  2. #2
    Anonymous
    Guest


    Default

    The OUTPUT DISPALY of ALL PHP files is ALWAYS HTML.....

    Adding HTML is not that hard to a php page - insert into the code out side of the <?php ... ?> tags - or add your own break

    ie:

    $Somephpcode = somephpfuction($someothercode);
    /* begin adding your HTML - after this line */ ?>
    <b>This is My HTML code to be displayed!</b> I hope you like it. <br>
    <?php // Add code above this line
    #Contunuemorephpcode = #somotherphpcodeect;


    ps:
    /* this is a php inline comment code after or before will be processes */
    // this is a line comment - only code before the slashes will be processed - the balance will be ignored....

    PSS - I posted this - jpf

  3. #3
    Anonymous
    Guest


    Default

    I think I wasnt clear.... I wasnt talking about adding html content to a php page....I wanted to know if an exclusively html page could be integrated with oscommerce...
    Thanks

  4. #4
    Lurker
    Join Date
    Nov 2003
    Posts
    4
    Rep Power
    0


    Default

    Absolutely. But you do need to use internal HTML to link to it. In the appropriate template file, outside of the <?....?> tags, use a normal link tag (i.e. <a href="http://www.spicerules.com">...</a>) and point to any HTML file. In fact, if you view the source of any osCommerce page, you could copy and paste it into a file and treat it as normal HTML. However, every time you changed a category or product or whatever, you would need to update the html file. That is, after all, why we use PHP in the first place.

    Spice

Similar Threads

  1. Linking an external product to store.
    By deviantla in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 03-15-2006, 01:42 AM
  2. Having problems linking images to products
    By SDancer in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 12-04-2004, 06:49 PM
  3. Linking to Categories from index.htm
    By billybeag in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 02-25-2004, 06:16 AM
  4. linking issues
    By Dumb_Question in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 12-28-2003, 07:28 PM
  5. Linking order number to cc transation.
    By seanrice in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-08-2003, 01:00 PM

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
  •