• Resolved schawki

    (@schawki)


    I’m trying to make this plugin work with YITH Request a quote premium plugin. The only thing that is missing would be the ability to add a column that would accept the Request a quote shortcode in each line of the table.
    Would it be possible to add this please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hakik Zaman

    (@hakik)

    Hi @schawki

    Thanks for reaching out to me. I am really sorry for your inconvenience.

    To be honest, the part of the table displaying is the complex part of this plugin. You already know, columns are draggable. Indeed, your idea is great. I will try to add an option to add a column if I find a way to implement it.

    Hopefully, you will understand my limitations ?.

    Is “YITH request a quote plugin” has any shortcode facility? For example: [shortcode variation_id = "%variation_id%"] or [shortcode product_id = "%product_id%"]

    Please let me know, I will wait for your next response.

    Hope to hear from you soon!

    Thread Starter schawki

    (@schawki)

    Hi Hakik, thank you so much for answering me.
    Here’s a link to the plugin’s documentation regarding the shortcode to show the add to quote button.
    I’ve been able to show the button on other product tables plugins using the shortcode [yith_ywraq_button_quote] with a function to show it after the woocommerce add to card button hook, but your plugin is better for the website I’m building.
    Hope this will help.

    Plugin Author Hakik Zaman

    (@hakik)

    Hi @schawki

    Thanks for sharing the documentation with me. Please give me some time to check.

    Could you please try the below code?

    function pvt_support_cart_filter( $string ){
            // Example shortcode
    	$var = do_shortcode('[yith_ywraq_button_quote]');
    	return sprintf("%s<div class='shortcode'>%s</div>", $string, $var);
            //$string is button content
    }
    add_filter( 'pvtfw_row_cart_btn_is', 'pvt_support_cart_filter', 10, 1 );

    Please let me know after using the above code.

    Note: Paste the above code to your current theme’s functions.php

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Love it but something’s missing’ is closed to new replies.