Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tefa

Pioneers
  • Posts

    19
  • Joined

  • Last visited

Posts posted by tefa

  1. function tep_remove_order()

     

    add some code below

     

    if (MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true') {

    $coupons_order_check_query = tep_db_query("select count(*) as total from " . TABLE_DISCOUNT_COUPONS_TO_ORDERS . " where orders_id='" . $order_id ."'");

    $coupons_order_check = tep_db_fetch_array($coupons_order_check_query);

    if ($coupons_order_check['total'] > 0) {

    tep_db_query("delete from " . TABLE_DISCOUNT_COUPONS_TO_ORDERS . " where orders_id = '" . $order_id . "'");

    }

    }

  2. If the image is present in the images directory on the shop side, then the problem is probably in the files on the admin side. You can use the included files to test with to see if the problem goes away.

     

    Hi , jack

     

    thank yo reply,

    front side is disapear too, because in admin , when i edit the article , and then save . the image path will missing , so in front side , the image is disapear.But image is still in /image/article_manager_uploads.

     

    maybe in admin/article.php line 200~ , get something wrong, i think .

    case 'insert_article':

    case 'update_article':

    ...................................

     

    thank you

  3. You should check the images directory for this contribution to see if the image is actually there. Your server may not be allowing the upload.

     

    Yes, everything is good, And the image is actually there .

    whan i post new article to topicle.

    but 2nd edit the article, then press preview adn then save , the image link will missing . maybe you can try , Just do nothing and then save the article . your image link will missing. But image is still in /iamges/article_manager_uploads .

     

    help, please , and i need to solution this bug. thank you

  4. Hi , All

     

    I got same problem too, and how can i fix the problem :'(

     

    regards,

     

    Tefa

     

     

    Dynamic_sitemap.php

    fine

    <? //php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

     

    change to

     

    <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

     

     

    Best regards,

     

    Tefa

  5. Great contribution and really appreciate the effort!

     

    STS 4.2 was installed on a clean osc release, but I have now installed the Dynamic Sitemap v 2.0 contrib, and no content is showing in the sitemap.

    I have been all over this forum and can't seem to find a fix - I am sure it is something so simple but it is now a case of not being able to see the wood for the trees.

     

    I just installed the sitemap mod as it was described - it seems to work apart from not being recognised by the STS $content variable.

     

    I would be grateful if anyone could point me in the right direction!

     

    Thanks!

     

    Hi , All

     

    I got same problem too, and how can i fix the problem :'(

     

    regards,

     

    Tefa

  6. Dear sir,

    How can I combin default_specials(fix default_specials) into this one.

     

    <?php

    /*

    $Id: default_specials.php,v 2.0 2003/06/13

     

    osCommerce, Open Source E-Commerce Solutions

    http://www.oscommerce.com

     

    Copyright © 2003 osCommerce

     

    Released under the GNU General Public License

    */

    ?>

    <!-- default_specials //-->

     

    <tr>

    </tr>

    <tr>

    <td><table border="0" width="100%" cellspacing="0" cellpadding="2">

    <tr>

    <?php

    $info_box_contents = array();

    $info_box_contents[] = array('align' => 'left', 'text' => sprintf(TABLE_HEADING_DEFAULT_SPECIALS, strftime('%B')));

    new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_SPECIALS));

     

    $new = tep_db_query("select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s where p.products_status = '1' and s.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and s.status = '1' order by s.specials_date_added DESC limit " . MAX_DISPLAY_SPECIAL_PRODUCTS);

     

    $info_box_contents = array();

    $row = 0;

    $col = 0;

    while ($default_specials = tep_db_fetch_array($new)) {

    $default_specials['products_name'] = tep_get_products_name($default_specials['products_id']);

    $info_box_contents[$row][$col] = array('align' => 'center',

    'params' => 'class="smallText" width="33%" valign="top"',

    'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $default_specials["products_id"]) . '">' . tep_image(DIR_WS_IMAGES . $default_specials['products_image'], $default_specials['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $default_specials['products_id']) . '">' . $default_specials['products_name'] . '</a><br><s>' . $currencies->display_price($default_specials['products_price'], tep_get_tax_rate($default_specials['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($default_specials['specials_new_products_price'], tep_get_tax_rate($default_specials['products_tax_class_id'])) . '</span>');

    $col ++;

    if ($col > 2) {

    $col = 0;

    $row ++;

    }

    }

    new contentBox($info_box_contents);

    ?>

     

    <!-- default_specials_eof //-->

     

    anybody can help me,thank you.

×
×
  • Create New...