« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Invalid argument supplied for foreach()
Error type/ Nr.: Warning - 2
File: /html/geyser/assets/snippets/foxycart_webuser_subscriptions/snippet.FoxyCart_Subscription_Link.php
Line: 54
Line 54 source: foreach($tvs as $name=>$value) {
Parser timing
MySQL: 0.2474 s (12 Requests)
PHP: 0.3145 s
Total: 0.5618 s
).Step 1: Prepare your TVs # Create a new TV for your product code. Recommended: Variable Name = code; Input Type = Text # Create a new TV for your subscriptions' web groups. Recommended: Variable Name = webGroup; Input Type = Text # Assign the TVs to your product templates as necessary.
# Change the following variable values to match your environment: */ $tvCode = 'product_code'; // The name of the template variable that will be the unique identifier for your products. $webGroup = 'product_web_group'; // The TV that stores the name of the web group that users must be added to to access the product. $grace = 10; // The number of days, if any, you want to extend to your customers as a grace period if they have not renewed their subscription yet. /* IMPORTANT NOTES: * Requires products (documents) to have a unique "product code" TV and a TV for storing the name of a web group that users will be added to when they subscribe. */
Been a while I installed FoxyCart, looks here that no data is beeing supplied.Did you follow this step:
Step 1: Prepare your TVs # Create a new TV for your product code. Recommended: Variable Name = code; Input Type = Text
# Create a new TV for your subscriptions’ web groups. Recommended: Variable Name = webGroup; Input Type = Text
# Assign the TVs to your product templates as necessary.
I’m not sure where these settings are - I didn’t see this part in the installation instructions...
And this:
# Change the following variable values to match your environment: */ $tvCode = 'product_code'; // The name of the template variable that will be the unique identifier for your products. $webGroup = 'product_web_group'; // The TV that stores the name of the web group that users must be added to to access the product. $grace = 10; // The number of days, if any, you want to extend to your customers as a grace period if they have not renewed their subscription yet.
In my case, would this apply to different "levels" of subscriptions? Basic & premium, etc?
/*
IMPORTANT NOTES:
* Requires products (documents) to have a unique "product code" TV and a TV for storing the name of a web group that
users will be added to when they subscribe.
*/
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Invalid argument supplied for foreach()
Error type/ Nr.: Warning - 2
File: /home/content/m/m/w/mmwebsystems/html/geyser/assets/snippets/foxycart_webuser_subscriptions/snippet.FoxyCart_Subscription_Link.php
Line: 54
Line 54 source: foreach($tvs as $name=>$value) {
Parser timing
MySQL: 0.0426 s (3 Requests)
PHP: 0.1121 s
Total: 0.1547 s