1

i want to Check Magento volume discount condition manually for show notification message to customer shop $xx more to get Y% discount. see this post I want to show next best volume discount to customer for total amount

i have all conditions is array

    $myarray = array(
  "type" =>  "salesrule/rule_condition_combine",
  "attribute" => NULL,
  "operator" => NULL,
  "value" =>  "1",
  "is_value_processed" => NULL,
  "aggregator" =>  "all",
  "conditions" => array(  
         "type" =>  "salesrule/rule_condition_combine",
         "attribute" => NULL,
          "operator" => NULL,
          "value" => "1",
          "is_value_processed" => NULL,
          "aggregator" =>  "all",
          "conditions" => array(
                                     array(
                                      "type" => "salesrule/rule_condition_address",
                                      "attribute" =>  "base_subtotal",
                                      "operator" =>  ">=",
                                      "value" =>  "50",
                                      "is_value_processed" =>false,
                                        ),
                                    array(
                                      "type" =>  "salesrule/rule_condition_address",
                                      "attribute" => "base_subtotal",
                                      "operator" => "<=",
                                      "value" => "100",
                                      "is_value_processed" => false,
                                    ),
                array(
                  "type" => "salesrule/rule_condition_product_found",
                  "attribute" => NULL,
                  "operator" => NULL,
                  "value" =>  "1",
                  "is_value_processed" => NULL,
                  "aggregator" =>  "all",
                  "conditions" => array(
                                        array (
                                          "type" =>  "salesrule/rule_condition_product",
                                          "attribute" =>  "category_ids",
                                          "operator" =>  "==",
                                          "value" =>  "357, 358, 407",
                                          "is_value_processed" =>false,
                                        )
                                     )
                )
         )

  )
);

i want to check condition like this from array

if ($total_ amount >= 50 && $total_ amount <= 100)
{
.......
}
elseif ($total_ amount >= 101 && $total_ amount <= 200)
{
......
}
2
  • what have you tried so far. And where do you want to checkj this. Did you look for any observer events you might be able to hook? At this point your question is a bit too broad and unclear to give a good answer Apr 25, 2015 at 19:21
  • @Sander please loot at this question magento.stackexchange.com/questions/64701/… i want to
    – Ashvini K
    Apr 27, 2015 at 5:29

0