Using Shortcodes
The EDGE Store plugin provides several shortcodes that allow you to display dynamic content on your site’s pages.
[edge_catalog_selection]
- Purpose: Displays a grid of available B2B catalogues.
- How it Works: This shortcode finds all the user roles that are set to “Allow Registrations” and displays them in a product-like grid. Each item in the grid shows the role’s name and its assigned logo.
- Usage: This is typically used on a main landing page to direct users from different institutions to the correct login or registration page.
- Clicking the “General Public” catalogue leads directly to the shop.
- Clicking any other institution’s catalogue leads to the login page.
[edge_registration] and [edge_registration_students]
- Purpose: Displays the correct registration form.
- How it Works: These shortcodes are designed to be placed on your main registration pages. They read a parameter from the URL (
?rid=...) to determine which role the user is trying to register for.- If the role is valid and allows registration, it displays the main Gravity Form for registration.
- If the role is invalid or does not allow registration, it displays an error message.
- If no role is specified in the URL, it displays the general enquiry form.
- Usage: You should place
[edge_registration]on your main “Institution Registration” page and[edge_registration_students]on your “Student Registration” page. The links generated in the B2B Role Settings will automatically point to these pages with the correctridparameter.