Jump to content
Latest News: (loading..)

chuntse

Members
  • Content count

    119
  • Joined

  • Last visited

Profile Information

  • Real Name
    ChunTse
  • Gender
    Male

Recent Profile Visitors

7,129 profile views
  1. @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
  2. 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
  3. @JcMagpie Just put [] in the function which generates the checkbox. When click the button of add to cart, the values will pass to the string of the submit. But the values cannot be shown in the shopping cart. You have to change relevant codes to show in the cart and store into the database. That is so far I learned from the study of the codes. chuntse
  4. Thanks for all joined the discussion of this topic. Is this multiple selection with checkbox useful or not? I know one multiple selection with checkbox can be divided into few drop down selection menus.but it seems to be not professional. I was trying to add the option types v2 to my shop that I found the checkbox could not get two or more values when submitting the form. At the beginning I thought it was my problem with changing the code of the shop. Then I posted a reply to option type to ask for answer. Now I know it is the problem with the core codes of the oscommerce. chuntse
  5. @Tsimi @Gyakutsuki Thank you for the suggestion. I studied the core codes for three days, and I change something that multiple values can be transfered and displayed on the shopping cart. I have installed many addons to my shop and made the codes of the shop very complicate. Now the values cannot be stored into the table of customers basket attributes. I installed the multiple vendors shipping few days ago, it reported value not match when executing the SQL sentence. Hopefully I can find the resolution. Thank you again. Best regards, chuntse
  6. Hi, All, I am trying to implement to transfer multiple values of checkbox from product option to shopping cart. After I tested, it seems that the core codes of oscommerce only can transfer one value of each option to the shopping cart. I read the general.php, application_top.php and the classes of shopping_cart.php, and I couldn't find the right place. Is there anyone know that? Thanks in advanced. Best regards, chuntse
  7. 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
  8. 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
  9. 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
  10. 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
  11. @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
  12. @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
  13. 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
  14. @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
  15. 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
×