Forum Replies Created

Viewing 15 replies - 121 through 135 (of 216 total)
  • Thread Starter deeveedee

    (@deeveedee)

    @w3eden,

    You are correct – that is the new “skinny” toolbar format in version 2.9.48. The original toolbar format (the format in version 2.9.4 that we prefer) displayed the “ORDER” and “ORDER BY” as pull-down menus.

    We have two prototype websites that implement the Download Manager plugin. Site 1 is on version 2.9.48. Site 2 is on 2.9.4.

    Site 1: http://www.deerfieldknoll.com

    Site 2: http://www.riverhoa.org

    We would like to apply a short code option to Site 1 (version 2.9.48) that restores the toolbar to the format in Site 2 (version 2.9.4).

    If you cannot see the websites, it is because your CIDR is blocked. If you can’t see the websites, just let me know how I can send you a screenshot.

    Thank you.

    • This reply was modified 9 years, 1 month ago by deeveedee.
    Thread Starter deeveedee

    (@deeveedee)

    @w3eden,

    Thank you for the suggestion; however

    [wpdm_category id="category" toolbar="skinny"]

    does not retore the “skinny” toolbar style. We’re running WPDM_Extended_Shortcodes 2.7.2 and Download_Manager 2.9.48 with WordPress 4.7.3.

    If you have any other suggestions to restore the original “skinny” toolbar style (short of reverting to Download_Manager 2.9.4 which we are already doing), please let me know.

    Thank you.

    • This reply was modified 9 years, 1 month ago by deeveedee.
    Thread Starter deeveedee

    (@deeveedee)

    @codename065,

    Sorry to bug you about this. Could you please post the shortcode option for [wpdm_category] to restore the compact toolbar in v2.9.46?

    Thank you.

    Thread Starter deeveedee

    (@deeveedee)

    I found that I can force a “refresh” of the billing checkout fields when the payment method is toggled by adding the following to my child theme’s filters.php. Now, when I toggle the payment method at checkout, the woocommerce_checkout_fields are reloaded which re-applies my custom checkout fields filter (to conditionally hide unwanted billing checkout fields based on the payment method). If anyone has a better way or a reason not to do it this way, I’d be interested. Thank you.

    
    function filter_woocommerce_update_order_review_fragments( $array ) { 
       ob_start();
       wc_get_template( 'checkout/form-billing.php', array( 'checkout' => WC()->checkout() ) );
       $array[".woocommerce-billing-fields"] = ob_get_clean();
       return $array; 
    }; 
    add_filter( 'woocommerce_update_order_review_fragments', 'filter_woocommerce_update_order_review_fragments', 10, 1 );
    Thread Starter deeveedee

    (@deeveedee)

    @codename065,

    Thank you for posting v2.9.46. Could you please let me know the shortcode option for [wpdm_category] to restore the compact toolbar?

    Thank you.

    Thread Starter deeveedee

    (@deeveedee)

    Thanks, @lonesomewalker. Your suggestion works perfectly. In fairness to @fruitfulcode, they were merely stating that this customization was not built-into their Theme Options.

    It looks like if you want to selectively enable stick headers on specific pages (instead of enabling globally via Theme Options and then disabling on specific pages using your trick), I might be able to use the CSS below:

    .page-id-xxx .head-container {
         position: fixed;
    }
    .main-slider-container {
       margin-top: [header-height];
    }

    Where [header height] is the height of the header (e.g. for an 80px header, header-height = 80px). I’m still experimenting with this, but it looks close.

    Thanks again.

    • This reply was modified 9 years, 2 months ago by deeveedee.
    • This reply was modified 9 years, 2 months ago by deeveedee.
    • This reply was modified 9 years, 2 months ago by bdbrown.
    • This reply was modified 9 years, 2 months ago by deeveedee.

    I apologize for injecting what might be a slightly new topic into this thread, but I believe my issue is related to this topic and may help others whose search ends here as mine did. I need to toggle checkout field visibility based on the selected payment method. I am using the ‘update_checkout’ trigger, but this does not cause an update of the checkout fields ‘billing_last_name’ ‘billing_first_name’ ‘billing_company’ ‘billing_email’ and ‘billing_phone’

    Is there a trigger that I can invoke (similar to ‘update_checkout’), so that the visibility of these checkout fields updates automatically when the payment method is toggled? Note that I have implemented the fields filter and confirmed that it works by manually refreshing the page after toggling the payment method. Now I just need the checkout fields to “refresh” automatically when the payment method is toggled.

    Thank you.

    • This reply was modified 9 years, 2 months ago by deeveedee.
    Thread Starter deeveedee

    (@deeveedee)

    Hi, @hemsingh1.

    Please disregard my previous question. I figured it out. Thanks again for a great plugin.

    Thread Starter deeveedee

    (@deeveedee)

    Hi, @hemsingh1. After further testing, your update is working perfectly. Thank you! One of the great things about your plugin is that the extra charge updates automatically/dynamically when selecting different payment methods at checkout. Was there anything special that you needed to do to have the extra charge update automatically (when selecting different payment methods) or did this just happen when you added the action

    
    add_action( 'woocommerce_cart_calculate_fees', array( $this, 'calculate_totals' ), 10, 1 );
    

    I’m learning WordPress and WooCommerce, so your answer would help me to understand, but not urgent. Whenever you have time.

    Thanks again for a great plugin. Nice work.

    • This reply was modified 9 years, 2 months ago by deeveedee.
    Thread Starter deeveedee

    (@deeveedee)

    Hi, @codename065,

    Did 2.9.44 include this new short-code option to restore the compact toolbar?

    Thank you.

    Thread Starter deeveedee

    (@deeveedee)

    Hi, @hemsingh1. Thank you for taking the time to respond – it helps me to learn. And thanks again for your hard work on this plugin. It is working well for me.

    Thread Starter deeveedee

    (@deeveedee)

    @hemsingh1 – Thank you for the update! I have more testing, but so far, it looks like it’s working as it should. I’m not an expert, so forgive some remedial questions to help me learn (if you don’t mind):

    1. Why do you use
      add_action( 'woocommerce_cart_calculate_fees', array( $this, 'calculate_totals' ), 10, 1 );
      instead of
      add_action( 'woocommerce_cart_calculate_fees', 'calculate_totals' , 10, 1 );
    2. What is the purpose of $t3?

    Thank you and thanks again for a great plugin!

    Thread Starter deeveedee

    (@deeveedee)

    Thank you for posting the update. Your hard work is greatly appreciated! I should be able to test it within the next week.

    I was able to allow the image/png MIME type by adding the following to my child theme’s functions.php:

    
    function custom_upload_mimes( $existing_mimes=array() ) {
    	// add png to the list of mime types
    	$existing_mimes['png'] = 'image/png';
    
    	// return the array back to the function with our added mime type
    	return $existing_mimes;
    }
    add_filter( 'upload_mimes', 'custom_upload_mimes' );
    
    Thread Starter deeveedee

    (@deeveedee)

    Not sure if I’m helping to identify the problem or just confusing things, but if I add the function/filter below to my child theme’s functions.php, then I can add image/png MIME type with your plugin. Note that if I add the following to my functions.php, then I don’t need to add the image/png MIME type with your plugin. Just reporting this in case it helps to resolve a problem with the plugin. Thank you.

    
    /* Add .png to allowed WP MIME types */
    function custom_upload_mimes( $existing_mimes=array() ) {
    	// add png to the list of mime types
    	$existing_mimes['png'] = 'image/png';
    
    	// return the array back to the function with our added mime type
    	return $existing_mimes;
    }
    add_filter( 'upload_mimes', 'custom_upload_mimes' );
    
    • This reply was modified 9 years, 2 months ago by deeveedee.
    • This reply was modified 9 years, 2 months ago by deeveedee.
Viewing 15 replies - 121 through 135 (of 216 total)