Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

chuntse

Members
  • Posts

    153
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by chuntse

  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
  16. Hi @kymation It reported Fatal error: Cannot redeclare cm_pi_options_draw_pull_down_menu() (previously declared in /var/www/html/includes/modules/content/product_info/cm_pi_options_images.php:160) in /var/www/html/includes/modules/content/product_info/cm_pi_options.php on line 117 if( !function_exists( 'cm_pi_options_draw_pull_down_menu' ) ) { function cm_pi_options_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) { I changed the function name, it worked properly. Is it only the way to change the name or there is another solution can override it? Please also take a look at this photo, the test is not belonged to the color option, but it also be showned under this group. Thank you. chuntse
  17. @kymation Hi, Jim, Thanks for your great work. I just tried your option image module, it reported the function error. Couldn't this module be co-existed with product options module of product page modular? Also I tried two options, Size and Color, the values merged together and shown in the product page. Where should I change ? Thanks for if you have time to answer my question. Chuntse
  18. @@Jack_mcs Hi, Jack, I just installed Sitemap SEO on Oscommerce Bootstrap EDGE. I found the script cannot create tables of database and insert value to them: sitemap_seo_pages sitemap_seo_boxes sitemap_seo_box_links sitemap_seo_settings I mannually run the sql script of sitemap_seo_install.php in phpmyadmin. Also these two steps are not available in index.php and where should I put them in index.php? 10) In index.php, FIND (around line 88): <?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?> ADD BENEATH: <!-- Begin Sitemap SEO--> <script type='text/javascript' src='javascript/sitemap_seo.js'></script> <?php require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SITEMAP_SEO); include(DIR_WS_MODULES . FILENAME_SITEMAP_SEO_CATEGORY); ?> <!-- End Sitemap SEO --> FIND (aroundline 244): include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?> ADD AFTER: <!-- Begin Sitemap SEO--> <script type='text/javascript' src='javascript/sitemap_seo.js'></script> <?php require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SITEMAP_SEO); $mapMod = (isset($_GET['manufacturers_id']) ? FILENAME_SITEMAP_SEO_MANUFACTURERS : FILENAME_SITEMAP_SEO_CATEGORY); include(DIR_WS_MODULES . $mapMod); ?> <!-- End Sitemap SEO --> ================================================================================================= I was trying to put it after: <?php if ($messageStack->size('product_action') > 0) { echo $messageStack->output('product_action'); } ?> <div class="contentContainer"> <div class="row"> <?php echo $oscTemplate->getContent('index_nested'); ?> Is it correct? Please advise. Thanks in advanced. chuntse
  19. @@Jack_mcs Hi Jack, The array is empty and I didn't run the fills tags. Will this array make the Bold name on the top of the product in product_info.php not display??? My problem is the top bold name of the product is missing. it shows <a name=\"\$header_tags_array['title']\"></a> in the html source of IE. I don't know why!! Do you have any idea? Thanks. chuntse
  20. Hi Jack, I just installed this addons. And it seems the array of $header_tags_array is empty and I try print_r($header_tags_array[]); in product_info.php it did not show the value of this array. I was trying to find out the problem. But I couldn't. Could you please advise me where can I solve this problem. I have followed your instructions to modify the files. but some codes in admin/categories.php are error, and I change it.Please see following: In admin/categories.php, FIND (about line 61) for ($i=0, $n=sizeof($languages); $i<$n; $i++) { $categories_name_array = $HTTP_POST_VARS['categories_name']; $language_id = $languages[$i]['id']; $sql_data_array = array('categories_name' => tep_db_prepare_input($categories_name_array[$language_id])); REPLACE WITH: for ($i=0, $n=sizeof($languages); $i<$n; $i++) { $categories_name_array = $HTTP_POST_VARS['categories_name']; /*** Begin Header Tags SEO ***/ $categories_htc_title_array = str_replace('"', '"', $HTTP_POST_VARS['categories_htc_title_tag']); $categories_htc_title_alt_array = str_replace('"', '"', $HTTP_POST_VARS['categories_htc_title_tag_alt']); $categories_htc_title_url_array = str_replace('"', '"', $HTTP_POST_VARS['categories_htc_title_tag_url']); $categories_htc_desc_array = str_replace('"', '"', $HTTP_POST_VARS['categories_htc_desc_tag']); $categories_htc_keywords_array = $HTTP_POST_VARS['categories_htc_keywords_tag']; $categories_htc_breadcrumb_array = $HTTP_POST_VARS['categories_htc_breadcrumb_text']; $categories_htc_description_array = $HTTP_POST_VARS['categories_htc_description']; $language_id = $languages[$i]['id']; $sql_data_array = array('categories_name' => tep_db_prepare_input($categories_name_array[$language_id]), 'categories_htc_title_tag' => (tep_not_null($categories_htc_title_array[$language_id]) ? tep_db_prepare_input(strip_tags($categories_htc_title_array[$language_id])) : tep_db_prepare_input(strip_tags($categories_name_array[$language_id]))), 'categories_htc_title_tag_alt' => (tep_not_null($categories_htc_title_alt_array[$language_id]) ? tep_db_prepare_input(strip_tags($categories_htc_title_alt_array[$language_id])) : tep_db_prepare_input(strip_tags($categories_name_alt_array[$language_id]))), 'categories_htc_title_tag_url' => (tep_not_null($categories_htc_title_url_array[$language_id]) ? tep_db_prepare_input(strip_tags($categories_htc_title_url_array[$language_id])) : tep_db_prepare_input(strip_tags($categories_name_url_array[$language_id]))), 'categories_htc_desc_tag' => (tep_not_null($categories_htc_desc_array[$language_id]) ? tep_db_prepare_input($categories_htc_desc_array[$language_id]) : tep_db_prepare_input($categories_name_array[$language_id])), 'categories_htc_keywords_tag' => (tep_not_null($categories_htc_keywords_array[$language_id]) ? tep_db_prepare_input(strip_tags($categories_htc_keywords_array[$language_id])) : tep_db_prepare_input(strip_tags($categories_name_array[$language_id]))), 'categories_htc_breadcrumb_text' => (tep_not_null($categories_htc_breadcrumb_array[$language_id]) ? tep_db_prepare_input(strip_tags($categories_htc_breadcrumb_array[$language_id])) : tep_db_prepare_input(strip_tags($categories_name_array[$language_id]))), 'categories_htc_description' => tep_db_prepare_input($categories_htc_description_array[$language_id])); /*** End Header Tags SEO ***/ I change the last line of code to 'categories_htc_description' => tep_db_prepare_input($categories_htc_description_array[$language_id]), because there is a line code is after it. the it did not report error: 'categories_htc_description' => tep_db_prepare_input($categories_htc_description_array[$language_id]), /*** End Header Tags SEO ***/ 'categories_description' => tep_db_prepare_input($categories_description_array[$language_id])); Thanks in advaced. chuntse
  21. Hi Jack, I have added Headertags to my shop, when I tried to search something in my shop is reported 1364 - Field 'google_last_position' doesn't have a default value insert into headertags_keywords (keyword, last_search, found, language_id) VALUES ('dvd', now(), 1, 1) [TEP STOP] I looked into the advanced_search_result.php, it does not have sql script to insert data to database. Which file should I look in to solve this problem? Please advise me. Thanks in advanced. chuntse
  22. Hi, I just freshly install the OSC 2.3.4 BS Edge, and try to install this testimonial module. But I see there are 11 boxes modules can be installed, but when I click install module and I couldn't find the testimonial. How should I do? thanks in advanced. chuntse
  23. Hi, Firstly thanks for all the people contributed on this addons. I deployed the Dynamic Template System on my store and I found something couldn't be implementing. I disable a box to display on index.php, but the box will not display on the pages of index.php?cPath=1,index.php?cPath=2,index.php?cPath=3 and etc. I tried to deploy some codes to generate the all pages which contains cPath in the /admin/includes/functions/general.php and appended the pages for selection in the backend module box. When I select the page which generated by codes and it didn't work. Should I modify the following codes in osc_template.php to implement what I need? But the pages is in every box and index.php?cPath=1 doesn't contain pages. // bof Dynamic Template System if(!isset($mb->pages) && ($mb->isEnabled())){ $this->pages = 'all'; $mb->execute(); }else{ if(($mb->isEnabled()) && (($mb->pages === 'all') || (in_array($PHP_SELF , explode(';' , $mb->pages))))){ $mb->execute(); } } // eof Dynamic Template System Anyone has idea to do it? chuntse
  24. Hi Jack, I am so sorry I made a mistake. I did't notice that's the new category. And above it there is a Category. Sorry for taking your time, Have a good day.
  25. Yes, it fails, I check the database, it inserts nothing into the table of links_to_link_categories and also "update", it change nothing. I don't know why. Nobody reported this failure?
×
×
  • Create New...