osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Xsell problem: TEXT_BUY -- productname -- TEXT_NOW

This is a discussion on Xsell problem: TEXT_BUY -- productname -- TEXT_NOW within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; (see attached) I have searched the forums. Used clean install files. Troubleshooted to the hilt and still cannot see why ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 06-28-2007, 03:52 PM
Member
 
Join Date: Jan 2007
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ashelleydesign is on a distinguished road
Default Xsell problem: TEXT_BUY -- productname -- TEXT_NOW

(see attached)
I have searched the forums. Used clean install files. Troubleshooted to the hilt and still cannot see why this is happening...

NEED HELP PLEASE AND THANKS IN ADVANCE! ANGIE

Example:
TEXT_BUYTurquoise Floral DressTEXT_NOW

XSELL_PRODUCTS.PHP *CLEAN INSTALL* CODE:
PHP Code:
<?php
/* 
$Id: xsell_products.php 12 2006-06-22 04:10:28Z user $

osCMax Power E-Commerce 
<http://oscdox.com> 

Copyright 2006 osCMax2005 osCMax, 2002 osCommerce 

Released under the GNU General Public License 
*/ 

if ($HTTP_GET_VARS['products_id']) { 
$xsell_query tep_db_query("select distinct p.products_id, p.products_image, pd.products_name, p.products_tax_class_id, products_price from " TABLE_PRODUCTS_XSELL " xp, " TABLE_PRODUCTS " p, " TABLE_PRODUCTS_DESCRIPTION " pd where xp.products_id = '" $HTTP_GET_VARS['products_id'] . "' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" $languages_id "' and p.products_status = '1' order by xp.sort_order asc limit " MAX_DISPLAY_ALSO_PURCHASED);
$num_products_xsell tep_db_num_rows($xsell_query); 
if (
$num_products_xsell >= MIN_DISPLAY_ALSO_PURCHASED) { 
?> 
<!-- xsell_products //-->
<?php
      $info_box_contents 
= array();
      
$info_box_contents[] = array('align' => 'left''text' => TEXT_XSELL_PRODUCTS);
      new 
contentBoxHeading($info_box_contents);

      
$row 0;
      
$col 0;
      
$info_box_contents = array();
      while (
$xsell tep_db_fetch_array($xsell_query)) {
 

        
$xsell['specials_new_products_price'] = tep_get_products_special_price($xsell['products_id']); 

if (
$xsell['specials_new_products_price']) { 
      
$xsell_price =  '<s>' $currencies->display_price($xsell['products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])) . '</s><br>'
      
$xsell_price .= '<span class="productSpecialPrice">' $currencies->display_price($xsell['specials_new_products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])) . '</span>'
    } else { 

      
$xsell_price =  $currencies->display_price($xsell['products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])); 
      
    } 
        
$info_box_contents[$row][$col] = array('align' => 'center',
                                               
'params' => 'class="smallText" width="33%" valign="top"',
                                               
'text' => '<a href="' tep_href_link(FILENAME_PRODUCT_INFO'products_id=' $xsell['products_id']) . '">' tep_image(DIR_WS_IMAGES $xsell['products_image'], $xsell['products_name'], SMALL_IMAGE_WIDTHSMALL_IMAGE_HEIGHT) . '</a><br><a href="' tep_href_link(FILENAME_PRODUCT_INFO'products_id=' $xsell['products_id']) . '">' $xsell['products_name'] .'</a><br>' $xsell_price'<br><a href="' tep_href_link(FILENAME_DEFAULTtep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' $xsell['products_id'], 'NONSSL') . '">' tep_image_button('button_buy_now.gif'TEXT_BUY $xsell['products_name'] . TEXT_NOW) .'</a>');
        
$col ++;
        if (
$col 2) {
          
$col 0;
          
$row ++;
        }
      }
      new 
contentBox($info_box_contents);
?>
<!-- xsell_products_eof //-->




<?php
    
}
  }
?>
Attached Images
File Type: jpg xsellissue.jpg (33.8 KB, 4 views)

Last edited by jpf; 07-05-2007 at 06:36 PM. Reason: Added [php] [/php] -for readablity
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 07-05-2007, 06:42 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default Re: Xsell problem: TEXT_BUY -- productname -- TEXT_NOW

Any time you see SOME_TEXT_LIKE_THIS mean your missing a language file or entry in that file.

In your English language directory look for xsell_products.php and look for TEXT_BUY and TEXT_NOW

Seaming how that this file only had these two entries - I would guess the file might be missing - re-FTP the file up to your site again.

Good Luck!
__________________
JPF - osCMax Fourm Moderator
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!
Reply With Quote
Sponsored Links
Advertisement
Reply

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
Xsell Module/contribution bitznbytes osCommerce 2.2 Modification Help 1 06-03-2007 09:18 AM
Email problem on webmail n aslo cupons problem jikey osCMax v2 Installation issues 0 10-26-2006 12:43 AM
How to display "special price" in Xsell displeyed stando007 osCMax v1.7 Discussion 0 01-19-2005 06:34 AM
xsell on linux? rogue osCMax v1.7 Discussion 1 09-27-2004 02:50 PM


All times are GMT -8. The time now is 03:10 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax