summaryrefslogtreecommitdiff
path: root/server-build/QEMU-autobuild
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-24 17:53:55 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-24 17:53:55 +0200
commit66cc27c3ea7b22a5e9fc5f97b16b91d20310ec3d (patch)
tree0f8796280741c0cc216d02354ef02099475be4cd /server-build/QEMU-autobuild
parent06eaaec3005bf9310bf35dcaef6d685cd8e1eeb6 (diff)
downloadwoocommerce-taler-66cc27c3ea7b22a5e9fc5f97b16b91d20310ec3d.tar.gz
woocommerce-taler-66cc27c3ea7b22a5e9fc5f97b16b91d20310ec3d.tar.bz2
woocommerce-taler-66cc27c3ea7b22a5e9fc5f97b16b91d20310ec3d.zip
fix settings and snippet
Diffstat (limited to 'server-build/QEMU-autobuild')
-rwxr-xr-xserver-build/QEMU-autobuild/buildWebstore.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/server-build/QEMU-autobuild/buildWebstore.sh b/server-build/QEMU-autobuild/buildWebstore.sh
index e0873ae..9b8f35a 100755
--- a/server-build/QEMU-autobuild/buildWebstore.sh
+++ b/server-build/QEMU-autobuild/buildWebstore.sh
@@ -164,8 +164,6 @@ sudo -u www-data wp media import https://live.staticflickr.com/780/20907853650_0
sudo -u www-data wp media import https://live.staticflickr.com/2514/3806410714_90df3f5865_b.jpg
sudo -u www-data wp media import https://live.staticflickr.com/7199/6929220523_1300f7e95b_b.jpg
-exit 0
-
echo
echo 'Okay, the shop is almost ready. But you have to set a few things up in the browser.'
echo
@@ -177,10 +175,10 @@ echo ' d. Click the radio buton for "Run snippet everywhere" and click "Save C
echo
-SNIPPET=`cat KUDOS-WooCommerce-Support.php.txt`
+SNIPPET=`cat ${ORIGIN}/KUDOS-WooCommerce-Support.php.txt`
cat | mysql wordpress <<EOF
-PREPARE stmt FROM 'INSERT INTO wp_snippets (name, description, code, scope, priority, active, modified) VALUES (?,?,?,?,?,?,?,?)';
+PREPARE stmt FROM 'INSERT INTO wp_snippets (name, description, code, scope, priority, active, modified) VALUES (?,?,?,?,?,?,?)';
SET @name='KUDOS currency support';
SET @description='This snippets adds support for the KUDOS currency of the Taler demo to WooCommerce';
SET @code="$SNIPPET";
@@ -193,11 +191,11 @@ mysql wordpress
echo
echo '2. You must set up WooCommerce defaults. To do this:'
-echo ' a. Log into the WooTaler site in your host system at 127.0.0.1:9999/wp-admin/.'
+ echo ' a. Log into the WooTaler site in your host system at 127.0.0.1:9999/wp-admin/.'
echo ' b. Click on WooCommerce > Settings'
echo ' c. Under the "Payments" tab, enable and then "Set up" "GNU Taler Gatway"'
-sudo -u www-data wp wc --user=admin payment_gateway update gnutaler --enabled=true --settings='{"title":{"id":"title","label":"Title","description":"This is what the customer will see when choosing payment methods.","type":"text","value":"GNU Taler","default":"GNU Taler","tip":"This is what the customer will see when choosing payment methods.","placeholder":""},"GNU_Taler_Backend_URL":{"id":"GNU_Taler_Backend_URL","label":"GNU Taler Back-end URL","description":"Set the URL of the GNU Taler back-end. (Ex: https:\/\/backend.demo.taler.net)","type":"text","value":"https:\/\/backend.demo.taler.net\/","default":"","tip":"Set the URL of the GNU Taler back-end. (Ex: https:\/\/backend.demo.taler.net)","placeholder":""},"GNU_Taler_Backend_API_Key":{"id":"GNU_Taler_Backend_API_Key","label":"GNU Taler Backend API Key","description":"Enter your API key to authenticate with the GNU Taler back-end.","type":"text","value":"Sandbox","default":"","tip":"Enter your API key to authenticate with the GNU Taler back-end.","placeholder":""},"Payment_url":{"id":"Payment_url","label":"GNU Taler Payment URL","description":"Enter the URL for your (merchant) GNU Taler Wallet, where customer coins will be sent.","type":"text","value":"payto:\/\/x-taler-bank\/bank.demo.taler.net\/Merchant","default":"","tip":"Enter the URL for your (merchant) GNU Taler Wallet, where customer coins will be sent.","placeholder":""},"Order_text":{"id":"Order_text","label":"Summary Text of the Order","description":"Set the text the customer will see when confirming payment.","type":"text","value":"Please Confirm Order","default":"Please Confirm Order","tip":"Set the text the customer will see when confirming payment.","placeholder":""},"merchant_information":{"id":"merchant_information","label":"Enable sending your merchant information to the GNU Taler back-end","description":"Do you want to send your merchant information to the GNU Taler back-end with this transaction?","type":"checkbox","value":"yes","default":"yes","tip":"Do you want to send your merchant information to the GNU Taler back-end with this transaction?","placeholder":""},"merchant_name":{"id":"merchant_name","label":"Name of This Webshop","description":"Set the name of this webshop that the customer will see during the payment transaction.","type":"text","value":"GNU Taler WooCommerce Demonstrator","default":"","tip":"Set the name of this webshop that the customer will see during the payment transaction.","placeholder":""}}'
+sudo -u www-data wp wc --user=admin payment_gateway update gnutaler --enabled=true --settings='{"title":"GNU Taler","GNU_Taler_Backend_URL":"https:\/\/backend.demo.taler.net\/","GNU_Taler_Backend_API_Key":"Sandbox","Payment_url":"payto:\/\/x-taler-bank\/bank.demo.taler.net\/Merchant","merchant_name":"GNU Taler WooCommerce Demonstrator"}'
echo ' d. Navigate to 127.0.0.1:9999/wp-admin/admin.php?page=wc-setup and go through the annoying WooCommerce setup wizard (Note that many options are enabled by default, and you have to turn them off.)'
echo