Results 1 to 2 of 2

Linking to Categories from index.htm

This is a discussion on Linking to Categories from index.htm within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; "Hi All, I have trouble linking the categories to their respective products....What I mean is that I have a bunch ...

      
  1. #1
    New Member
    Join Date
    Feb 2004
    Posts
    5
    Rep Power
    0


    Default Linking to Categories from index.htm

    "Hi All,
    I have trouble linking the categories to their respective products....What I mean is that I have a bunch of links on the index page (Baby,Kids,Boys,Girls,New Born etc).Now,how do I link the Kids category when I click on Kids on the navigation bar?I see that some of the sites have cpath=21, index.php?cPath=22 etc...How would I do that?

    Thanks and Regards
    Whazzy "

    msasek replied
    "It is pretty easy. Just navigate to the page you want to link to in osCommerce and copy the url out of the address bar in your browser. Then use that to link to the page. Make sure you remove the session ID from the link though."

    I couldn't believe how easy it was, I was trying to setup queries in dreamweaver......
    What I did notice after I had previewed the page was that with the session id stripped you were basically left with the category number from the Categories table on the database.
    You can easily find what the category numbers are by browsing the categories table.

    (i already had a list, having set them up in the admin first. I have read the pertinent manuals and read me's now . thanks Mike)

    To link to sub categories, just suffix the (put on the end of) Uri with /index.php?cpath=categorynumber_subcategory number.
    So this would take the form of
    Http://www.isthatgeezer_an_eejit_orw...hp?cpath=32_39

    Mike's explanation was excellently simple, but I had quite a few categories to link in that fashion and yegods! It was taking ages....

    Hope this helps,
    Billy

  2. #2
    New Member
    Join Date
    Feb 2004
    Posts
    5
    Rep Power
    0


    Default

    oops that has come up as a link. Just my Scottish humour :O)

Similar Threads

  1. Want to show categories AND sub categories in index.php!!
    By calle in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-27-2004, 12:51 PM
  2. linking issues
    By Dumb_Question in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 12-28-2003, 07:28 PM
  3. linking to index.htm
    By Christy in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 11-21-2003, 06:06 PM
  4. how to link categories from the index page?
    By whazzy in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 10-31-2003, 08:30 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
  •