Help with Woocommerce php coding
- or -
Post a project like this3390
$$
- Posted:
- Proposals: 5
- Remote
- #491260
- Completed
Description
Experience Level: Intermediate
General information for the website: Woocommerce Website
Kind of development: Customization of existing website
Description of requirements/features: I need to Woocommerce to display only the minimum price and the minimum sale price for variable products.
I have got it to display just the minimum sale price by adding the following code to my child theme. I need to add the original price to this.
/**
* Returns min price for variably priced products
**/
add_filter('woocommerce_variable_price_html', 'custom_variation_price', 10, 2);
function custom_variation_price( $price, $product ) {
$price = '';
$price .= woocommerce_price($product->min_variation_price);
return $price;
}
I would like this done ASAP
The site is being developed so is only accessible by editing a hosts file to point to it.
Specific technologies required: php
Extra notes:
Kind of development: Customization of existing website
Description of requirements/features: I need to Woocommerce to display only the minimum price and the minimum sale price for variable products.
I have got it to display just the minimum sale price by adding the following code to my child theme. I need to add the original price to this.
/**
* Returns min price for variably priced products
**/
add_filter('woocommerce_variable_price_html', 'custom_variation_price', 10, 2);
function custom_variation_price( $price, $product ) {
$price = '';
$price .= woocommerce_price($product->min_variation_price);
return $price;
}
I would like this done ASAP
The site is being developed so is only accessible by editing a hosts file to point to it.
Specific technologies required: php
Extra notes:

Jo N.
100% (2)Projects Completed
2
Freelancers worked with
2
Projects awarded
100%
Last project
16 Dec 2014
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies