You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$freemium = Util::getShopifyConfig('billing_freemium_enabled');
if ($freemium=== true) {
// Add the freemium flag to the shop
$shopCommand->setAsFreemium($shopId);
}
If billing_freemium_enabled is true, but the Freemium flag is not set, the condition is not working properly.
Current Behavior
if condition is always false for billing_freemium_enabled
Failure Information
Assigning the billing_freemium_enabled value to variable $freemium causing the issue. If we use the below code
if (Util::getShopifyConfig('billing_freemium_enabled') === true) {
// Add the freemium flag to the shop
$shopCommand->setAsFreemium($shopId);
}
then it is working. I have found that we are using same type of condition check on Billable middleware
if (Util::getShopifyConfig('billing_enabled') === true) { }
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
install the shopify app then
uninstall the app
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Package Version: v19.2.0
Laravel Version: v10.10.0
PHP Version: v8.3.3
Template Engine: React
Using a toolset (Docker, Laradock, Vagrant, etc.): Valet linux
Failure Logs
Please include any relevant log snippets or files here.
The text was updated successfully, but these errors were encountered:
@alamriku you have a type, you are missing a $ for your if statement - it should be like this but not tested it.
$freemium = Util::getShopifyConfig('billing_freemium_enabled');
if ($freemium=== true) {
// Add the freemium flag to the shop
$shopCommand->setAsFreemium($shopId);
}
This does not look like an issue with the package, so going to close this issue but if you can provide more information on it being one, we can re-open.
Expected Behavior
If billing_freemium_enabled is true, but the Freemium flag is not set, the condition is not working properly.
Current Behavior
if condition is always false for billing_freemium_enabled
Failure Information
Assigning the billing_freemium_enabled value to variable $freemium causing the issue. If we use the below code
then it is working. I have found that we are using same type of condition check on Billable middleware
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Failure Logs
Please include any relevant log snippets or files here.
The text was updated successfully, but these errors were encountered: