Custom price template that divides %PRICE% by a number defined in shortcode?
-
Hi Paul,
I love the plugin, thanks for your hard work.
I currently pull just an amazon price with a custom %price% template. I trying to figure out some kind of code to display a cost per serving so it would be something like:
[amazon asin=B00MNAGJNW&template_content=%PRICE%&servings=10]
If the product price was £10 and I enter servings 10, it will display £1.
Basically a way to enter a variable via a shortcode.
If you or anyone could help that would be amazing?!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom price template that divides %PRICE% by a number defined in shortcode?’ is closed to new replies.