Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Adam Sargant

    (@adamsargant)

    I haven’t tried this (this was always a very simple plugin and I’m aware that there is a whole load of functionality that would make it more generally useable) but you could try replacing
    $(".wpsc_top_level_categories > li:has(ul)").prepend("<span class=\"CatExpander\">[+]</span>");
    with
    $(".wpsc_top_level_categories > li:has(ul)").prepend("<span class=\"CatExpander\"><img src=\"urlof+image\" /></span>");
    and

    $(".CatExpander").toggle(function() {
    	$(this).html( '[-]' );
    }, function() {
    	$(this).html( '[+]' );
    });

    with

    $(".CatExpander").toggle(function() {
    	$(this).html( '<img src=\"urlof-image\" />' );
    }, function() {
    	$(this).html( '<img src=\"urlof+image\" />' );
    });

    Hi Adam, your plugin is being very useful, I was wondering how I would go about using the category image as the trigger to show the sub-categories, the exemple you just gave is great, but I end up with the same image for all the categories. Hope you can help. Thank you in advanced.

    Plugin Author Adam Sargant

    (@adamsargant)

    Hi William… unfortunately all my plugin does is a bit of javascript manipulation of WP e-commerces own menu… what you describe would really require a bespoke menu plugin… something I’ve been meaning to do but other projects always seem to take precedence

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP E-commerce Expanding Categories] Changing SPAN to DIV and splitting in two’ is closed to new replies.