osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-09-2009, 08:37 PM
New Member
 
Join Date: Mar 2005
Location: Prescott Arizona
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jerryz
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
    
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 03-16-2009, 08:11 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Error opening admin/customers.php for editing kenlyle osCMax v2 Customization/Mods 1 04-25-2006 12:12 PM
Mopics Window Resize over 'close window' text ericcech osCommerce 2.2 Modification Help 0 03-08-2006 06:42 PM
Banner Manager not opening in admin - please help sulqk osCommerce 2.2 Installation Help 3 12-27-2004 08:50 AM
Failed opening required... webmissie osCommerce 2.2 Installation Help 6 12-24-2003 06:11 AM
OsCommerce Modification: How to Change Opening heading? someone osCommerce 2.2 Modification Help 3 11-25-2002 07:16 AM


All times are GMT -8. The time now is 04:28 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design