Provide improved error messages when entering a promo code fails
Clone or download
dseider
Latest commit 81088ec Mar 20, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Fix not working translations Mar 20, 2018
.gitignore added .idea to ignore Sep 26, 2014
LICENSE.txt renamed license file Oct 5, 2014
README.md added note about css file Oct 30, 2014
composer.json updated license Oct 24, 2014
modman fixed modman file Sep 16, 2015

README.md

Hackathon_PromoCodeMessages

Provide improved error messages when entering a promo code fails.

Current State

Beta. Still working through the various rule types. Currently supports conditions under General Information tab and Conditions tab.

Options

There are two system configuration options under Sales -> Checkout -> Promo Code Error Messages. You can display additional information about the error (for example, if the customer is not in the correct group for the rule, you can display the required groups). In addition, error messaging for the more complex condition-based rules can be turned off.

Translations

Translation file available for English and German (partial).

Styling

Each message is wrapped in a class to use for styling:

promo_error_message: Wraps entire message.

promo_error_additional: Wraps additional information if enabled in System Config.

promo_error_heading: Wraps heading for aggregated messages (i.e., The following conditions must be met:).

promo_error_item: Used in conjunction with promo_error_heading; wraps each condition required for the promo code.

There is a CSS file that will indent nested messages included.

ToDo

  • actions
  • functional tests

License

OSL - Open Software Licence 3.0