ALIVE Platform - Discount Manager
Contributors: WaveDigital s.r.o.
Tags: isic, itic, iytc, alive, isic-scholar, discounts
Requires at least: 5.1
Tested up to: 5.3.2
Requires PHP: 7.3
Stable tag: 1.30.0
Displays ISIC benefit providers, discounts and locations based on data in Discount Manager.
Description
It is a classic WP plugin that communicates with Discount Manager via API. Through the plugin you can load discounts, search for them, sort them, comment, rate, etc. To load the discount interface, you need to add a block of shortcode to your page.
Using shortcode
- Include full discount search interface
[dm_full_discounts list_header="{your-header-text}" card_types="{comma-separated-card-types}" card_types_brands="{card_type=name,card_type=name ...}"]
- list_header - text above search tool bar, example:
list_header="Discounts"
- card_types - a list of cards that have to be applied for the search (ISIC, ITYC, …), if not used, the search applies to all types of cards, example:
card_types="isic, itic, eyca"
, allowed list of card types (isic, isic_scholar, itic, iytc, alive, eyca)
- card_types_brands - alternative card type name parameter, example:
card_types_brands="eyca=EURO<26"
- Include searchbox
[dm_searchbox url="{url-of-page-with-search-interface}"]
- url - url to page with full discount search interface, example:
url="https://www.isic.cz/slevy/cr"
or url="slevy/cr"
- Include newest discounts
[dm_newest_discounts limit="{number-of-displayed-items}" search_page="{url-of-page-with-search-interface}"]
- limit - number of displayed newest discounts, example:
limit="10"
- search_page = url to page with full discount search interface, example:
search_page="slevy/cr"
Installation
- Install WP plugin on page
{WP_INSTALLATION}/wp-admin/plugins.php
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Set up the plugin on the page
{WP_INSTALLATION}/wp-admin/options-general.php?page=alive-dm-plugin-admin
- There is the option to set currency localization, or set up Google Maps and Twitter account, but probably the most important section is Connection settings. It is necessary to set up URLs and technical accounts for communication with Discount Manager and NCDB.
- Add lines to the wordpress .htaccess (For better performance of some requests):
# Rewrite rule for suggestions request proxy.
RewriteCond %{QUERY_STRING} ^(action=suggestions)(.*)$ [NC,OR]
# Rewrite rule for comments request proxy.
RewriteCond %{QUERY_STRING} ^(action=comments)(.*)$ [NC,OR]
# Rewrite rule for providers request proxy.
RewriteCond %{QUERY_STRING} ^(.*)(action=providers)(.*)$ [NC,OR]
# Rewrite rule for provider request proxy.
RewriteCond %{QUERY_STRING} ^(.*)(action=provider)(.*)$ [NC,OR]
# Rewrite rule for comments request proxy.
RewriteCond %{QUERY_STRING} ^(.*)(action=branches)(.*)$ [NC,OR]
# Rewrite rule for increasing providers view count request proxy.
# When using any hardening plugin you will need to whitelist this file
RewriteCond %{QUERY_STRING} ^(action=add_provider_view)(.*)$ [NC]
RewriteRule ^wp-admin/admin-ajax.php$ wp-content/plugins/alive-dm-plugin/request-proxy/request-proxy.php?%1&%2 [NC,L]
Changelog
1.18.0-SNAPSHOT
1.20.0
- Refactor code
- Better handling of exceptions when the database is unavailable
1.20.1
1.20.2
- Minor adjustments
- Change plugin directory
1.20.3
1.22.0
- Use OG metadata only for discount page
1.23.0
1.24.0
1.25.0
- Support for HTML formatting of provider description and discounts
1.26.0
- Shortening the description of the web link for the provider
1.27.0
- Fix display of creation date for comments
1.28.0
- Verifying the card for getting an online sale coupon
1.29.0
- Set disabled button while and after verifying the card ajax request
1.30.0
- Solved verification modal issue, verify also cardholderName, open in new tab and new translations
Upgrade Notice
1.18.0-SNAPSHOT
- On SK tenant instalation use new EYCA card type.
1.20.0
- Update plugin description
- Edit templates according to webmaster requirements
1.20.1
- Possibility to choose map data between GoogleMap and OpenStreetMap
1.20.2
- Edit tag display, fix ascending / descending order of discount providers, change logo, fix tag og_title and minor adjustment
- Need to change the entry in .htaccess from
RewriteRule ^wp-admin/admin-ajax.php$ wp-content/plugins/orchitech-dm/request-proxy/request-proxy.php?%1&%2 [NC,L]
to RewriteRule ^wp-admin/admin-ajax.php$ wp-content/plugins/alive-dm-plugin/request-proxy/request-proxy.php?%1&%2 [NC,L]
1.20.3
- Fix link to Vimeo player to HTTPS instead of HTTP.
- Mark external links as rel = "sponsored" in advertiser detail templates.
1.21.0
- Strip tags of Discount's description containing HTML.
1.23.0
1.24.0
1.25.0
- Remove strip tags of Discount's and Provider's description containing HTML.
1.26.0
- Showing only the base URL, but when the customer clicks on it, the customer is still redirected to the full URL as written in the DM.
1.27.0
- Displaying the creation date of comments in the correct format.
1.28.0
- Verification of an online sale
1.29.0
- Verifcation modal fix issues
1.30.0
- Verify cardholderName in the modal, open in new tab and new translations
Translations
- English
- Czech
- Spanish
- Slovak
- German
- French
- Romanian