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

A 2nd Products_URL -- not opening in new window

This is a discussion on A 2nd Products_URL -- not opening in new window within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Per a client request: I managed to successfully create a second PRODUCTS_URL field called products_url2 mySQL table was updated, and ...

      
  1. #1
    New Member
    Join Date
    Mar 2005
    Location
    Prescott Arizona
    Posts
    5
    Rep Power
    0


    Default A 2nd Products_URL -- not opening in new window

    Per a client request:

    I managed to successfully create a second PRODUCTS_URL field called products_url2

    mySQL table was updated, and the admin categories.php was also modified.

    I created a new product and used the admin to load it in, with the two urls.

    I am getting success until the very last part.

    I can see both of the product_url links in a product page,
    I can see that both of the urls I inserted into the product are showing up in the source code:

    ---------------------------------------------
    THE PROBLEM

    Although the first link functions properly, the second product_url link will not open in a new window ... when clicked upon, it opens the homepage of the store, not the link -- HOWEVER the proper link ... in this case "www.yahoo.com" is called in ...


    WHAT AM I MISSING !!!

    Double Link Test - $1.00

    (I have echoed the URLs that are getting called in from the database for help solving this issue



    < ! -- CURRENTLY THE CODE FROM THE SAMPLE LINK ABOVE ----

    PHP Code:
    if (tep_not_null($product_info['products_url'])) {
    ?>
          <tr>
            <td class="main"><?php echo sprintf(TEXT_MORE_INFORMATIONtep_href_link(FILENAME_REDIRECT'action=url&goto=' urlencode($product_info['products_url']), 'NONSSL'truefalse)); ?> php echo of link --> <?php echo $product_info['products_url']; ?></td>
          </tr>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif''100%''10'); ?></td>
          </tr>
    <?php
        
    }

    < ! -- HERES THE CODE THAT I ADDED ----

    PHP Code:
    if (tep_not_null($product_info['products_url2'])) {
    ?>
          <tr>
            <td class="main">
            
            <?php echo sprintf(TEXT_MORE_INFORMATIONtep_href_link(FILENAME_REDIRECT'action=url&goto=' urlencode($product_info['products_url2']), 'NONSSL'truefalse)); ?></td>
          </tr>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif''100%''10'); ?> php echo of link --> <?php echo $product_info['products_url2']; ?></td>
          </tr>
    <?php
        
    }

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


    Default Re: A 2nd Products_URL -- not opening in new window

    Did you update all the SQL statements for when viewing/searching/adding/updating/deleting products?

    There is instruction on adding extra feilds into products - (like ISBN numbers - or in this case a second URL) - Did you follow the instructions?
    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!

Similar Threads

  1. Error opening admin/customers.php for editing
    By kenlyle in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 04-25-2006, 12:12 PM
  2. Mopics Window Resize over 'close window' text
    By ericcech in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 03-08-2006, 06:42 PM
  3. Banner Manager not opening in admin - please help
    By sulqk in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 12-27-2004, 08:50 AM
  4. Failed opening required...
    By webmissie in forum osCommerce 2.2 Installation Help
    Replies: 6
    Last Post: 12-24-2003, 06:11 AM
  5. OsCommerce Modification: How to Change Opening heading?
    By someone in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 11-25-2002, 07:16 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
  •