Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter jaydeesigns

    (@jaydeesigns)

    Alright nevermind. I see checkboxes arrays are serialized and it would be quite tedious to get values from them. So in case anyone is trying to achieve something similar. It would be a better idea to create separate individual checkbox fields and create the query with true/false (0,1) values.

    Thread Starter jaydeesigns

    (@jaydeesigns)

    Hey enekobarrero, I am sorry I hadn’t seen your message before. I hope you got it working. I haven’t used the radio button list so if you got it working, it’d be cool to see your solution.

    @igloobob. Don’t know why your child categories wouldn’t show, check out the source code to confirm they are not being output.

    Thank you @tc.K. I looked around for different plugins that wouldn’t require much modification from this side, and came across this nifty tool.
    I hope it’s useful to you too @yesfree, all you have to do is add a class to your dropdown and style the list to your needs.

    Hey TC.K, I didn’t want to create a new topic as this is pretty much also what I want to do.

    I want to replace the default dropdown using a jquery plugin that will transform a <select> to an unordered list I can style to my needs. What I don’t know is how to make these links functional so they can trigger your plugin’s search filter. Is this something I can do by editing your code? maybe you can guide me towards the files I would have to modify, thanks!

    Hi dpowney, I’m afraid I am developing my site locally. I couldn’t find a solution for my problem so I ended up using a different approach. This is a nice plugin nonetheless. I’m pretty sure it was just a conflict between the two plugins but I was in a hurry.

    Hey Hadhops, what settings are you using? how are you displaying your content? you can check out uwpqsf-front-class.php and see how the content is output. You would have to add “$term->description” where you want it to appear. However you shouldn’t edit this file directly, you should use a filter on your functions file to modify this behavior.

    Thread Starter jaydeesigns

    (@jaydeesigns)

    Ok so I’ve managed to solve my problem, I am sure there must be a much cleaner way to achieve this and I would appreciate if anyone could post it here.

    In my theme functions file I have added the following filters:

    //Display parent categories only
    add_filter('uwpqsf_taxonomy_arg', 'custom_term_output','',1);
    function custom_term_output($args){
    $args['parent'] = '0';
    return $args;
    }
    //MODIFY TAXFIELD DROPDOWN OUTPUT TO IDENTIFY AND STYLE CHILD CATEGORIES
    add_filter('uwpqsf_tax_field_dropdown','custom_dropdown_output','',12);
    function custom_dropdown_output($html,$type,$exc,$hide,$taxname,$taxlabel,$taxall,$opt,$c,$defaultclass,$formid,$divclass){
    
    $args = array('hide_empty'=>$hide,'exclude'=>$eid );
    $taxoargs = apply_filters('uwpqsf_taxonomy_arg',$args,$taxname,$formid);
    $terms = get_terms($taxname,$taxoargs); $count = count($terms);
    
    			 if($type == 'dropdown'){
    			$html  = '<div class="'.$defaultclass.' '.$divclass.' tax-select-'.$c.'"><span class="taxolabel-'.$c.'">'.$taxlabel.'</span>';
    			$html .= '<input  type="hidden" name="taxo['.$c.'][name]" value="'.$taxname.'">';
    			$html .= '<input  type="hidden" name="taxo['.$c.'][opt]" value="'.$opt.'">';
    			$html .=  '<select id="tdp-'.$c.'" name="taxo['.$c.'][term]">';
    			if(!empty($taxall)){
    				$html .= '<option selected value="uwpqsftaxoall">'.$taxall.'</option>';
    			}
    					if ( $count > 0 ){
    						foreach ( $terms as $term ) {
    					 $selected = $terms[0]->term_id;
    $html .= '<option value="'.$term->slug.'">'.$term->name.'</option>';
    
        $args = array(
            'hide_empty'    => false,
            'hierarchical'  => true,
            'parent'        => $term->term_id
        );
        $childterms = get_terms($taxname, $args);
    
        foreach ( $childterms as $childterm ) {
                $selected = $childterms[0]->term_id;
    
            $html .= "<option value='".$childterm->slug."'"."> &nbsp;&nbsp; >"  . $childterm->name . '</option>';
    
        }}
    			}
    			$html .= '</select>';
    			$html .= '</div>';
    			return  apply_filters( 'custom_dropdown_output', $html,$type,$exc,$hide,$taxname,$taxlabel,$taxall,$opt,$c,$defaultclass,$formid,$divclass);
    		}
    
    }

    With this code I managed to have my subcategories indented under their parent categories.

    Thanks for pointing me in the right direction TC.K, I hope something like this can be added to the plugin so users can have this behavior by default.

    Thread Starter jaydeesigns

    (@jaydeesigns)

    Hey TC.K, thanks for your quick reply, I am not very familiar but I will give it a try and post back with any solution I find for my problem. However I believe this should be default behavior for sub-categories as I don’t think anyone with multiple level categories expects to have them all on the same level.

    Thanks again!

    Hello, I am also using <?php echo Multi_Rating_API::display_rating_form(); ?> to display my rating forms. I am using an AJAX filter that displays posts according to the taxonomy selected. (see here)

    My problem is that after filtering my posts, the rating forms are still visible but it seems all scripts stop being called, I cannot select a rating and nothing happens after clicking the submit button.

    Any idea on what could be wrong?

    Thanks!

    Thread Starter jaydeesigns

    (@jaydeesigns)

    Hey, I didn’t want to create a new topic for this. Just wanted to know if you believe this option will be included in a future version of the plugin. Thanks!

    Thread Starter jaydeesigns

    (@jaydeesigns)

    Hola digitalhydra, hice una nueva instalación de wordpress y los complementos, y comprobé que todos los datos fueran los correctos. Al parecer esto resolvió mi problema. Agradezco mucho tu atención.

    Thread Starter jaydeesigns

    (@jaydeesigns)

    Hola digitalhydra, gracias por tu pronta respuesta.
    Pues he confirmado que todos los campos sean los correctos, incluyendo el API key, Account ID y Merchant ID, pero sigo recibiendo el mismo error.

    Habrá otra característica del complemento o de woocommerce que deba activar?

    Gracias.

    Hi people, I am wondering if any of you guys found a solution to this issue. I would like to apply a discount to only one variation as follows:

    Var1 – No discount.
    Var2 – Apply % discount if customer buys at least two of these.
    Var3 – No discount.

    I understand this is currently not a feature of this plugin. However, I do understand what the “treat product variations separately” does, it doesn’t act the same. it’s a very useful feature and the author has explained this well, so let’s not blame the author if we don’t understand or don’t want to read the docs:

    If it’s unchecked it means that if the number of variations a customer selects is equal or superior to the minimum quantity you have set up, the discount will apply to all the products in the cart.

    If it’s checked, your customers will have to add the minimum quantity for each variation in order for the discount to apply.


    @rene, I appreciate your decision to keep this plugin free, it’s very useful! it’d be great to have the feature I’ve requested, please let us know if this would be possible in the near future

    Hi ppradeep, I came here to say I had the same issue, however after reading your comment I realized my website is a multisite installation as well, and I use woocommerce in only one of these sites. If this is also your case, avoid activating the plugin for the whole network, do it only for the site using woocommerce. After doing this I can now see the ‘Bulk discounts’ tab in my product panel.

    Thread Starter jaydeesigns

    (@jaydeesigns)

    Yes, this has solved my problem, thanks a lot!

Viewing 15 replies - 1 through 15 (of 18 total)