Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi,
    Thanks.

    What do you mean with attributes? Is it part of a plugin you use?

    If you are looking for sorting articles, maybe Simple Post Order is a good plugin for you?

    Thread Starter FCAbraham

    (@fcabraham)

    The attribute_data:pa_attribute-value a is now sortable thanks to your program. I was referring to woocommerce product attributes headers, attribute:pa_attribute-name. I would like to keep attributes common to one product group in physical proximity to each other on the admin. I am working with fasteners which have many attributes and if I jump to another product and then go back to working with fasteners, the contiguous administrative listing of the fastener attributes is fragmented.

    I installed the WP Knowledgebase Version 1.0.1 By Enigma Plugins. CTONE sorts its categories and tags although not the articles which sort by posting date. I would like to be able to sort the articles either alphabetically or manual (standard-fare for CTONE). I could modify the posting date but I envisage that it would be tedious to maintain. I’ll look at Simple Post Order.

    Thanks for your prompt and completely unexpected reply.

    Plugin Author Marcel Pol

    (@mpol)

    Thanks. I will take a look and see if everything works as I think it should, or if there are strange things going on.

    Thread Starter FCAbraham

    (@fcabraham)

    After I responded to you from home, I went to work and couldn’t access my site. I just spent the last hour with my host due to a 500 Page Error. Oddly enough, it looks like it may have come from your plugin. Does any of the following pertain to your plugin? My hosting company replied:

    A plugin has apparently entered invalid/incorrect code into your .htaccess, causing the error:

    [Mon Jan 12 19:49:13 2015] [alert] [client 174.44.230.240] /home/industr2/public_html/.htaccess: Invalid command ‘tenvif.c’, perhaps misspelled or defined by a module not included in the server configuration, referer: http://www.industrial-hardware.com/wp-admin/admin.php?page=customtaxorder

    tenvif.c>
    SetEnvIfNoCase Request_URI \.html_gzip$ no-gzip
    SetEnvIfNoCase Request_URI \.xml_gzip$ no-gzip
    </IfModule>

    Typically this should be an <IfModule mod_something> at the top, but it’s been replaced by “tenvif.c” and this is “tenvif” word is not a familiar term. I’ve removed these lines now and the site appears to load, please check this.

    Thread Starter FCAbraham

    (@fcabraham)

    My hosting company just came back with more info:

    To be clear the link I showed was erroring because of the incorrect access code because you were attempting to load it. It could have been any website access attempt. It may or may have not been the plugin, but something appears to have messed up the proper formatting in .htaccess. If the plugin was recently added and it adds code to .htaccess, then it may be the same plugin.

    Plugin Author Marcel Pol

    (@mpol)

    That sounds quite scary. Somehow that htaccess got messed up.

    This plugin does absolutely nothing with htaccess. If the code on your website is doing something with htaccess, it has been changed.

    Thread Starter FCAbraham

    (@fcabraham)

    I don’t know how it happened and it was probably a coincidence. It’s fixed now and time to move forward.

    Thanks for the recommendation for Simple Post Order. It does exactly what I needed.

    Did you understand my explanation about grouping attributes? Is this something that may be available in a future release?

    Plugin Author Marcel Pol

    (@mpol)

    I’m not sure what the attributes are exactly. If they are a taxonomy they should show up in the plugin, so I have started to assume they are meta_keys.
    I can look at the plugins you use and see if that is true.
    I you want to fetch meta keys and order them or group them, you would need something else then this plugin. And I’m not sure what is possible with meta keys, they are a completely different beast from terms/taxonomies.
    But I’m saying this without knowing anything :). I will come back on this.

    Thread Starter FCAbraham

    (@fcabraham)

    To view attributes: Woocommerce must be installed. Then go to Products>Attributes. Each attribute (parent) has values (children). For example, the attribute Size and the values might be: Extra Large, Large, Medium, etc. Another attribute might be Color might have values: Red, Orange, Yellow, etc. I’m sure you get the point.

    Your plugin permits resorting the attribute values but not the resorting (resequencing) of the attributes. I cannot reorder the sequence in which the attributes where created. Since I have many attributes , it is very difficult to plan or predict what new attribute may be need to be added. Because there are so many, it is very important to able to organize them either by quality or product group.

    If I had created the attribute Size before creating the attribute Color and decided I wanted to resort them (i.e. alphabetically), there is no feature to accomplish this. So I must delete Size and re-enter the attribute and it’s values. As attributes get added, it becomes more difficult to change.

    Your category order management is a perfect model for attribute order management. Attributes would be treated as the parent which can be reordered and the values would be the child and can also be reordered.

    The approach that I am suggesting would also cleanup our side panel which is very long and cluttered with attributes.

    These are our current taxonomies: (The attributes are inset. There will be many more)

    Categories
    Tags
    Format
    Knowledgebase Category
    Knowledgebase Tags
    MDTF Categories
    Brands
    Product Categories
    Product Tags
    Shipping Classes

      Thread
      Diameter
      Material
      Finish
      Thread Standard
      Head Style
      Thread Class
      Length
      Grade
      Fastener Standard
      Vent Hole Diameter (Nominal)
      Hole Tolerance (in.)
      Note
      Drive Type
      Head Height (Overall)
      Head Diameter
      Point
      Fastener Type

    My recommended structure would look as follows:

    Attributes: (this would appear on sidebar as Order Attributes)
    -Attribute name 1 (there are no sub-attributes, only values)
    –Attribute values (there are unlimited values)
    -Attribute name 2
    –Attribute values
    -Attribute name nth
    –Attribute values
    `

    Thread Starter FCAbraham

    (@fcabraham)

    In my last remark, I was trying to demonstrate that my sidebar currently looks like this:

    Term Order
    Order Categories
    Order Tags
    Order Format
    Order Knowledgebase Category
    Order Knowledgebase Tags
    Order MDTF Categories
    Order Brands
    Order Product Categories
    Order Product Tags
    Order Shipping Classes
    Order Thread
    Order Diameter
    Order Material
    Order Finish
    Order Thread Standard
    Order Head Style
    Order Thread Class
    Order Length
    Order Grade
    Order Fastener Standard
    Order Vent Hole Diameter (Nominal)
    Order Hole Tolerance (in.)
    Order Note
    Order Drive Type
    Order Head Height (Overall)
    Order Head Diameter
    Order Point
    Order Fastener Type

    and I would like it to look like this:

    Term Order
    Order Categories
    Order Tags
    Order Format
    Order Knowledgebase Category
    Order Knowledgebase Tags
    Order MDTF Categories
    Order Brands
    Order Product Categories
    Order Product Tags
    Order Shipping Classes
    Order Attributes

    Thread Starter FCAbraham

    (@fcabraham)

    Did have have to chance to review what I posted. Do you have any questions?

    Plugin Author Marcel Pol

    (@mpol)

    Hi, sorry for the slow reply.

    I have been looking at it. What is the case is that the terms like Blue, Red and Green are terms. The Color thing is a taxonomy, that is being generated in code. When you go to wp_term_taxonomy in the database, you can see terms belonging to the pa_color taxonomy.

    This plugin does not order the taxonomies, only the terms inside a taxonomy.
    Inside WooCommerce there is a filter though, that you might be able to use.
    In /includes/abstracts/abstract-wc-product.php you can see around line 1370 the get_attributes function. That has a filter that you might use. You could perhaps order them in code, or add a field to the database-table wp_woocommerce_attribute_taxonomies like ‘tax_order’, and sort based on that.

    Thread Starter FCAbraham

    (@fcabraham)

    Yes, that is exactly what is needed: to be able to re-order the taxonomies. But in addition to that, the side panel display of the taxonomy terms is very long; it exceeds the length of the page (from top to bottom) when hovering over Term Order. It would be nice to have them nestled under the heading “Order Taxonomies”. You seemed to have already implemented that layout with Categories and Sub-Categories.

    Do you have intentions of making those changes anytime in the future?

    Plugin Author Marcel Pol

    (@mpol)

    Hi, about your first question, you could reorder your taxonomies with this code:

    add_filter('woocommerce_get_product_attributes', 'custom_function');
    function custom_function( $attributes ) {
            print_r($attributes);
            return $attributes;
    }

    You can add this in functions.php of your theme, or in your own plugin. The $attributes is an array of your attributes. You can apply custom code to sort them.
    I do think ordering the taxonomies themself is outside the scope of this plugin. It is more specific to WooCommerce.

    About your long list of taxonomies, ehm, I’m not sure how to fix that for you. You do have a lot of taxonomies. And they are not nested, or are hierachical.

    Thread Starter FCAbraham

    (@fcabraham)

    I added your code to the child theme functions.php and got:

    Fatal error: Can’t use function return value in write context in /home/******/public_html/wp-content/themes/customizr-child/functions.php on line 180

    Line 180 is: print_r($attributes);

    The list of taxonomies that I presented are merely “a drop in the bucket.” There are many more needed for other products.

    Thanks for your effort!

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Great Product’ is closed to new replies.