Closed Thread
Results 1 to 10 of 10

Cross-sell button shows as TEXT_BUYproduct nameTEXT_NOW

This is a discussion on Cross-sell button shows as TEXT_BUYproduct nameTEXT_NOW within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; Hi guys, I am new to the forum and would appreciate any help anyone can give me so I thank ...

      
  1. #1
    Lurker Reza is on a distinguished road
    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0


    Unhappy Cross-sell button shows as TEXT_BUYproduct nameTEXT_NOW

    Hi guys, I am new to the forum and would appreciate any help anyone can give me so I thank you in advance.

    Ok so when I set up cross-sell through my Oscmax v2.0.2 admin, the button shows as TEXT_BUYproduct nameTEXT_NOW instead of just a buy now button. I cant think how to fix this.

    The URL is: iElectroware : World of Electronics : Apple iPod Nano (G5), 8GB video MP3 player - 59.57GBP

    can anybody suggest what might fix this? I haven't fiddled with any of the PHP files so far because I dont want to damage something else by accident

  2. #2
    osCMax Development Team
    pgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond repute pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,405
    Rep Power
    47


    Smile Re: Cross-sell button shows as TEXT_BUYproduct nameTEXT_NOW

    TEXT_SHOWN_IN_UPPERCASE_LIKE_THIS means you are missing a language definition in your files (or it could be a missing image if relevant)

    Regards,
    pgmarshall
    _______________________________

  3. #3
    Lurker Reza is on a distinguished road
    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0


    Default Re: Cross-sell button shows as TEXT_BUYproduct nameTEXT_NOW

    Thank you for your response, do you know where it should be located and where do I get this file?

  4. #4
    osCMax Development Team
    pgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond repute pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,405
    Rep Power
    47


    Default Re: Cross-sell button shows as TEXT_BUYproduct nameTEXT_NOW

    Without seeing the source it is impossible to tell exactly ... but I think I can hazard a pretty good guess.

    Try adding the following to:

    catalog/includes/languages/english/product_info.php

    before the final ?>

    Code:
    define('TEXT_BUY', '');
    define('TEXT_NOW', '');
    Give it a go and post back with the results,

    Regards,
    pgmarshall
    _______________________________

  5. #5
    New Member QDblue2000 is on a distinguished road
    Join Date
    Dec 2010
    Posts
    9
    Rep Power
    0


    Default Re: Cross-sell button shows as TEXT_BUYproduct nameTEXT_NOW

    We are having the same problem with our cart. I followed the above steps and it fixed the text on the buttons. However now the problem I am having is if you click the button it takes you to the shopping cart but it adds the product of the page you are on and not the product of the button you clicked on.

    You can see this at the following URL
    thomsartisland.com : Rottweiler Card 4x5 - $1.00

    I am on the rottweiler page, and I want to add the daisy card so I click on the Daisy Block Print 4x5 in red and it adds a rottweiler card to my shopping cart not the daisy print.

    Anyone else have this same problem or have a suggestion of what to look at?

  6. #6
    osCMax Development Team
    pgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond repute pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,405
    Rep Power
    47


    Default Re: Cross-sell button shows as TEXT_BUYproduct nameTEXT_NOW

    Try switching the template back to fallback ... if the code then works then we know it is a problem with the template. If it is the template then you will need to compare the code in catalog/includes/modules/xsell_products.php with what you have ...

    (I have to say that the Algozone templates seem to be nothing but trouble! They seems to breaking quite a lot of core functionality!)

    Regards,
    pgmarshall
    _______________________________

  7. #7
    New Member QDblue2000 is on a distinguished road
    Join Date
    Dec 2010
    Posts
    9
    Rep Power
    0


    Default Re: Cross-sell button shows as TEXT_BUYproduct nameTEXT_NOW

    I changed the template to fallback and the same thing occurred.

    Any suggestions? Has anyone else had this issue?

  8. #8
    osCMax Development Team
    pgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond repute pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,405
    Rep Power
    47


    Default Re: Cross-sell button shows as TEXT_BUYproduct nameTEXT_NOW

    Post the contents of this file: catalog/includes/modules/xsell_products.php

    Please also set template switching in URL to true so I can switch your template and take a look.

    Regards,
    pgmarshall
    _______________________________

  9. #9
    New Member QDblue2000 is on a distinguished road
    Join Date
    Dec 2010
    Posts
    9
    Rep Power
    0


    Default Re: Cross-sell button shows as TEXT_BUYproduct nameTEXT_NOW

    I have turned on template switching and here is the file catalog/includes/modules/xsell_products.php



    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 =  '<span style="text-decoration:line-through">' $currencies->display_price($xsell['products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])) . '</span><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 DYNAMIC_MOPICS_THUMBS_DIR $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
        
    }
      }
    ?>

  10. #10
    osCMax Development Team
    ridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond repute ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    2,933
    Rep Power
    34


    Post Re: Cross-sell button shows as TEXT_BUYproduct nameTEXT_NOW

    Notes:
    1. Could this be a default install, using your hosting providers' installation routine?
    2. Algozone templates frequently touch core software
    3. osCmax 2.0.2 is now pretty old software (obsolete) and really should be upgraded as a matter of priority, to preferably version 2.0.25

    All of the above makes diagnosing issues difficult.
    Hosting plans with installation, configuration, contributions, support and maintenance.

Closed Thread

Similar Threads

  1. X-Sell v2-MS2 - Cross Sell for MS2
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 06-30-2009, 02:00 AM
  2. X-Sell v2-MS2 - Cross Sell for MS2
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 06-25-2009, 01:12 AM
  3. X-Sell v2-MS2 - Cross Sell for MS2
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 06-22-2009, 04:00 AM
  4. X-Sell v2-MS2 - Cross Sell for MS2
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 02-04-2009, 03:12 PM
  5. X-Cross shows 6 products, how about 9
    By peter in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 11-21-2003, 11:43 AM

Tags for this Thread

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