diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-24 22:16:12 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-24 22:16:12 +0200 |
commit | e29051a5643c11d7a77ce86d6b568c4884fad342 (patch) | |
tree | 5ccd7fad4ff911e3f49b5a6c23a48564eb3d147b /server-build | |
parent | aa407afc27b2ee76587be40358480bfa534c5c1a (diff) | |
download | woocommerce-taler-e29051a5643c11d7a77ce86d6b568c4884fad342.tar.gz woocommerce-taler-e29051a5643c11d7a77ce86d6b568c4884fad342.tar.bz2 woocommerce-taler-e29051a5643c11d7a77ce86d6b568c4884fad342.zip |
start work on plugin for protocol version update
Diffstat (limited to 'server-build')
-rwxr-xr-x | server-build/QEMU-autobuild/buildWebstore.sh | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/server-build/QEMU-autobuild/buildWebstore.sh b/server-build/QEMU-autobuild/buildWebstore.sh index 56858b1..1c8c933 100755 --- a/server-build/QEMU-autobuild/buildWebstore.sh +++ b/server-build/QEMU-autobuild/buildWebstore.sh @@ -164,17 +164,9 @@ 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 -echo -echo 'Okay, the shop is almost ready. But you have to set a few things up in the browser.' -echo -echo '1. You must configure the store to accept KUDOS. To do this:' -echo ' a. Log into the WooTaler site in your host system at 127.0.0.1:9999/wp-admin, using the admin username and password you set during this installation.' -echo ' b. Navigate the left menu to Snippets > Add New.' -echo ' c. Add "KUDOS Support" using the code in git://git.taler.net/woocommerce-taler.git/server-build/QEMU-autobuild/KUDOS-WooCommerce-Support.php.txt' -echo ' d. Click the radio buton for "Run snippet everywhere" and click "Save Changes and Activate"' -echo - - +# Add Snippet to enable KUDOS currency in WooCommerce +# Note: this will break the shop badly if run twice, +# recovery by deleting the duplicate entries! SNIPPET=`cat ${ORIGIN}/woocommerce-taler/server-build/QEMU-autobuild/KUDOS-WooCommerce-Support.php.txt` cat | mysql wordpress <<EOF @@ -186,18 +178,15 @@ EXECUTE stmt USING @name, @description, @code, "global", 10, 1, NOW(); EOF -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 ' 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":"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"}' +sudo -u www-data wp wc --user=admin payment_gateway update gnutaler --enabled=true --settings='{"title":"GNU Taler","GNU_Taler_Backend_URL":"http:\/\/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 +echo '1. 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/. as "admin" with passphrase "admin-pass"' +echo ' b. 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 ' c. Change the currency to KUDOS to make it work with the demo backend (or change the backend)' echo -echo '3. You might also want to add some images to the Product. There are some nice photos of a "kitten" in the Media Library.' +echo '2. You might also want to add some images to the Product. There are some nice photos of a "kitten" in the Media Library.' echo echo |