Store integration
Latest Lowest Price is integrated in Woo stores with blocks, hooks and actions, shortcode or a page builder widget or element.
Best way to integrate is, if you use the blocks builder and you're using a blocks powered theme like Twenty Twenty-Five.
Supported integrations
- Using blocks and block themes
- Shortcode for any integration
- Elementor widget or other page builders
- Hooks and actions
Blocks integration
To integrate the plugin if you use blocks theme simply navigate any product page and click the Edit site button from WordPress header (also found by navigating Themes > Editor
).
- Edit the single product template.
- Add block Latest Lowest Price right after the price block.
- Click Save button.
If you visit the product page now, nothing will appear, because there are no latest lowest prices recorded. If such price meets the conditions in the future it'll be stored in the database and shown to customers. An example, 2 months ago price was $10, now it's $20, but on sale for $15. After showing regularlly crossed $20 and the new price of $15, below, plugin will display Latest lowest price: $10 (-25%).
Additionally you can add the block to the product catalog template if you need this info on the store page as well.
On the product edit screen, right after the sale price in the product edit tab you'll find the stored latest lowest price. If empty such price doesn't exists. Still, you can set this price if you want to.
Shortcode
To add plugin integration using the shortcode copy and paste following shortcode. Remember to put the shortcode inside product loops like on the store page or single product page.
[latest_lowest_price]
Elementor
If you use Elementor or Elementor PRO page builders for WordPress and you're creating your own templates with it, we’ve included the Latest Lowest Price widget. Find it in the General section or just type the Latest Lowest Price in the search widget field.
Drag and drop the plugin widget to your product template and set the options you prefer.
Hooks/Actions
One more common way of integrating the plugin functionality is to use hooks and actions. Options for this are in the plugin settings page. To get there navigate Plugins > Latest Lowest Price > Settings
. Settings link is just next to Deactivate plugin button and you'll need the admin priviledges to view it.
Product pages
In this page by default it's set that blocks, widgets and elements are used to integrate the plugin.
- To set the plugin integration with actions and hooks set the option Show on product page to Use hook to insert.
- The deafult hook for this integration is woocommerce_single_product_summary There's probably no need to use any other, unless theme is heavily customized.
- Change priority number to make the integration appear later or sooner, depending on your template, but the ideal position would be right below the price.
Store pages
If you need this kind of integration on store pages too, use the next option.
- To set the plugin integration with actions and hooks set the option Show on shop and archives to Use hook to insert.
- The deafult hook for this integration is woocommerce_after_shop_loop_item_title There's probably no need to use any other, unless theme is heavily customized.
- Change priority number to make the integration appear later or sooner, depending on your template, but the ideal position would here be probably at the end of product loop.