Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions docs/website/developer-guide/licensing-and-updates.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
# Licensing and Updates

When the `edd-license/` directory is present in the plugin, it wires itself to Easy Digital Downloads Software Licensing for automatic updates from `https://wbcomdesigns.com/`. If the directory is absent, none of this loads and the plugin runs unlicensed.
Infinite Loader for WooCommerce ships as a single tier. There is no separate Pro plugin, and the plugin has no licence screen of its own.

Infinite Loader for WooCommerce ships as a single tier. There is no separate Pro plugin.
## How updates are delivered

## Where the key is entered
Updates come from `https://wbcomdesigns.com/` through the Easy Digital Downloads Software Licensing SDK bundled in the plugin. WordPress shows them on the normal Plugins and Updates screens like any other plugin update.

The license row renders on the shared **WB Plugins** license screen at `admin.php?page=wbcom-license-page`, alongside every other Wbcom plugin's key. Paste the key, click **Activate**, and later **Deactivate** if needed.
The free download carries a preset licence key, so updates work with no setup. After you activate the plugin, it registers that key with the update server in the background the first time an admin screen loads. If the server cannot be reached, it tries again later and keeps trying until it succeeds. There is no notice and no button for the site owner.

## What is stored
If you have your own key for this plugin, the plugin never replaces it with the preset key: once a different key or a valid licence is stored, the background activation stops for good.

## Update packages are signature-checked

Each update package is checked against a signature before WordPress installs it, and only packages served over HTTPS from `wbcomdesigns.com` or `updates.wbcomdesigns.com` are accepted. The signature comes from the package download itself, or from a fallback address on `wbcomdesigns.com` when the download carries none. The plugin runs this check in warning mode: the result is recorded, and a package that fails the check is not blocked from installing.

| Option | Holds |
|---|---|
| `edd_wbcom_infinite_loader_license_key` | The license key string. |
| `edd_wbcom_infinite_loader_license_status` | Activation status (`valid`, `expired`, `invalid`, and so on). |
## Opt out of the licence request

The last successful license check is cached in the transient `edd_wbcom_infinite_loader_license_key_data`. Entering a new key clears the stored status, so it must be re-activated. All three values are removed on uninstall.
On a site that must not contact the update server, for example an air-gapped or privacy-strict install, add this to `wp-config.php`:

## Store requests
```php
define( 'INFINITE_LOADER_FOR_WOOCOMMERCE_NO_LICENSE_PHONE_HOME', true );
```

The preset key is then never sent. The plugin keeps working; it just will not receive automatic updates.

## What is stored

