Skip to content

Commit

Permalink
Merge branch 'release/7.3.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Mar 3, 2023
2 parents 3463a27 + bb8fec8 commit bc1bf2b
Show file tree
Hide file tree
Showing 173 changed files with 5,745 additions and 3,171 deletions.
51 changes: 51 additions & 0 deletions .ddev/cart-block.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!-- wp:woocommerce/cart -->
<div class="wp-block-woocommerce-cart is-loading"><!-- wp:woocommerce/filled-cart-block -->
<div class="wp-block-woocommerce-filled-cart-block"><!-- wp:woocommerce/cart-items-block -->
<div class="wp-block-woocommerce-cart-items-block"><!-- wp:woocommerce/cart-line-items-block -->
<div class="wp-block-woocommerce-cart-line-items-block"></div>
<!-- /wp:woocommerce/cart-line-items-block --></div>
<!-- /wp:woocommerce/cart-items-block -->

<!-- wp:woocommerce/cart-totals-block -->
<div class="wp-block-woocommerce-cart-totals-block"><!-- wp:woocommerce/cart-order-summary-block -->
<div class="wp-block-woocommerce-cart-order-summary-block"></div>
<!-- /wp:woocommerce/cart-order-summary-block -->

<!-- wp:woocommerce/cart-express-payment-block -->
<div class="wp-block-woocommerce-cart-express-payment-block"></div>
<!-- /wp:woocommerce/cart-express-payment-block -->

<!-- wp:woocommerce/proceed-to-checkout-block -->
<div class="wp-block-woocommerce-proceed-to-checkout-block"></div>
<!-- /wp:woocommerce/proceed-to-checkout-block -->

<!-- wp:woocommerce/cart-accepted-payment-methods-block -->
<div class="wp-block-woocommerce-cart-accepted-payment-methods-block"></div>
<!-- /wp:woocommerce/cart-accepted-payment-methods-block --></div>
<!-- /wp:woocommerce/cart-totals-block --></div>
<!-- /wp:woocommerce/filled-cart-block -->

<!-- wp:woocommerce/empty-cart-block -->
<div class="wp-block-woocommerce-empty-cart-block"><!-- wp:image {"align":"center","sizeSlug":"small"} -->
<div class="wp-block-image"><figure class="aligncenter size-small"><img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0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MzIyNiAxNS4zMjI2QzE1LjMyMjYgMTYuNjc4NiAxNC4yMjcgMTcuNzc0MiAxMi44NzEgMTcuNzc0MlpNMjUuOTEwNSAyOS41ODc5QzI0LjE5NDQgMjcuNTM0NyAyMS42NzM4IDI2LjM1NDggMTkgMjYuMzU0OEMxNy4zNzU4IDI2LjM1NDggMTcuMzc1OCAyMy45MDMyIDE5IDIzLjkwMzJDMjIuNDAxNiAyMy45MDMyIDI1LjYxMTcgMjUuNDA0OCAyNy43ODc1IDI4LjAyNUMyOC44NDQ4IDI5LjI4MTUgMjYuOTI5NCAzMC44MjE0IDI1LjkxMDUgMjkuNTg3OVoiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=" alt=""/></figure></div>
<!-- /wp:image -->

<!-- wp:heading {"textAlign":"center","className":"wc-block-cart__empty-cart__title"} -->
<h2 class="has-text-align-center wc-block-cart__empty-cart__title">Your cart is currently empty!</h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center"><a href="https://2546-139-47-17-2.eu.ngrok.io/shop">Browse store</a>.</p>
<!-- /wp:paragraph -->

<!-- wp:separator {"className":"is-style-dots"} -->
<hr class="wp-block-separator is-style-dots"/>
<!-- /wp:separator -->

<!-- wp:heading {"textAlign":"center"} -->
<h2 class="has-text-align-center">New in store</h2>
<!-- /wp:heading -->

<!-- wp:woocommerce/product-new {"rows":1} /--></div>
<!-- /wp:woocommerce/empty-cart-block --></div>
<!-- /wp:woocommerce/cart -->
45 changes: 45 additions & 0 deletions .ddev/checkout-block.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!-- wp:woocommerce/checkout -->
<div class="wp-block-woocommerce-checkout wc-block-checkout is-loading"><!-- wp:woocommerce/checkout-fields-block -->
<div class="wp-block-woocommerce-checkout-fields-block"><!-- wp:woocommerce/checkout-express-payment-block -->
<div class="wp-block-woocommerce-checkout-express-payment-block"></div>
<!-- /wp:woocommerce/checkout-express-payment-block -->

<!-- wp:woocommerce/checkout-contact-information-block -->
<div class="wp-block-woocommerce-checkout-contact-information-block"></div>
<!-- /wp:woocommerce/checkout-contact-information-block -->

<!-- wp:woocommerce/checkout-shipping-address-block -->
<div class="wp-block-woocommerce-checkout-shipping-address-block"></div>
<!-- /wp:woocommerce/checkout-shipping-address-block -->

