โจ Test Module Hook: Before Content - This is rendered via hook system
๐งช Test Module Demo
๐ Registered Hooks
database.seed
page.after_content
page.before_content
seo.data
๐ฏ Registered Shortcodes
[test-card]
(module)
[products]
(module)
โ๏ธ test-card Shortcode Examples
Basic Product
Sale Product (with discount)
Out of Stock Product
New Product with Badge
Premium Product
Budget Friendly
๐ฆ [products] Shortcode - Real World Example
Display products using a loop. Below are different examples with various filters and settings:
โจ All Products - Sorted by Popularity
[products sort="popular"]
โญ Featured Products (Limit 3)
[products limit="3" columns="3" sort="popular"]
๐ง Audio Products
[products category="audio"]
๐ก Accessories - Price Low to High
[products category="accessories" sort="price-asc" columns="4"]
โจ๏ธ Input Devices
[products category="input" columns="2"]
๐ [test-card] Shortcode
Single product card with full control:
[test-card
title="Product Name"
price="99.99"
original_price="129.99"
rating="5"
reviews="100"
badge="Hot Sale"
]
๐ฆ [products] Shortcode
List products in a loop with filters:
[products
limit="12"
category="accessories"
columns="3"
sort="price-asc"
]
โ๏ธ [products] Parameters
limit
0 = all products, or specify a number (e.g., 6)
category
audio, input, displays, accessories
columns
1, 2, 3, or 4 columns per row
sort
popular, price-asc, price-desc, newest
๐ Test Module Hook: After Content - This is rendered via hook system