Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Cart does not show "Change address" if TRS is active. #9025

Closed
sverleis opened this issue Apr 12, 2023 · 16 comments
Closed

Cart does not show "Change address" if TRS is active. #9025

sverleis opened this issue Apr 12, 2023 · 16 comments
Labels
block: cart Issues related to the cart block. type: bug The issue/PR concerns a confirmed bug.

Comments

@sverleis
Copy link

Describe the bug

When Table Rate Shipping is active, the "Change address" element is removed from the cart, when using WooCommerce Blocks. Having Blocks disabled and using the WooCommerce version does not produce this issue.

To reproduce

Steps to reproduce the behavior:

  1. Install Table Rate Shipping
  2. Install WooCommerce Blocks
  3. Set up a cart page, using the cart block.
  4. Shipping options will not allow for an address change.

Expected behavior

As per the core WooCommerce block, address change should be possible.

Screenshots

Z4TvGr.gif

Environment

WordPress (please complete the following information):

  • WordPress version: 6.2
  • Gutenberg version (if installed): n/a
  • WooCommerce version: 7.5.1
  • WooCommerce Blocks version: 10.0.0
  • Site language: en_US
  • Any other plugins installed:

Jetpack: by Automattic – 12.0
MailPoet: by MailPoet – 4.11.0
Sensei LMS: by Automattic – 4.13.0
WooCommerce Deposits: by WooCommerce – 2.1.5
WooCommerce Payments: by Automattic – 5.7.0

Desktop (please complete the following information):

  • OS: macOS
  • Browser Chrome
  • Version: 111.0.5563.110

Additional context

Internal ticket: #6194752-zen

@sverleis sverleis added the type: bug The issue/PR concerns a confirmed bug. label Apr 12, 2023
@wavvves
Copy link
Contributor

wavvves commented Apr 13, 2023

Hi @sverleis. Thanks for reaching out with this.

Can you share your settings for shipping and Table Rate config?
Also does this occur with another theme (eg Storefront)

I tried to replicate the bug without success:
image

@wavvves wavvves added needs feedback block: cart Issues related to the cart block. labels Apr 13, 2023
@kromeninja
Copy link

Can you try this in a private browser as I can reproduce this also, sometimes on an admin account it does display the change address, but most of the time it doesnt display with the table rate plugin enabled. As soon as i enable the table rate plugin it doesn't display the change address button

@mikejolley
Copy link
Member

I tested this both logged in and out with only a single Table Rate active and could not replicate the issue.

Table Rates itself has no dedicated blocks integration so I cannot see what would prevent the button appearing unless its some other setting.

Could you share screenshots of your Table Rate Settings, Zones, and WooCommerce > Settings > Shipping > Shipping options?

@kromeninja
Copy link

Hi @sverleis. Thanks for reaching out with this.

Can you share your settings for shipping and Table Rate config? Also does this occur with another theme (eg Storefront)

I tried to replicate the bug without success: image

I am having the same issue, I cannot change the address in the cart page at all, and defaults to the shop default address. I have attatched a few images, hopefully this helps. I do have a staging site i can share if needed in private

Table_Rate_2
Table_Rate
Shipping_Options

@kromeninja
Copy link

So this issue seems to be due to the option "Enable the shipping calculator on the cart page" missing within WooCommerce > Settings > Shipping >Shipping Options. I see the option within the WooCommerce cart block editor page and its enabled there, but this doesnt allow the "change address to be shown" you have to have the option "Enable the shipping calculator on the cart page" ticked and as this option is missing for me the change address isn't showing.

Picture from a support chat, the rep had the option whereas thats omitted for me
Markup 2023-05-19 at 12 13 56

@kromeninja
Copy link

An update to this after testing further. If i use any WooCommerce version after 7.5.0 the "Change address" option does not appear, neither does the "Enable the shipping calculator on the cart page" option within WooCommerce > Settings > Shipping >Shipping Options.

As a temporary solution i will have to downgrade, but hopefully this can be resolved

Enable_Shipping_Setting
Change_Address_V7 5 0

@kromeninja
Copy link

Another update to this, after testing the latest woocommerce 7.7.0 with version 9.8.2 woocommerce blocks installed the "Enable the shipping calculator on the basket page" option is still shown within WooCommerce > Settings > Shipping >Shipping Options. Within the woocommerce blocks update 9.9.0 there was a change that was to remove certain shipping settings within the above directory. That is not a problem but the 9.9.0 upodate does cause the "Change address" button to not show on the cart page even if it is enabled within the cart block instead

@tarunvijwani
Copy link

@kromeninja I tested it with the Table Rate Shipping plugin, and it works as expected.

If you have any default shipping method, it won't display the change shipping address link. This change was introduced in #8141 PR.

@kromeninja
Copy link

@kromeninja I tested it with the Table Rate Shipping plugin, and it works as expected.

If you have any default shipping method, it won't display the change shipping address link. This change was introduced in #8141 PR.

Hey thank you for the reply. I see that is a shame, I would like to have the geo location enabled or even the shop / country region setting enabled, but still have the change address incase the customer does not live in the same country as the store. The other reason for this is due to the way prices are displayed depending on the address due to VAT, the customer would have to go to the checkout page to change their address to see the correct prices on the store

@tarunvijwani
Copy link

@kromeninja If that's the case, you might want to remove the default shipping method. In that way, it will display the change address link.

@kromeninja
Copy link

kromeninja commented May 24, 2023

Hey when i set it to "No location by default it doesn't show the change address option on the checkout page for the customer, instead it just seems to display a table rate zone instead.

Within the cart block also there is the following option, is this supposed to show the change address as this doesn't show the change address button on the cart page.

From a customer user experience it makes more sense to have it on geolocation so it is showing the correct shipping prices for that customer, and the change address can be used if they want to ship it to another country. Currently it’s quite confusing for customers as they think i do not ship to their country as it doesn’t show any way to change the address on the cart page, the customer won’t always go to the checkout page to try and change the address if it doesn’t show this within the cart page.
Shipping Calculator

@mikejolley
Copy link
Member

If you have any default shipping method, it won't display the change shipping address link. This change was introduced in #8141 PR.

@tarunvijwani what did you mean by this? It is my understanding that the only factor that affects the change address link is the block level toggle, and the main setting under WC > Settings > Shipping.

@tarunvijwani
Copy link

@mikejolley No, if there is any shipping method that is applicable for all the shipping locations then it will not display the shipping calculator at all. This was discussed in the #8141 (comment)

Customers can change the shipping address from the checkout page and the shipping cost will be recalculated accordingly.

@tarunvijwani
Copy link

@kromeninja Could you please reproduce the same on any test site like instaWP and share the site details with us?

It will help us to check the settings of the site and guide you through further steps to display the calculator. If required, we will log the issue for you.

@mikejolley
Copy link
Member

@mikejolley No, if there is any shipping method that is applicable for all the shipping locations then it will not display the shipping calculator at all. This was discussed in the #8141 (comment)

This is flawed @tarunvijwani unless you mean the shipping method is the same, as well as the price? Otherwise you could have several different flat rates and not be able to change the rates.

@mikejolley
Copy link
Member

We'll need to do further investigation into this. Closing in favour of woocommerce/woocommerce#42280

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: cart Issues related to the cart block. type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
Development

No branches or pull requests

5 participants