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_thankyou_order_received_text', 'woo_change_order_received_text', 10, 2 ); | |
| function woo_change_order_received_text( $str, $order ) { | |
| $new_str = $str . ' We have emailed the purchase receipt to you.'; | |
| return $new_str; | |
| } |
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
| from flask import Flask, request, make_response, session | |
| from flaskext.kvsession import KVSessionExtension | |
| from datetime import datetime, timedelta | |
| from twilio import twiml | |
| import json | |
| import redis | |
| from simplekv.memory.redisstore import RedisStore | |
| SECRET_KEY = 'a secret key' |
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
| from flask import Flask, request, make_response | |
| from datetime import datetime, timedelta | |
| from twilio import twiml | |
| app = Flask(__name__) | |
| @app.route("/sms") | |
| def sms(): | |
| #get the cookie value, or default to zero |