Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

chuntse

Members
  • Posts

    153
  • Joined

  • Last visited

  • Days Won

    1

chuntse last won the day on June 8 2021

chuntse had the most liked content!

Profile Information

  • Real Name
    ChunTse
  • Gender
    Male

Recent Profile Visitors

9,456 profile views

chuntse's Achievements

  1. @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. @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. 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. Thanks a lot for your information. chuntse
  6. 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. Hi, I would like to know if this addon influences the functioning of Easypopulate after installation? Please advise me. Thanks in advanced. chuntse
  8. Hi, There is a problem when I am using the usu5_sitemaps, it reports SELECT p.products_id, p.products_date_added, p.products_last_modified FROM products_description pd INNER JOIN products p ON p.products_id = pd.products_id WHERE p.products_status = '1' AND pd.language_id = ORDER BY p.products_last_modified DESC, p.products_date_added DESC [TEP STOP] It seems the $languages_id is empty, could anyone advise me to solve this problem? Thanks in advanced. Chuntse
  9. Hi All, Did someone install the addon of BS AjaxAngular Professional ShoppingCart? I found a problem that if I add same product with some option in different property, and it just show the last option value in the shopping cart. For example: Add a T-Shirt Color: Black and add this product with Color: Blue. It just shows the T-Shirt Color: Blue in the shopping cart. Did someone encounter for this problem? chuntse
  10. Hi, I would like to know if the verion of MVS 1.4 is stable version? I downloaded it and installed it. But I found some files are missing. catalog/includes/modules/boxes/bm_estimate_shipping.php I only found bm_estimate_shipping.php in catalog/includes/languages/english/modules/boxes/. I noticed that the shipping modules files are located in the folder of vendors_shipping. Does it mean I have to create a new module management of Vendors Shipping to install these modules or I just put it to the folder of catalog/includes/modules/shipping/ ? I have created Vendors Shipping with cfg_vendors_shipping.php under modules menu to manage these shipping modules, and it did work. Even I put them to the modules of shipping folder and install the shipping module, they are same problems. The options and texts of the module did show after the shipping module is install. I noticed that the value in the shipping module is MODULE_SHIPPING_ will them be conficted with the shipping modules? I found there is flat shipping module in shipping module folder, I replaced all MODULE_SHIPPING_ with MODULE_VENDORS_SHIPPING_ . Please advise me. chuntse
  11. @Tsimi Thanks, I sought for the info in this thread and saw his words. But I think it does not transfer two or more values of checkbox for the core codes of oscommerce. As I also looking into the codes of classes of shipping_cart.php, general.php and the application_top.php. Do you have any suggestion for me to modify the codes which can make it to transfer more values from checkboxes to the shopping cart or do you know which function is processing the data of product? I tried to print the add_product, it shown nothing. Thanks in advanced. chuntse
  12. @Tsimi Thanks for your kind reply. Surely I want it to be multiple selectiom, but I don't why it can only transfer one value of checkbox to shopping cart when I selected two.As I used print_r($products); to check. Does it have this kind of problem of BS version at your side? Chuntse
  13. Hi, I have installed BS AjaxAngular Professional ShoppingCart, Options as Image, So far it seems there is not problem. And now I am trying to integrate the shop with Option Types. I tried checkbox with two options, it can get one value(I used print($products); to see), but I can select two. Are there no codes to force the checkbox only can select one? or there are. it seems that I couldn't find it in the instructions. Thanks in advanced. chuntse
  14. @kymation Thanks a lot for your kind support and advice. Maybe you can keep this codes in mind and make it perfect for publishing option image module for next new version. I will continue to study and work on it. Thank you again. Best regards chuntse
  15. @kymation Hi, My VPS is running PHP Version 5.4.16。The Centos is now only supported this version, I think it is hard to change it. About the test, I forgot to chage the option name when linking to the product. it is resolved. Does it influence the module if I changed the name of this function?(I did changed it and it work properly, but I don't know if it has other improper influence). I also added another function and control value to make the image with radio option to display in grid. The function is function cm_pi_options_images_draw_radio_menu($name, $values, $default = '', $parameters = '', $required = false) { global $_GET, $_POST; $field = ''; if ( tep_not_null( $parameters ) ) { $field .= ' ' . $parameters; } $field .= '<div class="row">'; if (empty($default) && ( (isset($_GET[$name]) && is_string($_GET[$name])) || (isset($_POST[$name]) && is_string($_POST[$name])) ) ) { if (isset($_GET[$name]) && is_string($_GET[$name])) { $default = stripslashes($_GET[$name]); } elseif (isset($_POST[$name]) && is_string($_POST[$name])) { $default = stripslashes($_POST[$name]); } } for ($i=0, $n=sizeof($values); $i<$n; $i++) { $option_name = tep_output_string($values[$i]['text'], array('"' => '&quot;', '\'' => '&#039;', '<' => '&lt;', '>' => '&gt;')); if( tep_not_null( $values[$i]['image'] ) ) { $field .= '<div class="col-xs-6 col-md-3 col-lg-2"><p class="text-center">' . '<img alt=\'' . $option_name . '\' src=\'' . DIR_WS_IMAGES . $values[$i]['image'] . '\'' . ' height="' . MODULE_CONTENT_PRODUCT_INFO_OPTIONS_IMAGES_SET_IMAGES_HEIGHT . '"' . ' width="' . MODULE_CONTENT_PRODUCT_INFO_OPTIONS_IMAGES_SET_IMAGES_WIDTH . '"' . ' /></p><p class="text-center"> ' . $option_name . '</p>'; } $field .= '<p class="text-center"><input type="radio" name="' . tep_output_string($name) . '" value="' . tep_output_string($values[$i]['id']) . '"'; if ($default == $values[$i]['id']) { $field .= ' checked'; } $field .= '>' . '</p></div>'; } $field .= '</div>'; if ($required == true) { $field .= TEXT_FIELD_REQUIRED; } return $field; } it worked, but the display is not perfect in product page as yours. Do you have ideas? I also amended the products_attributes.php with Option Type v2 BS, Do you think I can add some codes with if() or switch() that I can make the option display properly in the product info page? Thanks for your advices in advanced. Best regards chuntse
×
×
  • Create New...