Setting Shortcode to Display Related Products
Shortcode:
[rprow_custom_related_products_display]
This shortcode displays related products in a responsive slider layout, based on the given parameters.
Available Parameters
id (Required when used outside the product page)
Type: Integer
Description: Specifies the Product ID for which to display related products.
Usage Notes:
On single product pages, this parameter is not required, as it uses the current product ID automatically.
When used outside a product page (e.g., in a custom section), you must specify the product ID manually using this parameter.
desktop_limit
Type: Integer
Description: Sets the number of related products to be displayed per row on desktop devices.
Default: Falls back to the global “Products per row” setting if not provided.
tab_limit
Type: Integer
Description: Sets the number of related products to be displayed per row on tablet devices.
Default: Falls back to the global “Products per row” setting if not provided.
mobile_limit
Type: Integer
Description: Sets the number of related products to be displayed per row on mobile devices.
Default: Falls back to the global “Products per row” setting if not provided.
Example Usage
[rprow_custom_related_products_display id="20" desktop_limit="4" tab_limit="3" mobile_limit="1"]