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