Hello mindenkinek!
Commerce webáruházhoz a rules segítségével egy nyitvatartási (Store Opening Hours) szabályozást hoztam létre.
{ "rules_store_hours" : {
"LABEL" : "Store Hours",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "rules", "commerce_cart" ],
"ON" : { "commerce_cart_product_add" : [ ] },
"IF" : [
{ "data_is" : { "data" : [ "site:current-date" ], "op" : "\u003E", "value" : "21:00:00" } },
{ "data_is" : {
"data" : [ "site:current-date" ],
"op" : "\u003C",
"value" : "10:00:00"
}
}
],
"DO" : [
{ "drupal_message" : {
"message" : "We\u0027re sorry but we are currently closed, your item has been removed from the cart. Online ordering has been disabled until 10:00 tomorrow morning.",
"type" : "warning"
}
},
{ "commerce_cart_empty" : { "commerce_order" : [ "site:current-cart-order" ] } }
]
}
}
Forrás: http://www.drupalcommerce.org/questions/10613/store-opening-hours
Még 1 hete működött most kipróbáltam de nem működik :(
Azóta az oldallal nem, csináltam semmit.
Mi lehet a gond?
Taxonomy upgrade extras: 
Drupal verzió: 
Fórum: 
 
        
