Skip to content

Price-info Widgets on Magento 1

For adding Price-info Widget to your Magento 1 Website, follow these instructions

Step 1: Find view.phtml from the following location in your hosting (Magento installed Folder) and open it with your desired text-editor

YOUR_MAGENTO_FOLDER/app/design/frontend/rwd/YOUR_TEMPLATE_FOLDER/template/catalog/product/view.phtml

Step 2: Find "getPriceHtml"

There should be only one occurrence of the "getPriceHtml" string, and it may look similar to:

<?php echo $this->getPriceHtml($_product); ?>

Step 3: Place the following <script> tag below the "getPriceHtml" code.

'Little things' only

Using the following code if you are a 'Little things' only merchant.

<script src="https://widgets.shophumm.com.au/content/scripts/price-info.js?productPrice=<?php echo $_product->getFinalPrice(); ?>&LittleOnly"></script>

'Big things' only

Using the following code if you are a 'Big things' only merchant.

<script src="https://widgets.shophumm.com.au/content/scripts/price-info.js?productPrice=<?php echo $_product->getFinalPrice(); ?>&BigOnly"></script>

Both 'Little things' and 'Big things'

Using the following code if you are both a 'Little things' and 'Big things' merchant.

<script src="https://widgets.shophumm.com.au/content/scripts/price-info.js?productPrice=<?php echo $_product->getFinalPrice(); ?>"></script>
You may try inserting the code a few lines below the "getPriceHtml" code, or below some other elements. Try different places and view the visual appearance to find the most suitable place for your site. You may need to flush cache for the changes to take effect.

Step 4: Save and you should see a working widget on your website.