Jump to content

YePix

Members
  • Content count

    384
  • Joined

  • Last visited

  • Days Won

    3

YePix last won the day on October 29

YePix had the most liked content!

2 Followers

Profile Information

  • Real Name
    YePix

Recent Profile Visitors

26,266 profile views
  1. thank you all. the STOCK_ALLOW_CHECKOUT != 'true' was set incorrectly.
  2. // BOF stl stock check ******* function tep_get_products_stl_stock($products_id) { $products_id = tep_get_prid($products_id); $slabel_product_query = tep_db_query("select sl.stocklabel_stock from " . TABLE_PRODUCTS . " p, " . TABLE_STOCKLABEL . " sl where p.products_stl_id = sl.stocklabel_id"); $slabel_product = tep_db_fetch_array($slabel_product_query); $stl_stock = $slabel_product['stocklabel_stock']; return $stl_stock; } function tep_count_products_stl_stock_per_stl_id($products_id) { global $customer_id; $products_id = tep_get_prid($products_id); $stock_query = tep_db_query("select products_stl_id from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'"); $stock_values = tep_db_fetch_array($stock_query); $products_query = tep_db_query("select * from " . TABLE_CUSTOMERS_BASKET . " cb, " . TABLE_PRODUCTS . " p, " . TABLE_STOCKLABEL . " sl where cb.products_id = p.products_id and p.products_stl_id = '" . (int)$stock_values['products_stl_id'] . "' and p.products_stl_id = sl.stocklabel_id and cb.customers_id = '" . (int)$customer_id . "' and sl.stocklabel_status = '1'"); while($products = tep_db_fetch_array($products_query)) { $qty += $products['customers_basket_quantity']; } return $qty; } function tep_check_stl_stock($products_id) { $stock_stl_left = tep_get_products_stl_stock($products_id) - tep_count_products_stl_stock_per_stl_id($products_id); $out_of_stl_stock = ''; if ($stock_stl_left < 0) { $out_of_stl_stock = '<span class="text-danger"><b>' . STOCK_MARK_PRODUCT_OUT_OF_STL_STOCK . '&nbsp;' . OUT_OF_STL_STOCK_INFO_CHECKOUT . '</b></span>'; } return $out_of_stl_stock; } // EOF stl stock check ******* //################################################################# at checkout_payment.php this code just doesn't lead me back to the shopping cart. does anyone have an idea here? // BOF stl stock check if ( (STOCK_CHECK == 'true') && (STOCK_ALLOW_CHECKOUT != 'true') ) { $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { $pID = current(explode("{", $products[$i]['id'])); $stl_stlstatus = current(explode("{", $products[$i]['stl_stlstatus'])); if ($stl_stlstatus == 1){ if (tep_count_products_stl_stock_per_stl_id($pID, $cart->get_products()) > tep_get_products_stl_stock($pID, $cart->get_products())){ tep_redirect(tep_href_link('shopping_cart.php')); } } } } // EOF stl stock check
  3. ok, this is how it work. // BOF stl stock check ******* function tep_get_products_stl_stock($products_id) { $products_id = tep_get_prid($products_id); $slabel_product_query = tep_db_query("select sl.stocklabel_stock from " . TABLE_PRODUCTS . " p, " . TABLE_STOCKLABEL . " sl where p.products_stl_id = sl.stocklabel_id"); $slabel_product = tep_db_fetch_array($slabel_product_query); $stl_stock = $slabel_product['stocklabel_stock']; return $stl_stock; }
  4. Hi guys, maybe someone could take a look at this? I do not get a value for this function. with php 7 it works but with php 8 nothing comes up. Is there something I still have to pay attention to? Thank you in advance for your help. function tep_get_products_stl_stock($products_id) { $products_id = tep_get_prid($products_id); $stock_query = tep_db_query("select products_stl_id from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'"); $stock_values = tep_db_fetch_array($stock_query); $pstlid = $stock_values['products_stl_id']; $slabel_product_query = tep_db_query("select stocklabel_stock from " . TABLE_PRODUCTS . " p, " . TABLE_STOCKLABEL . " sl where p.products_stl_id = '" . (int)$pstlid . "' and p.products_stl_id = sl.stocklabel_id"); $slabel_product = tep_db_fetch_array($slabel_product_query); $stl_stock = $slabel_product['stocklabel_stock']; return $stl_stock; }
  5. YePix

    osCommerce v4 Beta 1

    what does that mean ? oscommerce is no longer Released under the GNU General Public License ? <a href="http://www.holbi.co.uk/terms-service" target="_blank">Terms and Conditions</a> and this <a href="http://www.holbi.co.uk/disclaimer" target="_blank">Disclaimer</a>
  6. Hello, that's exactly how it is. I just don't get to the approach of the function that I have to write in the scopping_cart classes in order to implement this procedure.
  7. Subtotal - customer discount - customer points = final price
  8. YePix

    SMTP Authentication and OSCommerce

    I hope it works now;) For everyone in the future. Write by PM. You can get the required PHPMailer via the download link
  9. the shipping is 0.00 for me. When I look at the addon 2015 Order Totals 3.3 BS by @raiwa info@sarplataygemas.com from raiwa, the final price is calculated and output in includes / modules / content / shopping_cart. But I don't get any further in the shopping_cart classes. i only need the final price. before the customer clicks on the buy button in checkout_confirmation.php.
  10. Hello everyone. I would like to write the final total in the table customer_basket - final_price. does anyone of you have an approach how I can determine the amount from order_total in the shopping_cart.php classes?
  11. YePix

    SMTP Authentication and OSCommerce

    Yes you are right. includes/classes/email.php Download and upload to your server the PHP-Mailer. PHP-Mailer you find here: https://forums.oscommerce.com/topic/94340-smtp-authentication-and-oscommerce/?page=3
  12. YePix

    NEW! Complete Order Editing Tool!

    Hello @BrockleyJohn, what could be the reason that when I click on edit I am always redirected to the index.php? BS EDGE
  13. YePix

    [Addon] Store Times BS

    @BrockleyJohnThank you too.
  14. YePix

    [Addon] Store Times BS

    Hi, that's already clear. However, this file does not exist with the add-on
×