Multiple collection options but shows same store
-
We have a few places the customer can collect as we goto markets in the local area. So it looks fine if they select collect at shop the ‘shipping to’ section shows our address. but if they select collect from the market the shipping to section shows the same address so is confusing the customers, anyway to either have it say the same wording as the shipping method itself?
While I am here, the wording pick up at STORE should be customisable as it would be at a market / shop in the UK.
Thanks, looks great and looking forward to pro version
-
Hi @marc12,
Thanks for the feedback.
I had to make a few changes to the code to allow for these customizations, which will be available with the next version (1.3.0).
I removed the label “Pickup at store” and changed the substep title to “Pickup point”.
If you want to test it out before the release, you can download this beta version:
After you update to version 1.3.0 when released (or 1.3.0-beta-1), you can add the code below to hide the “main store” — the one set up in the WooCommerce settings — and show the selected shipping method label instead.
/** * Change the shipping address text to display the local pickup label. */ function fluidcheckout_change_shipping_address_text_pickup_point_html( $html ) { // Bail if <code>WC</code> or <code>FluidCheckout_CheckoutLocalPickup</code> not available if ( ! function_exists( 'WC' ) || ! class_exists( 'FluidCheckout_CheckoutLocalPickup' ) ) { return $html; } // Use store base address for <code>local_pickup</code> if ( FluidCheckout_CheckoutLocalPickup::instance()->is_shipping_method_local_pickup_selected() ) { $html = '<div class="fc-step__substep-text-content fc-step__substep-text-content--shipping-address">'; $packages = WC()->shipping()->get_packages(); foreach ( $packages as $i => $package ) { $available_methods = $package['rates']; $chosen_method = isset( WC()->session->chosen_shipping_methods[ $i ] ) ? WC()->session->chosen_shipping_methods[ $i ] : ''; $method = $available_methods && array_key_exists( $chosen_method, $available_methods ) ? $available_methods[ $chosen_method ] : null; $chosen_method_label = $method ? wc_cart_totals_shipping_method_label( $method ) : ''; $html .= '<div class="fc-step__substep-text-line"><strong>' . wp_kses_post( $chosen_method_label ) . '</strong></div>'; // WPCS: XSS ok. } $html .= '</div>'; } return $html; } add_filter( 'fc_substep_shipping_address_text', 'fluidcheckout_change_shipping_address_text_pickup_point_html', 60 );And to change the substep title from “Pickup point” to something else like “Collection point” you can use the code below:
/** * Change the local pickup point substep title. */ function fluidcheckout_change_local_pickup_point_title( $substep_title ) { $substep_title = __( 'Collection point', 'your-text-domain' ); return $substep_title; } add_filter( 'fc_shipping_address_local_pickup_point_title', 'fluidcheckout_change_local_pickup_point_title', 10 );I’m planning to add better support for local pickup with multiple locations and other information in future releases.
I will update you here once version 1.3.0 is released and available to update via the dashboard.
I hope this helps π
Best,
Hi Diego, thanks for reading it. I’ll just wait for the updates as I don’t know where to put the code and don’t want to break things.
I have some more feedback if you would like:
1/ We have guest checkout disabled, however when people get to the checkout screen they can still fill out all the details, however when they click the pay button it just says billing error and doesn’t tell them they need to login/make an account. I think when we have it disabled and people get to the check out it should just have a login button / create account to start the process.
2/ I use order delivery date pro to allow our customers to select when they get their orders, Fluid seems to show the calendar and selection for it in the payment method/ billing window, I think this should be just after the address section as the delivery options depend on what address they enter.
3/ I cant pin point this but there’s some kind of refresh happening and it resets the option for delivery. For example, I have 5 listed, I select the any below the first one, it selects it but then ‘refreshes’ and it auto selects the defaulted top one. I’ve had a couple of customers select the wrong option but were 100% convinced they selected the correct one. Not sure if this is related to my theme (Flatsome) or just the way woocommerce refreshes the screen, or order delivery date plugin, however not had this issue before I installed Fluid.
Thanks, thats all for now π
Hi @marc12,
No problem π
You can follow the instructions to add customization code explained on this article, from these methods I prefer using a plugin such as “Code snippet“:
https://woocommerce.com/posts/properly-add-woocommerce-custom-code/1/ I confirm this is currently an issue. I’ll check what is happening.
2/ Could you confirm the exact plugin you are using? Fluid Checkout does support βDelivery & Pickup Date Time for WooCommerce (Free)β by CodeRockz, but does not yet support “Order Delivery for WooCommerce” by Themesquad (sold by woocommerce.com). However, I’m going to add support for the later plugin pretty soon.
3/ Sorry for that inconvenience… I just fixed this refresh issue although the new version with the fix is not released yet (1.3.0). There is a beta version available but I do not recommend you try it if you do not have backups and a staging/test copy of your site in place to test it out. If you do, here it is:
https://t2449427.p.clickup-attachments.com/t2449427/b35a7438-7913-4c9d-baa2-82f8eda82710/fluid-checkout-1.3.0-beta-3.zipBest,
DiegoHi @marc12,
The new version (1.3.0) of the plugin has just been released with the fixes mentioned in the previous messages.
1/ I still need to check this error.
2/ Could you confirm which plugin you are using? I need this information to proceed with checking this issue.
3/ This issue has been fixed with this release (1.3.0).
Best,
DiegoThanks Diego, Installed 1.3, refresh issue seems to be fixed, thanks!
2/ We use order delivery date pro for woo commerce by Tyche Softwares.
I haven’t attempted the code you put up for showing the same label as the collection point instead of the woo commerce address, I must do that and I think once the delivery date calendar is in the right place it will be perfect.
Thank you!
Also another note, the default shipping same as billing is usually ticked but it doesn’t copy over into the shipping section, so when looking at the orders dash board you cant easily see where it is going to, not a big deal but the other plugins copy the info. Thanks! π
Just found another bug, the refresh itself is fixed but with the calendar for order delivery date if I select a date on it, it will then ‘refresh’ the collection options and select the top one again, for example:
Shipping options:
Select collection shop
Select local delivery
Mail orderI select mail order.
When i get to billing the delivery calendar comes up and lets me select a day, it defaults to the closest date so lets say wednesday, but I choose friday on the calendar, it will then choose the top shipping option when it should have stayed with mail order.
Thanks!
Sorry, just found the plug-in lets you specify where to put the calendar, i took a screenshot
https://ibb.co/yX86Lx7There’s an option for custom hook. It would be good if I could put the calendar in the shipping method section before the selection of methods but I dont know what to do with the hook?
Thanks again!
-
This reply was modified 4 years, 8 months ago by
marc12.
Hi @marc12,
Fluid Checkout has some hooks that could be used with the custom hooks option.
You could try one of the hooks below and see how it goes, using these hooks will place the delivery fields inside the substep:
fc_before_substep_shipping_methodsfc_before_substep_shipping_addressfc_after_substep_shipping_methodsfc_after_substep_shipping_address
However, be aware that it won’t integrate seamlessly with the steps and substeps of the checkout form unless we explicitly add support for the plugin you are using.
Best,
DiegoHi Diego, Unfortunately that didn’t work, that’s okay, I’ll wait for future updates, thank you so much for your help and time!
-
This reply was modified 4 years, 8 months ago by
The topic ‘Multiple collection options but shows same store’ is closed to new replies.