Jump to content

Tsimi

♥Ambassador
  • Content count

    2,349
  • Joined

  • Last visited

  • Days Won

    85

Tsimi last won the day on January 29

Tsimi had the most liked content!

Profile Information

  • Real Name
    Lambros
  • Gender
    Male
  • Location
    Japan

Recent Profile Visitors

39,867 profile views
  1. @Rosyweb Hi Ros You mean you just want to have the parent categories inside the menu without the sub-categories dropdown function right? If yes then do the following changes inside the classes/catmenu.php file FIND (around line 44) if (isset($this->_data[$category_id]) && ($level != 0)) { $result .= '<li class="dropdown dropdown-submenu"><a href="#" tabindex="-1" class="dropdown-toggle" data-toggle="dropdown">'; $caret = ''; } elseif(isset($this->_data[$category_id]) && (($this->max_level == '0') || ($this->max_level > $level + 1))) { $result .= $this->root_start_string; $result .= '<a href="#" tabindex="-1" class="dropdown-toggle" data-toggle="dropdown">'; $caret = ' <span class="fas fa-caret-down"></span>'; } else { $result .= $this->child_start_string; $result .= '<a href="' . tep_href_link('index.php', 'cPath=' . $category_link) . '">'; $caret = false; } REPLACE WITH /* if (isset($this->_data[$category_id]) && ($level != 0)) { $result .= '<li class="dropdown dropdown-submenu"><a href="#" tabindex="-1" class="dropdown-toggle" data-toggle="dropdown">'; $caret = ''; } elseif(isset($this->_data[$category_id]) && (($this->max_level == '0') || ($this->max_level > $level + 1))) { $result .= $this->root_start_string; $result .= '<a href="#" tabindex="-1" class="dropdown-toggle" data-toggle="dropdown">'; $caret = ' <span class="fas fa-caret-down"></span>'; } else {*/ $result .= $this->child_start_string; $result .= '<a href="' . tep_href_link('index.php', 'cPath=' . $category_link) . '">'; $caret = false; // } Now you should only see the parent categories without any dropdown feature. The show image function still works if needed. If you use this together with the XS menu, which you shouldn't if you only use parent categories, then you'll have to add the following changes to the classes/catmenu_xs.php file. FIND if (isset($this->_data[$category_id]) && ($level != 0)) { // HAS MORE SUBCATEGORIES $result .= '<li><a href="#">'; } elseif(isset($this->_data[$category_id]) && (($this->max_level == '0') || ($this->max_level > $level + 1))) { // PARENT HAS CHILD CATEGORIES $result .= $this->root_start_string; $result .= '<a href="#">'; } else { // NO SUBCATEGORIES $result .= $this->child_start_string; $result .= '<a href="' . tep_href_link('index.php', 'cPath=' . $category_link) . '">'; $caret = false; } $caret = ''; $result .= str_repeat($this->spacer_string, $this->spacer_multiplier * $level); // CATEGORY NAMES $result .= $link_title . (($caret != false) ? $caret : null) . '</a>'; if(isset($this->_data[$category_id]) && (($this->max_level == '0') || ($this->max_level > $level + 1))) { // show parent category link // $root_link_title = '<strong><span class="fas fa-list fa-lg"></span>&nbsp;' . $link_title . '</strong>'; $result .= $this->parent_start_string; // divider added for clarity // if (MODULE_CONTENT_HEADER_CATMENU_XS_DIVIDER == 'True') { $result .= '<li style="border-bottom:solid 1px #e5e5e5;"><a href="' . tep_href_link('index.php', 'cPath=' . $category_link) . '">' . $root_link_title . '</a></li>'; } else { $result .= '<li><a href="' . tep_href_link('index.php', 'cPath=' . $category_link) . '">' . $root_link_title . '</a></li>'; } $result .= $this->_buildHoz_xs($category_id, $level + 1); $result .= $this->parent_end_string; $result .= $this->child_end_string; } else { $result .= $this->root_end_string; } REPLACE WITH /* if (isset($this->_data[$category_id]) && ($level != 0)) { // HAS MORE SUBCATEGORIES $result .= '<li><a href="#">'; } elseif(isset($this->_data[$category_id]) && (($this->max_level == '0') || ($this->max_level > $level + 1))) { // PARENT HAS CHILD CATEGORIES $result .= $this->root_start_string; $result .= '<a href="#">'; } else {*/ // NO SUBCATEGORIES $result .= $this->child_start_string; $result .= '<a href="' . tep_href_link('index.php', 'cPath=' . $category_link) . '">'; $caret = false; // } // $caret = ''; // $result .= str_repeat($this->spacer_string, $this->spacer_multiplier * $level); // CATEGORY NAMES $result .= $link_title . (($caret != false) ? $caret : null) . '</a>'; /* if(isset($this->_data[$category_id]) && (($this->max_level == '0') || ($this->max_level > $level + 1))) { // show parent category link // $root_link_title = '<strong><span class="fas fa-list fa-lg"></span>&nbsp;' . $link_title . '</strong>'; $result .= $this->parent_start_string; // divider added for clarity // if (MODULE_CONTENT_HEADER_CATMENU_XS_DIVIDER == 'True') { $result .= '<li style="border-bottom:solid 1px #e5e5e5;"><a href="' . tep_href_link('index.php', 'cPath=' . $category_link) . '">' . $root_link_title . '</a></li>'; } else { $result .= '<li><a href="' . tep_href_link('index.php', 'cPath=' . $category_link) . '">' . $root_link_title . '</a></li>'; } $result .= $this->_buildHoz_xs($category_id, $level + 1); $result .= $this->parent_end_string; $result .= $this->child_end_string; } else {*/ $result .= $this->root_end_string; //} That should do it.
  2. @raiwa Is there anything in particular you want me to mention in the description?
  3. @raiwa Discount_Codes_5.0.0_BS sounds good to me. Also separating the BS4 and BS3 stuff by keeping it in separate catalog folders sounds like a good plan. I will test your files tomorrow, 1:30 AM here now, and get you some feedback asap. Thanks
  4. @raiwa I didn't mean to put more work into your hands. That was not my intention. Just wanted to check if something is wrong on my end. I couldn't agree more. Updating an add-on for various CE versions is becoming a bit of a pain in the rear. Better wait for a release or more close to final version. A content module sounds like a winner to me. Adding one line into a file won't give anyone a hard time and is fairly easy to do. I thought if it is a simple change of classes inside the javascript code then I could quickly do that but it didn't work for me. I do not have those issues. When I enter the discount code into the input field the check icon or ban icon show up just fine. Even before I changed them to FontAwesome v5. I only have problems to position the input field in the right spot just before the comments input field as it suppose to be. I will try to find time during the weekend and reinstall another EDGE BS4 test shop in my local server which btw. runs on PHP 7.1, and give it another try.
  5. Discount Codes v4.4.2 BS works with osC BS4 at least the back end part where you add and register discount codes and the checkout_confirmation part. However it does fail to inject the code from the header tags module into the checkout_payment.php page. Not sure if this is an issue only on my side though. Clean Edge BS4 and only Discount Codes 4.4.2 BS installed. There is a javascript code inside the header tags file which checks for certain classes and then inject the code before that. $('div.contentContainer div.contentText .form-group').parent() That is why in the install manual it says Even if I manually add those classes to the checkout_payment.php file or if I alter the javascript code to match the BS4 classes structure it just won't show anything on the payment page. So I added the whole javascript code at the very bottom of the checkout_payment.php file and now we finally can see the input field BUT! it is placed in the wrong position. No matter what classes you add or what you try to do to get it injected it always shows at the same spot right after the HEADING_TITLE part. Changing the following code inside the HT module does inject the input field but again in the wrong, same, position. var $group = 'header_tags'; to this var $group = 'footer_scripts'; Not sure what the exact issue is. I haven't touched osC code in a while and I am absolutely not familiar with the changes in the latest Edge version. I did manage to add the input field by simply hard coding it into the checkout_payment.php file which is as we all know not the best way to do it but until we can figure out why it isn't injecting or injecting in the right place this should do the trick. (fixed code to match latest BS4 and FontAwesome standards) FIND <hr> <div class="form-group row"> <label for="inputComments" class="col-form-label col-sm-4 text-sm-right"><?php echo TABLE_HEADING_COMMENTS; ?></label> <div class="col-sm-8"> <?php echo tep_draw_textarea_field('comments', 'soft', 60, 5, $comments, 'id="inputComments" placeholder="' . TABLE_HEADING_COMMENTS . '"'); ?> </div> </div> ADD BEFORE <h2><?php echo TEXT_DISCOUNT_CODE; ?></h2> <div class="col-xs-6 col-sm-3"> <div class="form-group row"> <input type="text" class="form-control" name="discount_code" value="<?php echo isset($sess_discount_code) ? $sess_discount_code : ''; ?>" id="discount_code" /> <span class="form-control-feedback" id="discount_code_status" style="right:0;"></span> </div> </div> FIND <?php require('includes/template_bottom.php'); require('includes/application_bottom.php'); ?> ADD AFTER <script type="text/javascript"> $(document).ready(function () { var a = 0; discount_code_process(); $('#discount_code').blur(function () { if (a == 0) discount_code_process(); a = 0 }); $("#discount_code").keypress(function (event) { if (event.which == 13) { event.preventDefault(); a = 1; discount_code_process(); } }); function discount_code_process() { if ($("#discount_code").val() != "") { $("#discount_code").attr("readonly", "readonly"); $("#discount_code_status").empty().append('<i class="fas fa-cog fa-spin fa-lg">&nbsp;</i>'); $.post("discount_code.php", {discount_code: $("#discount_code").val()}, function (data) { data == 1 ? $("#discount_code_status").empty().append('<i class="fas fa-check fa-lg" style="color:#00b100;"></i>') : $("#discount_code_status").empty().append('<i class="fas fa-ban fa-lg" style="color:#ff2800;"></i>'); $("#discount_code").removeAttr("readonly"); }); } } }); </script> @raiwa Do you have this properly running on a Edge BS4 store? I mean including injected HT module?
  6. Tsimi

    Stop Google adding bogus names

    Fake accounts with google as company name? Check here https://forums.oscommerce.com/topic/492566-fake-accounts/?do=findComment&amp;comment=1781581
  7. You could use input group as alternative solution. This is an example code from the bootstrap site. Adjust that to match what you need. <div class="input-group"> <span class="input-group-addon" id="basic-addon1">@</span> <input type="text" class="form-control" placeholder="Username" aria-describedby="basic-addon1"> </div>
  8. @radhavallabh https://forums.oscommerce.com/topic/412855-product-quantity-selection/?do=findComment&amp;comment=1769468
  9. To be honest, don't know. I haven't looked at it for a very long time. I just asked about the file set and store version so that i can try it out in the same setup as you did.
  10. I have never used that file set before so can't say. But I would guess SSL has nothing to do with the modal not popping up. What's the store version? Frozen or Edge?
  11. @LeeFoster Which file set did you install? Link?
  12. @tttim6575 I highly doubt you'll get an answer here from the previous people. This is an old topic with the last answer dating back to 2012. There are however 2 config files. catalog/includes/config.php (front store side) catalog/admin/includes/config.php (admin side)
  13. Hi Andrea Try this following; Open your admin/stats_keywords.php file FIND <!-- bof function delete --> <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_DELETE; ?></td> <!-- eof function delete --> REPLACE WITH <!-- bof function delete --> <td class="dataTableHeadingContent" align="left"><input type="checkbox" onClick="toggle(this)" /> Toggle All<br/></td> <!-- eof function delete --> AT THE VERY END OF THE FILE ADD <script> function toggle(source) { checkboxes = document.getElementsByName('update_keyword_list[]'); for(var i=0, n=checkboxes.length;i<n;i++) { checkboxes[i].checked = source.checked; } } </script> To keep everything nicely aligned FIND <!-- bof function delete --> <td class="dataTableContent" align="center"> <?php echo tep_draw_checkbox_field('update_keyword_list[]', $keywords['search_text']); ?> </td> <!-- eof function delete --> REPLACE WITH <!-- bof function delete --> <td class="dataTableContent" align="left"> <?php echo tep_draw_checkbox_field('update_keyword_list[]', $keywords['search_text']); ?> </td> <!-- eof function delete --> Hope that helps.
  14. Check the language file for the price product info module. ../includes/languages/english/modules/content/product_info/cm_pi_price.php const MODULE_CONTENT_PI_PRICE_DISPLAY_SPECIAL = '<del>%2$s</del> <span class="productPrice text-danger productSpecialPrice">%1$s</span>';
  15. Did you see my answer (4 posts up) from 4. December 2015? Did you try that?
×