Jump to content

Tsimi

♥Ambassador
  • Content count

    2,350
  • Joined

  • Last visited

  • Days Won

    85

Everything posted by Tsimi

  1. This following package is based on the Discount Code for osCommerce 2.3.1 Addon. I was able to reduce the install process from 16 steps down to 9 steps. Database tables and filenames definition have been removed. I tried to keep the code changes to a minimum. SQL install/uninstall is done automatically with the ot_ module. Download:
  2. I am currently working on a Points and Rewards system for osC BS GOLD and EDGE. There are currently 2 addons out there that are more or less working if you take bits and pieces from each one of them. I have currently installed the Points and Rewards feature into an Edge test shop and all seems to work fine. The idea of such points system is interesting but unfortunately it is one of those addons that require a lot core file changes or better let's say code additions. There are more ADD AFTER than REPLACE WITH parts. I have managed to reduce the install steps by implementing some stuff into the module and new additional files. More improvement is possible I know it but first I want to get it working before going deeper into it. I still need to make the necessary Bootstrap design changes to some of the new files and then it's time for bug hunting. I was wondering did someone ever create one for BS? Or did anyone ever attempt to make one for BS? No need to recreate everything again if it has already been done. As soon I have all the design stuff fixed I will add a beta package here.
  3. Tsimi

    Option Types BS

    This is the support thread for the Option Types BS App. I wanted to keep this separated from the other, normal Option Types support thread. New version uploaded. Now compatible with the latest and greatest osC CE Frozen Download is here: https://apps.oscommerce.com/SOFpK&option-types-bs
  4. This module allows you to show a Horizontal Categories Menu inside the header area. This is based on G.L. Walkers code so all credits to him for this great work. FULL PACKAGE: (*no install manual included! Just drop the files in and install module through the admin area. No core code changes! ^_^ ) *Please note: To offer a horizontal menu as a general module is always difficult since it is not matching for every store. Some stores have a large amount of categories and sub-categories and therefore it might not fit. Best is always to create a "tailored" horizontal menu that fits best for your store. Some do this the hard-coded way some would like to have it dynamic. If you need such a tailored menu please ask in the Commercial Support area, thank you.
  5. This is a Wish List Addon for osC 2.3.4 BS GOLD based on the following addon http://addons.oscommerce.com/info/8665 I didn't really "improve" the addon I just bootstrapped it and tested it with osC 2.3.4BS GOLD I couldn't find the support topic for it if anything should arise just post here. Download: (*Please read BUG message further below before using this on a real shop.) Current known bugs BUG 1: On my local shop (XAMPP) everything runs just fine but when I test it on a real server I have the following issue. When you add products to the wish list and then try to update the qunatity I get this I have no clue why and how. There is no error message or number. Something is not working properly with the update function. Again this happens only on my real server. On my local server everything runs just fine. BUG 2: This is not really a big issue (IMO) but there is a redirect function that can be switched on or off in the admin. This redirect "should" do the following; when a customer adds a product to the wish list he's supposed to be redirected back to the product_info.php. That doesn't happen. For me that is not a big issue but others might find this annoying. One solution would be to remove that setting from the admin area. If anyone could take a look at it I would appreciate it. Thanks.
  6. Hi Malcolm I don't think I'll be updating any of my add-ons. I'm hanging back a bit and see how things develop. I barely have anything to do with osC or coding in general at the moment. So please go ahead and upload your version. I added you as admin for this add-on so you can upload anytime. Thx and regards Lambros
  7. @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.
  8. @raiwa Is there anything in particular you want me to mention in the description?
  9. @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
  10. @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.
  11. 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?
  12. 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
  13. 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>
  14. This is the support topic for the Advanced Specials Addon. http://addons.oscommerce.com/info/8294 Anything is just post here. Enjoy!
  15. @radhavallabh https://forums.oscommerce.com/topic/412855-product-quantity-selection/?do=findComment&amp;comment=1769468
  16. 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.
  17. 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?
  18. @LeeFoster Which file set did you install? Link?
  19. @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)
  20. 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.
  21. This is the support topic for the Featured Products BS Addon. All credits to DunWeb Designs. I just converted to Bootstrap and fix some minor typos. http://addons.oscommerce.com/info/9355 Core code changes are necessary but only very, very few. Enjoy!
  22. 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>';
  23. Did you see my answer (4 posts up) from 4. December 2015? Did you try that?
  24. @Demitry Ok, I had a look at my specials code and it is not what you are looking for. Actually it is same as the see more button currently inside the Featured Products BS add-on. But I started to do some research and found a solution. It was easier than I thought. You need to use a select count(*) query to get the current total amount of featured products and you only want to get the ones that are set to f.status 1 So this is what I came up with Open your index module featured file FIND: if (tep_db_num_rows($featured_products_query) > 0) { // Show only if we still have products in the array ADD BEFORE: $featured_count_query = tep_db_query("select count(*) as total from featured WHERE status = '1'"); $featured_count = tep_db_fetch_array($featured_count_query); Now you can use this here to hide/show the button. if ($featured_count['total'] > MODULE_CONTENT_INDEX_FEATURED_PRODUCTS_CONTENT_LIMIT) { BUTTON CODE HERE } Let me know if that works for you.
  25. @Demitry I did something similar long time ago for my specials on the index page. Show a certain amount of specials on the index page and a button that says Show All which redirects to the specials.php page. I will have to dig it out since I don't remember which shop I did that for. Give me some time and I'll get back to you.
×