rental prices
This commit is contained in:
@@ -21,6 +21,19 @@ class WooCommerceBeforeAddToCartButtonAction extends RadAction
|
||||
*/
|
||||
public function callback()
|
||||
{
|
||||
global $product;
|
||||
|
||||
if (!$product || !is_a($product, 'WC_Product')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$attributes = $product->get_attributes();
|
||||
$rentalRates = [];
|
||||
|
||||
foreach ($attributes as $attribute) {
|
||||
$name = $attribute->get_name();
|
||||
print_r($name);
|
||||
}
|
||||
echo "<p>yay!</p>";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user