API: Finder
Padloper finder API allows you to use a shorter syntax to retrieve Padloper pages. For instance, instead of this:
$products = $pages->find(
"template=padloper-product, padloper_product_stock.quantity>5, check_access=0,limit=50"
);
1
2
3
2
3
You would type this:
$products = $padloper->find(
"template=product, stock.quantity>5, limit=50"
);
1
2
3
2
3
Both work but the short syntax is easier to remember and also saves you a few keystrokes.
WARNING
Nested sub-selectors are not yet supported. Use ProcessWire $pages
selectors instead.
Templates & Fields Short Syntax
Templates Short Syntax
Supported templates for use with Padloper short syntax.
Short Syntax | Full Syntax |
---|---|
attribute | padloper-attribute |
option | padloper-attribute-option |
brand | padloper-brand |
category | padloper-category |
country | padloper-country |
territory | padloper-country-territory |
property | padloper-property |
dimension | padloper-dimension |
download | padloper-download |
legal-page | padloper-legal-page |
order | padloper-order |
line-item | padloper-order-line-item |
payment-provider | padloper-payment-provider |
product | padloper-product |
variant | padloper-product-variant |
shipping-rate | padloper-shipping-rate |
shipping-zone | padloper-shipping-zone |
tag | padloper-tag |
type | padloper-type |
Fields Short Syntax
Supported fields for use with Padloper short syntax.
Short Syntax | Full Syntax | Template(s) |
---|---|---|
brand | padloper_brand | padloper-product |
categories | padloper_categories | padloper-product |
description | padloper_description | padloper-category, padloper-download, padloper-legal-page, padloper-product, padloper-shipping-rate,padloper-shipping-zone |
downloads | padloper_downloads | padloper-product, padloper-product-variant |
download_settings | padloper_download_settings | padloper-download |
file | padloper_file | padloper-download |
images | padloper_images | padloper-brand, padloper-product, padloper-product-variant |
notes | padloper_notes | padloper-order |
order | padloper_order | padloper-order |
order_customer | padloper_order_customer | padloper-order |
line_item | padloper_order_line_item | padloper-order-line-item |
attributes | padloper_product_attributes | padloper-product |
options | padloper_product_attributes_options | padloper-product-variant |
properties | padloper_product_properties | padloper-product |
settings | padloper_product_settings | padloper-product |
stock | padloper_product_stock | padloper-product, padloper-product-variant |
shipping_fee_settings | padloper_shipping_fee_settings | padloper-shipping-zone |
shipping_rate | padloper_shipping_rate | padloper-shipping-rate |
shipping_zone_countries | padloper_shipping_zone_countries | padloper-shipping-zone |
tags | padloper_tags | padloper-product |
tax_overrides | padloper_tax_overrides | padloper-country |
tax_rates | padloper_tax_rates | padloper-country, padloper-country-territory |
type | padloper_type | padloper-product |
Please see the sections below for specific Padloper features API and example use of the short syntax.
Products
Padloper Products finder API.
Orders
Padloper Orders finder API.
Downloads
Padloper Downloads finder API.
Shipping
Padloper Shipping finder API.
Country Taxes & Overrides
Padloper Taxes and overrides finder API.