

chuntse
Members-
Content count
153 -
Joined
-
Last visited
-
Days Won
1
Everything posted by chuntse
-
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
-
@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
-
@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
-
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
-
Thanks a lot for your information. chuntse
-
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
-
Hi, I would like to know if this addon influences the functioning of Easypopulate after installation? Please advise me. Thanks in advanced. chuntse
-
About function of tep_draw_button.
chuntse posted a topic in osCommerce Online Merchant Community Bootstrap Edition
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 -
About function of tep_draw_button.
chuntse replied to chuntse's topic in osCommerce Online Merchant Community Bootstrap Edition
@YePix Thanks a lot for your information. Does it really can prompt up a new window or a new tab? chuntse -
About function of tep_draw_button.
chuntse replied to chuntse's topic in osCommerce Online Merchant Community Bootstrap Edition
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 -
About function of tep_draw_button.
chuntse replied to chuntse's topic in osCommerce Online Merchant Community Bootstrap Edition
//// // 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. -
About function of tep_draw_button.
chuntse replied to chuntse's topic in osCommerce Online Merchant Community Bootstrap Edition
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. -
About function of tep_draw_button.
chuntse replied to chuntse's topic in osCommerce Online Merchant Community Bootstrap Edition
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 -
About function of tep_draw_button.
chuntse replied to chuntse's topic in osCommerce Online Merchant Community Bootstrap Edition
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 -
Sometimes the attribute is neglected.
chuntse posted a topic in osCommerce Online Merchant Community Bootstrap Edition
Hi, All, Sometimes I receive the order without the option value. Did somebody know the reason? Which files should I check debug it? Thanks in advanced. ChunTse -
Sometimes the attribute is neglected.
chuntse replied to chuntse's topic in osCommerce Online Merchant Community Bootstrap Edition
I will get a copy to local driver to test. Hopefully I can solve it. Thanks a lot for your suggestion. -
Sometimes the attribute is neglected.
chuntse replied to chuntse's topic in osCommerce Online Merchant Community Bootstrap Edition
This is the setting of the module you mentioned. -
Sometimes the attribute is neglected.
chuntse replied to chuntse's topic in osCommerce Online Merchant Community Bootstrap Edition
The status is true after the shop is installed till now. I have not changed the status. I was testing the shop to place the order without selection of option, it warned and the order could not to be placed. -
Sometimes the attribute is neglected.
chuntse replied to chuntse's topic in osCommerce Online Merchant Community Bootstrap Edition
If the problem cannot be traced out, maybe I can wait for the release of oscommerce v4. When will the oscommerce v4 be released? It is summer time already, Do you know it? -
Sometimes the attribute is neglected.
chuntse replied to chuntse's topic in osCommerce Online Merchant Community Bootstrap Edition
Do you mean the php error log reporting? But it is live shop, this problem is not occurred frequently. It is happenes sometimes, it is hard to monitor it. -
Sometimes the attribute is neglected.
chuntse replied to chuntse's topic in osCommerce Online Merchant Community Bootstrap Edition
Yes, the enforce selection was enabled. I will try to debug it by code to see if I can solve this problem. Thanks a lot for your help. ChunTse -
Sometimes the attribute is neglected.
chuntse replied to chuntse's topic in osCommerce Online Merchant Community Bootstrap Edition
Thanks for your kind reply. I think that is not the problem of status of the module it is enabled. The customer can place orders, but sometimes the option information of the order is missing. I do not know the option information which the customer selected. Then I have to contact the clients to ask them. That is the reason I post this thread. ChunTse -
Sometimes the attribute is neglected.
chuntse replied to chuntse's topic in osCommerce Online Merchant Community Bootstrap Edition
Thanks a lot for your kind assistance. But it is very particular, in one order, same product the the client orders with different size, but only one size in one item and other items has not information. The version I am using is bootstrap gold. Do you have any idea? Thanks. ChunTse -
New management and osCommerce v4
chuntse replied to osCommerce-Official's topic in News and Announcements
Hi, I also created some addons for my shop. Discount, attribute image and etc. Is also hard for me to convert or create these addons for oscommerce v4? Because it was really hard work for me to read and modify the core codes and turn it into reality. -
New management and osCommerce v4
chuntse replied to osCommerce-Official's topic in News and Announcements
@Moxamint Hi Eddy, I want it be into simplified Chinese. Chuntse