Add free shipping progress bar feature to merchant conflict modal #410
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.
📋 Summary
This PR adds the Free Shipping Progress Bar module to the Botiga-Merchant overlapping features modal system. When users try to activate the Merchant Free Shipping Progress Bar module while Botiga's version is active, they will see a conflict modal allowing them to choose between the two implementations.
�� What's Changed
Files Modified:
inc/plugins/merchant/class-merchant-overlaping-features-modal.php
inc/plugins/merchant/class-merchant-overlaping-features.php
Changes Made:
Added Free Shipping Progress Bar to modal settings map (
class-merchant-overlaping-features-modal.php
):'free-shipping-progress-bar'
entry to$disable_settings_map
'has_module' => true
and customizer section'botiga_section_free_shipping_progress_bar'
Added Free Shipping Progress Bar to overlapping modules (
class-merchant-overlaping-features.php
):'free-shipping-progress-bar'
to$overlaping_modules
array$modules_map
array🔧 How It Works
When a user tries to activate the Merchant Free Shipping Progress Bar module:
🧪 Testing Steps
Prerequisites:
Test Scenarios:
Scenario 1: Botiga Free Shipping Progress Bar Active
Setup:
Test Conflict Modal:
Test "Continue with Botiga" Option:
Test "Switch to Merchant" Option:
Scenario 2: Botiga Free Shipping Progress Bar Inactive
Setup:
Test Normal Activation:
Scenario 3: Botiga Pro Not Available
Setup:
Test Behavior:
Visual Testing:
Browser Testing:
🔍 Code Review Checklist
�� Notes
🎯 Related Issues
See #409