Can I add PHP code to each product in Marketpress?

I have "Tag This" plugin installed with a little modification. I am making it where logged in users hit a button and it adds a tag of their username to the post.

I have this working perfectly with posts, but now I need it on each "Product".

Can I add php code to Marketpress to achieve this?

Here is the code I need to be on each product page:

<?php
if ( is_user_logged_in() ) { if (function_exists('wp_tagthis')) { wp_tagthis(); }
     else {
    
  }
} else {
  // display content for guests
}
?>

Thanks for the help!

  • Kimberly
    • Champion of Loops

    Hello Christopher

    Welcome to the WPMUDEV Community!

    You can check out the ThemingMarketpress.txt file included with the plugin files to learn more about creating custom product pages. It will get you going in the right direction.

    Our Framemarket has a great example of these templates if you would care to look for something that you can work from.

    You'd just need to include your code in a single product template file. :slight_smile:

    Best,

    Kimberly

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.