Jump to content

dewarsco2

Members
  • Content count

    39
  • Joined

  • Last visited

About dewarsco2

  • Birthday February 15

Profile Information

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Single Status Update

See all updates by dewarsco2

  1. Changed in review_mail.php to below code and getting this error seems it can't find the images but it does send emails..

     

    [22-Aug-2018 15:12:26 UTC] PHP Notice:  Use of undefined constant DIR_WS_CATALOG - assumed 'DIR_WS_CATALOG' in /home/xxxxxxxxxxx/public_html/doorparts/automatic/review_mail.php on line 139

    [22-Aug-2018 15:12:26 UTC] PHP Notice:  Use of undefined constant DIR_WS_IMAGES - assumed 'DIR_WS_IMAGES' in /home/xxxxxxxxxxx/public_html/doorparts/automatic/review_mail.php on line 139

    Changed Code below.

    // Get the products info for the order

            $products_query = tep_db_query ("select products_name,

                                                    products_model,

                                                    products_id

                                             from " . TABLE_ORDERS_PRODUCTS . "

                                             where orders_id = '" . $orders_id . "'");

              // Get a list of products and links to the review page for each

              $products_string = '';

              while ($products_array = tep_db_fetch_array ($products_query) ) { // Step through the products

                $orders_picture_query = tep_db_query("select products_image from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_array['products_id'] . "'");

                $orders_picture = tep_db_fetch_array($orders_picture_query);

                $image_string = '<img src=' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $orders_picture['products_image'].'" width="90px" border="0">';

     

                // Add each product and each review URL to a list

                $products_string .= $image_string . ' ' . $products_array['products_name'] . "\n";

                $products_string .= '  ' . $link_server . DIR_WS_HTTPS_CATALOG . '/product_reviews_write.php?products_id=' . $products_array['products_id'] . "\n";

    Using latest BS edge

    Thank you

     

     

×