tiendabs
Forum Replies Created
-
Forum: Plugins
In reply to: [FiboSearch - Ajax Search for WooCommerce] Add to cart buttonMuchas gracias
Forum: Plugins
In reply to: [FiboSearch - Ajax Search for WooCommerce] Add to cart buttonThanks for answering. My problem is another.
Today I have a code
********************************add_filter( ‘woocommerce_loop_add_to_cart_link’, ‘dcms_add_quantity_field’, 10, 2 );
function dcms_add_quantity_field($html, $product) {
if ( is_user_logged_in() ) {
if($product&&
$product->is_type(‘simple’)&&
$product->is_purchasable()&&
$product->is_in_stock()&&
!$product->is_sold_individually()){$html='<form class="cart" action="'. esc_url($product->add_to_cart_url()).'" method="post" enctype="multipart/form-data">'; $html.= woocommerce_quantity_input(array(),$product,false); $html.='<button type="submit" data-quantity="1" data-product_id="'.$product->get_id().'" class="primary is-small mb-0 button wp-element-button product_type_simple add_to_cart_button ajax_add_to_cart is-outline" style="border-radius: 10px;">'. esc_html($product->add_to_cart_text()).'</button>'; $html.='</form>'; } return $html;
}
}//Agreamos código javascript
add_action( ‘init’, ‘dcms_quantity_change’ );
function dcms_quantity_change() {
wc_enqueue_js(‘
(function( $ ) {
$(“form.cart”).on(“change”, “input.qty”, function() {
$(this.form).find(“[data-quantity]”).attr(“data-quantity”, this.value);
});
})( jQuery );
‘);
}*****************************************
that adds the possibility of adding by quantity to the products in the catalog. What this causes me is that the search engine shows 2 quantity fields, you can see it at torres3.open24.com.ar and only one works. By modifying the plugin I remove it, but when updating I lose it again.Forum: Plugins
In reply to: [Product page shipping calculator for WooCommerce] Free ShippingExcelent, i love u
@rajeshsingh520 if you have time see it.
it s a gifti hace a plugin that can do that. Do you want it to check it? so you can use it in your plugin. This for free
Forum: Reviews
In reply to: [Import and export users and customers] only one problemPerdon, le di a soporte y me mando para aca. Ya lo arregle. Con respecto al csv probe las 2 maneras, tanto Empresa como empresa y nada. Lo termine cambiando por suscriptor y cambie la logica para que sea ese el perfil que haga algo en especifico
Forum: Plugins
In reply to: [Payment Gateway Based Fees and Discounts for WooCommerce] Meta productEso es producto por producto, tenemos 4mil productos. Se puede hacer de forma masiva?
Reclamaron aca https://www.mercadopago.com.ar/developers/es/support ??
Forum: Plugins
In reply to: [Mercado Pago payments for WooCommerce] Ahora 12si, tenes que ser del rubro, registras el CUIT y habilitas AHORA12
Forum: Plugins
In reply to: [Woo Custom Stock Status] Status everywhereThanks for your time.
We changed in the php the <br> that it adds at the end of cart_stock_status since it generated three lines in checkout (item) (status) (quantity). It’s the only thing we change.
Thanks againExcellent, that was the problem. We add the country we hide it with css and it works. The only bad thing is that, postcode, city and state are now full wide