rental prices

This commit is contained in:
2025-10-07 16:26:15 -07:00
parent e4fe693bb8
commit bccd7131cf

View File

@@ -32,7 +32,16 @@ class WooCommerceBeforeAddToCartButtonAction extends RadAction
foreach ($attributes as $attribute) { foreach ($attributes as $attribute) {
$name = $attribute->get_name(); $name = $attribute->get_name();
print_r($name); if ($name === "Rental Rate (Daily)") {
$rentalRates["daily"] = $attribute->get_options();
}
if ($name === "Rental Rate (Weekly)") {
$rentalRates["weekly"] = $attribute->get_options();
}
if ($name === "Rental Rate (Monthly)") {
$rentalRates["monthly"] = $attribute->get_options();
}
print_r($rentalRates);
} }
echo "<p>yay!</p>"; echo "<p>yay!</p>";
} }