PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Quantity input field on separate td

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

Thank you for your awesome support!

currently, i can see qty input and add to cart on same <td>

I need QTY in separate td

I used the below code snipet

add_action('woot_profile_extend', function($profile, $action_name) {
    if ($action_name === 'woot_woocommerce_tables') {
      
        $profile['my_new_column'] = [
            'title' => WOOT_Vocabulary::get('My new column'),
            'order' => FALSE,
            'action' => function($post_id) {
                return 'Hello World!';
            }
        ];
    }
    return $profile;
}, 10, 2);
I have successfully display Hello world.
Below code for QTY input field but i am not able to fit in the shortcode
add_filter( 'woocommerce_loop_add_to_cart_link', 'quantity_inputs_for_woocommerce_loop_add_to_cart_link', 10, 2 );
function quantity_inputs_for_woocommerce_loop_add_to_cart_link( $html, $product ) {
if ( $product && $product->is_type( 'simple' ) && $product->is_purchasable() && $product->is_in_stock() && ! $product->is_sold_individually() ) {
$html = '<form action="' . esc_url( $product->add_to_cart_url() ) . '" class="cart" method="post" enctype="multipart/form-data">';
$html .= woocommerce_quantity_input( array(), $product, false );
$html .= '<button type="submit" class="button alt">' . esc_html( $product->add_to_cart_text() ) . '</button>';
$html .= '</form>';
}
return $html;
}
I have added code in the upsell.php
do_shortcode('[woot_upsells columns="title,post_content,my_new_column,stock_quantity,price,add_to_cart" skin="skin-4" id= 10 ]') ;?>
Please help me out!
Thank you

Hello

I do not understand you

If  you  need  show  QTY  - display  it  here - https://c2n.me/49Fbxde.png

To get  QTY  - woocommerce_quantity_input( array(), $product, false );

To get  $product - wc_get_product($post_id)

Hello,

Thank you for your quick response!

I am looking upsell product items in below table fashion.

https://ibb.co/8dDPqHy

I hope It gives clarity.

Thank you

Hello

Ok!  I understood that! I gave you all the information from the side of this plugin.

how to add content to a column - just pass a string - https://c2n.me/49G23pS.png

 

Hello ,

Recently i have purchased the script. I have followed your suggestions but the quantity is not working as expected.

Ajax issue and If i select quantity 3, it takes 1 default.

Please help me out.

code in functions.php

add_action('woot_profile_extend', function($profile, $action_name) {

if ($action_name === 'woot_woocommerce_tables') {

$profile['quantity'] = [
'title' => WOOT_Vocabulary::get('Qty'),
'order' => FALSE,
'action' => function($post_id) {
return woocommerce_quantity_input( array(), $product, false );
}
];
}

return $profile;
}, 10, 2);

Thank you

Sorry i missed url

https://druvakarthik.in/demo/nexcomm-asia/product/4g-transmitter-3/

 

Thank you

Hello

Ok! You need JS customization

https://c2n.me/4a4LdR6.png - you need ID sync for this to work

Hello

Thank you for quick respone.

I thought after buying premium script its works. Do you have a code snippet for this so I can add it in functions.php and make it work?

 

Thank you

If i make a quantity of more than 1, only 1 updates to the cart

https://ibb.co/QjQLJcq

Hello

I thought after buying premium script its works. - ???  If your custom code doesn't work, then buying a plugin won't change anything.  Unfortunately I don't have a ready-made solution for you. If you have no experience in programming, you should hire a developer

I told you the right way - https://c2n.me/4a5KaY3.png for this to work you need the same values here - https://c2n.me/4a4LdR6.png

 

Hello,

Thank you

I mean to say, Primium script has extra features and it does my job easy. That's it.

I have a bit of coding knowledge, could you please share some reference links so i can try out.

Thank you

Hello Author,

Need to customize woocommerce.js file

Can you get it done custom work? if yes, please give pricing. you know the code flow from scratch.

Thank you

Hello

Need to customize woocommerce.js file - I do not know. need to investigate this

Better make a JS custom code that will change this value

An  example:

var id = jQuery('#woot-add-to-cart-input').attr('id')

jQuery('Your_input').attr('id',id)

Can you get it done custom work? - Unfortunately we don't have time for custom tasks.

Hello

Thank you.

My last query.

When i click on add to cart Header cart not getting updating. I am using woodmart theme.

Reference url https://druvakarthik.in/demo/nexcomm-asia/product/4g-transmitter-3/

Thank you

Hello

Try  in  file - \wp-content\plugins\woot-products-tables\profiles\woocommerce\js\woocommerce-cart.js - add code -  https://c2n.me/4adWhxy.png

jQuery(document.body).trigger('wc_fragment_refresh');