osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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



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

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Reply

 

LinkBack Thread Tools
  #1  
Old 03-17-2010, 06:56 AM
New Member
 
Join Date: Jan 2010
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
aking1001 is on a distinguished road
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?!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 03-17-2010, 12:37 PM
New Member
 
Join Date: Feb 2010
Posts: 9
Thanks: 0
Thanked 3 Times in 3 Posts
Rep Power: 0
wowsaver is on a distinguished road
Default Re: Another (But Related) Variable Issue!

you will have to add a configuration key in your configuration table.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 03-18-2010, 05:31 AM
New Member
 
Join Date: Jan 2010
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
aking1001 is on a distinguished road
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!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 03-18-2010, 02:32 PM
met00's Avatar
osCMax Development Team
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 671
Thanks: 15
Thanked 117 Times in 108 Posts
Rep Power: 10
met00 is a name known to allmet00 is a name known to allmet00 is a name known to allmet00 is a name known to allmet00 is a name known to allmet00 is a name known to all
Default Re: Another (But Related) Variable Issue!

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

Quote:
$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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 03-19-2010, 06:11 AM
New Member
 
Join Date: Jan 2010
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
aking1001 is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
array, listing, product, variable

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


All times are GMT -8. The time now is 07:39 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2010 osCmax
Inactive Reminders By Icora Web Design