Getting lowest price anywhere
-
I’m showing the lowest price all over the store, but there is no easy way to get this information, only this shortcode [alg_show_checkout_fees_lowest_price_info] that renders as HTML. But for feeds, I need the price in raw data, not HTML and I didn’t find any function to get this.
I’m suggesting to add arguments to this shortcode, so I could change the template and product ID to return.
[alg_show_checkout_fees_lowest_price_info product="123" template="%product_gateway_price%"]
And for raw data, only float price value with no tags, you could add another tag.
%product_gateway_price_raw%
Or maybe, in this case, instead of use a shortcode, you could provide functions.
alg_get_lowest_price_html($product_id, $template) // with HTML tags alg_get_lowest_price($product_id) // raw price value 123.00
Another thing, please, reduce the tab name from “Payment Gateway Based Fees and Discounts” to something like “Fees and Discounts”.
- The topic ‘Getting lowest price anywhere’ is closed to new replies.