Jump to content

chuntse

Members
  • Content count

    153
  • Joined

  • Last visited

  • Days Won

    1

chuntse last won the day on June 8

chuntse had the most liked content!

Profile Information

  • Real Name
    ChunTse
  • Gender
    Male

Recent Profile Visitors

8,508 profile views
  1. chuntse

    PayPal redirected to shopping_cart.php

    @Jack_mcs Yes, I have set the PDT token, it is required in PayPal Standard Module. The auto-return is also set in the paypal account without SSL to the checkout_process.php. I have an online shop with merchant account, the orders all are received confirmation from IPN. I read the IPN of standard, the 'comments' is pointed to ' '. It seems that the comments will be empty. But I see there is a $orders->info['comments'] to be sent to customer by email, I tried to get this value to save to a txt file. It is empty. Is this value get from PDT? I downloaded the original oacommerce 2.3.4.1 and bootstrap master(EDGE?) to local to test with test account of paypal. It cannot get verified from PDT and redirect to shopping cart page. The same problem in another online shop. I really don't understand the payment procedure of paypal, the IPN and PDT will process the payment result paralleled? The one I mentioned that the $orders->info['comments'] is empty, does it mean the PDT fails to get information from paypal? It is quite hard to sort it out. chuntse
  2. chuntse

    PayPal redirected to shopping_cart.php

    @Jack_mcs The COD module is fine, I never known this problem, I download the original oscommerce 2.3.4.1 to test with PayPal sandbox account. When the order is completed and return from paypal, it redirects to shopping cart. I read the code of checkout_process.php, it should redirect to shopping cart, When the cart is empty.but the item is still in cart after order is completed, I just worried about if it will influence the inserting $commemt value into database. But the main point I am concentrating on which the $comments value couldn't be inserted into orders_status table. I found it in the pre_before_check() of paypal_standard.php as following: // skip before_process() if order was already processed in IPN if ( $check['orders_status'] != OSCOM_APP_PAYPAL_PS_PREPARE_ORDER_STATUS_ID ) { if ( tep_session_is_registered('comments') && !empty($comments) ) { $sql_data_array = array('orders_id' => $order_id, 'orders_status_id' => (int)$check['orders_status'], 'date_added' => 'now()', 'customer_notified' => '0', 'comments' => $comments); tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array); } Do you have any idea or any hint for me? Thank you. chuntse
  3. chuntse

    PayPal redirected to shopping_cart.php

    Thanks you very much for paying attention to this issue. It seems that some codes in the function did not be executed when the form was submitted to PayPal in paypal_standard.php. I am trying to find out the problem. chuntse
  4. Hi, I am facing a problem of the page is redirect to shopping_cart.php and the comments of order cannot be inserted into database. How can I debug this? Anyone knows it? Thanks in advanced. chuntse
  5. chuntse

    [Contribution] Option Types v2

    Thanks a lot for your information. chuntse
  6. chuntse

    [Contribution] Option Types v2

    Hi Jack, Thanks a lot for your reply. I noticed that the options types v2 needs to new columns to the database tables. Does it influence easypopulate to import data to database? chuntse
  7. chuntse

    [Contribution] Option Types v2

    Hi, I would like to know if this addon influences the functioning of Easypopulate after installation? Please advise me. Thanks in advanced. chuntse
  8. @YePix Thanks a lot for your information. Does it really can prompt up a new window or a new tab? chuntse
  9. Thanks a lot for your replies. I read this function again. It seems the button with $link and $params need to be set, then it will generate the target="_blank". tep_draw_button('New Window', null, 'test.php', null, array('type'=>'button','newwindow'=>''), null) I will try this later to see if it works
  10. //// // Output a jQuery UI Button function tep_draw_button($title = null, $icon = null, $link = null, $priority = null, $params = null, $style = null) { static $button_counter = 1; $types = array('submit', 'button', 'reset'); if ( !isset($params['type']) ) { $params['type'] = 'submit'; } if ( !in_array($params['type'], $types) ) { $params['type'] = 'submit'; } if ( ($params['type'] == 'submit') && isset($link) ) { $params['type'] = 'button'; } if (!isset($priority)) { $priority = 'secondary'; } $button = NULL; if ( ($params['type'] == 'button') && isset($link) ) { $button .= '<a id="btn' . $button_counter . '" href="' . $link . '"'; if ( isset($params['newwindow']) ) { $button .= ' target="_blank" rel="noopener"'; } } else { $button .= '<button '; $button .= ' type="' . tep_output_string($params['type']) . '"'; } if ( isset($params['params']) ) { $button .= ' ' . $params['params']; } $button .= ' class="btn '; $button .= (isset($style)) ? $style : 'btn-default'; $button .= '">'; if (isset($icon) && tep_not_null($icon)) { $button .= ' <span class="' . $icon . '" aria-hidden="true"></span> '; } $button .= $title; if ( ($params['type'] == 'button') && isset($link) ) { $button .= '</a>'; } else { $button .= '</button>'; } $button_counter++; return $button; } This is the codes of the tep_draw_button.
  11. I tried the parameter of newwindow in the function. I saw the error of ' Warning: Illegal string offset 'type' '  when I open the page and I saw the source code of html did not contain the target="_blank" between the label of button.
  12. Yes, I know this codes do not make error. I just said I tried tep_draw_button('New Window', null, null, null, null, 'newwindow', null) But it didn't work. Where should I put target="_blank"? chuntse
  13. I had just tried, it reported ' Warning: Illegal string offset 'type' ' if ( isset($params['newwindow']) ) { $button .= ' target="_blank" rel="noopener"'; } } else { $button .= '<button '; $button .= ' type="' . tep_output_string($params['type']) . '"'; } I had tried the params with 'newwindow'. it also reported the same error. oops.. chuntse
  14. Hi, I want to use tep_draw_button($title = null, $icon = null, $link = null, $priority = null, $params = null, $style = null) to create a button which cn open a new window with parameters. I tried the params with 'newwindow', it eported error. Can it also created a button with onclick = "window.open('menubar=no, scrollbars=no, resizable=no, location=no, status=no')"; is it possible? Thanks in advanced. chuntse
  15. I will get a copy to local driver to test. Hopefully I can solve it. Thanks a lot for your suggestion.
×