Skip to content

Change access to iworks_omnibus_integration_woocommerce::get_price()#39

Open
FerroMeow wants to merge 2 commits intoiworks:mainfrom
FerroMeow:main
Open

Change access to iworks_omnibus_integration_woocommerce::get_price()#39
FerroMeow wants to merge 2 commits intoiworks:mainfrom
FerroMeow:main

Conversation

@FerroMeow
Copy link

Change iworks_omnibus_integration_woocommerce::get_price() from a private method to a public one

Reasoning

There are many cases where we would only need the price, and the only way to get it right now is through parsing the result string of the omnibus_price_message shortcode. This however scales poorly with the amount of products shown - each product is passed to the shortcode by ID and then a WP_Product is created for each call. Allowing public use of this method would be beneficial for such use case.

@FerroMeow
Copy link
Author

Changed access additionally to iworks_omnibus_integration_woocommerce::get_lowest_price()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant