carga_opciones(); ?>

' . $this->addtocart . ''); ?>


' . $this->addtocart . ''); ?>

Otros plugins para WooCommerce que te pueden interesar

addtocart = __('Add to cart', 'woocommerce'); $this->buyproduct = _x('Buy product', 'placeholder', 'woocommerce'); $this->selectoptions = __('Select options', 'woocommerce'); $this->viewproducts = __('View products', 'woocommerce'); $this->booknow = __('Book now', 'woocommerce-bookings'); $opciones = array( 'add_to_cart_external' => $this->buyproduct, 'add_to_cart_grouped' => $this->viewproducts, 'add_to_cart_simple' => $this->addtocart, 'add_to_cart_variable' => $this->selectoptions, 'add_to_cart_external_single' => $this->buyproduct, 'add_to_cart_grouped_single' => $this->addtocart, 'add_to_cart_simple_single' => $this->addtocart, 'add_to_cart_variable_single' => $this->addtocart, 'add_to_cart_bookable' => $this->booknow, 'add_to_cart_bookable_single' => $this->booknow, ); if ($this->ajustes = get_option ('add_to_cart_button_text_settings')) foreach ($opciones as $opcion => $default) $this->$opcion = isset ($this->ajustes[$opcion]) ? $this->ajustes[$opcion] : false; else { //New install or updated from 2.3.0 foreach ($opciones as $opcion => $default) { $this->$opcion = get_option ($opcion, $default); $this->ajustes[$opcion] = $this->$opcion; } update_option ('add_to_cart_button_text_settings', $this->ajustes); } } } endif;