Woocommerce
-
Kan iemand mij aangeven hoe ik onderstaande vraag kan aanpassen in Wooccommerce. Ik zit bij elke update van Woocommerce met de hand de tekst te wijzigen via PDF.
Waarom is de tekst uit het document Class-wc-product-variable.php op lijn 318 niet zichtbaar.
Als ik een variabele product aan maak. Ik zie geen from /to bij het product alleen de prijzen.
Code
public function get_price_html( $price = ” ) {
if ( $this->get_price() === ” ) {
$price = apply_filters( ‘woocommerce_variable_empty_price_html’, ”, $this );
} else {
$prices = $this->get_variation_prices( true );
$min_price = current( $prices[‘price’] );
$max_price = end( $prices[‘price’] );
$price = $min_price !== $max_price ? sprintf( _x( ‘%1$s–%2$s’, ‘Price range: from-to’, ‘woocommerce’ ), wc_price( $min_price ), wc_price( $max_price ) ) : wc_price( $min_price );
$is_free = $min_price == 0 && $max_price == 0;if ( $this->is_on_sale() ) {
$min_regular_price = current( $prices[‘regular_price’] );
$max_regular_price = end( $prices[‘regular_price’] );
$regular_price = $min_regular_price !== $max_regular_price ? sprintf( _x( ‘%1$s–%2$s’, ‘Price range: from-to’, ‘woocommerce’ ), wc_price( $min_regular_price ), wc_price( $max_regular_price ) ) : wc_price( $min_regular_price );
$price = apply_filters( ‘woocommerce_variable_sale_price_html’, $this->get_price_html_from_to( $regular_price, $price ) . $this->get_price_suffix(), $this );
} elseif ( $is_free ) {
$price = apply_filters( ‘woocommerce_variable_free_price_html’, __( ‘Free!’, ‘woocommerce’ ), $this );
} else {
$price = apply_filters( ‘woocommerce_variable_price_html’, $price . $this->get_price_suffix(), $this );
}Cees
- Het onderwerp ‘Woocommerce’ is gesloten voor nieuwe reacties.