### Install Shopaholic Plugin via Artisan Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/README.md Installs the required Toolbox plugin and the Shopaholic plugin using Laravel's Artisan CLI. This is the fastest and recommended method for getting started with the plugin. ```bash php artisan plugin:install lovata.toolbox php artisan plugin:install lovata.shopaholic ``` -------------------------------- ### Install Shopaholic Plugin via Composer Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/README.md Installs the Shopaholic plugin and its dependency (Toolbox plugin) using Composer, followed by an October CMS update command. This method is not recommended due to potential collisions with plugin updates. ```shell composer require lovata/oc-toolbox-plugin composer require lovata/oc-shopaholic-plugin php artisan october:up ``` -------------------------------- ### Check Plugin Availability (PHP) Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/widgets/importfromcsv/partials/_widget.htm Checks if the 'Lovata.PropertiesShopaholic' plugin is installed and active. This is useful for conditional logic based on plugin availability. Requires the `Backend` facade. ```PHP ``` -------------------------------- ### Check Plugin Availability Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/products/import.htm Checks if a specific plugin is installed and active using a conditional statement. This is crucial for ensuring compatibility and enabling features conditionally. ```php if (hasPlugin('Lovata.PropertiesShopaholic')) { // Plugin is available } ``` -------------------------------- ### Check Plugin Availability Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/offers/import.htm Checks if a specific plugin is installed and active using a conditional statement. This is crucial for ensuring compatibility and enabling features conditionally. ```php if (hasPlugin('Lovata.PropertiesShopaholic')) { // Plugin is available } ``` -------------------------------- ### Check Shopaholic Plugin Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/widgets/importfromxml/partials/_widget.htm Verifies if a specific Shopaholic plugin is installed and active. This function is crucial for ensuring compatibility and proper execution of Shopaholic-related features. ```PHP ``` -------------------------------- ### Iterate Price Types in OC Shopaholic Plugin Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/views/offer_price_list.htm This snippet demonstrates how to fetch a list of price types using a 'get()' method, check if the list is populated, and then loop through each price type to display its 'name'. It includes conditional logic to prevent errors when the list is empty. ```php get(); if ($obPriceTypeList->isNotEmpty()) { foreach ($obPriceTypeList as $obPriceType) { // Assuming 'name' is a property or key of $obPriceType echo $obPriceType->name; // or echo $obPriceType['name']; } } ``` -------------------------------- ### Generate URL for Promo Block Creation (PHP) Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/promoblocks/_list_toolbar.htm Generates a backend URL for creating promo blocks within the Shopaholic plugin. This snippet utilizes the Backend helper class to construct the appropriate URL. ```php ``` -------------------------------- ### Generate URL for Promo Block Reordering (PHP) Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/promoblocks/_list_toolbar.htm Generates a backend URL for reordering promo blocks within the Shopaholic plugin. This snippet utilizes the Backend helper class to construct the appropriate URL. ```php ``` -------------------------------- ### Generate Backend URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/products/create.htm This snippet demonstrates how to generate a backend URL using the `Backend::url()` helper function. It constructs a URL pointing to the 'products' section within the 'lovata/shopaholic' module. This is typically used for creating navigation links or resource URLs within a backend administration panel. ```php ``` -------------------------------- ### Generate Backend URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/offers/create.htm This snippet demonstrates how to generate a backend URL using the `Backend::url()` helper function. It constructs a URL pointing to the 'products' section within the 'lovata/shopaholic' module. This is typically used for creating navigation links or resource URLs within a backend administration panel. ```php ``` -------------------------------- ### Generate Backend URL and Fire Event Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/measures/_list_toolbar.htm This snippet demonstrates how to generate a backend URL for a specific route ('lovata/shopaholic/measures/create') using a framework helper and then fire a custom backend event ('lovata.backend.extend_list_toolbar') with context. ```PHP []()fireViewEvent('lovata.backend.extend_list_toolbar', [$this]) ?> ``` -------------------------------- ### Generate Backend URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/products/update.htm This snippet demonstrates how to generate a backend URL using the `Backend::url()` helper function. It constructs a URL pointing to the 'products' section within the 'lovata/shopaholic' module. This is typically used for creating navigation links or resource URLs within a backend administration panel. ```php ``` -------------------------------- ### Generate Backend URLs Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/products/_list_toolbar.htm Generates backend URLs for specific plugin actions like creating or importing products and offers. These are typically used within links or navigation elements. ```php ``` -------------------------------- ### Generate Backend URL for Pricetypes Create Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/pricetypes/_list_toolbar.htm Generates a backend URL for the 'create' action within the pricetypes module. This is typically used for creating links to specific backend pages. ```php ``` -------------------------------- ### Generate Backend Import URLs (PHP) Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/widgets/importfromcsv/partials/_widget.htm Generates backend URLs for various import functionalities within the Shopaholic plugin. These are typically used in navigation or links. Requires the `Backend` facade and specific route parameters. ```PHP ``` -------------------------------- ### Generate Backend URLs for Shopaholic Currencies Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/currencies/_list_toolbar.htm Generates backend URLs for creating and reordering currencies within the Shopaholic plugin. These URLs are typically used to link to specific backend actions or pages, leveraging the `Backend::url` helper. ```PHP ``` ```PHP ``` -------------------------------- ### Generate Backend URLs with Shopaholic Plugin Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/taxes/_list_toolbar.htm Demonstrates how to generate backend URLs for specific actions like creating or reordering taxes within the Shopaholic plugin. This typically uses a backend helper function to construct routes. ```PHP ``` ```PHP ``` -------------------------------- ### Generate Product List URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/offers/update.htm Generates a backend URL to the main product listing page within the Shopaholic plugin. This snippet is commonly used for navigation links. ```php []() ``` -------------------------------- ### Generate Backend URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/measures/create.htm Generates a backend URL for the 'measures' section within the Shopaholic plugin. This snippet demonstrates how to construct dynamic URLs for navigation or resource linking in the backend interface. ```php ``` -------------------------------- ### Render Form Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/offers/update.htm Executes a function to render a form, likely within a backend interface. This is a standard method call for displaying user input forms. ```php formRender() ?> ``` -------------------------------- ### PHP Relation Rendering Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/taxes/_state.htm Demonstrates rendering a relation state using the `relationRender` function in PHP. This function likely handles the display logic for relation states within the OC Shopaholic plugin. ```PHP relationRender('state') ?> ``` -------------------------------- ### Fire Extend List Toolbar Event (PHP) Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/promoblocks/_list_toolbar.htm Fires a custom view event named 'lovata.backend.extend_list_toolbar'. This event is typically used to extend the toolbar functionality in backend lists, passing the current object context. ```php fireViewEvent('lovata.backend.extend_list_toolbar', [$this]) ``` -------------------------------- ### Generate Backend URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/measures/update.htm Generates a backend URL for the 'measures' section within the Shopaholic plugin. This snippet demonstrates how to construct dynamic URLs for navigation or resource linking in the backend interface. ```php ``` -------------------------------- ### Generate Backend URL for Categories Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/create.htm This snippet demonstrates how to generate a backend URL for the 'categories' section within the Shopaholic plugin using the Backend helper. It's typically used for creating navigation links or internal routing. ```php []() ``` -------------------------------- ### Handling Fatal Errors Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/create.htm This snippet illustrates how fatal errors might be handled or displayed within the plugin's backend. It suggests a mechanism for error reporting or fallback rendering. ```php fatalError): ?> 'layout'] ) ?> ``` ```php fatalError)) ?> ``` -------------------------------- ### Form Rendering Function Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/create.htm This snippet shows the usage of a 'formRender()' function, likely part of a backend form builder or rendering system. It's responsible for outputting the HTML structure of a form. ```php formRender() ?> ``` -------------------------------- ### Generate Shopaholic Backend URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/currencies/reorder.htm Generates a backend URL for the 'currencies' section of the Shopaholic plugin. This snippet utilizes a framework's URL helper function to construct the path, ensuring proper routing within the application. ```PHP ``` -------------------------------- ### Handling Fatal Errors Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/update.htm This snippet illustrates how fatal errors might be handled or displayed within the plugin's backend. It suggests a mechanism for error reporting or fallback rendering. ```php fatalError): ?> 'layout'] ) ?> ``` ```php fatalError)) ?> ``` -------------------------------- ### Generate Backend URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/preview.htm This snippet demonstrates how to generate a backend URL for the 'categories' route within the Shopaholic plugin using the `Backend::url()` helper. It's typically used in templates or controllers to create navigation links. ```php ``` -------------------------------- ### Page Title Placeholder Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/import.htm A placeholder snippet for setting or retrieving a page title. The exact context and functionality depend on the surrounding code, but it indicates a dynamic title assignment. ```php pageTitle) ?> ``` -------------------------------- ### Generate Shopaholic Backend URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/products/preview.htm Generates a backend URL for the 'products' route within the Shopaholic plugin. This snippet utilizes PHP short echo tags and a static method call to construct the URL dynamically. ```PHP ``` -------------------------------- ### Render Relation in OC Shopaholic Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/products/_offer.htm This snippet demonstrates how to render a specific relation, likely for display or processing within the OC Shopaholic plugin. It calls the `relationRender` function with the argument 'offer'. ```PHP relationRender('offer') ?> ``` -------------------------------- ### Generate Backend URL with Shopaholic Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/brands/preview.htm Generates a backend URL for the 'brands' section within the Shopaholic plugin using the `Backend::url` helper. This is useful for creating navigation links or resource URLs within the admin interface. ```PHP []() ``` -------------------------------- ### Generate Product Update URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/offers/update.htm Generates a backend URL to update a specific product, including the product ID. This is used for creating links to edit individual product entries. ```php [name ?>](id) ?>) ``` -------------------------------- ### Generate Backend URL for Categories Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/update.htm This snippet demonstrates how to generate a backend URL for the 'categories' section within the Shopaholic plugin using the Backend helper. It's typically used for creating navigation links or internal routing. ```php []() ``` -------------------------------- ### Form Rendering Function Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/update.htm This snippet shows the usage of a 'formRender()' function, likely part of a backend form builder or rendering system. It's responsible for outputting the HTML structure of a form. ```php formRender() ?> ``` -------------------------------- ### Generate Backend URL for Pricetypes Reorder Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/pricetypes/_list_toolbar.htm Generates a backend URL for the 'reorder' action within the pricetypes module. This is useful for creating links to pages where items can be reordered. ```php ``` -------------------------------- ### Render Form Preview in PHP Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/brands/preview.htm Calls a method named `formRenderPreview` which is likely responsible for rendering a preview of a form within the application's backend or frontend. ```PHP formRenderPreview() ?> ``` -------------------------------- ### Import Render Function Call Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/import.htm A snippet demonstrating a call to an 'importRender' function. This is likely used to render a specific component, view, or template within the application's rendering engine. ```php importRender() ?> ``` -------------------------------- ### Generate Shopaholic Backend URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/offers/preview.htm Generates a backend URL for the 'products' route within the Shopaholic plugin. This snippet utilizes PHP short echo tags and a static method call to construct the URL dynamically. ```PHP ``` -------------------------------- ### Generate Backend URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/reorder.htm Generates a backend URL for a specific route within the application. This snippet uses a framework-specific helper function to construct the URL. ```php Backend::url('lovata/shopaholic/categories') ``` -------------------------------- ### Fire Extend List Toolbar Event Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/brands/_list_toolbar.htm Fires a custom view event named 'lovata.backend.extend_list_toolbar'. This event is used to extend the toolbar functionality of list views, likely passing the current object context. ```php fireViewEvent('lovata.backend.extend_list_toolbar', [$this]) ``` -------------------------------- ### Template Variable Output Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/products/import.htm Demonstrates outputting template variables or data within a PHP-based templating system. These snippets are typically used to display dynamic content. ```php pageTitle) ?> 'layout']) ?> importRender() ?> ``` -------------------------------- ### Access Page Title Variable Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/brands/preview.htm Retrieves the value of a page title variable, likely used for setting the document's title or a heading. Assumes the variable is already defined in the current scope. ```PHP pageTitle) ?> ``` -------------------------------- ### Render Form Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/products/create.htm This snippet shows a call to a `formRender()` method. This method is likely responsible for rendering a form element or a complete form structure within the application's view or controller logic. It abstracts the complexity of form generation. ```php formRender() ``` -------------------------------- ### Template Variable Output Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/offers/import.htm Demonstrates outputting template variables or data within a PHP-based templating system. These snippets are typically used to display dynamic content. ```php pageTitle) ?> 'layout']) ?> importRender() ?> ``` -------------------------------- ### Handle Fatal Error Display Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/offers/update.htm A PHP snippet likely used to display or check for a fatal error condition. The exact context depends on the surrounding code, but it suggests error reporting or handling. ```php fatalError): ?> // Error handling logic ``` ```php fatalError)) ?> ``` -------------------------------- ### Fire Backend Extend List Toolbar Event Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/pricetypes/_list_toolbar.htm Fires a custom event named 'lovata.backend.extend_list_toolbar'. This event is likely used to extend or modify the toolbar of a backend list view, passing the current controller instance. ```php fireViewEvent('lovata.backend.extend_list_toolbar', [$this]) ``` -------------------------------- ### Render Form Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/offers/create.htm This snippet shows a call to a `formRender()` method. This method is likely responsible for rendering a form element or a complete form structure within the application's view or controller logic. It abstracts the complexity of form generation. ```php formRender() ``` -------------------------------- ### Layout Configuration Snippet Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/import.htm A fragment that appears to be part of a layout configuration or assignment. The square bracket and closing parenthesis suggest it's within a larger array or object structure. ```php 'layout']) ?> ``` -------------------------------- ### Shopaholic Category Backend URLs Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/_list_toolbar.htm Generates backend URLs for managing Shopaholic plugin categories. These are typically used to create links to specific actions within the backend interface. ```php ``` ```php ``` ```php ``` -------------------------------- ### Generate Backend URL in PHP Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/taxes/reorder.htm Demonstrates generating a backend URL for a specific route using the Backend::url() helper function. This is useful for creating navigation links or resource URLs within the plugin's administrative interface. ```php []() ``` -------------------------------- ### Fire Shopaholic Backend List Toolbar Event Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/currencies/_list_toolbar.htm Triggers a custom event named 'lovata.backend.extend_list_toolbar' which can be used to extend or modify the list toolbar in the Shopaholic backend interface. It passes the current controller instance as a parameter. ```JavaScript fireViewEvent('lovata.backend.extend_list_toolbar', [$this]) ``` -------------------------------- ### Generate Backend URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/import.htm Generates a backend URL for a specific route within the Shopaholic plugin. This snippet uses a helper function to construct the URL, likely for navigation or linking to specific plugin sections. ```php ``` -------------------------------- ### PHP listRender Function Call Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/products/index.htm This snippet shows a call to the `listRender()` function in PHP, commonly used in web development frameworks to display lists of data. It's a simple invocation, implying the function handles its own logic and output. The `?>` tag indicates the end of a PHP block. ```PHP listRender() ?> ``` -------------------------------- ### PHP listRender Function Call Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/taxes/index.htm This snippet shows a call to the `listRender()` function in PHP, commonly used in web development frameworks to display lists of data. It's a simple invocation, implying the function handles its own logic and output. The `?>` tag indicates the end of a PHP block. ```PHP listRender() ?> ``` -------------------------------- ### Render Form Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/products/update.htm This snippet shows a call to a `formRender()` method. This method is likely responsible for rendering a form element or a complete form structure within the application's view or controller logic. It abstracts the complexity of form generation. ```php formRender() ``` -------------------------------- ### PHP listRender Function Call Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/brands/index.htm This snippet shows a call to the `listRender()` function in PHP, commonly used in web development frameworks to display lists of data. It's a simple invocation, implying the function handles its own logic and output. The `?>` tag indicates the end of a PHP block. ```PHP listRender() ?> ``` -------------------------------- ### PHP listRender Function Call Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/index.htm This snippet shows a call to the `listRender()` function in PHP, commonly used in web development frameworks to display lists of data. It's a simple invocation, implying the function handles its own logic and output. The `?>` tag indicates the end of a PHP block. ```PHP listRender() ?> ``` -------------------------------- ### PHP listRender Function Call Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/promoblocks/index.htm This snippet shows a call to the `listRender()` function in PHP, commonly used in web development frameworks to display lists of data. It's a simple invocation, implying the function handles its own logic and output. The `?>` tag indicates the end of a PHP block. ```PHP listRender() ?> ``` -------------------------------- ### Trigger Backend List Toolbar Event Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/products/_list_toolbar.htm Fires a custom view event named 'lovata.backend.extend_list_toolbar'. This is commonly used to extend or modify the toolbar of a backend list view, passing the current object context. ```javascript fireViewEvent('lovata.backend.extend_list_toolbar', [$this]) ``` -------------------------------- ### PHP listRender Function Call Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/measures/index.htm This snippet shows a call to the `listRender()` function in PHP, commonly used in web development frameworks to display lists of data. It's a simple invocation, implying the function handles its own logic and output. The `?>` tag indicates the end of a PHP block. ```PHP listRender() ?> ``` -------------------------------- ### Product Data Check and Assignment Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/offers/update.htm Checks if a product object is available from the form model and assigns it to a variable. This is a common pattern for conditional rendering or data processing in PHP frameworks. ```php product) { ?> // Product data is available ``` -------------------------------- ### Render Product Relation Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/promoblocks/_product.htm This snippet demonstrates how to render a product relation using the custom `relationRender` function. It's typically used within the plugin's templates or controllers to display related product information. The function likely takes a string identifier for the type of relation to render. ```PHP relationRender('product') ?> ``` -------------------------------- ### PHP listRender Function Call Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/currencies/index.htm This snippet shows a call to the `listRender()` function in PHP, commonly used in web development frameworks to display lists of data. It's a simple invocation, implying the function handles its own logic and output. The `?>` tag indicates the end of a PHP block. ```PHP listRender() ?> ``` -------------------------------- ### Generate Backend URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/products/import.htm Generates a backend URL for a specific route within the Shopaholic plugin. This snippet is useful for creating navigation links or API endpoints. ```php []() ``` -------------------------------- ### Generate Brand Reorder URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/brands/_list_toolbar.htm Generates a backend URL for reordering brands within the Shopaholic plugin. This is useful for creating links to pages that manage the display order of brands. ```php ``` -------------------------------- ### Render Reorder Functionality Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/currencies/reorder.htm This snippet represents a call to a 'reorderRender' function, likely used to display or manage reorderable elements within the Shopaholic plugin's backend interface. It's a placeholder for rendering specific UI components. ```PHP reorderRender() ?> ``` -------------------------------- ### PHP listRender Function Call Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/pricetypes/index.htm This snippet shows a call to the `listRender()` function in PHP, commonly used in web development frameworks to display lists of data. It's a simple invocation, implying the function handles its own logic and output. The `?>` tag indicates the end of a PHP block. ```PHP listRender() ?> ``` -------------------------------- ### Generate Backend URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/offers/import.htm Generates a backend URL for a specific route within the Shopaholic plugin. This snippet is useful for creating navigation links or API endpoints. ```php []() ``` -------------------------------- ### Generate Brand Import URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/brands/_list_toolbar.htm Generates a backend URL for importing brands into the Shopaholic plugin. This function is used to create links to the brand import interface. ```php ``` -------------------------------- ### Render Product Relation Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/taxes/_product.htm This snippet demonstrates how to render a product relation using the custom `relationRender` function. It's typically used within the plugin's templates or controllers to display related product information. The function likely takes a string identifier for the type of relation to render. ```PHP relationRender('product') ?> ``` -------------------------------- ### Generate Backend URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/brands/reorder.htm Generates a backend URL for a specific route within the shopaholic plugin. This is typically used for creating navigation links or API endpoints. ```php Backend::url("lovata/shopaholic/brands") ``` -------------------------------- ### Call Reorder Render Method Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/reorder.htm Invokes a method named 'reorderRender' on the current object or context. This method likely handles the rendering logic for reordering items. ```php reorderRender() ``` -------------------------------- ### Render Reorder Functionality Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/brands/reorder.htm Executes a function responsible for rendering reorder functionality. This method is likely part of a class that manages the display or interaction of sortable items. ```php reorderRender() ``` -------------------------------- ### Fire Frontend View Event Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/taxes/_list_toolbar.htm Triggers a custom frontend view event named 'lovata.backend.extend_list_toolbar'. This is commonly used for extending UI components or triggering actions in the JavaScript framework. ```JavaScript fireViewEvent('lovata.backend.extend_list_toolbar', [$this]) ``` -------------------------------- ### Generate Backend URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/taxes/create.htm Generates a URL for a specific backend route within the Shopaholic plugin. This is typically used in views or templates to create navigation links or resource URLs. ```PHP ``` -------------------------------- ### PHP: Render Country Relation Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/taxes/_country.htm This snippet demonstrates calling the `relationRender` function, likely within a PHP templating context, to display data associated with a 'country'. It assumes the `relationRender` function is available and correctly configured to process the 'country' argument and render the corresponding output. The `?>` indicates the end of a PHP block. ```PHP relationRender('country') ?> ``` -------------------------------- ### Generate Brand Create URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/brands/_list_toolbar.htm Generates a backend URL for creating a new brand within the Shopaholic plugin. This function is typically used within a templating engine to create navigation links or buttons. ```php ``` -------------------------------- ### Generate Backend URL Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/taxes/update.htm Generates a URL for a specific backend route within the Shopaholic plugin. This is typically used in views or templates to create navigation links or resource URLs. ```PHP ``` -------------------------------- ### Call Reorder Render Method in PHP Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/taxes/reorder.htm Illustrates calling a method named 'reorderRender' in PHP. This method likely handles the rendering logic for reordering items or data within the plugin's interface. ```php reorderRender() ?> ``` -------------------------------- ### Access Page Title Variable Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/reorder.htm Accesses a variable named 'pageTitle' within the current rendering context. This is typically used to set or display the title of a page. ```php pageTitle ``` -------------------------------- ### Render Category Relation in PHP Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/taxes/_category.htm This snippet demonstrates how to invoke the `relationRender` function, likely a custom helper within the OC Shopaholic plugin, to display category-specific data. It takes a string argument, 'category', to specify the type of relation to be rendered. The output depends on the implementation of the `relationRender` function. ```PHP relationRender('category') ?> ``` -------------------------------- ### Access Page Title Variable in PHP Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/taxes/reorder.htm Shows how to output a dynamic page title variable within a PHP context. This is typically used to set the browser tab title or a main heading on a page. ```php pageTitle) ?> ``` -------------------------------- ### Trigger Shopaholic List Toolbar Event Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/categories/_list_toolbar.htm Triggers a custom view event for the Shopaholic backend list toolbar. This allows for extending or modifying the toolbar's behavior. ```javascript fireViewEvent('lovata.backend.extend_list_toolbar', [$this]) ``` -------------------------------- ### Handle Fatal Error in PHP Source: https://github.com/oc-shopaholic/oc-shopaholic-plugin/blob/master/controllers/brands/preview.htm This snippet appears to be part of an error handling mechanism, specifically catching a 'fatalError'. It's likely used within a try-catch block or an error handler to manage unexpected issues. ```PHP fatalError): ?> ``` ```PHP fatalError) ?> ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.