Need some PHP help
-
Hi there,
i have found this part of PHP,
<td style="width: 10%;"><?php $product = new WC_Product(get_the_ID()); echo $product->get_price_html(); ?></td>
Now i do not want it to grab the price of a product (this is with Woocommerce and a product filter plugin) but i want to grab a product attribute is there a string for that? like
get_attribute (nameofattribute) ?Maybe i am thinking way to easy here ??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Need some PHP help’ is closed to new replies.