thanks… I dont know if is this good way, but this code in the child theme functions.php is working for me:
add_filter('woocommerce_product_class', 'myFunction', 10, 4);
function myFunction($classname, $product_type, $post_type, $product_id) {
$classname="SUB_WC_Product_my";
return $classname;
}
class SUB_WC_Product_my extends SUB_WC_Product {
public function get_product_price( $context="view" ) {
return "AB";
}
}
Related Posts:
- WooCommerce create new product and add to cart on form submit
- Over write plugin templates
- How to get subscription key or id using Woocommerce Subscriptions [closed]
- Dropdown menu on custom page with product to choose number of products per page
- Change wordpress current_time function to different timezone
- How to enable specific plugin only based around shop manager role?
- Replacing a plugin function with a custom renamed function doesn’t work
- Redirect to another page using contact form 7? [closed]
- wc_get_template new template does not showing up
- WordPress Stock Update Programatically
- Woocommerce singe product custom gallery output works just on the first slide
- Getting a ressource ID, from a WC_Order_Item_Product/Order
- How to get custom minimum price in Woocommerce
- How to make WooCommerce payment method field optional?
- Create category for each user
- add a hook of Woocommerce to a plugin but it only shows and doesn’t function properly
- ACF Fields are not showing up on Homepage
- Adding discount functionality to the cart
- How to assign a specific service to a specific provider based on location
- Make modification of add_to_cart button specific to single page
- Easiest way to load/fire a handful of functions, IF checkbox is checked?
- Securing langugae folder
- Configuring default woo commerce login with modal popup
- Move related products after product summary? [closed]
- is_plugin_active() not defined on active plugin, in the thumbnails.php file
- Woocommerce – Product Description heading [closed]
- Woocommerce disable checkout on specific day
- Adding a script & php to functions.php
- Product customizing quiz – quiz adding products to the cart
- Show WooCommerce products based on query parameters on redirect
- add to cart linking to add to cart page
- How to include a plugin’s php file to another plugin functions file [duplicate]
- How to assign user a role if none is present when logging in
- WooCommerce Always Include Shipping Information in Checkout [closed]
- Add Products to user’s ID Woocommerce
- Woocommerce different URL for every table placed in the restaurant
- Disable Admin Bar Render on Plugin Page
- How to add product images using script?
- Woocommerce cart is a non-object inside `admin_post` action [closed]
- How to find out what blocks are added by a plugin
- Invalid shipping method, WooCommerce [closed]
- Make specific products accessible only to a user role in WooCommerce
- How to edit Image layout in single product page in woocommerce on wordpress?
- Woocommerce – Display active variation product price [closed]
- Need Old Version of plugins
- How to append to title via functions.php for auto-posting plugin [duplicate]
- Bootstrap Drop Down menu is not working
- How to change constants in WordPress wp-config.php programmatically?
- Override Plugin Script Fucnction in WordPress
- Woocommerce Deposit, then random payments until product paid in full [closed]
- custom payment gateway in woocommerce failed to connect to remote api server
- How to call WordPress function other files
- Want to Show Sub categories under Categories section using Woo Commerce [closed]
- Ajax : Call undefined function plugin_function() … can’t call any plugin function
- How can I insert thousands of Woocommerce products by batch with PHP? [closed]
- How to over-ride a file in a plugin? [closed]
- Overwrite category head title
- execute function after one completed
- Restrict content based on buy woocommerce product
- Product count in archive page Title in WooCommerce [closed]
- How to get specific string/value from an array? php [closed]
- Woocomerce add info after order email prouct item
- How to remove products-links after the product title using remove_action
- get_term_meta returns false in widget
- same user role or copy the user role to be same as the other role
- Execute a function when the entire page is displayed
- How can i listing current category and Featured Category post list?
- How to add custom function to pluggable.php
- grab or load text on demand
- sliding/fading header plugin or approach suggestion
- Woocommerce Export and import Orders
- Grouping imported products and showing variations based on selected product
- How would I get the new plugin version on this function?
- Add a Custom email notification to WC actions
- Remove Zero Money From Previews Order woocommerce
- How would I Redirect an existing WooCommerce customer to a specific url after Checkout
- Changing wordpress/woocommerce notices default message to other languages (text)
- Search in WordPress
- WooCommerce Stripe payment plugin working perfectly in storefront parent theme but not in the child theme
- WooCommerce Checkout Issue specific to Instagram In-App Browser
- Modify function output in a plugin
- How to capture customer’s credit card details via PayPal on my checkout page?
- How to make the first letter of a post title uppercase, in a plugin?
- Hide ‘add to cart’ button for some products [duplicate]
- Payment failed but order is placed on wp site
- How to change the product short description for each product with PHP?
- Help needed with woocommerce (wc stripe) filter
- Code fails in plugin file but works in functions.php
- Cannot access variables within a widget
- WordPress plugin options need to delete after deactivate & uninstall
- WordPress function to add text
- Doing action based on input from options menu
- Add A Button to WooCommerce Product Page
- How ACF Advanced Custom Field works with Woocommerce Single Product [closed]
- The plugin generated xxx characters of unexpected output during activation
- Predefine Product Variations for specific custom product type [closed]
- Console errors after WordPress Update 6.1
- How to use `$order->get_discount_total()`, avoiding defoult WC decimal rounding?
- USPS shipping costs are being doubled when using the USPS shipping method plugin [closed]
- How to access a function declared in child theme’s functions file in a plugin file?