Jump to content

chuntse

Members
  • Content count

    127
  • Joined

  • Last visited

Profile Information

  • Real Name
    ChunTse
  • Gender
    Male

Recent Profile Visitors

8,003 profile views
  1. chuntse

    ULTIMATE Seo Urls 5 - by FWR Media

    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
  2. @Tsimi Thanks a lot for your addon. I have installed this addon to test, but it seems that it cannot set the limitation of categories to be displayed. it is a problem if there are over 10 of first level categories. I was trying to add this to the module code: tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_CONTENT_HEADER_CATMENU_MAX__NUM_CATEGPRIES', '5', 'MAX Categories of display. <br /><em>*Default is 5.</em>', '6', '5', now())"); but when I looked at the class of catmenu.php, it gets the data from the category_tree.php. I changed the query of mysql in category_tree.php: $categories_query = tep_db_query("select c.categories_id, c.parent_id, c.categories_image, cd.categories_name, cd.categories_description, cd.categories_seo_description, cd.categories_seo_keywords, cd.categories_seo_title from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id. "' order by c.parent_id, c.sort_order, cd.categories_name limit 0,7"); the category box of catalogue is showing also 7 categories. Do you have another way to achieve it? Thanks in advanced. chuntse
  3. 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
  4. chuntse

    Multi_Vendor_Shipping new thread

    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
  5. chuntse

    [Contribution] Option Types v2

    @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
  6. chuntse

    [Contribution] Option Types v2

    @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
  7. chuntse

    [Contribution] Option Types v2

    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
  8. @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
  9. @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
  10. 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
  11. @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
  12. chuntse

    Sitemap SEO

    @@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
  13. chuntse

    Header Tags SEO

    @@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
  14. chuntse

    Header Tags SEO

    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
  15. chuntse

    Header Tags SEO

    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
×