Contents
JLayouts You Can Override developer
The small layouts in components/com_paddlesubs/layouts are overridden in
templates/. They are
rendered inside a view, and every site view renders inside template/html/layouts/com_paddlesubs/<div id="paddlesubs">:
keep that element in a view override, since the copy of Bootstrap that
Load Bootstrap loads styles only what is inside it.
| Layout | $displayData | Keep |
|---|---|---|
product.price | option (a PriceOption), headingTag,
buttonText | An element with data-paddlesubs-price-preview and
data-price-id for the amount, and one with
data-paddlesubs-checkout, data-price-id and
data-product-id for the button. For a paid trial's amount, the
element with data-paddlesubs-trial (trialLabel(),
trialAmountLabel()). |
product.details | name, description, imageUrl
(each from Paddle; the last two may be null) | Nothing in particular. |
product.account | user, returnUrl | Nothing in particular. |
products.grid | view, items, headingTag | Each card's price element, with the class js-paddle-product-price and
data-price-ids, which products.prices fills, inside the
#paddlesubs element the prices layout follows. The description has the class
ps-clamp-3 (stylesheet asset com_paddlesubs.text,
which the layout loads), which cuts it to three lines. |
products.prices | None | The call to PaddleJs::useProductPrices(). |
checkoutcomplete.actions | accessSubscription (once the webhook has written it) or
selectedItem (the product and price bought, meanwhile) | Nothing in particular: it is the place for next steps after a purchase, such as a download link. |
Read the original layout's docblock for its exact variables before overriding it. Whole views
(tmpl/) are overridden in
view/default.phphtml/com_paddlesubs/ as usual.view/