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

Another (But Related) Variable Issue!

This is a discussion on Another (But Related) Variable Issue! within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Thanks to forums members I now have the variable I needed displaying on individual product_info.php pages. See this thread Now ...

      
  1. #1
    New Member
    Join Date
    Jan 2010
    Posts
    14
    Rep Power
    0


    Default Another (But Related) Variable Issue!

    Thanks to forums members I now have the variable I needed displaying on individual product_info.php pages. See this thread

    Now I need that same variable to also display on the index.php page.

    I am editing the includes - modules - product_listing_col.php page.

    I have managed to get a static piece of text to display by adding it to one of the cases but trying to add a case to the array with my variable included has gotten me nowhere.

    Any suggestions?!!

  2. #2
    New Member
    Join Date
    Feb 2010
    Posts
    9
    Rep Power
    0


    Default Re: Another (But Related) Variable Issue!

    you will have to add a configuration key in your configuration table.

  3. #3
    New Member
    Join Date
    Jan 2010
    Posts
    14
    Rep Power
    0


    Default Re: Another (But Related) Variable Issue!

    Thanks for the response Wowsaver but I'm not sure I quite follow... could you elaborate?

    I have products_format added to the Products table in the database. The other values that are displayed on the Product Listings page appear to be drawn from values in this table. I found the configuration key in the Configuration table but don't quite follow how this relates or what I should enter??

    (Sorry for being dense!)

  4. #4
    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
    26


    Default Re: Another (But Related) Variable Issue!

    okay, the way you added it before was to change the query

    $product_info_query = tep_db_query("select p.products_format,p.products_id, pd.products_name, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
    $product_info = tep_db_fetch_array($product_info_query);
    to get the data. Have you changed the queries to get the data you wish to display? If not then the data is not being picked up in the query and therefore NOT going to display.
    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

  5. #5
    New Member
    Join Date
    Jan 2010
    Posts
    14
    Rep Power
    0


    Default Re: Another (But Related) Variable Issue!

    I tried to change the query but the structure of the Product Listing page is built in an array and I am having trouble finding where to edit the query or queries to allow the data to display correctly.

Similar Threads

  1. Variable Help!!
    By aking1001 in forum osCmax v2 Customization/Mods
    Replies: 8
    Last Post: 03-13-2010, 11:36 PM
  2. PHP Help Needed - How to get the value of a variable
    By ASasek in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 05-19-2006, 05:08 AM
  3. variable shipping based on weight and price
    By darren777 in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 11-01-2005, 08:16 AM
  4. variable free shipping rate per country
    By mattkern in forum osCMax v1.7 General Mods Discussion
    Replies: 1
    Last Post: 12-17-2004, 03:26 PM
  5. Increasing Session Variable sizes?
    By ryanmhubbard in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 09-30-2004, 08:35 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
  •