We haven’t specifically tested with that plugin, but we have confirmed that the plugin is compatible with WordPress Multisite.
By default, default each site will have its own Gift Card database keeping track of numbers/balances separately. To allow a gift card to be used on any site in the multisite network, perform these steps. It will switch to use the central gift card database for all numbers and balances:
1. Log into your FTP site and edit wp-config.php
2. Edit wp-config.php and scroll to the end. Add the code above the line that says “Happy blogging.” or something similar:
define( 'PWGC_MULTISITE_SHARED_DATABASE', true );
/* That's all, stop editing! Happy blogging. */
3. Save the wp-config.php file and re-upload it to your server.
Let me know if this also works with WCLover’s plugin.
Hello. Thank you for the reply! But I’m not quite sure if it’s clear to me. Will this code you provided keep users from applying gift card discounts in every store? Or actually allow them to? Because that’s not what I actually want.
If a vendor creates a gift card for users to buy than it should only be applied to their own products. If not, then users can get discounts on other vendor’s products unintentionally.
The code I provided will allow them to use the same gift card in any store for a WordPress Multisite setup. That isn’t what you want, the default behavior is a single database per site which means that the gift card would only be valid for the store where it was purchased.
With all of this being said, I don’t think WordPress Multisite is the same thing as the plugin you are using. You will need to test the gift card plugin in your configuration to see if it meets your needs.
If the WCFM plugin you are using creates a separate database per store then it should work, however if all products are kept in a single database then our plugin won’t be suitable for your needs.
Hi There
Im trying the same type of install using WCFM and your plugin, In the small chance you might be looking into this.
here’s hoping
-
This reply was modified 5 years, 10 months ago by
whiteyzn.
We may look into this for a future update but for now this isn’t something that our plugin can do. If we add support for WCFM then we will update this thread.