Before this, I have successfully edited the twitter share-link of gallery post, from the file /template/single/gallery/portfolio-social.php
I use the first two “post tag” to turn into the hashtag when tweeting. So i have change the tweet link in the portfolio-social.php from href="https://twitter.com/share?url=<?php echo esc_url($post_link); ?>&text=<?php the_title(); ?>" to href="https://twitter.com/intent/tweet?url=<?php echo esc_url($post_link); ?>&text=<?php the_title(); ?>&hashtags=<?php echo $post_tags->name; echo ','; echo $post_tags->name; ?>"
I would like to ask you
1. Which file or how can I edit the tweet link of the product page?
2. In the Woocomerce single product page, I cannot use “post tag” right? Maybe I must change from the “post tag” to the “product tag” instead? So do you know how to change the code to use the product tage instaad of the post tag. for example can i use echo $product_tags->name instead of echo $post_tags->name; or what is the code of this.