Jump to content

ccng

Members
  • Content count

    21
  • Joined

  • Last visited

  1. ccng

    Newsletter products, HTML email

    hi. I want to add the price to the newsletter. Is the following code correct ?? $images_query = tep_db_query("select p.products_id, pd.products_name, p.products_price, p.products_image from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.products_id = p.products_id and p.products_id in(" . $this->products . ")"); } while($images = tep_db_fetch_array($images_query)){ if($col > COLS-1){ $html_content .= '</tr><tr><td class="content" align="center" width="' . $width . '%"><a href="' . tep_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $images['products_id']) . '" class="content">' . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . $images['products_image'], $images['products_name'], $images['products_price'],SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br>' . $images['products_name'] . '</a></td>'; $col = 0; }else{ $html_content .= '<td class="content" align="center" width="' . $width . '%"><a href="' . tep_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $images['products_id']) . '" class="content">' . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . $images['products_image'], $images['products_name'], $images['products_price'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br>' . $images['products_name'] . '</a></td>'; } $col++; }
  2. I have just installed the google sitemap contribution and try to upload the sitemap.xml to Google. Google will try to verify if the file format is correct. However, google say the file has some error as follow: Sitemap Errors Invalid date (Line 9) The content of line 9 in the sitemap.xml is: <lastmod>2005-08-04T14:32:21+08:00</lastmod> I have checked with Goolge sitemap guide on : https://www.google.com/webmasters/sitemaps/...specifying_time The format on the guide line is the same as mine. What is wrong? Thanks for your help.. :(
×