mikejolley/github-to-wordpress-deploy-script

Hi mike i am useing woocommarce so i use a custom template in theme i get the product in custom query so i want to a change Product Name on click view the single product page with same product id ho we are show it ?

phpcodexpert opened this issue · 0 comments

Hi Mike
2017-12-15-18-21-www seefattechnologies com

i want to product name on click view the single product page
$i=1;
while ( $loop->have_posts() ) : $loop->the_post();global $product;
if ( $product->is_in_stock() ) :

     $return_string .='<tr>';
     $return_string .='<td><a class="btn btn-default product" href="#" data-featherlight="#product_details_'.$loop->post->ID.'"><div class="normal_thumnail"><img src="'.get_the_post_thumbnail_url( $loop->post->ID).'"></div></a></td>';
    $return_string .='<td class="qotv-title">'.get_the_title().'</td>';
    $return_string .='<td>'.wc_price($product->get_price()).'</td>';

this is product title get $return_string .=''.get_the_title().'';
i want to click on product title on click single product page
how we are add the link on title then product title contact the single product page

Thanks & Regrads
phpcodexpert