From bccd7131cf8eeeb87d0eb78c5a7f28ee43708471 Mon Sep 17 00:00:00 2001 From: Kurtis Holsapple Date: Tue, 7 Oct 2025 16:26:15 -0700 Subject: [PATCH] rental prices --- actions/WooCommerceBeforeAddToCartButtonAction.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/actions/WooCommerceBeforeAddToCartButtonAction.php b/actions/WooCommerceBeforeAddToCartButtonAction.php index baf9030..2b5db3c 100644 --- a/actions/WooCommerceBeforeAddToCartButtonAction.php +++ b/actions/WooCommerceBeforeAddToCartButtonAction.php @@ -32,7 +32,16 @@ class WooCommerceBeforeAddToCartButtonAction extends RadAction foreach ($attributes as $attribute) { $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 "

yay!

"; }