• Resolved loopforever

    (@loopforever)


    Hello,
    How can I display the Product ID under Product Name on the Vendor product page.
    Please look at the image.
    Image

    • This topic was modified 4 years, 3 months ago by loopforever.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @loopforever ,

    That’s a good question.

    You need to modify the file from dokan-lite/templates/products/products-listing-row.php

    Place this code after line no. 42 –

    <p><?php echo esc_html( "ID: " . $product->get_id() ); ?></p>

    Make sure to save your modified file under your child-theme/dokan/products/ folder with the exact same name.

    Thank you ??

    Thread Starter loopforever

    (@loopforever)

    I added this and it works. Thank you so much. ??

    Finally, I want to ask you something. I previously told a developer to remove “Tax Class”. This part I’m talking about is in the “Add New Product” section.
    However, I want to activate this. The operation was done in a child theme. I wonder where is the relevant code. Can you guide me?

    • This reply was modified 4 years, 3 months ago by loopforever.
    • This reply was modified 4 years, 3 months ago by loopforever.
    • This reply was modified 4 years, 3 months ago by loopforever.
    • This reply was modified 4 years, 3 months ago by loopforever.

    Hello @loopforever ,

    The tax option for the vendor is on Dokan Pro which we can not discuss here.

    I can not be sure what exact way he used to remove that part of the code. There can be multiple ways. If you have a /dokan/products/ folder in your child theme with the file – product-shipping-content.php then he used the template override method to remove the area you have asked to remove. You can delete or rename this file/folder if you do not want this to work anymore.

    It will be also better to contact the person for better understanding.

    Thank you ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display Product ID’ is closed to new replies.