Latest News: (loading..)

Yeti-Erotik

Members
  • Content count

    3
  • Joined

  • Last visited

1 Follower

About Yeti-Erotik

Profile Information

  1. Everything's set now, but the discount doesn't get calculated at the end :mellow: I'm now sitting the whole sunday in front of this addon and it's not getting to an end, could anyone help me please? What could be the problem? In the instruction there is written the following: 7. Modify the catalog/checkout_process.php file. Find: //------insert customer choosen option eof ---- $total_weight += ($order->products[$i]['qty'] * $order->products[$i]['weight']); $total_tax += tep_calculate_tax($total_products_price, $products_tax) * $order->products[$i]['qty']; $total_cost += $total_products_price; $products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n"; } Add after: // Discount Code 2.3 - start if (MODULE_ORDER_TOTAL_DISCOUNT_STATUS == 'true') { if (!empty($discount)) { $discount_codes_query = tep_db_query("select discount_codes_id from " . TABLE_DISCOUNT_CODES . " where discount_codes = '" . tep_db_input($sess_discount_code) . "'"); $discount_codes = tep_db_fetch_array($discount_codes_query); tep_db_perform(TABLE_CUSTOMERS_TO_DISCOUNT_CODES, array('customers_id' => $customer_id, 'discount_codes_id' => $discount_codes['discount_codes_id'])); tep_db_query("update " . TABLE_DISCOUNT_CODES . " set number_of_orders = number_of_orders + 1 where discount_codes_id = '" . (int)$discount_codes['discount_codes_id'] . "'"); tep_session_unregister('sess_discount_code'); } } // Discount Code 2.3 - end But in my checkout_process.php file there is no code like this, it's looking a bit different: //------insert customer choosen option eof ---- $products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n"; } could it be related to this? what do I need to do so that it will finally work?
  2. I took some backup files and now it's working again...
  3. Hello I'm using osCommerce Online Merchant v2.3.1 and tried to install the Discount Code. After applying everything, it was working fine to create discount codes. But when a customer has put some articles into the shopping cart, he was not able to checkout. So he was able to display the shopping cart, but when he was clicking on "checkout" then nothing happened, just the page reloaded... Can anyone help me please? Thank you!!!