Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop-6.0.4 #804

Merged
merged 113 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
b9b4823
PIPRES-113: Billie payment method (#784)
mandan2 Aug 28, 2023
2b45b31
PIPRES-316: hookActionFrontControllerAfterInit replacement on depreca…
mandan2 Aug 29, 2023
2bde6b2
Version bump and upgrade file fix (#800)
mandan2 Sep 4, 2023
d292baa
release-6.0.1.
mandan2 Jul 17, 2023
68b1840
updating the e2e on PR yml
SimonasB88 Jul 17, 2023
de5ab2b
adding Ngrok launch fix
SimonasB88 Jul 24, 2023
a43261d
small yml fix
SimonasB88 Jul 24, 2023
1a53444
fixing the module upgrade CI testing
SimonasB88 Jul 24, 2023
3897dfd
small fix
SimonasB88 Jul 24, 2023
71b827e
upgrading text fix
SimonasB88 Jul 24, 2023
15a29a3
test fixes
SimonasB88 Jul 24, 2023
ef32571
small fix
SimonasB88 Jul 24, 2023
74421a8
removing the PS8 CI upgrading test
SimonasB88 Jul 24, 2023
ec97be4
cypress upgrading
SimonasB88 Jul 31, 2023
0f3fdcb
useful E2E test spec updates
SimonasB88 Jul 31, 2023
d5ce019
adding improved Cypress terminal logs
SimonasB88 Aug 1, 2023
94b712b
debug mode enabling
SimonasB88 Aug 1, 2023
8655206
Update prestashop_1784_2.sql
SimonasB88 Aug 21, 2023
40a53b4
useful cypress updates
SimonasB88 Aug 21, 2023
c7ef7a9
useful test code updates
SimonasB88 Aug 21, 2023
e1bd867
specs updates
SimonasB88 Aug 21, 2023
2eea085
ps8 test spec updates
SimonasB88 Aug 21, 2023
fe7bbcd
Update Makefile
SimonasB88 Aug 21, 2023
d90bc30
test spec updates
SimonasB88 Aug 21, 2023
c751d65
updates for test specs
SimonasB88 Aug 21, 2023
7da8736
updates for test specs
SimonasB88 Aug 21, 2023
c0e6c63
Update 02_mollie.ps1784.EnablingPaymentsOrdersAPI.specs.js
SimonasB88 Aug 21, 2023
7c9fc8f
ps8 test code updates
SimonasB88 Aug 21, 2023
8636337
ps1784 test spec updates
SimonasB88 Aug 21, 2023
39badac
in3 payment wip
SimonasB88 Aug 21, 2023
2fc8b22
Update 03_mollie.ps8.Subscriptions.WIP.js
SimonasB88 Aug 21, 2023
1a1475e
Update .htaccess1784
SimonasB88 Aug 22, 2023
eab976d
Update prestashop_1784_2.sql
SimonasB88 Aug 22, 2023
ee798cf
ps1784 test updates
SimonasB88 Aug 22, 2023
c1b5a4e
Update 03_mollie.ps1784.PaymentTests.js
SimonasB88 Aug 22, 2023
c959d40
ps1784 test updates
SimonasB88 Aug 22, 2023
ed26c59
Update 03_mollie.ps1784.PaymentTests.js
SimonasB88 Aug 22, 2023
5e68c81
Update .gitignore
SimonasB88 Aug 22, 2023
bcbd5c0
ps1784 finalized updates
SimonasB88 Aug 22, 2023
f5eeaf3
disabling debug mode
SimonasB88 Aug 28, 2023
6b110d1
Revert "disabling debug mode"
SimonasB88 Aug 28, 2023
1f98f24
spec update
SimonasB88 Aug 28, 2023
fe2033d
spec updates
SimonasB88 Aug 28, 2023
c6fed84
spec updates (ps1784/ps8)
SimonasB88 Aug 28, 2023
a478f7d
Update 04_mollie.ps8.Subscriptions.WIP.js
SimonasB88 Aug 28, 2023
a6b71c0
Update 02_mollie.ps8.EnablingPaymentsOrdersAPI.specs.js
SimonasB88 Aug 28, 2023
cfb360b
Update Makefile
SimonasB88 Aug 28, 2023
ddc19b8
Update prestashop_8.sql
SimonasB88 Aug 28, 2023
ac1abc1
Update prestashop_8.sql
SimonasB88 Aug 28, 2023
95e5782
Update .htaccess8
SimonasB88 Aug 28, 2023
4667a3d
Update prestashop_8.sql
SimonasB88 Aug 28, 2023
3763091
Update 02_mollie.ps8.EnablingPaymentsOrdersAPI.specs.js
SimonasB88 Aug 28, 2023
ce4c534
spec updates
SimonasB88 Aug 28, 2023
bfe5951
ps8 test spec updates
SimonasB88 Aug 28, 2023
50164d3
ps8 small typo fixes
SimonasB88 Aug 28, 2023
1efbbdf
Update 03_mollie.ps8.PaymentTests.js
SimonasB88 Aug 28, 2023
be2c8d2
cypress updates
SimonasB88 Sep 4, 2023
6b654d4
Update 03_mollie.ps1784.PaymentTests.js
SimonasB88 Sep 4, 2023
98a6708
Update cypress.config.js
SimonasB88 Sep 4, 2023
8d85a20
adding ps8.0.5 docker build
SimonasB88 Sep 4, 2023
e567042
Update .htaccess8
SimonasB88 Sep 4, 2023
1604077
Update 03_mollie.ps8.PaymentTests.js
SimonasB88 Sep 4, 2023
8d2d13b
Update 03_mollie.ps8.PaymentTests.js
SimonasB88 Sep 4, 2023
1ebe297
ps1784 debug mode disabling
SimonasB88 Sep 4, 2023
0630989
ps8 debug mode disabling
SimonasB88 Sep 4, 2023
a20f688
small update
SimonasB88 Sep 4, 2023
96ea420
small typo fix
SimonasB88 Sep 4, 2023
3a380f1
Update E2E_On_PR.yml
SimonasB88 Sep 4, 2023
22e2a5e
adding random branch string ending
SimonasB88 Sep 4, 2023
3481517
Update upgrading_check.yml
SimonasB88 Sep 4, 2023
25812d3
Update cypress.config.js
SimonasB88 Sep 5, 2023
a73abb5
selector updates
SimonasB88 Sep 5, 2023
c5223a5
updating the testrail extension
SimonasB88 Sep 5, 2023
18ddcfa
temporary disabling the error checking
SimonasB88 Sep 5, 2023
3d7272f
increasing timeout for selectors
SimonasB88 Sep 5, 2023
187d0ee
Merge pull request #801 from mollie/e2efix-6.x.x
SimonasB88 Sep 5, 2023
4fb6c9a
cypress-testrail extension fix
SimonasB88 Sep 11, 2023
2323b67
Merge pull request #805 from mollie/e2efix-testrail-extension-fix
SimonasB88 Sep 11, 2023
3839a44
PIPRES-261: Mixed cart checkout for subscriptions (#803)
mandan2 Sep 11, 2023
1171d24
PIPRES-261: Payment attribute fix (#806)
mandan2 Sep 11, 2023
85d6f0d
PIPRES-306: Configuration updateValue multishop context fix (#808) (#…
mandan2 Sep 18, 2023
556480d
PIPRES-338: Mixed cart subscription listing improvements (#812)
mandan2 Sep 19, 2023
2de7fc9
PIPRES-113: Billie payment method additional check for vat number (#813)
mandan2 Sep 19, 2023
42f69c0
ps1784 debug mode
SimonasB88 Sep 11, 2023
13cfad0
updating terminal report extension
SimonasB88 Sep 11, 2023
52e920d
ps8 debug mode
SimonasB88 Sep 11, 2023
1c8b5f9
Update Dockerfile.1784
SimonasB88 Sep 11, 2023
5d90706
upgrading the build to PS1785
SimonasB88 Sep 11, 2023
62ad59b
ps1785 updates
SimonasB88 Sep 11, 2023
f8f5a0d
ps1785 updates
SimonasB88 Sep 11, 2023
7b49ac8
Update E2E_On_PR.yml
SimonasB88 Sep 11, 2023
d20e3ce
moving things to ps1785
SimonasB88 Sep 11, 2023
03cf2f0
Update E2E_On_PR.yml
SimonasB88 Sep 11, 2023
e8c2a15
Update E2E_On_PR.yml
SimonasB88 Sep 11, 2023
80ffa4e
downgrading cypress
SimonasB88 Sep 11, 2023
5f13839
some e2e fixes
SimonasB88 Oct 2, 2023
11c2341
Update 04_mollie.ps1785.Subscriptions.js
SimonasB88 Oct 2, 2023
d46be3e
Update 03_mollie.ps8.PaymentTests.js
SimonasB88 Oct 2, 2023
7b7a4d4
Update 04_mollie.ps8.Subscriptions.js
SimonasB88 Oct 2, 2023
6e53f71
adding testrail ids for CI
SimonasB88 Oct 2, 2023
f40b43b
Update 03_mollie.ps8.PaymentTests.js
SimonasB88 Oct 2, 2023
14e088a
small typo
SimonasB88 Oct 2, 2023
514a2dd
small e2e improvements
SimonasB88 Oct 2, 2023
ae898a1
Merge pull request #807 from mollie/e2efix-failing-tests
SimonasB88 Oct 3, 2023
65b3671
PIPRES-261: Separate carrier for recurring orders improvements (#821)
mandan2 Oct 3, 2023
2e2b087
url updates
SimonasB88 Oct 9, 2023
b67102c
refactoring PS17 tests
SimonasB88 Oct 9, 2023
015e5b4
ps8 tests refactored
SimonasB88 Oct 9, 2023
df9a6eb
Update 04_mollie.ps1785.EnablingPaymentsPaymentsAPI.specs.js
SimonasB88 Oct 9, 2023
b8d19b0
updating urls
SimonasB88 Oct 9, 2023
89e4d1f
small typo
SimonasB88 Oct 9, 2023
924879f
small typo
SimonasB88 Oct 9, 2023
ab19779
Merge pull request #825 from mollie/e2efix-6.0.x
SimonasB88 Oct 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 22 additions & 28 deletions .docker/.htaccess1784 → .docker/.htaccess1785
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,75 +10,69 @@ SetEnv HTTP_MOD_REWRITE On
RewriteEngine on


#Domain: demoshop1784.ngrok.io
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
#Domain: demoshop1785.ngrok.io
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# Images
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]


#Domain: demoshop1784.ngrok.io
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
#Domain: demoshop1785.ngrok.io
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^SHOP2$ /SHOP2/ [L,R]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^SHOP2/(.*) /$1 [L]

# Images
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteCond %{HTTP_HOST} ^demoshop1785.ngrok.io$
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]

# Dispatcher
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteRule ^.*$ - [NC,L]
RewriteCond %{HTTP_HOST} ^demoshop1784.ngrok.io$
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
</IfModule>

Expand Down
39 changes: 0 additions & 39 deletions .docker/.htaccess8
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ RewriteEngine on


#Domain: demoshop8.ngrok.io
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
RewriteRule ^upload/.+$ %{ENV:REWRITEBASE}index.php [QSA,L]
Expand All @@ -36,51 +35,13 @@ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBAS
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]


#Domain: demoshop8.ngrok.io
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
RewriteRule ^upload/.+$ %{ENV:REWRITEBASE}index.php [QSA,L]

RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule ^shop2$ /shop2/ [L,R]
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule ^shop2/(.*) /$1 [L]

# Images
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]

# Dispatcher
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule ^.*$ - [NC,L]
RewriteCond %{HTTP_HOST} ^demoshop8.ngrok.io$
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
</IfModule>

Expand Down
2 changes: 1 addition & 1 deletion .docker/Dockerfile.1784 → .docker/Dockerfile.1785
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM prestashop/prestashop:1.7.8.4-apache
FROM prestashop/prestashop:1.7.8.5-apache

RUN cd /usr/local/etc/php/conf.d/ && \
echo 'memory_limit = 4096M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini
Expand Down
2 changes: 1 addition & 1 deletion .docker/Dockerfile.8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM prestashop/prestashop:8.0.1-apache
FROM prestashop/prestashop:8.0.5-apache

RUN cd /usr/local/etc/php/conf.d/ && \
echo 'memory_limit = 4096M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/E2E_On_PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Cypress E2E Automation [develop branch]
on:
pull_request:
types: [opened, reopened]
branches: [develop]
branches: [develop, develop**, develop-**]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -15,13 +15,13 @@ jobs:
fail-fast: false
matrix:
include:
- prestashop: 'PS1784'
make: 'make e2eh1784'
subdomain: 'demoshop1784'
- prestashop: 'PS1785'
make: 'make e2eh1785'
subdomain: 'demoshop1785'
port: '8002'
yml: 'docker-compose.1784.yml'
url: 'https://demoshop1784.ngrok.io'
test_spec: '**/cypress/e2e/ps1784/**'
yml: 'docker-compose.1785.yml'
url: 'https://demoshop1785.ngrok.io'
test_spec: '**/cypress/e2e/ps1785/**'
TestRailID: R4954
- prestashop: 'PS8'
make: 'make e2eh8'
Expand All @@ -42,7 +42,7 @@ jobs:
shell: bash
- run: ./ngrok authtoken ${{ secrets.NGROK_TOKEN }}
shell: bash
- run: ./ngrok http -region=eu -subdomain=${{ matrix.subdomain }} ${{ matrix.port }} > ngrok.log &
- run: ./ngrok http -region=us -subdomain=${{ matrix.subdomain }} ${{ matrix.port }} > ngrok.log &
shell: bash
- name: Install composer
run: composer i
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/upgrading_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ name: Module upgrade / downgrade testing (last version > v.5.2.0 > `develop` ver
on:
pull_request:
types: [opened, reopened]
branches: [develop]
branches: [develop, develop**, develop-**]
jobs:
Module-upgrading-check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- prestashop: 'PS1784'
make: 'make e2eh1784'
- prestashop: 'PS1785'
make: 'make e2eh1785'
port: '8002'
yml: 'docker-compose.1784.yml'
ModuleUpgradeTest: 'make upgrading-module-test-1784'
yml: 'docker-compose.1785.yml'
ModuleUpgradeTest: 'make upgrading-module-test-1785'
steps:
- name: Checkout
uses: actions/[email protected]
Expand Down
1 change: 1 addition & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ cypress/screenshots
vendor
node_modules
composer.lock
ngrok
38 changes: 19 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@ ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
fix-lint:
docker-compose run --rm php sh -c "vendor/bin/php-cs-fixer fix --using-cache=no"

#PS1784
e2eh1784:
#PS1785
e2eh1785:
# detaching containers
docker-compose -f docker-compose.1784.yml up -d --force-recreate
docker-compose -f docker-compose.1785.yml up -d --force-recreate
# sees what containers are running
docker-compose -f docker-compose.1784.yml ps
docker-compose -f docker-compose.1785.yml ps
# waits for mysql to load
/bin/bash .docker/wait-for-container.sh mysql-mollie-1784
/bin/bash .docker/wait-for-container.sh mysql-mollie-1785
# configuring your prestashop
docker exec -i prestashop-mollie-1784 sh -c "rm -rf /var/www/html/install"
docker exec -i prestashop-mollie-1785 sh -c "rm -rf /var/www/html/install"
# configuring base database
mysql -h 127.0.0.1 -P 9002 --protocol=tcp -u root -pprestashop prestashop < ${PWD}/tests/seed/database/prestashop_1784_2.sql
mysql -h 127.0.0.1 -P 9002 --protocol=tcp -u root -pprestashop prestashop < ${PWD}/tests/seed/database/prestashop_1785_2.sql
# installing module
docker exec -i prestashop-mollie-1784 sh -c "cd /var/www/html && php bin/console prestashop:module install mollie --id_shop=3"
docker exec -i prestashop-mollie-1785 sh -c "cd /var/www/html && php bin/console prestashop:module install mollie"
# uninstalling module
docker exec -i prestashop-mollie-1784 sh -c "cd /var/www/html && php bin/console prestashop:module uninstall mollie --id_shop=3"
docker exec -i prestashop-mollie-1785 sh -c "cd /var/www/html && php bin/console prestashop:module uninstall mollie"
# installing the module again
docker exec -i prestashop-mollie-1784 sh -c "cd /var/www/html && php bin/console prestashop:module install mollie --id_shop=3"
docker exec -i prestashop-mollie-1785 sh -c "cd /var/www/html && php bin/console prestashop:module install mollie"
# enabling the module
docker exec -i prestashop-mollie-1784 sh -c "cd /var/www/html && php bin/console prestashop:module enable mollie --id_shop=3"
docker exec -i prestashop-mollie-1785 sh -c "cd /var/www/html && php bin/console prestashop:module enable mollie"
# chmod all folders
docker exec -i prestashop-mollie-1784 sh -c "chmod -R 777 /var/www/html"
docker exec -i prestashop-mollie-1785 sh -c "chmod -R 777 /var/www/html"

#PS8
e2eh8:
Expand All @@ -40,13 +40,13 @@ e2eh8:
# configuring base database
mysql -h 127.0.0.1 -P 9459 --protocol=tcp -u root -pprestashop prestashop < ${PWD}/tests/seed/database/prestashop_8.sql
# installing module
docker exec -i prestashop-mollie-8 sh -c "cd /var/www/html && php bin/console prestashop:module install mollie --id_shop=2"
docker exec -i prestashop-mollie-8 sh -c "cd /var/www/html && php bin/console prestashop:module install mollie"
# uninstalling module
docker exec -i prestashop-mollie-8 sh -c "cd /var/www/html && php bin/console prestashop:module uninstall mollie --id_shop=2"
docker exec -i prestashop-mollie-8 sh -c "cd /var/www/html && php bin/console prestashop:module uninstall mollie"
# installing the module again
docker exec -i prestashop-mollie-8 sh -c "cd /var/www/html && php bin/console prestashop:module install mollie --id_shop=2"
docker exec -i prestashop-mollie-8 sh -c "cd /var/www/html && php bin/console prestashop:module install mollie"
# enabling the module
docker exec -i prestashop-mollie-8 sh -c "cd /var/www/html && php bin/console prestashop:module enable mollie --id_shop=2"
docker exec -i prestashop-mollie-8 sh -c "cd /var/www/html && php bin/console prestashop:module enable mollie"
# chmod all folders
docker exec -i prestashop-mollie-8 sh -c "chmod -R 777 /var/www/html"

Expand All @@ -59,13 +59,13 @@ run-e2e-tests-locally:
npx cypress run

# checking the module upgrading - installs older module then installs from master branch
upgrading-module-test-1784:
upgrading-module-test-1785:
git fetch
git checkout v5.2.0 .
composer install
# installing 5.2.0 module
docker exec -i prestashop-mollie-1784 sh -c "cd /var/www/html && php bin/console prestashop:module install mollie"
docker exec -i prestashop-mollie-1785 sh -c "cd /var/www/html && php bin/console prestashop:module install mollie"
# installing develop branch module
git checkout -- .
git checkout develop --force
docker exec -i prestashop-mollie-1784 sh -c "cd /var/www/html && php bin/console prestashop:module install mollie"
docker exec -i prestashop-mollie-1785 sh -c "cd /var/www/html && php bin/console prestashop:module install mollie"
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

# Changelog #

## Changes in release 6.0.4 ##
+ New payment method: Billie.
+ Enabled mixed cart for subscription orders. Various products could be coupled with a single subscription product.
+ Overall improvements and bug fixes.

## Changes in release 6.0.3 ##
+ High priority bug fix impacting product add to cart pop-up.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"ext-json": "*",
"ext-simplexml": "*",
"prestashop/decimal": "^1.3",
"mollie/mollie-api-php": "v2.42.1",
"mollie/mollie-api-php": "v2.61.0",
"segmentio/analytics-php": "^1.5",
"sentry/sentry": "3.17.0",
"league/container": "2.5.0",
Expand Down
6 changes: 1 addition & 5 deletions controllers/front/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Mollie\Exception\FailedToProvidePaymentFeeException;
use Mollie\Provider\PaymentFeeProviderInterface;
use Mollie\Repository\CurrencyRepositoryInterface;
use Mollie\Subscription\Exception\ProductValidationException;
use Mollie\Subscription\Exception\SubscriptionProductValidationException;
use Mollie\Subscription\Validator\CanProductBeAddedToCartValidator;
use Mollie\Utility\NumberUtility;
Expand Down Expand Up @@ -192,12 +191,9 @@ private function validateProduct(): void

try {
$cartValidation->validate((int) $product['id_product_attribute']);
} catch (ProductValidationException $e) {
$productCanBeAdded = false;
$message = $this->module->l('Product cannot be added because you have subscription product in your cart', self::FILE_NAME);
} catch (SubscriptionProductValidationException $e) {
$productCanBeAdded = false;
$message = $this->module->l('Subscription product cannot be added if you have other products in your cart', self::FILE_NAME);
$message = $this->module->l('Please note: Only one subscription product can be added to the cart at a time.', self::FILE_NAME);
}

$this->ajaxRender(
Expand Down
23 changes: 18 additions & 5 deletions controllers/front/recurringOrderDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@
*/

use Mollie\Controller\AbstractMollieController;
use Mollie\Logger\PrestaLoggerInterface;
use Mollie\Subscription\Handler\FreeOrderCreationHandler;
use Mollie\Subscription\Handler\SubscriptionCancellationHandler;
use Mollie\Subscription\Logger\RecurringOrderPresenter;
use Mollie\Subscription\Presenter\RecurringOrderPresenter;
use Mollie\Subscription\Repository\RecurringOrderRepositoryInterface;

class MollieRecurringOrderDetailModuleFrontController extends AbstractMollieController
Expand Down Expand Up @@ -74,13 +75,25 @@ public function initContent()
Tools::redirect(Context::getContext()->link->getModuleLink($this->module->name, 'subscriptions', [], true));
}

/** @var PrestaLoggerInterface $logger */
$logger = $this->module->getService(PrestaLoggerInterface::class);

/** @var RecurringOrderPresenter $recurringOrderPresenter */
$recurringOrderPresenter = $this->module->getService(RecurringOrderPresenter::class);

$this->context->smarty->assign([
'recurringOrderData' => $recurringOrderPresenter->present($recurringOrderId),
'token' => Tools::getToken(),
]);
try {
$this->context->smarty->assign([
'recurringOrderData' => $recurringOrderPresenter->present($recurringOrderId),
'token' => Tools::getToken(),
]);
} catch (Throwable $exception) {
$logger->error('Failed to present subscription order', [
'Exception message' => $exception->getMessage(),
'Exception code' => $exception->getCode(),
]);

Tools::redirect(Context::getContext()->link->getModuleLink($this->module->name, 'subscriptions', [], true));
}

parent::initContent();
$this->context->controller->addCSS($this->module->getPathUri() . 'views/css/front/subscription/customer_order_detail.css');
Expand Down
Loading
Loading