Jump to content

Tsimi

♥Ambassador
  • Content count

    2,353
  • Joined

  • Last visited

  • Days Won

    85

Everything posted by Tsimi

  1. @puggybelle Open your template_top.php file FIND <script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script> REPLACE WITH <!--<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>//--> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous"> That should fix it.
  2. @chuntse This is what I said in the first post of this thread. A horizontal menu is not always the right solution for everyone. There is a Horizontal Megamenu made by Kymation if you want to have a look at that. The horizontal menu in my add-on is just an "extension" of the existing category_tree class meaning that whatever change you apply there (category_tree.php) affects all category menus in the store. So if you limit the categories to a certain amount then it will also limit the categories box. Not sure restricting the categories makes any sense though. Customers would not be able to see all what you have to offer. Another solution would be to copy the category_tree.php class file, rename the functions and all the necessary codes, apply your query there to limit the categories and then extend the horizontal menu from it. That way you can have the categories box with the stock osC layout and the horizontal menu with the limited categories listing. Hope that makes sense. (your_category_tree.php) class your_category_tree { (your_catmenu.php) class explode_your_category_tree extends your_category_tree {
  3. Here is a new version of the Horizontal Menu BS (v1.5). This one is made with CSS only and not using any javascript or jquery. It uses hover, meaning that when you mouse over the category names the drop down tab opens up. However you will have to use this new menu in conjunction with the Categories Menu XS since this new menu cannot be used on XS or SM view port due to lack of touch support. Special thanks to @rulegacy for the pure CSS and hover idea and for testing the menu. Here the package: Horizontal Menu BS v1.5.zip Enjoy!
  4. Tsimi

    Product listing

    You can keep the code in there. It shouldn't matter if you use later the horizontal menu or not.
  5. Tsimi

    Product listing

    @ce7 Open your ..includes/classes/category_tree.php file FIND: if ( ($this->follow_cpath === true) && in_array($category_id, $this->cpath_array) ) { $link_title = $this->cpath_start_string . $category['name'] . $this->cpath_end_string; } else { $link_title = $category['name']; } REPLACE WITH: if ( ($this->follow_cpath === true) && in_array($category_id, $this->cpath_array) ) { $link_title = $this->cpath_start_string . tep_image('images/' . $category['image'], $category['name'], SMALL_IMAGE_WIDTH*0.5, SMALL_IMAGE_HEIGHT*0.5, 'style="display:inline-block;"') . '&nbsp;' . $category['name'] . $this->cpath_end_string; } else { $link_title = tep_image('images/' . $category['image'], $category['name'], SMALL_IMAGE_WIDTH*0.5, SMALL_IMAGE_HEIGHT*0.5, 'style="display:inline-block;"') . '&nbsp;' . $category['name']; }
  6. @rulegacy I see... Ok let's try the following. First let's add a new custom class to avoid conflicts with other dropdown classes. Open your ../includes/classes/catmenu.php file and look for this code $root_start_string = '<li class="dropdown">', add a new class, in this example I use yourclass (*you can name that whatever you like just make sure you also change the css definition as well.) $root_start_string = '<li class="dropdown yourclass">', Save and close the file. Next let's add the new css definitions inside the user.css file .dropdown-submenu a {text-transform:none;} .yourclass > a {text-transform:uppercase;} Make sure the css code is inserted exactly like that. If you would switch those 2 new css definitions around it won't work. Now you should have all Caps in the first categories only and the rest below inside the sub-menus should be normal.
  7. @rulegacy Your css code gives me this. Is that not what you want?
  8. Thanks @Demitry for helping out. I think what she means is, when you add the css code you posted it will also change the looks of the links within the navbar since those also use the same classes. Best would be to give it a new, unique class that only refers to that parent category link. For example; Inside the ..includes/classes/catmenu.php file FIND $root_link_title = '<span><span class="fas fa-list"></span>&nbsp;' . $link_title . '</span>'; REPLACE WITH $root_link_title = '<span class="parent"><span class="fas fa-list"></span>&nbsp;' . $link_title . '</span>'; We added the class parent for this example. Name it whatever you want later. Then add this to your user.css file .parent { color: red; } This should have changed the parent link color to red. Change the css code to whatever you like.
  9. Tsimi

    [Contribution] Option Types v2

    That was like that from the very beginning it has nothing to do with BS or add-on version. The person who coded it, Zappo, mentioned something like this in the past that only one checkbox value can be passed on to the cart.
  10. Tsimi

    [Contribution] Option Types v2

    If you need only one selection then why not use radio buttons instead?
  11. Tsimi

    Frozen: tep_draw_button problem

    @Jack_mcs That's a so called click-to-call button. Most likely used when browsing with phones you can click on it and it will make the call to the number used inside the href. https://developers.google.com/web/fundamentals/native-hardware/click-to-call/
  12. Tsimi

    Frozen: tep_draw_button problem

    Not sure since when that is the case. I just tested it in an older EDGE shop and the same things happens there. Not sure if it is PHP related or not. But I guess as long it works with NULL it's OK.
  13. Tsimi

    Frozen: tep_draw_button problem

    If possible you should always use NULL instead of ' '. In this case you're right it only works with NULL.
  14. Tsimi

    Frozen: tep_draw_button problem

    Not sure what you're trying to do but with Bootstrap you have 4 possibilities to create a button. See here for further info. If you want to have a button that has a link to go somewhere then you could use the first example. <a class="btn btn-default" href="#" role="button">Link</a> But it should be possible to do with tep_draw_button as well though. <?php echo tep_draw_button(BUTTON_TEXT, 'fas fa-chevron-right', tep_href_link('index.php')); ?>
  15. Tsimi

    Admin Addon Margin Report

    @LeeFoster I had a quick look at this and the thing is, if you want to make this without core code changes then all the files or better say the categories.php file needs to be modular like we did with the product_info.php file on the front end. The admin area at this point is not that modular yet.
  16. Tsimi

    Custom Product Builder of OSc BS

    Just had a look with Chrome (v67.0.3396.99), no issues either. I can select items. 6.5 inch base plate?? That is not a vanilla osC product. Did you try it with regular osC products like DVDs? However I do get an error inside the Builder box on the catalog side. My guess would be another PHP 7.2 related issue.
  17. Tsimi

    Custom Product Builder of OSc BS

    Firefox 61.0.1 PHP 7.2.1 Clean Frozen shop no other apps or mods installed running on XAMPP local server.
  18. Tsimi

    Custom Product Builder of OSc BS

    @LeeFoster I cannot recreate that problem. I can select products without any issues.
  19. Tsimi

    Custom Product Builder of OSc BS

    Ah I see. I was using PHP 7.0.21 when I was working and it didn't throw any errors. I quickly swapped to 7.2.1 and I can see the same errors now. I'll have a closer look asap.
  20. Tsimi

    Custom Product Builder of OSc BS

    @LeeFoster Thanks for testing. What PHP version are you running?
  21. Tsimi

    Options as images

    @14steve14 Hi Steve I had another look at this Options as Images and I was able to improve the install process. Now it can be installed without core code changes at all. I also changed the looks of it to more modern style as shown in many shop demos. Just color tiles without any text or radio buttons. Now you can click on the image to select it. It might not be what everyone likes or needs but it wouldn't be all too hard to change it back as it was or change the style to a more individual matching layout. Here the package: Options_as_Images BS v2.2.zip I might upload it to the apps section but it would need more testing to make sure all corners are covered so to speak. I don't have 54234234 images to see how it brakes to a new row so if you or anyone out there wants to give this a go and report back I'd appreciate it.
  22. Tsimi

    QTPro BS

    @raiwa I installed this quickly into a fresh, new Frozen shop on my local server (XAMPP) running PHP 7.2.1 and I don't get any duplicate entries. Everything looks good here.
  23. @radhavallabh Just curious how many categories with images are you trying to show? Remember what I wrote in the first post of this thread. @raiwa Yes it uses the tep_image function but it shows only category images. Here an example: if (MODULE_CONTENT_HEADER_CATMENU_IMAGE == 'True') { $result .= tep_image('images/' . $category['image'], $category['name'], SMALL_IMAGE_WIDTH*0.5, SMALL_IMAGE_HEIGHT*0.5, 'style="display:inline-block;"') . ' ' . $link_title . (($caret != false) ? $caret : null) . '</a>'; } Edit: I see you beat me to it.
  24. Tsimi

    Custom Product Builder of OSc BS

    Sorry no. Only local shop here.
  25. Tsimi

    Custom Product Builder of OSc BS

    No problem guys. I wasn't really doing much either. But I had a bit time recently and did some progress. I got most of the install reduced using modules or combining codes into already existing add-on files. Right now it requires 2 code additions/changes inside 2 files. And it only works with the FROZEN version (PHP 7.0.21). EDGE and GOLD are not supported at the moment. I also got the catalog side layout done. I can create a custom product now and add it to the cart. I must say the add-on is very difficult coded. A lot javascript and onclick functions involved but it does seem to work. I didn't had time to test it further than that. Didn't go into the checkout and I don't know if it reduces the stock of the added items. The only real bug thus far is the image dropdown selection after a custom product has been deleted. You'll know what I mean once you try it out. So here is the package for those who are interested to have a look at it. (Please do not install and use this in a live store! You have been warned.) Custom-Product-Builder-for-BS-Tsimi.zip
×