rental prices
This commit is contained in:
@@ -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>";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user