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

  1. 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 ...}"]
  1. Include searchbox
    [dm_searchbox url="{url-of-page-with-search-interface}"]
  1. Include newest discounts
    [dm_newest_discounts limit="{number-of-displayed-items}" search_page="{url-of-page-with-search-interface}"]

Installation

  1. Install WP plugin on page {WP_INSTALLATION}/wp-admin/plugins.php
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Set up the plugin on the page {WP_INSTALLATION}/wp-admin/options-general.php?page=alive-dm-plugin-admin
  1. 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

1.20.1

1.20.2

1.20.3

1.22.0

1.23.0

1.24.0

1.25.0

1.26.0

1.27.0

1.28.0

1.29.0

1.30.0

Upgrade Notice

1.18.0-SNAPSHOT

1.20.0

1.20.1

1.20.2

1.20.3

1.21.0

1.23.0

1.24.0

1.25.0

1.26.0

1.27.0

1.28.0

1.29.0

1.30.0

Translations