This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function your_theme_name_preprocess_html(&$vars) { | |
//force ie compatibility off | |
drupal_add_http_header('X-UA-Compatible', 'IE=edge,chrome=1'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jQuery Show / Hide Div based on URL parameter | |
if(window.location.href == "http://test.dev/node/1?utm_medium=adwords"){ | |
$('.menu-818').hide(); | |
$('.menu-900').show(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "rules_send_email_after_order_status_is_completed" : { | |
"LABEL" : "send email after order status is completed", | |
"PLUGIN" : "reaction rule", | |
"REQUIRES" : [ "rules", "entity" ], | |
"ON" : [ "commerce_order_update" ], | |
"IF" : [ | |
{ "data_is" : { "data" : [ "commerce-order:status" ], "value" : "completed" } } | |
], | |
"DO" : [ | |
{ "mail" : { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function power_form_alter(&$form, &$form_state, $form_id) { | |
/* | |
* Show all variables in user login | |
* dpm($form); | |
*/ | |
if ($form_id == 'user_login') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<b><?php print t('Delivery Date:'); ?></b> <?php print date('j F, Y g:i a', $order->field_delivery_date['und'][0]['value']); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "rules_send_an_invoice_receipt_on_email" : { | |
"LABEL" : "Send an invoice receipt on email", | |
"PLUGIN" : "reaction rule", | |
"REQUIRES" : [ "rules", "commerce_invoice_receipt", "commerce_checkout" ], | |
"ON" : [ "commerce_checkout_complete" ], | |
"DO" : [ | |
{ "commerce_invoice_receipt_action_mail" : { | |
"commerce_order" : [ "commerce-order" ], | |
"to" : "[commerce-order:owner] \u003C[commerce-order:mail]\u003E", | |
"subject" : "[site:name]: Order #[commerce-order:order-id]" |
NewerOlder