[17.0][ADD] website_whatsapp_dynamic_message: Context-aware WhatsApp messages#1163
Open
[17.0][ADD] website_whatsapp_dynamic_message: Context-aware WhatsApp messages#1163
Conversation
87078f7 to
b63146e
Compare
This module extends website_whatsapp to provide dynamic WhatsApp messages based on page context. When visitors view product pages, the WhatsApp button automatically generates personalized messages including the product name. Key features: - Automatic product name inclusion in WhatsApp messages on product pages - Default message behavior on non-product pages (homepage, contact, etc.) - Full backward compatibility with website_whatsapp module - Proper URL encoding for special characters and Unicode - Support for URL tracking on all pages - Translatable message templates for multilingual websites - Zero configuration required - works immediately after installation Technical implementation: - Extends website model with _get_dynamic_whatsapp_message() method - Overrides _get_track_url_message() to support product context - Template inheritance from website_whatsapp.layout - Comprehensive test suite with 18 unit and integration tests - OCA-compliant documentation and translation support
b63146e to
2eea8e5
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 module extends website_whatsapp to provide dynamic WhatsApp messages based on page context. When visitors view product pages, the WhatsApp button automatically generates personalized messages including the product name.
Key features:
Technical implementation: