Droplets & Snippets
Use a snippet called Anyitems by Jan (Seagull) to display a few products of a specified section on another page than a Bakery page, e.g. your homepage.
Download
>> Download Anyitems
Installation
Install the module as usual.
Template
If you want to use a different HTML template than saved in the Bakery page settings you can do so by first uncommenting and then modifying some lines of the include.php file (see file comments for further information).
Invoke function
Once the module is installed, it can be invoked from the index.php file of your template or a code section.
From your template:
<?php display_any_items(section_id, items_per_page, number_of_columns, use_lightbox2); ?>
where:
- section_id = the section id of your shop page section
- items_per_page = number of items to display
- number_of_columns = number of columns to display (1 = vertical, >1 = horizontal)
- use_lightbox2 (optional) = set 1 for using Lightbox2 to show the item images, default = 0
Example:
<?php display_any_items(67, 3, 3); ?>
From a code section, e.g.:
display_any_items(67, 3, 3);
Use a snippet called Lastitems to display the last added Bakery items on any page you want.
Download
>> Download Lastitems
Installation
Install the module as usual.
Template
If needed you can modify the HTML template used by Lastitems in the file include.php (see file comments for further information).
Invoke function
Once the module is installed, it can be invoked from the index.php file of your template or a code section.
From your template:
<?php display_last_items(number_of_items, number_of_columns, use_lightbox2); ?>
where:
- num_items = number of last added items to display
- number_columns = number of columns to display (1 = vertical, >1 = horizontal)
- use_lightbox2 (optional) = set 1 for using Lightbox2 to show the item images, default = 0
Example:
<?php display_last_items(4, 1); ?>
From a code section, e.g.:
display_last_items(4, 1);
Use a snippet called Bakeryslider by jacobi22 to display some linked products in an item slider on any page you want.
Download
>> Download Bakeryslider.
Installation
Install the module as usual.
Stylesheet
Modify the stylesheet frontend.css included in the package to fit your needs.
Invoke function
Once the Bakeryslider module is installed, the function can be invoked from the index.php file of your template or a code section.
From your template:
<?php bakeryslider(num_items, order, visible); ?>
where:
- num_items = Number of items that are loaded by the slider (0 for all items)
- order = Item selection (0 = oldest items, 1 = newest items, 2 = random)
- visible = Number of images that are visible in the slider (default = 5)
Further information can be found in the readme.txt of the Bakeryslider package.
Adds a link to your Bakery cart.
Displays module Bakery MiniCart (requires module Bakery v1.40 or later). You can customize the MiniCart layout by modifying the HTML template files located at /bakery/templates/mini_cart/.