- Activation and deactivation use `edd_action=activate_license` / `deactivate_license`.
- Update checks use `edd_action=get_version`.
The licence key and its status are stored in the options the SDK keeps for this plugin, plus a cached last-check result. Deleting the plugin from the Plugins screen removes all of them along with the plugin's own settings.
118 changes: 75 additions & 43 deletions docs/website/docs_config.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,88 @@
{
"product": "Infinite Loader for WooCommerce",
"productType": "plugin",
"shortId": "wooinfiniteloader",
"sections": [
{
"slug": "getting-started",
"title": "Getting Started",
"pages": [
{ "slug": "installation", "title": "Installation", "file": "getting-started/installation.md" },
{ "slug": "quick-start", "title": "Quick Start", "file": "getting-started/quick-start.md" }
]
"product": "Infinite Loader for WooCommerce",
"productType": "plugin",
"shortId": "wooinfiniteloader",
"sections": [
{
"name": "Getting Started",
"folder": "getting-started",
"description": "Install the plugin and choose how your shop loads more products.",
"pages": [
{
"slug": "installation"
},
{
"slug": "features",
"title": "Features",
"pages": [
{ "slug": "overview", "title": "What It Does", "file": "features/overview.md" },
{ "slug": "loading-modes", "title": "Loading Modes", "file": "features/loading-modes.md" }
]
"slug": "quick-start"
}
]
},
{
"name": "Features",
"folder": "features",
"description": "What the plugin does and the three ways products can load.",
"pages": [
{
"slug": "overview"
},
{
"slug": "usage",
"title": "Usage",
"pages": [
{ "slug": "settings", "title": "Settings Reference", "file": "usage/settings.md" },
{ "slug": "button-styling", "title": "Button Styling", "file": "usage/button-styling.md" },
{ "slug": "custom-css-and-js", "title": "Custom CSS and JavaScript", "file": "usage/custom-css-and-js.md" }
]
"slug": "loading-modes"
}
]
},
{
"name": "Usage",
"folder": "usage",
"description": "Every setting, button styling and custom CSS or JavaScript.",
"pages": [
{
"slug": "settings"
},
{
"slug": "developer-guide",
"title": "Developer Guide",
"pages": [
{ "slug": "hooks-and-filters", "title": "Hooks and Filters", "file": "developer-guide/hooks-and-filters.md" },
{ "slug": "javascript-events", "title": "JavaScript Events and API", "file": "developer-guide/javascript-events.md" },
{ "slug": "ajax-and-rendering", "title": "How Loading Works", "file": "developer-guide/ajax-and-rendering.md" },
{ "slug": "licensing-and-updates", "title": "Licensing and Updates", "file": "developer-guide/licensing-and-updates.md" }
]
"slug": "button-styling"
},
{
"slug": "faq",
"title": "FAQ",
"pages": [
{ "slug": "faq", "title": "Frequently Asked Questions", "file": "faq/faq.md" }
]
"slug": "custom-css-and-js"
}
]
},
{
"name": "Developer Guide",
"folder": "developer-guide",
"description": "Hooks, JavaScript events, how loading works, and how updates are delivered.",
"pages": [
{
"slug": "hooks-and-filters"
},
{
"slug": "troubleshooting",
"title": "Troubleshooting",
"pages": [
{ "slug": "troubleshooting", "title": "Troubleshooting", "file": "troubleshooting/troubleshooting.md" }
]
"slug": "javascript-events"
},
{
"slug": "ajax-and-rendering"
},
{
"slug": "licensing-and-updates"
}
]
},
{
"name": "FAQ",
"folder": "faq",
"description": "Short answers about requirements, pages, security and speed.",
"pages": [
{
"slug": "faq"
}
]
},
{
"name": "Troubleshooting",
"folder": "troubleshooting",
"description": "Fixes for products that do not load, duplicates and missing icons.",
"pages": [
{
"slug": "troubleshooting"
}
]
]
}
]
}
8 changes: 8 additions & 0 deletions docs/website/faq/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ Yes. When WooCommerce Blocks is active, the plugin adds the block grid selectors

Yes. All user-facing strings are translatable, and the button text can be translated. RTL stylesheets are included. A `.pot` template ships in the `languages` folder.

## What does the shopper see when products cannot load?

An error notice with a **Retry** button appears, and at the end of the list a "No more products" notice. Both follow your theme colours, dark mode and right-to-left layouts. See [Loading Modes](../features/loading-modes.md).

## Can I delete the plugin and remove its settings?

Yes. Deleting the plugin from the Plugins screen removes its settings and licence data.

## Does the plugin store any customer or order data?

No. It stores only its own settings (four options) and, when licensed, the EDD license key and status. There are no custom tables, no custom post types, and no post meta. Everything it stores is removed on uninstall.
Expand Down
6 changes: 6 additions & 0 deletions docs/website/features/loading-modes.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ Best for shoppers who prefer classic, precise page-by-page navigation.
- **Address-bar tracking** is on by default in every mode, so the browser Back button works as expected. It can be turned off (see [Settings Reference](../usage/settings.md)).
- **The result count** updates to describe what is on screen as pages are appended, rather than only the most recently loaded page.

## When there are no more products, or a page fails to load

At the end of the list the shopper sees a "No more products" notice. If a page cannot be loaded, an error notice appears with a **Retry** button. Both notices are styled cards that follow your theme colours, dark mode and right-to-left layouts.

In Infinite scroll mode the plugin does not keep requesting a page that failed. It waits until the shopper presses **Retry**, so a temporary server problem does not turn into a stream of repeated requests.

## Loading icon and scroll-to-top

While a page is being fetched, a loading icon is shown. By default this is a spinning Font Awesome spinner. In Load More and Infinite scroll modes, a "scroll to top" button is also added to the storefront.
4 changes: 4 additions & 0 deletions docs/website/troubleshooting/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ This is almost always a theme markup mismatch. The loader finds the product grid

Some themes build their shop loop with non-standard markup, so the "products only" response can come back different from the first paint. Return false from `infinite_loader_render_products_only` to fall back to rendering the full archive and letting the script scrape it.

## An error message with a Retry button appears

The page request failed, for example because of a dropped connection or a server error. Press **Retry** to load the same page again. In Infinite scroll mode nothing more loads until Retry is pressed, which is intentional so a failing request is not repeated in a loop. If it keeps failing, check the browser Network tab for the failing request and the server error log.

## The loading icon is missing

The default spinner uses Font Awesome. Make sure **Enable Font Awesome** is on in General settings; the plugin then loads its bundled Font Awesome on shop archives. If your theme also ships Font Awesome, either source works. You can replace the icon HTML entirely with the `wbcom_infinite_loader_image` filter.
Expand Down
Loading