Skip to content

[17.0][ADD] website_whatsapp_dynamic_message: Context-aware WhatsApp messages#1163

Open
cormaza wants to merge 1 commit intoOCA:17.0from
cormaza:17.0-add-website_whatsapp_extension
Open

[17.0][ADD] website_whatsapp_dynamic_message: Context-aware WhatsApp messages#1163
cormaza wants to merge 1 commit intoOCA:17.0from
cormaza:17.0-add-website_whatsapp_extension

Conversation

@cormaza
Copy link

@cormaza cormaza commented Feb 18, 2026

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

@cormaza cormaza force-pushed the 17.0-add-website_whatsapp_extension branch from 87078f7 to b63146e Compare February 18, 2026 16:08
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
@cormaza cormaza force-pushed the 17.0-add-website_whatsapp_extension branch from b63146e to 2eea8e5 Compare February 18, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant