chameleon-system/country-based-pricing-bundle
This package is abandoned and no longer maintained.
The author suggests using the chameleon-system-private/country-based-pricing-bundle package instead.
Provides alternative prices based on the users current shipping or billing address
7.1.2
2023-05-30 05:52 UTC
Requires
- geoip2/geoip2: ~2.0
README
The Bundle makes it possible to define different prices for different billing countries.
Installation
- The Text shown in the country selection layouver can be changed via the menu "Textbausteine" ("chameleon_system_country_based_pricing.country_selection_text").
- You need to add the Resources/view folder to your theme (or copy the views).
- add Resources/config/routing.yml to your /app/config/routing.yml
Testing
You can test the country selection layover for different IPs by setting the parameter chameleon_system_country_based_pricing.mock_ip in your parameters.yml.
parameters:
chameleon_system_country_based_pricing.mock_ip: "123.211.111.111"
Since the package was developed to provide custom prices for austria, it provides an AT IP via chameleon_system_country_based_pricing.mock_ip_country_austria
parameters:
chameleon_system_country_based_pricing.mock_ip: "chameleon_system_country_based_pricing.mock_ip_country_austria"
Additional Information
The Bundle will trigger the event \ChameleonSystem\CountryBasedPricingBundle\ChameleonSystemCountryBasedPricingEvent::USER_COUNTRY_CHANGED whenever the user changes his (billing) country. The event is used to trigger a basket recalculation.