• Hi, a few weeks ago I requested the developer of this plugin to provide support for WCFM Store page template to generate the author ID. The developer was kind enough to provide support and created a plugin which I already installed. My problem is with the instructions given to implement it on the wordpress template. I’d like to know what I’m doing wrong.

    Here are the instructions:

    “Now you can use the following shortcode to show dynamic product table

    [Product_Table id=’144′ name=’Test Table’ author=’4′]

    here I have added author id. Dynamically populate author id and pass it through author attribute.

    You have to use this shortcode in your PHP template. Where you can generate your author/vendor id as $author_id and when you have found it use it in our plugin’s shortcode like this

    <?php $author_id = “generate your author/vendor id here”; echo do_shortcode( ‘[Product_Table id=”144″ name=”Test Table” author=”$author_id”]’ ); ?>”

    I am using elementor to create the store template and need to know If I have to paste the PHP there or I should do something else.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WC Lovers

    (@wclovers)

    I am using elementor to create the store template and need to know If I have to paste the PHP there or I should do something else.

    – Do you have any such Elementor element which support PHP code directly?

    Thread Starter maurochuchuy

    (@maurochuchuy)

    No, theres is no element to insert PHP code, only HTML. I tried adding the code to the child theme under functions.php but I may have done something wrong so undid it.
    Doesn’t look like there’s an easy fix right?

    Thread Starter maurochuchuy

    (@maurochuchuy)

    Hello, I just installed a PHP editor for elementor and would like to install the Product table on my custom store page.

    I have created a product table: [Product_Table id=’420′ name=’Test table’]

    According to the instructions given by the developer I should

    1- On my store page inster a shortcode like: [Product_Table id=’420′ name=’Test table author=’$author_id’]

    2- Insert the following PHP code:
    <?php $author_id = “generate your author/vendor id here”; echo do_shortcode( ‘[Product_Table id=”420″ name=”Test table” author=”$author_id”]’ ); ?>

    Is this how I am supposed to do it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Implementing Product Table on Store page template’ is closed to new replies.