Actually we added this configuration but it does not work either.
Is this correct?
<?php
/**
* Theme functions and definitions
*
* @package HelloElementor
*/
if ( ! defined( ‘ABSPATH’ ) ) {
exit; // Exit if accessed directly.
}
define( ‘HELLO_ELEMENTOR_VERSION’, ‘2.3.1’ );
if ( ! isset( $content_width ) ) {
$content_width = 800; // Pixels.
}
if ( ! function_exists( ‘hello_elementor_setup’ ) ) {
/**
* Set up theme support.
*
* @return void
*/
function dmc_wc_smntcswcb_quantity_fix_before() {
echo ‘<div class=”product-quantity”>’;
}
function dmc_wc_smntcswcb_quantity_fix_after() {
echo ‘</div>’;
}
add_action( ‘woocommerce_before_add_to_cart_quantity’, ‘dmc_wc_smntcswcb_quantity_fix_before’ );
add_action( ‘woocommerce_after_add_to_cart_quantity’, ‘dmc_wc_smntcswcb_quantity_fix_after’ );
function hello_elementor_setup() {
This file use your recomendation :
wp-content/plugins/woocommerce/templates/single-product/add-to-cart/variation-add-to-cart-button.php: do_action( ‘woocommerce_before_add_to_cart_quantity’ );
wp-content/plugins/woocommerce/templates/single-product/add-to-cart/grouped.php: do_action( ‘woocommerce_before_add_to_cart_quantity’ );
wp-content/plugins/woocommerce/templates/single-product/add-to-cart/simple.php: do_action( ‘woocommerce_before_add_to_cart_quantity’ );
-
This reply was modified 3 years, 9 months ago by jeriko90.