You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pull request addresses several issues related to subdirectory installations and the handling of CSS in CMS content. Key changes include:
Subdirectory URL Handling:
Centralized the construction of REST and GraphQL URLs to ensure they correctly reference the subdirectory installation path, preventing issues with incorrect URL resolutions.
Updated shortcode product links to normalize backend URLs, ensuring they work correctly in both subdirectory and root installations.
CMS Style Block Promotion:
Sanitized <style> blocks from CMS content are now promoted into the document head for both product descriptions and regular CMS pages, ensuring that styles are applied correctly.
Restored previous behavior for Gutenberg styles to maintain the correct cascade/order in the page's style application.
Zero-Price Product Handling:
Implemented logic to hide prices for products with a price of 0 or 0,00, changing the call-to-action from "Add to cart" to "Learn more".
Testing and Validation:
Comprehensive regression tests were added, with all targeted tests passing successfully, ensuring that the changes do not introduce new issues.
These updates aim to enhance the functionality of the storefront in multisite and subdirectory configurations while maintaining compatibility with existing root-level installations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request addresses several issues related to subdirectory installations and the handling of CSS in CMS content. Key changes include:
Subdirectory URL Handling:
CMS Style Block Promotion:
<style>blocks from CMS content are now promoted into the document head for both product descriptions and regular CMS pages, ensuring that styles are applied correctly.Zero-Price Product Handling:
0or0,00, changing the call-to-action from "Add to cart" to "Learn more".Testing and Validation:
These updates aim to enhance the functionality of the storefront in multisite and subdirectory configurations while maintaining compatibility with existing root-level installations.