Results 1 to 2 of 2

Product name not showing for Popup Images

This is a discussion on Product name not showing for Popup Images within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I'm trying to get the Products name to appear in the Title and description tags of a single product's Popup ...

      
  1. #1
    Member
    Join Date
    May 2008
    Posts
    84
    Rep Power
    4


    Default Product name not showing for Popup Images

    I'm trying to get the Products name to appear in the Title and description tags of a single product's Popup image window. For some reason, they are not showing up.

    My code in meta-tags.php is below:
    Code:
    	// Content Popup Image
      case CONTENT_POPUP_IMAGE:
        define('META_TAG_TITLE', $products['products_name'] . PRIMARY_SECTION . TITLE . $web_site_tagline);
    	define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . $products['products_name'] . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
    	define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . $products['products_name']);
        break;
    Should this work as is or is there a bug in the code? I'm guessing maybe the $products['products_name'] is incorrect or not defined here. Can anyone offer any help for a solution?

  2. #2
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    21


    Default Re: Product name not showing for Popup Images

    I don't have a minimal verson of OscMAX running, but isn't the popup run by popup_image.php ? if so the product query is:

    Code:
     $products_query = tep_db_query("select pd.products_name, p.products_image from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'");
      $product_info = tep_db_fetch_array($products_query);
    which would make the data in the array your looking for $products_info['products_name']

    again, I don't use popup image as I use a shadowbox to display my images in the current browser window, but that's where I would start my search.
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

Similar Threads

  1. popup images not working
    By ctbhost in forum osCommerce 2.2 Discussion
    Replies: 1
    Last Post: 07-21-2008, 03:07 AM
  2. Resize Popup Images
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-27-2008, 06:21 AM
  3. Theft Safe Popup Images
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 09-06-2007, 06:00 AM
  4. mopic popup not showing up
    By bhejr in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 05-03-2006, 11:02 AM
  5. Product images not showing?
    By Picman in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 06-12-2003, 03:01 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
  •