Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Insert Model Name into "Upcoming Products"?


Guest

Recommended Posts

Posted

hello! i have tried and tried, but i can't get this to work. i am trying to get model names to show just after the product name in the "upcoming products" list at the bottom of the front page of the store. i thought this would work (upcoming_products.php):

 

'">' . $expected['products_name'] . '<br>' . $expected['products_model'] . '</a> </td>' . "\n" .

 

but, it didn't :blink:

i have no php programming experience but was trying to help myself before asking.

does anyone know what i'm doing wrong?

Posted
hello! i have tried and tried, but i can't get this to work. i am trying to get model names to show just after the product name in the "upcoming products" list at the bottom of the front page of the store. i thought this would work (upcoming_products.php):

 

'">' . $expected['products_name'] . '<br>' . $expected['products_model'] . '</a> </td>' . "\n" .

 

but, it didn't :blink:

i have no php programming experience but was trying to help myself before asking.

does anyone know what i'm doing wrong?

 

 

well, i figured it out on my own, amazingly enough. for anyone who wants to know:

 

around line 13...

 

$expected_query = tep_db_query("select p.products_id, pd.products_name, products_model, products_date_available as date_expected from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where to_days(products_date_available) >= to_days(now()) and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by " . EXPECTED_PRODUCTS_FIELD . " " . EXPECTED_PRODUCTS_SORT . " limit " . MAX_DISPLAY_UPCOMING_PRODUCTS);

 

:lol:

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...