Alphabetical Index of All Helpers
This is a complete alphabetical reference of all custom helper functions available in the theme layer (defined in app/Support/theme_helpers.php).
| Helper Function | Returns | Short Description | Full Docs |
|---|---|---|---|
bulkBuyer() |
bool |
Checks if the current user is a bulk buyer. | Auth Docs |
cdn_asset(string $path) |
string |
Generates a URL for shared CDN assets. | Assets Docs |
createUrl(string $path) |
string |
Wrapper for Laravel's url() with prefixing. |
Assets Docs |
customUrl(string $path) |
string |
Maps named application routes to URLs. | Assets Docs |
discountedProducts(int $limit) |
array |
Fetches products currently on sale. | Products Docs |
eventElement(string $name) |
string |
Legacy stub for emitting tracking events. | Utility Docs |
featureProducts(int $limit) |
array |
Fetches featured products. | Products Docs |
flashMessenger() |
object |
Retrieves flash session messages. | Auth Docs |
getAlt(mixed $value, string $fallback) |
string |
Gets alt text for an image. | Utility Docs |
getAsset(mixed $value) |
?string |
Alias for getPath(). |
Utility Docs |
getCart(?string $filter) |
mixed |
Gets the current user's shopping cart or item count. | Auth Docs |
getCategory(string $name, ...) |
object |
Fetches the category tree for navigation. | Products Docs |
getCategoryBrochure(int $id) |
?string |
Gets the URL for a category brochure. | Products Docs |
getCategoryData() |
object |
Returns a fallback empty category object. | Products Docs |
getcookie(string $name) |
?string |
Reads a cookie value. | Auth Docs |
getFooterMenu() |
array |
Gets footer menu items directly. | Navigation Docs |
getHomePageContent() |
array |
Gets homepage specific settings like logos. | Products Docs |
getLeftMenuActive() |
string |
Gets the active menu item based on current URL. | Navigation Docs |
getMenu(?string $type) |
array |
Fetches CMS menus (top or bottom). | Navigation Docs |
getMenuContent(?string $permalink) |
string |
Fetches the HTML content of a CMS page. | Navigation Docs |
getPath(mixed $value) |
?string |
Resolves an asset URL from theme settings. | Utility Docs |
getProductBrochure(int $id) |
?string |
Gets the URL for a product brochure. | Products Docs |
getProductDiscountInfo() |
array |
Gets store-wide discount promo information. | Products Docs |
getquery(string $key, ...) |
mixed |
Reads a query string parameter. | Auth Docs |
getSiteNotification() |
object |
Gets the global site notification banner config. | Navigation Docs |
getTopMenu() |
array |
Gets top menu items directly. | Navigation Docs |
getVisitedProducts() |
array |
Fetches recently viewed products. | Products Docs |
googleAnalytics() |
string |
Emits the Google Analytics script block. | Navigation Docs |
hasAsset(mixed $value) |
bool |
Checks if a configured asset exists. | Utility Docs |
hasCategoryBrochure(int $id) |
bool |
Checks if a category has a brochure. | Products Docs |
hasProductBrochure(int $id) |
bool |
Checks if a product has a brochure. | Products Docs |
hybridAuth(string $url, string $service) |
string |
Appends OAuth service parameter to URL. | Assets Docs |
identity() |
?int |
Gets the logged-in customer's ID. | Auth Docs |
isActivePage(string $label) |
bool |
Checks if a label matches the current page. | Navigation Docs |
isAdminLogin() |
bool |
Checks if the current session is an admin preview. | Auth Docs |
isPageUrl(string $path) |
bool |
Checks if the path matches the current request. | Navigation Docs |
latestProducts() |
array |
Fetches newly added products. | Products Docs |
legacy_url(string $path, ...) |
string |
Generates URLs from legacy Laminas routes. | Utility Docs |
lmcUserDisplayName() |
string |
Gets the logged-in user's full name. | Auth Docs |
noproductimage(string $key) |
?string |
Gets the fallback product image URL. | Utility Docs |
paginationControl(mixed $p) |
string |
Renders HTML pagination controls. | Utility Docs |
same_origin_asset(string $path) |
string |
Generates a same-origin URL for an asset. | Assets Docs |
seasonsBestProduct(int $limit) |
array |
Fetches the most frequently ordered products. | Products Docs |
serverUrl() |
string |
Gets the bare server base URL. | Assets Docs |
settings(string $name) |
mixed |
Gets a global store setting from the admin panel. | Settings Docs |
tagAddressFormat(mixed $address) |
string |
Formats an address block with HTML data attributes. | Utility Docs |
tagCheckInventory(int $productId) |
bool\|int |
Checks real-time stock levels. | Products Docs |
tagMessageSetting(string $name) |
string |
Reads a setting and converts newlines to <br>. |
Utility Docs |
tagPrice(mixed $value) |
string |
Formats a number as a currency string. | Utility Docs |
tagShortText(string $text, ...) |
string |
Truncates text to a character limit. | Utility Docs |
theme_asset(string $path) |
string |
Gets a URL for a theme's static asset (CSS/JS). | Assets Docs |
theme_name() |
string |
Gets the current theme's internal name/slug. | Settings Docs |
theme_setting(string $ctx, ...) |
mixed |
Gets a specific setting for the current theme. | Settings Docs |
theme_site_id() |
int |
Gets the current numeric site ID. | Settings Docs |
theme_url(string $path) |
string |
Generates an absolute URL with the base domain. | Assets Docs |
thumbnails(string $path, ...) |
?string |
Gets the URL for an image thumbnail. | Utility Docs |
translate(string $text) |
string |
Legacy translation stub (returns input). | Utility Docs |
twig_date(mixed $value, ...) |
string |
Formats a date using PHP format strings. | Utility Docs |
twig_default(mixed $value, ...) |
mixed |
Returns a default value if the first is empty. | Utility Docs |
twig_first(mixed $value) |
mixed |
Returns the first element of an array or string. | Utility Docs |
twig_length(mixed $value) |
int |
Returns the length/count of a value. | Utility Docs |
twig_object_to_array(mixed $v) |
array |
Recursively converts objects to arrays. | Utility Docs |
uploads() |
object |
Gets the ThemeUploads service for user files. |
Utility Docs |
videoList(?int $limit) |
array |
Fetches the list of store video assets. | Products Docs |