SOLVED: WooCommerce standard checkout does not display properly

Hello,

I am currently developing a website with WooCommerce. I am using the standard check out leveraging the bloc editor for the sake of simplicity. The rest of the website is leveraging bricks. For some reasons, using the bricks theme, the checkout/payment page does not display properly. I have created a new install, just with bricks and Woo, just to make sure that this was not another plugin creating the problem, but I get the same result as on the site I develop:

With Bricks theme:

The content is wider than the viewport. Seems like the whole section is moved to the right.

With twenty-twenty-five, the page displays correctly:

Thanks
Philippe

1 Like

Hi Philippe,
Thanks so much for your report!

The .alignwide class causes the issue in this scenario. Please add this to Bricks » Settings » Custom CSS to set the width to match your container width.

.woocommerce-checkout .alignwide {
  width: 100%;
}

Best regards,
timmse

Hi Timmse,

Thanks, this solved the problem. Shouldn’t that be out of the box though rather than having to enter some custom CSS ?

Best regards,
Philippe

Well, WooCommerce recently adapted the default checkout template, so the problem is now occurring (it wasn’t an issue before). In 9/10 cases, however, Bricks users don’t use the block template but build their own template.

Nevertheless, I have created an improvement task.

Hi Timmse,

I completely get the fact that in 9/10 cases, users will build their own template. This is what I intended to do in the first place, but I was running into some layout issue with the components, and, due to the urgency of the project, I moved to the default checkout.

Thinks I was struggling with (and did not have the time yet to troubleshoot) is why the option to ship to a different address displays incorrectly (and the tick-box is not working:

and how to remove the underline under the star from mandatory fields.

Best regards,
Philippe

If you can provide me with a live link where I can see the issue, it’s relatively easy to see what’s causing it :slight_smile:

Thanks! Here is a link: Schweizer Schürze

Best regards,
Philippe

The templates are not set to be publicly accessible, so unfortunately, I can’t see it.
Please enable this in Bricks » Settings » Templates, so I have a chance to take a look:

Hello,

I have updated the settings.

Thanks,
Philippe

Hm, that doesn’t seem to work with the checkout. Please send temporary login credentials and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase.

Thanks for the login credentials!

The issue is caused by coreframework’s .checkbox class. WooCommerce uses a checkbox class too, but for a different purpose, which coreframework can’t know.

Either you exclude .woocommerce-form__label.checkbox from the coreframework checkbox style, or unset the checkbox styles within the checkout template, or simply remove the .checkbox class from coreframework.

When you click on the checkout block in Gutenberg and change the Layout type to none instead of wide, then you don’t need any custom css. This fixed it for me.

Hi Timmse,

Thanks for your help. I still have a problem with the custom checkout. I cannot checkout as it tells me that I need to fill an address, which I have done.

Thanks,
Philippe

Thanks Johannes - I will now try to go with the custom checkout flow, but it can still be useful in the future.

Hi guys,

We’ve fixed this in Bricks 1.12 BETA, now available as a manual download (Bricks – Account)

Please let us know if you are still experiencing issues.

You can see the full changelog here: Bricks 1.12 Changelog – Bricks

As with any beta release, please do not use it on a production/live website. It is only meant for testing in a local or staging environment.

Best regards,
Matej