diff options
Diffstat (limited to 'server-build/QEMU-autobuild/buildWebstore.sh')
-rwxr-xr-x | server-build/QEMU-autobuild/buildWebstore.sh | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/server-build/QEMU-autobuild/buildWebstore.sh b/server-build/QEMU-autobuild/buildWebstore.sh index a28fba5..e47884e 100755 --- a/server-build/QEMU-autobuild/buildWebstore.sh +++ b/server-build/QEMU-autobuild/buildWebstore.sh @@ -167,12 +167,26 @@ sudo -u www-data wp media import https://live.staticflickr.com/7199/6929220523_1 # 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` +SNIPPET=`cat ${ORIGIN}/woocommerce-taler/snippets/kudos-currency.php` cat | mysql wordpress <<EOF 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 @description='This snippet adds support for the KUDOS currency of the Taler demo to WooCommerce'; +SET @code="$SNIPPET"; +EXECUTE stmt USING @name, @description, @code, "global", 10, 1, NOW(); +EOF + + +# Add Snippet to integrate OIDC with WooCommerce. +# Note: this will break the shop badly if run twice, +# recovery by deleting the duplicate entries! +SNIPPET=`cat ${ORIGIN}/woocommerce-taler/snippets/oidc-reclaim.php` + +cat | mysql wordpress <<EOF +PREPARE stmt FROM 'INSERT INTO wp_snippets (name, description, code, scope, priority, active, modified) VALUES (?,?,?,?,?,?,?)'; +SET @name='Re:ClaimID integration with WooCommerce'; +SET @description='This snippet adds the integration between Re:ClaimID and WooCommerce, allowing users to import their shipping details from Re:ClaimID into WooCommerce during checkout'; SET @code="$SNIPPET"; EXECUTE stmt USING @name, @description, @code, "global", 10, 1, NOW(); EOF |