Results 1 to 9 of 9

Shopping Cart Title - making it a link

This is a discussion on Shopping Cart Title - making it a link within the osCommerce 2.2 Discussion forums, part of the osCommerce 2.2 Forums category; Hi Can anyone tell me how to make the Shopping Cart title in the Shopping Cart Box into a link ...

      
  1. #1
    Member
    Join Date
    Apr 2009
    Posts
    57
    Rep Power
    3


    Default Shopping Cart Title - making it a link

    Hi

    Can anyone tell me how to make the Shopping Cart title in the Shopping Cart Box into a link to the shopping cart itself like the link (2) items. I have found the code where it places the title:

    new infoBoxHeading($info_box_contents, false, true, tep_href_link(FILENAME_SHOPPING_CART));

    in Shopping_cart.php but how to make this into a link

    THanks

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    Default Re: Shopping Cart Title - making it a link

    tep_href_link(FILENAME_SHOPPING_CART)
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  3. #3
    Member
    Join Date
    Apr 2009
    Posts
    57
    Rep Power
    3


    Default Re: Shopping Cart Title - making it a link

    Ok - not a php programmer but know code a little bit.

    new infoBoxHeading($info_box_contents, false, true, tep_href_link(FILENAME_SHOPPING_CART));

    This line which I found doesn't make it a link so what do I do with the tep_href_link(FILENAME_SHOPPING_CART) you mentioned.

    Cheers

  4. #4
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    Default Re: Shopping Cart Title - making it a link

    HUM....

    Link in php code:
    PHP Code:
    tep_href_link(FILENAME_SHOPPING_CART
    Or inline HTML inside a php file:
    HTML Code:
    <?php tep_href_link(FILENAME_SHOPPING_CART) ?>

    Maybe you need to describe what you have done or want to do...
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  5. #5
    Member
    Join Date
    Apr 2009
    Posts
    57
    Rep Power
    3


    Default Re: Shopping Cart Title - making it a link

    At the moment the Shopping Cart Box has the heading Shopping Cart - I want this to be a link to the shopping cart page. The line

    new infoBoxHeading($info_box_contents, false, true, tep_href_link(FILENAME_SHOPPING_CART));

    is what I found shows the heading SHopping Cart but currently it does not link to anything and I am not familiar with php code enough to know how to turn it into a link. Whats the false, true, bit - it has the tep_href_link part which I assume should convert something to a link but it isn't

  6. #6
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    Default Re: Shopping Cart Title - making it a link

    Please explain what link and WHERE and the purpose of doing so....

    Simple edit the template you want to change and put a simple HTML href of www.yoursite.com/catalog should do.... or in php use what I quoted.

    I don't know what true/false has to do with a LINK.

    The above code you quote is to generate an INFOBOXHEADING and it is not a simple "link" it does however includes a LINK...
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  7. #7
    Member
    Join Date
    Apr 2009
    Posts
    57
    Rep Power
    3


    Default Re: Shopping Cart Title - making it a link

    It is the infoboxheading I want to make a link - so the infoboxheading "Shopping Cart" should be clickable and take the user to the shopping cart page even if it is empty.

  8. #8
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,428
    Rep Power
    48


    Smile Re: Shopping Cart Title - making it a link

    Huski,

    One way to do this would be to create a box template for the shopping_cart and place an image as the infoboxheader with a link around it.

    Search for michael's post on how to custom styled infoboxes.

    Hope this helps,
    pgmarshall
    _______________________________

  9. #9
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,428
    Rep Power
    48


    Thumbs up Re: Shopping Cart Title - making it a link

    Huski,

    Could you use the Thanks button in the bottom right hand corner of the posts rather than posting a response to say thanks?



    It is just that I keep an eye on all the threads which I have posted on to see if there are any further questions / help needed ... and when I open them I see it is someone saying thanks!

    Don't get me wrong it is very kind of you to say thank you - not everyone does - but if you could use the button it would save me from opening threads that do not require any attention.

    Here endith the lesson!

    Regards,
    pgmarshall
    _______________________________

Similar Threads

  1. Clear Cart Button In Shopping Cart
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 08-17-2008, 11:12 PM
  2. Editing info box link title text
    By whooven in forum osCmax v1.7 Discussion
    Replies: 5
    Last Post: 08-01-2007, 07:06 AM
  3. Link in Box Title
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 02-12-2007, 10:02 PM
  4. Making InfoBox Heading a link?
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 04-19-2004, 12:59 PM
  5. Continue Shopping link on pages.....
    By mskitti in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 09-26-2003, 06:38 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
  •