Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiple product select logic #2

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

DeoThemes
Copy link

@DeoThemes DeoThemes commented Jul 29, 2024

Users can select a product using a select dropdown.

How to add multiple products

  1. Add suffixes to the constants
define("FS__PLUGIN_ID_PRODUCT_1", "1234");
define("FS__PLUGIN_PK_APIKEY_PRODUCT_1", "pk_abcde...");
define("FS__PLUGIN_SK_APIKEY_PRODUCT_1", "sk_abcde...");
define("FS__PLUGIN_PLAN_ID_PRODUCT_1", "5678");
define("FS__PLUGIN_PRICING_ID_PRODUCT_1", "90123");
define("CODECANYON_SLUG_PLUGIN_PRODUCT_1", "my-plugin");
  1. Modify the get_constants_by_product function with your product slugs and add more products if needed

  2. Edit the render_shortcode function with your product slugs and names

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant