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.
Replace PLACE_YOUR_MERCHANT_ID
with your unique merchant ID. This will have been provided to you in your welcome email.
If you are unsure of your merchant ID, please reach out to [email protected].
<script src="https://bpi.humm-au.com/au/content/scripts/price-info_sync.js?productPrice=<?php echo $_product->getFinalPrice(); ?>&merchantId=PLACE_YOUR_MERCHANT_ID"></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.