Viewing 15 replies - 1 through 15 (of 41 total)
  • Plugin Author Walter Lee

    (@saltern)

    I don’t think I will add that feature because some users of this plugin display the categories in a horizontal fashion and not a vertical fashion.

    Thread Starter Lukas Prelovsky

    (@lukas-prelovsky)

    This plugin is perfect and works as a need: Thumbnails not displayed category. However, we need the function collapse is an example here:

    https://ps.w.org/collapsing-category-list/assets/screenshot-2.png?rev=1133074

    Plugin Author Walter Lee

    (@saltern)

    Thanks for taking the time to show the picture, it makes things clearer.

    I’ll need some time to think about this as I’m away from work till the end of the month.

    Based on my experience, I’m worried this functionality may cause quite a few headaches down the road and also break some of the layouts based on how some of the existing users are using the widgets now.

    For example, themes with responsive design may want to deal with the collapsing categories differently (e.g. change to hamburger menu or hide it completely). In some cases, users are using two or more of this widget on the same page which can give them problems if they don’t use different CSS classes/IDs for their widgets. Furthermore, some users may want the collapse/expand functionality to use AJAX while others prefer to have the entire category tree loaded.

    Overall, I’m not confident I’ll add this feature but I’ll look into it and see if I can come up with an alternative or an article on how to accomplish this with your theme.

    Thread Starter Lukas Prelovsky

    (@lukas-prelovsky)

    Thanks for trying. I will wait for your decision.

    However, I have more questions How do I add a space that they can recognize the category of subcategory. Examples which:

    https://screenshot.cz/XM09W/addspace.png

    Plugin Author Walter Lee

    (@saltern)

    You can try adding the following CSS code to your theme.

    It assumes you have “List CSS Class” field in the widget is the default product-categories. Adjust the width of “40px” to something that suits you.

    ul.product-categories ul.children li {
      margin-left: 40px;
    }

    If that does not work, post a link to your website so I can see where the problem is.

    Thread Starter Lukas Prelovsky

    (@lukas-prelovsky)

    thanks to this change is perfect. I’ve added it to the child theme and it works. Only if they really want your plugin function collapse, so it would be super maximum. We have very many subcategory and therefore we need a function here that subcategory appear only when one would be unpacked and clicked …

    in other functions have this plugin and widget settings have such a beautiful setting and a user can turn on or off

    https://i.snag.gy/2IKOr.jpg

    I was just about to ask for this same function.

    PLEASE consider adding it ( with a warning to the users ).

    Please let me know if it gets added. Thanks.

    Thread Starter Lukas Prelovsky

    (@lukas-prelovsky)

    I think it’s very important function. It’s great that your plugin allows you to view the thumb as well as the category collapse is extremely important.

    HI:
    I really like your widget of “X010-wocommerce categories widget”, it does what I need for my page. I wonder what codes can I add to make it perform like the product menu of the page I linked as an example:
    mocap

    Here the menu displays as a drop down, as a vertical menu. I am trying to create or add the same performance to my category menu, similar to the example link.

    thank you.

    Plugin Author Walter Lee

    (@saltern)

    Sorry for the delay. Just a short update on the collapse function.

    I’m still keeping an open mind on this feature although my past experience tells me to skip it altogether.

    Currently, I’m playing with different scenarios to see how I can add the functionality without affecting current users as much as possible. One of the hardest parts is how to deal with different user expectations (e.g. accordion vs tree design), styling options (e.g. icons for collapse/expand) and theme CSS (e.g. left-right text orientation, default fly-out menus). So it will take quite some time.

    Meantime, if you find another plugin that works for you, please go ahead to use that plugin and let me know as well, so I can re-direct other users to that plugin too.

    Thank you for your patience.

    Thread Starter Lukas Prelovsky

    (@lukas-prelovsky)

    It needs to add this feature. users need it and must do it so that it could be in the widget and on / off as pictured here https://i.snag.gy/2IKOr.jpg

    Default I would not let on, but the widget in it he will be able to turn

    demo: https://www.ads-software.com/plugins/woocommerce-product-category-selection-widget/ +- Expand and Collapse option for display. (useful for displaying multiple categories)

    Plugin Author Walter Lee

    (@saltern)

    I’ve updated the plugin to include an expand/collapse functionality.

    But knowing the many problems that Javascript can cause, I’m releasing a private beta for testing first before putting the plugin up on wordpress repo.

    You can download the beta plugin from here.

    I’ll fix and update the plugin after WooCommerce 2.5 is released.

    PS: The expand/collapse functionality is only available if you choose “Flat – Accordion” in the “Look – Effects” field of the widget. Other release details can be read from the readme.txt that comes with the plugin.

    Thread Starter Lukas Prelovsky

    (@lukas-prelovsky)

    Fatal error: Can not use function return value in write context in

    / data-web12 / website / ***********.sk/wp-content/plugins/xo10-woocommerce-categories-widget/includes/widgets/class-categories.php on line 223

    plugin is not activated. Error Statement …

    Thread Starter Lukas Prelovsky

    (@lukas-prelovsky)

    I use WP 4,4 , WC 2.4.12

    Thread Starter Lukas Prelovsky

    (@lukas-prelovsky)

    On other sites I tried and there it works. one I can not. It may be a conflict js?

Viewing 15 replies - 1 through 15 (of 41 total)
  • The topic ‘Add Collapse funcions’ is closed to new replies.