• Resolved ashop1

    (@ashop1)


    Hello, I hope you are very well today.

    I want to make a query about the fragment that is in this link: https://wclovers.com/forums/topic/vendor-product-shortcode-for-current-id/

    How can I show the name of the seller or the store here:
    echo ‘<h2> More posts from ********* </h2>’;
    do_shortcode (‘[wcfm_store_related_products id = ”VENDOR ID”]’);

    What would I have to put where I wrote ********* to show the name of the seller or the store there?

    I await your response, thank you very much in advance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ashop1

    (@ashop1)

    or maybe you should do it after h2:
    Echo '<h2> More posts from </h2> *********';

    I hope it is understood. Thank you

    Plugin Author WC Lovers

    (@wclovers)

    Where you want to show store name?

    Thread Starter ashop1

    (@ashop1)

    I have this code:

    add_action (‘woocommerce_after_single_product_summary’, ‘action_woocommerce_after_main_content’, 10);

    function action_woocommerce_after_main_content () {

    echo ‘<h2 id = more-posts> More posts from the seller </h2>’;
    do_shortcode (‘[wcfm_store_related_products id = ”VENDOR ID”]’);
    }

    and I want to show it right where it says “FROM THE SELLER”, that is, I want to change the phrase of the seller to the name of the store but it is in an h2 and I don’t know how to do it, sorry. I hope I was clear. I show you a picture:

    https://ibb.co/Y2WD5DF

    Plugin Author WC Lovers

    (@wclovers)

    VENDOR ID => what about this? It’s a text, you have to set here actual vendor user id.

    wcfm_store_related_products => Where you find this shortcode? WCFM does not have any such shortcode.

    Thread Starter ashop1

    (@ashop1)

    hello, it works perfectly for me. Show me the seller’s publications on the page where your product is. I took it from a code of yourselves.

    but my question is another, it happens that I need to show a title above this shortcode and it is the h2 that I show,

    here instead of writing as title “more publications of the seller”, I want to change the text “of the seller” by a code that shows me the name of each seller, understand?

    for example: if the seller is called JUAN WCFM, I want my h2 title to say: “More publications of JUAN WCFM”

    Thread Starter ashop1

    (@ashop1)

    You already did it, you were right, I apologize and thank you very much for your support. have a great day

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘show the name of the seller or the store’ is closed to new replies.