Rodyti pranešimus

Čia galite matyti visus šio nario pranešimus. Matote tik tuos pranešimus, kurie buvo paskelbti jums prieinamose lentose.


Temos - Stasys

Puslapiai: [1]
1
„osCommerce“ / Naujas mokejimai.lt modulis
« Įrašytas: 2010 m. Rugsėjo 14 d. 10:16:07 »
Taigi, jau yra naujas mokejimai.lt modulis.
Naujame jau nebedingsta užsakymai, jeigu pirkėjas negįžta po užsakymo apmokėjimo iš banko, tačiau sistema nebesiunčia patvirtinimo laiško.
Pabandžiau šį reikalą išspręsti:
Faile includes/modules/payment/libwebtopay.php
reikia:

Eilutę (apie 33)
         if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PAYPAL_STANDARD_ZONE > 0) ) {
reikia pakeisti šia:
       if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_WEBTOPAY_ZONE > 0) ) {
      
---------------------------      

  Po eilute (apie 342):
 
 $GLOBALS['order']->customer['email_address'] .= "\nDont\nSend\nEmail\nPlease\n:)";\
 
 vietoje eilučių:
   
            $order_id = substr($cart_WebToPay_ID, strpos($cart_WebToPay_ID, '-')+1);

            $check_query = tep_db_query("select orders_status from " . TABLE_ORDERS . " where orders_id = '" . (int)$order_id . "'");

            $sql_data_array = array('orders_id' => $order_id,

 reikia įrašyti:
 
// BOF Aroste Nustatytas $order_id kintamasis is DB, pasirenkant didziausia pirkejo uzsakymo nr., nes su $cart_WebToPay_id neveikia        
      $select_max_orderid = mysql_query("select MAX(orders_id) as max_order_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "'");
        $row1 = mysql_fetch_array($select_max_orderid, MYSQL_BOTH);

        $order_id = $row1[0];
             
//          $order_id = substr($cart_WebToPay_ID, strpos($cart_WebToPay_ID, '-')+1);
// EOF Aroste
            $check_query = tep_db_query("select orders_status from " . TABLE_ORDERS . " where orders_id = '" . (int)$order_id . "'");
// BOF Aroste Idetas   orders_status_id del teisingos uzsakymu istorijos atvaizdavimo   
         $customer_notification = (SEND_EMAILS == 'true') ? '1' : '0';
            $sql_data_array = array('orders_id' => $order_id,
                                'orders_status_id' => $order->info['order_status'],
// EOF Aroste   

-------------------

Po eilute (apie 450):

 $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";
            }
 reikia įrašyti:
 
// BOF Aroste Idetas email pranesimo siuntimas pirkejui, bei informavimas pardavejui apie uzsakyma         
// lets start with the email confirmation
require(DIR_WS_CLASSES . 'order_total.php');
  $order_total_modules = new order_total;

  $order_totals = $order_total_modules->process();
 
  $email_order = STORE_NAME . "\n" .
                 EMAIL_SEPARATOR . "\n" .
                 EMAIL_TEXT_ORDER_NUMBER . ' ' . $order_id . "\n" .
                 EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $order_id, 'SSL', false) . "\n" .
                 EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";
               
  if ($order->info['comments']) {
    $email_order .= tep_db_output($order->info['comments']) . "\n\n";
  }
  $email_order .= EMAIL_TEXT_PRODUCTS . "\n" .
                  EMAIL_SEPARATOR . "\n" .
                  $products_ordered .
                  EMAIL_SEPARATOR . "\n";

  for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) {
    $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n";
  }

  if ($order->content_type != 'virtual') {
    $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .
                    EMAIL_SEPARATOR . "\n" .
                    tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";
  }

  $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
                  EMAIL_SEPARATOR . "\n" .
                  tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";
  if (is_object($$payment)) {
    $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .
                    EMAIL_SEPARATOR . "\n";
    $payment_class = $$payment;
    $email_order .= $order->info['payment_method'] . "\n\n";
    if ($payment_class->email_footer) {
      $email_order .= $payment_class->email_footer . "\n\n";
    }
  }
  tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

// send emails to other people
  if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
    tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
  }
// EOF Aroste

Puslapiai: [1]