Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wc 8.5 alerts #671

Merged
merged 4 commits into from
Jan 20, 2024
Merged

Fix wc 8.5 alerts #671

merged 4 commits into from
Jan 20, 2024

Conversation

crftwrk
Copy link
Member

@crftwrk crftwrk commented Jan 16, 2024

This is an urgent one. WC 8.5 changes the notice classes and I needed a few days to figure that out.

Before After
before after

Check

Add on both sites the product twice to the cart to show the success and danger alert, then empty cart to show the empty cart message.

Not every file must be checked, overall view is enough. In conclusion:

  • It is not possible to override the new alerts with CSS without !important
  • So, I readded WC notice templates and changed classes to alert alert-*
  • Changed classes in ajax-cart.php and fixed the SCSS
  • Moved _wc_alerts.scss content to _wc_deprecated.php as a fallback for older WC versions, but keep the empty file to make eventually quick fixes.

@justinkruit IYLIMI

@crftwrk crftwrk added WooCommerce bug Something isn't working labels Jan 16, 2024
@justinkruit justinkruit merged commit d3ba4c0 into main Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working WooCommerce
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants