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

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

      
  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    34
    Rep Power
    0


    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 Attached Images
    Last edited by jpf; 07-05-2007 at 05:36 PM. Reason: Added [php] [/php] -for readablity

  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: 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 - 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. Xsell Module/contribution
    By bitznbytes in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 06-03-2007, 08:18 AM
  2. Email problem on webmail n aslo cupons problem
    By jikey in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 10-25-2006, 11:43 PM
  3. How to display "special price" in Xsell displeyed
    By stando007 in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 01-19-2005, 05:34 AM
  4. xsell on linux?
    By rogue in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 09-27-2004, 01:50 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
  •