rental prices

This commit is contained in:
2025-10-07 16:21:43 -07:00
parent b13684802b
commit e4fe693bb8

View File

@@ -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>";
}
}