I see Plugin activated. notice and following links displayed under WooCommerce Stripe Gateway:
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
{ | |
"id": "stripe", | |
"title": "Stripe", | |
"description": "Pay with your credit card via Stripe. TEST MODE ENABLED. In test mode, you can use the card number 4242424242424242 with any CVC and a valid expiration date or check the documentation \"<a href=\"https://stripe.com/docs/testing\">Testing Stripe</a>\" for more card numbers.", | |
"order": 4, | |
"enabled": true, | |
"method_title": "Stripe", | |
"method_description": "Stripe works by adding credit card fields on the checkout and then sending the details to Stripe for verification. <a href=\"https://dashboard.stripe.com/register\" target=\"_blank\">Sign up</a> for a Stripe account, and <a href=\"https://dashboard.stripe.com/account/apikeys\" target=\"_blank\">get your Stripe account keys</a>.", | |
"settings": { | |
"title": { |
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
HTTP/1.1 200 OK | |
Server: nginx | |
Date: Mon, 24 Jul 2017 11:07:07 GMT | |
Content-Type: application/json; charset=UTF-8 | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-Robots-Tag: noindex | |
Link: <https://local.wordpress.dev/wp-json/>; rel="https://api.w.org/" | |
X-Content-Type-Options: nosniff | |
Access-Control-Expose-Headers: X-WP-Total, X-WP-TotalPages |
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
<?php | |
add_filter( 'post_class', function( $classes, $class = '', $post_id = '' ) { | |
$product = wc_get_product( $post_id ); | |
if ( ! $product ) { | |
return $classes; | |
} | |
if ( class_exists( 'WC_Pre_Orders_Product' ) && WC_Pre_Orders_Product::product_can_be_pre_ordered( $product ) ) { | |
$classes[] = 'pre-order'; |
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
<?php | |
add_filter( 'woocommerce_distance_rate_shipping_rule_cost_distance_shipping', function( $rule_cost, $rule, $distance, $package ) { | |
$order_total = $package['contents_cost']; | |
if ( $order_total > 100 && $distance <= 5 ) { | |
$rule_cost = 0; | |
} | |
return $rule_cost; | |
}, 10, 4 ); |