Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter fikerisoina

    (@fikerisoina)

    What I want is not really that difficult.

    1#Get rid of add to cart
    2# Add code to the sidebar widget menu of a product page to include this https://prnt.sc/sqnzwh

    I have tried inspecting and copying element from there to a text widget in the sidebar, but chrome takes the raw code instead of the actually dynamic ones I need, so that doesn’t work

    • This reply was modified 4 years, 9 months ago by fikerisoina.
    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    1#Get rid of add to cart

    – Add this snippet to your site –

    add_filter( 'woocommerce_is_purchasable', function( $is_purchasable, $product ) {
    	global $WCFMmp;
    	$is_purchasable = false;
    	remove_action( 'woocommerce_single_variation', 'woocommerce_single_variation_add_to_cart_button', 20 );
      return $is_purchasable;
    }, 800, 2 );

    Add custom code(s) to your child theme’s functions.php
    In case you do not have child theme then add those using this plugin –?https://www.ads-software.com/plugins/code-snippets/

    2# Add code to the sidebar widget menu of a product page to include this https://prnt.sc/sqnzwh

    – Add this short code under single product page sidebar –

    [wcfm_store_info data="store_social"]

    Thank You

    Thread Starter fikerisoina

    (@fikerisoina)

    Hi, i have already done this already; https://prnt.sc/swbd6d but thank you for the answer. but now I have a different question, I want people to land on the “add product” page after they submit the registration, now when they click submit they get to this page https://prnt.sc/swbeou and how can I hide this and get them straight into uploading an product?

    thank yuou

    Plugin Author WC Lovers

    (@wclovers)

    now when they click submit they get to this page https://prnt.sc/swbeou and how can I hide this and get them straight into uploading an product?

    – It’s not possible to disable this “Thank You” page.

    But we can change it’s buttons urls to add product page.

    Thank You

    Thread Starter fikerisoina

    (@fikerisoina)

    Okey how can i do that then, thank you for the answer.

    Plugin Author WC Lovers

    (@wclovers)

    Add this snippet to your site –

    add_filter( 'wcfm_thank_you_left_button_url', function( $button_url ) {
    	$button_url = get_wcfm_edit_product_url();
    	return $button_url;
    });
    add_filter( 'wcfm_thank_you_left_button_label', function( $button_label ) {
    	$button_label = 'Add your first product';
    	return $button_label;
    });

    Add custom code(s) to your child theme’s functions.php
    In case you do not have child theme then add those using this plugin –?https://www.ads-software.com/plugins/code-snippets/

    Thank You

    Thread Starter fikerisoina

    (@fikerisoina)

    Thanks man, works perfectly!

    Plugin Author WC Lovers

    (@wclovers)

    Glad to here ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How can i replace Add to cart with vendors phone number’ is closed to new replies.