<!-- wp:woocommerce/checkout-billing-address-block -->
<div class="wp-block-woocommerce-checkout-billing-address-block"></div>
<!-- /wp:woocommerce/checkout-billing-address-block -->

<!-- wp:woocommerce/checkout-shipping-methods-block -->
<div class="wp-block-woocommerce-checkout-shipping-methods-block"></div>
<!-- /wp:woocommerce/checkout-shipping-methods-block -->

<!-- wp:woocommerce/checkout-payment-block -->
<div class="wp-block-woocommerce-checkout-payment-block"></div>
<!-- /wp:woocommerce/checkout-payment-block -->

<!-- wp:woocommerce/checkout-order-note-block -->
<div class="wp-block-woocommerce-checkout-order-note-block"></div>
<!-- /wp:woocommerce/checkout-order-note-block -->

<!-- wp:woocommerce/checkout-terms-block -->
<div class="wp-block-woocommerce-checkout-terms-block"></div>
<!-- /wp:woocommerce/checkout-terms-block -->

<!-- wp:woocommerce/checkout-actions-block -->
<div class="wp-block-woocommerce-checkout-actions-block"></div>
<!-- /wp:woocommerce/checkout-actions-block --></div>
<!-- /wp:woocommerce/checkout-fields-block -->

<!-- wp:woocommerce/checkout-totals-block -->
<div class="wp-block-woocommerce-checkout-totals-block"><!-- wp:woocommerce/checkout-order-summary-block -->
<div class="wp-block-woocommerce-checkout-order-summary-block"></div>
<!-- /wp:woocommerce/checkout-order-summary-block --></div>
<!-- /wp:woocommerce/checkout-totals-block --></div>
<!-- /wp:woocommerce/checkout -->
4 changes: 4 additions & 0 deletions .ddev/commands/web/orchestrate.d/31_woocommerce_products.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

wp plugin install wordpress-importer --activate
wp import ../sample_products.xml --authors=skip
3 changes: 3 additions & 0 deletions .ddev/commands/web/orchestrate.d/32_woocommerce_blocks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

wp plugin install woo-gutenberg-products-block --activate
15 changes: 15 additions & 0 deletions .ddev/commands/web/orchestrate.d/33_woocommerce_config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

#activate tax setting
wp option set woocommerce_calc_taxes "yes"
#create tax
wp wc tax create --rate=10 --name="Standard tax" --priority=1 --compound=0 --shipping=1 --user="admin"
wp option set woocommerce_tax_display_shop "incl"
#euro
wp option set woocommerce_currency "EUR"

#store address
wp option set woocommerce_store_address "Calle Drutal"
wp option set woocommerce_store_address_2 ""
wp option set woocommerce_store_city "Valencia"
wp option set woocommerce_default_country "DE:DE-BE"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

wp wc tool run install_pages --user="admin"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

wp post create ../checkout-block.txt --post_title='checkout-block' --post_type=page --post_status=publish
wp post create ../cart-block.txt --post_title='cart-block' --post_type=page --post_status=publish
5 changes: 0 additions & 5 deletions .ddev/commands/web/orchestrate.d/40_setup_and_activate.sh

This file was deleted.

5 changes: 5 additions & 0 deletions .ddev/commands/web/orchestrate.d/41_setup_and_activate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

pushd "${DDEV_DOCROOT}"

wp plugin activate --all
10 changes: 5 additions & 5 deletions .ddev/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: mollie
name: mollie-payments-for-woocommerce
type: php
docroot: .ddev/wordpress
php_version: "7.4"
Expand All @@ -18,14 +18,14 @@ hooks:
pre-start:
- exec-host: "mkdir -p .ddev/wordpress/wp-content/plugins/${DDEV_PROJECT}"
web_environment:
- WP_VERSION=5.9
- WP_LOCALE=de_DE
- WP_VERSION=6.1
- WP_LOCALE=en_US
- WP_TITLE=Mollie WordPress Test
- PLUGIN_NAME=mollie-payments-for-woocommerce
- ADMIN_USER=admin
- ADMIN_PASS=admin
- [email protected]
- WC_VERSION=6.1.0
- WC_VERSION=7.2.2

hooks:
post-start:
Expand Down Expand Up @@ -98,7 +98,7 @@ hooks:
# Please take care with this because it can cause great confusion.

# upload_dir: custom/upload/dir
# would set the destination path for ddev import-files to <docroot>/custom/upload/dir
# would set the destination path for ddev import-files to <docroot>/custom/upload/dir

# working_dir:
# web: /var/www/html
Expand Down
2 changes: 1 addition & 1 deletion .ddev/docker-compose.wp-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ services:
web:
volumes:
- source: ../
target: /var/www/html/.ddev/wordpress/wp-content/plugins/mollie-payments-for-woocommerce:ro
target: /var/www/html/.ddev/wordpress/wp-content/plugins/mollie-payments-for-woocommerce
type: bind
Loading

0 comments on commit bc1bf2b

Please sign in to comment.