Guide for Omnibus Insight: Price Tracker

January 17, 2024 31 view(s)
Guide for Omnibus Insight: Price Tracker

Initial app setup after installation

Promptly set up the app after installation by configuring the 'Lowest price' block. Simply click 'Add lowest price block' by the instructions below or go to Online Store > Themes.

 

 

 

Your store's homepage will open up. At the top of the page, click on the homepage dropdown menu, then go to the Products tab and choose Default product.

 

 

Navigate to the left sidebar under 'Product information', and click on 'Add block'. Pick the Lowest Price App block from the opened list.

 

 

The newly added block will show up in the sidebar. Arrange its placement using drag-and-drop, positioning it where you want to display the 'Lowest price’ (for example, under the main product price). Upon saving, the block will be added to all products.

 

 

Once you've finished configuring the block, click 'Next' and synchronize the application with your products. Congratulations, the initial setup of the application is now complete!

 

Settings

 

Global Settings

 

Show lowest price - enable the setting to display the lowest price block on the frontend.

Note:

Note: Please note that the block will only be displayed after it has been added to templates. 

Show only for discounted products - display the lowest price on products with valid discounts only.

Period in days - period for which the application considers the lowest price for the product.

Percentage mode - choose the behavior for the percentage display.

Options:

  • Show always except zero
  • Never show percentages
  • Show only when positive
  • Show only when negative 

Translations - adjust the lowest price text to your needs. The variable {X} represents the period specified in the 'Period in days' setting.

Clearing period in days - specify the number of days after which old price history records will be removed from the history.

Products 

On the product grid, you can see all the products currently in the store, including their current price, lowest price, and percentage difference.
Furthermore, you have the option to search for products by name.

Price History

Within the price history, only products that have undergone price changes are showcased. You can access details about the product name, its most recent price, new price, context, and the date of the modifications.

Note: the Price history begins accumulating data only after the installation and activation of the application; any prior changes are not included.

 

Adding the lowest price block to non-product pages

For the lowest price block, you have the option to include it on the Home page or Category pages.
Here's how you can do it: head to the theme settings, and then click on 'Edit code'.

After that, in the sidebar menu under Snippets, select 'Add a new snippet'.

Name it 'am-lowest-price' and click 'Done'.

In the open window, paste the provided content and save.

<div id="am-omnibus-container-{{ product.id }}"></div>
<script>(async()=>{const{shop:n,locale:o,currency:t}=window.Shopify;if(!n)return;const e="{{ product.id }}";if(void 0===window.ShopifyAnalytics)return;const{page:i}=window.ShopifyAnalytics.meta,{pageType:c}=i;if("collection"===c||"home"===c){const i="/apps/am-omnibus-price",c=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({shop:n,productId:e,locale:o,currency:t})});if(!c.ok)return;const{lowestPriceHtml:r}=await c.json();if(!r)return;const a=`am-omnibus-container-${e}`,s=document.getElementById(a);if(!s)return;s.innerHTML=r}})();</script>
 
Locate price.liquid in the snippets, paste {%- render 'am-lowest-price', product:product -%} at the end, and save (we recommend using this snippet, since it is responsible for displaying the price).
 
 
The result on the front-end:
 
 
Note: If you uninstall the app, it won't automatically undo the changes. You'll need to manually delete any unnecessary info or blocks.