Hello everyone,
I am a novice to PHP programming and was hoping somebody could help me.
I am trying to fetch a product price and declare it as an item property for microdata.
The following function returns a price and displays it on the page:
<?php echo $this->getPriceHtml($_product, true) ?>I want to insert the returned price in the following html code:
where (price) is the returned value.
I tried this code:
However, this causes problems with the website display.( I’ve tried calling the function with and without the appended semicolon at the end of the call, same result).
I have some screen shots of the result (how the website looks) when I apply this code but I could not work out how to attach them here in this post.
I know there is nothing wrong with the syntax of the function call because when I apply this code:
it works perfectly.
For some reason it doesn’t like this function $this->getPriceHtml($_product, true)
and I have no idea why.
Can anybody see what I am doing wrong?
THanks in advance