I have code to create a review email, using the product the customer ordered, a photo of it and a link to the review part of the product page. The code looks like this -
<tbody>
<?php $items = $order->get_items();
foreach ($items as $item) {
$product = new WC_Product($item['product_id']);
?>
<tr>
<td nowrap><?php echo $product->get_image($size = 'shop_thumbnail'); ?></td>
<td nowrap><?php echo $product->get_title(); ?> </td>
<td nowrap><a href="<?php echo $url = get_permalink($product->id).'#reviews'; ?>" style="background-color: #000; color: #fff; text-decoration: none; padding: 10px;">REVIEW NOW</a></td>
</tr>
<?php }
?>
</tbody>
I want to change the link on the 'review now' box to be a static link. I've tried the below but it doesn't work.
<a href="<?php echo $url = "www.google.com" ?>" style="background-color: #000; color: #fff; text-decoration: none; padding: 10px;">REVIEW NOW</a>