Viewing 15 replies - 16 through 30 (of 35 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Override the template and add a select element back https://github.com/woothemes/woocommerce/blob/2.4.13/templates/cart/cart-shipping.php#L36

    Offering a customer 40+ shipping options cannot be great for conversions though.. Why would you do this?

    mike i have several flooring websites i use woo on i updated to 2.5 version and had to override avada theme now i have no shipping method displayed at all it reads free shipping all the way through help me out brother i need my radio buttons back!

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    mike i have several flooring websites i use woo on i updated to 2.5 version and had to override avada theme now i have no shipping method displayed at all it reads free shipping all the way through help me out brother i need my radio buttons back!

    Check the shipping method itself and ensure it has costs setup; radios are there by default.

    @mike we had many shipping methods because customers could pick where they were wanting an item delivery for free (there was a network of locations) and we had programmatically added each one as its own shipping method. This permitted us to have these locations easily reportable and made a nice user experience. We ended up having to make a single shipping method and then ask on the next page where they would want it to be delivered. This works, but was significantly more complex than simply looping an array of locations and adding them as shipping methods.

    Either way, we were able to work around this limitation, but it would have saved myself and my team significant effort and let us focus on other, more important aspects of this implementation. While bringing the drop down option back isn’t something that needs to happen, the documentation certainly needs to be updated with clear examples on how to manually edit themes to provide such functionality along with not showing the option as available in the documentation. That being said, I really appreciate all of the effort you and your team make on improving woocommerce and I look forward to supporting you all with more plugin purchases in the future.

    I must admit I prefer using a dropdown to choose a shipping method, so for the moment I am using my old cart-shipping.php file which is still working fine.
    I tried the radio buttons using the new 2.5 file, which at first caused a display problem (until I added the css suggested by abdnpass…thx!)
    However I still don’t like the radio button look. We anyway direct customers to choose from a dropdown at the cart on our product pages, and this has always worked fine.
    I’m very happy with Woocommerce overall and grateful for the developers work… but if it is no big deal, I would prefer to have the dropdown display option offered in future releases… just my opinion.

    DRAGOS

    (@dragosstancu)

    It’s quite easy, you need to use the templates.

    In woocommerce/cart/cart-shipping.php replace the code for rendering radio buttons with the code to print the select control (I commented the radio buttons section below):

    <?php elseif ( get_option( 'woocommerce_shipping_method_format' ) === 'select' ) : ?>
    
    				<select name="shipping_method[<?php echo $index; ?>]" data-index="<?php echo $index; ?>" id="shipping_method_<?php echo $index; ?>" class="shipping_method">
    					<?php foreach ( $available_methods as $method ) : ?>
    						<option value="<?php echo esc_attr( $method->id ); ?>" <?php selected( $method->id, $chosen_method ); ?>><?php echo wp_kses_post( wc_cart_totals_shipping_method_label( $method ) ); ?></option>
    					<?php endforeach; ?>
    				</select>
    
    			<?php else : ?>
    
    				<!-- <ul id="shipping_method">
    					<?php foreach ( $available_methods as $method ) : ?>
    
    <li>
    							<input type="radio" name="shipping_method[<?php echo $index; ?>]" data-index="<?php echo $index; ?>" id="shipping_method_<?php echo $index; ?>_<?php echo sanitize_title( $method->id ); ?>" value="<?php echo esc_attr( $method->id ); ?>" <?php checked( $method->id, $chosen_method ); ?> class="shipping_method" />
    							<label for="shipping_method_<?php echo $index; ?>_<?php echo sanitize_title( $method->id ); ?>"><?php echo wp_kses_post( wc_cart_totals_shipping_method_label( $method ) ); ?></label>
    						</li>
    					<?php endforeach; ?>
    				 -->
    
    				<select name="shipping_method[<?php echo $index; ?>]" data-index="<?php echo $index; ?>" id="shipping_method_<?php echo $index; ?>" class="shipping_method">
    					<?php foreach ( $available_methods as $method ) : ?>
    						<option value="<?php echo esc_attr( $method->id ); ?>" <?php selected( $method->id, $chosen_method ); ?>><?php echo wp_kses_post( wc_cart_totals_shipping_method_label( $method ) ); ?></option>
    					<?php endforeach; ?>
    				</select>
    
    			<?php endif; ?>

    For Solutions, you can use WooCommerce Shipping Display Mode plugin: https://wordpress.org/plugins/woo-shipping-display-mode/

    Using this plugin you can decide radio or dropdown.

    Thanks,

    Multidots,
    I tried your plugin. I like the concept but I am getting errors at several times in the process…

    Warning: Cannot modify header information – headers already sent by (output started at /home/techde10/public_html/VinoSay/wp-content/plugins/woo-shipping-display-mode/admin/partials/woo-shipping-display-mode-admin-display.php:17) in /home/techde10/public_html/VinoSay/wp-includes/pluggable.php on line 1228

    Mike,
    I will embrace radio buttons when my clients embrace radio buttons. I have several clients who offer their customers 3 shipping options: UPS,USPS, and FedEx. Some customers will wait 3-5 days for ground. Some want their stuff tomorrow. I’m looking at 15 radio buttons on the checkout page. That ain’t gonna fly.
    I just posted a support ticket at WooThemes. I might have come off a little harsh and I apologize for that but I’m a little stressed that a site I need to have up running next week has a big roadblock as far as my customer is concerned. I will definitely check out going back to earlier modules but I will be extremely careful about updating in the future.

    Dragos,
    Wouldn’t you need to modify WooCommerce setting for shipping to force the ‘woocommerce_shipping_method_format’ to ‘select’ in order for this to work?

    Ken

    Hello @krpenrod,

    Thank you for sharing your feedback with us.

    Actually, I tried latest version of plugin to my server but I didn’t reproduce warning message as you sent us.

    I have updated some of the code, You can download by below links:
    https://downloads.wordpress.org/plugin/woo-shipping-display-mode.zip

    Please try with the latest plugin version and let us know if you find any issues. Also, If possible, please share more details with us.

    Thanks,

    Thanks for getting back to me. I’ll try the updated code out.

    Ken

    Multidots,
    Went to uninstall v 1.0.1 thinking new code had a different version number. Site now is completely hosed when trying to add a new plugin.

    Get error message at top of Add New page:

    parameter 1 to be array, null given in /home/techde10/public_html/VinoSay/wp-admin/includes/class-wp-plugin-install-list-table.php on line 213

    Under Popular tags I’m getting numerous error messages:

    Warning: Illegal string offset ‘name’ in /home/techde10/public_html/VinoSay/wp-admin/includes/plugin-install.php on line 230

    At bottom I’m getting:

    Warning: number_format() expects parameter 1 to be double, string given in /home/techde10/public_html/VinoSay/wp-includes/functions.php on line 222

    Multidots,
    Here’s a clue. With the plugin installed but not activated when I go to other plugins and click on ‘View Details’ it always takes me to the plugin following Shipping Display Mode which is WooCommerce USPS Drop Shipping. Clicking on the ones with ‘Visit Plugin Site’ I am always taken to the appropriate website which is expected since it is linking to an external site and not processing data internally.

    Any suggestions…other than I am foolish for not doing a backup before uninstalling the plugin?

    Your help is appreciated.

    Thanks,
    Ken

    Hello @krpenrod,

    Thank you for your reply. Regarding your 1st reply, It’s seems like these errors are because some plugins conflict. This is not related to our plugin.

    Regarding your 2nd reply, I have tried same things on my server and click on “View details” then it will show related plugin information (Get information from WordPress.org site).

    I am not found any issues for the same. If you need further help then please post your reply in our support Please see below link, So any issues you have will resolve soon:

    https://wordpress.org/support/plugin/woo-shipping-display-mode

    Please let us know so will get more idea. We will happy to help you. Also, Kindly please provide us details options and steps to reproduce this issues, So will more look into it and if we need your site admin details will ask you for the same.

    Thanks,
    Multidots

Viewing 15 replies - 16 through 30 (of 35 total)
  • The topic ‘Shipping Display Mode’ is closed to new replies.