Gets price information of the item in PDP page.

Description.

Gets price information of the item based on the selected options and quantity. Price information includes the current unit price (according to the currently selected options and quantity) and the original unit price. The current price and original price of an item may differ, for example, when a volume discount is applied to the item. Price information is returned with both formatted values (with the currency sign) and unformatted values (without the currency sign).

var pdp = container.getComponent('PDP');
			var itemPrice = pdp.getPrice();

			// Example of the object returned
			{
			 price: 35,
			 price_formatted: $35,
			 compare_price: 40,
			 compare_price_formatted: $40
			}

Leave a comment

Your email address will not be published. Required fields are marked *