Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.



Recommended Posts



here is the Code. I cannot find the failure, please help me.


$products_new_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_NEW_PRODUCTS, $products_new_query_raw, $products_new_numrows);


$products_new_query = tep_db_query($products_new_query_raw);

while ($products_new = tep_db_fetch_array($products_new_query)) {


// added for New Product Icon contribution

// convert times to unix timestamp for comparison

// 2592000 = 30 days in the unix timestamp format

if ( ($today_time - strtotime($products_new['products_date_added']) ) < 2592000) {

$products_new['products_name'] .= ' ' . tep_image_button('icon_newarrival.gif', TEXT_ICON_NEW_PRODUCT);


// end addition New Product Icon contributions


$products_new_array[] = array('id' => $products_new['products_id'],

'name' => $products_new['products_name'],

'image' => $products_new['products_image'],

'price' => $products_new['products_price'],

'specials_price' => $products_new['specials_new_products_price'],

'tax_class_id' => $products_new['products_tax_class_id'],

'date_added' => tep_date_long($products_new['products_date_added']),

'manufacturer' => $products_new['manufacturers_name']);




require(DIR_WS_MODULES . 'products_new.php');







Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...