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_free_shipping_offer" : { | |
| "LABEL" : "Free Shipping offer", | |
| "PLUGIN" : "reaction rule", | |
| "REQUIRES" : [ "rules", "commerce_line_item", "commerce_shipping" ], | |
| "ON" : [ "commerce_shipping_calculate_rate" ], | |
| "IF" : [ | |
| { "data_is" : { "data" : [ "commerce-line-item:type" ], "value" : "shipping" } }, | |
| { "data_is" : { | |
| "data" : [ "commerce-line-item:order:commerce-order-total:amount" ], | |
| "op" : "\u003E", |
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
| name = Sort Shipping by Price | |
| description = Sorts shipping by price. | |
| package = Commerce (contrib) | |
| dependencies[] = commerce | |
| core = 7.x |
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_alter_line_item_label" : { | |
| "LABEL" : "Alter line item label", | |
| "PLUGIN" : "reaction rule", | |
| "OWNER" : "rules", | |
| "REQUIRES" : [ "rules", "commerce_cart" ], | |
| "ON" : { "commerce_cart_product_add" : [] }, | |
| "IF" : [ | |
| { "entity_is_of_type" : { "entity" : [ "commerce-line-item" ], "type" : "commerce_line_item" } }, | |
| { "data_is" : { "data" : [ "commerce-product:type" ], "value" : "product" } } | |
| ], |
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_free_shipping_us" : { | |
| "LABEL" : "Free Shipping offer (US)", | |
| "PLUGIN" : "reaction rule", | |
| "ACTIVE" : false, | |
| "REQUIRES" : [ "commerce_order", "rules", "commerce_line_item", "commerce_shipping" ], | |
| "ON" : [ "commerce_shipping_calculate_rate" ], | |
| "IF" : [ | |
| { "NOT commerce_order_compare_address" : { | |
| "commerce_order" : [ "commerce-line-item:order" ], | |
| "address_field" : "commerce_customer_shipping|commerce_customer_address", |
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 mytheme_preprocess_html($vars) { | |
| $twitter_account = array( | |
| '#tag' => 'meta', | |
| '#attributes' => array( | |
| 'property' => 'twitter:account_id', | |
| 'content' => '8665962', | |
| ), | |
| ); | |
| drupal_add_html_head($twitter_account, 'twitter:account_id'); | |
| } |
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
| name = Custom Entity Display Modes | |
| description = Adds additional display modes | |
| core = 7.x |
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
| SELECT product.ID as product_id, product.post_title as product_name, replace(product.post_content, '"', "'") as product_content, product_sku.meta_value as product_sku, product_price.meta_value as product_price, product_weight.meta_value as product_weight | |
| FROM wp_posts as product | |
| LEFT JOIN wp_postmeta as product_sku ON product.ID = product_sku.post_ID | |
| LEFT JOIN wp_postmeta as product_price ON product.ID = product_price.post_ID | |
| LEFT JOIN wp_postmeta as product_weight ON product.ID = product_weight.post_ID | |
| WHERE (product.post_type = 'product' OR product.post_type = 'product_variation') AND product_sku.meta_key = '_sku' AND product_price.meta_key = '_price' AND product_weight.meta_key = '_weight' | |
| ORDER BY product_id ASC |
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
| $('.responsive-menu li.menu-parent').hover( | |
| function() { | |
| $(this).find('.sub-menu').addClass('active'); | |
| }, | |
| function() { | |
| $(this).find('.sub-menu').removeClass('active'); | |
| } | |
| ); |
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
| { | |
| "bold_folder_labels": true, | |
| "caret_style": "wide", | |
| "color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme", | |
| "default_line_ending": "unix", | |
| "draw_white_space": "all", | |
| "ensure_newline_at_eof_on_save": true, | |
| "fade_fold_buttons": false, | |
| "fallback_encoding": "UTF-8", | |
| "find_selected_text": true, |