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

Release 3.1.9 #363

Merged
merged 53 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
33ca98c
fix: using direct class call for Subscription (#334)
mateus-picoloto Nov 8, 2023
805eecd
fix: add installment tax in total (#335)
fabiano-mallmann Nov 8, 2023
8eab00f
feat: add order without address option
RafaMelazzo Nov 10, 2023
b11d066
fix code smell
RafaMelazzo Nov 10, 2023
bd16693
feat: add order without address option (#336)
RafaMelazzo Nov 10, 2023
95a36c8
feat: uses the event target instead the currentTarget (#331)
eduardobattisti Nov 13, 2023
8d80963
Merge branch 'stg' of https://github.com/pagarme/woocommerce into PAO…
RafaMelazzo Nov 13, 2023
f51cab5
feat: adding modal to confirm no address option
RafaMelazzo Nov 13, 2023
f48bbb9
feat: adding modal to confirm no address option #337
RafaMelazzo Nov 14, 2023
cf104b6
Merge branch 'stg' of https://github.com/pagarme/woocommerce into fea…
RafaMelazzo Nov 14, 2023
df9dead
Merge branch 'master' of https://github.com/pagarme/woocommerce into …
RafaMelazzo Nov 14, 2023
5cbd7c7
create order without address
RafaMelazzo Nov 14, 2023
fc856db
Merge branch 'feat/allow-order-without-address' of https://github.com…
RafaMelazzo Nov 14, 2023
1db47b7
feat: create order without address (#340)
RafaMelazzo Nov 14, 2023
46010cc
Merge branch 'master' of https://github.com/pagarme/woocommerce into …
RafaMelazzo Nov 14, 2023
8140132
feat: adding array value to wp_localize_script (#341)
mateus-picoloto Nov 14, 2023
3905350
Merge branch 'stg' of https://github.com/pagarme/woocommerce into fea…
RafaMelazzo Nov 16, 2023
ca9eb96
fix: copy pix code
Nov 16, 2023
878df9a
fix: copy pix code
fabiano-mallmann Nov 16, 2023
5925ff9
feat: adding allow no address to logs
RafaMelazzo Nov 16, 2023
c4ba8a9
Merge branch 'stg' of https://github.com/pagarme/woocommerce into fea…
RafaMelazzo Nov 16, 2023
59c0167
Merge branch 'feat/allow-order-without-address' of https://github.com…
RafaMelazzo Nov 16, 2023
62d8a25
fix: setAllowNoAddress
RafaMelazzo Nov 16, 2023
3bbae60
fix: page editing fatal error
RafaMelazzo Nov 16, 2023
16121c1
fix: removed unused class
RafaMelazzo Nov 16, 2023
7b2aa38
fix: page editing fatal error #344
RafaMelazzo Nov 17, 2023
4139c13
feat: logging allow no address #343
RafaMelazzo Nov 17, 2023
9d1066c
Merge branch 'stg' of https://github.com/pagarme/woocommerce into fea…
RafaMelazzo Nov 17, 2023
5d051bf
Merge branch 'feat/allow-order-without-address' of https://github.com…
RafaMelazzo Nov 17, 2023
edd0d75
feat: removed validation for address fields
RafaMelazzo Nov 17, 2023
8b9cdbf
Revert "feat: removed validation for address fields"
RafaMelazzo Nov 17, 2023
a4a7ecf
feat: removed validation for address fields
RafaMelazzo Nov 17, 2023
107f4a4
feat: removed validation for address fields #346
RafaMelazzo Nov 17, 2023
d92adf7
Merge pull request #347 from pagarme/feat/allow-order-without-address
RafaMelazzo Nov 21, 2023
2addb8d
feat: add missing addres fields validation
RafaMelazzo Nov 21, 2023
b7daffb
feat: add more address fields validation #348
RafaMelazzo Nov 21, 2023
e446aa5
cd: changing cd (#349)
mateus-picoloto Nov 23, 2023
c6180cf
fix: tag input name (#351)
mateus-picoloto Nov 23, 2023
d051bfb
fix: added wp_mail_catcher_version to cd_stg (#352)
mateus-picoloto Nov 23, 2023
7250d9c
chore: update ecommerce module core version (#350)
mateus-picoloto Nov 23, 2023
8bc0c06
feat: removed brazillian market dependency
RafaMelazzo Nov 27, 2023
4dfa244
fix: spacing
RafaMelazzo Nov 27, 2023
8e9587f
feat: removing brazilian market dependency #354
RafaMelazzo Nov 27, 2023
84452e7
docs: updating project docs (#353)
mateus-picoloto Nov 30, 2023
c885180
cd: removing profile (#355)
mateus-picoloto Dec 1, 2023
7efee6e
fix: installments tax when order fail
RafaMelazzo Dec 6, 2023
b2dbe00
fix: installments tax when order fail (#357)
RafaMelazzo Dec 6, 2023
ddef8a1
cd: add env to version inputs (#358)
mateus-picoloto Dec 11, 2023
1f506dd
cd: add env to version inputs (#359)
mateus-picoloto Dec 12, 2023
0e5d13c
fix: disable cart_checkout_blocks compatibility (#360)
mateus-picoloto Dec 12, 2023
da8b34a
fixed billing_cnpj
RafaMelazzo Dec 13, 2023
cf04fd7
fixed billing_cnpj (#361)
RafaMelazzo Dec 13, 2023
155ee5b
feat: update plugin version (#362)
mateus-picoloto Dec 13, 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
46 changes: 0 additions & 46 deletions .github/CONTRIBUTING.md

This file was deleted.

43 changes: 0 additions & 43 deletions .github/ISSUE-TEMPLATE.md

This file was deleted.

44 changes: 0 additions & 44 deletions .github/PULLREQUEST-TEMPLATE.md

This file was deleted.

11 changes: 11 additions & 0 deletions .github/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Bug

### Descrição
Descreva detalhadamente o bug.

### Como reproduzir
Descreva os passos para reproduzir o bug.

### Evidências
Colocar aqui as evidências do bug.

35 changes: 35 additions & 0 deletions .github/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Contribuição

Primeiramente, obrigado por dedicar seu tempo para contribuir!

### Como posso contribuir?

* Faça um fork do projeto;
* Faça suas alterações;
* Use o padrão de commits;
* Crie o pull request para a branch **develop**;

### Pull Requests

Template para os [pull requests](https://github.com/pagarme/woocommerce/blob/master/.github/pull_request_template/pull_request_template.md).

### Mensagens de commit

* As mensagens devem ser feitas em inglês
* Utilizar o [conventional commits](https://www.conventionalcommits.org/pt-br/v1.0.0/), abaixo segue alguns exemplos de explicações:

| Nomeclatura | Quando utilizar |
|--------|------------------------------------------|
| **feat:** | Para novas funcionalidades |
| **fix:** | Para correções de bugs |
| **docs:** | Para atualização de uma documentação |
| **refactor:** | Para refatoração de um código |
| **perf:** | Para mudanças que melhoram a performance |

Abaixo seguem alguns exemplos de commits:

* feat: adding function to exclude saved credit card to customer
* fix: pix qr code not showing in e-mail
* docs: adding contribution section in readme
* refactor: moving credit card javascript code to requirejs file
* perf: removing unnecessary order update when access admin order page
10 changes: 0 additions & 10 deletions .github/data/.htaccess

This file was deleted.

18 changes: 14 additions & 4 deletions .github/data/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
FROM thiagobarradas/woocommerce:3.5.3-wp5.0.2-php7.2
ARG WORDPRESS_IMAGE_VERSION=latest
FROM wordpress:$WORDPRESS_IMAGE_VERSION
MAINTAINER Open Source Team

COPY . /app/wp-content/plugins/pagarme-payments-for-woocommerce
RUN mv /app/wp-content/plugins/pagarme-payments-for-woocommerce/.htaccess /app/.htaccess
WORKDIR /var/www/html/

WORKDIR /app
RUN apt-get update \
&& apt-get install wget -y \
&& apt-get clean

RUN wget https://github.com/DataDog/dd-trace-php/releases/latest/download/datadog-setup.php -O datadog-setup.php

RUN php datadog-setup.php --php-bin=all --enable-appsec

COPY . ./wp-content

COPY plugins/pagarme-payments-for-woocommerce/.github/data/custom.ini $PHP_INI_DIR/conf.d/
4 changes: 4 additions & 0 deletions .github/data/custom.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
file_uploads = On
upload_max_filesize = 200M
post_max_size = 200M
max_execution_time = 600
40 changes: 40 additions & 0 deletions .github/data/install-zips.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash

while getopts w:f:m: flag
do
case "${flag}" in
w) wcVersion=$OPTARG;;
f) wcExtraCheckoutFieldsVersion=$OPTARG;;
m) wpMailCatcherVersion=$OPTARG;;
esac
done

installZip() {
curl -L $1 -o $2
unzip $2 -d $3
rm $2
}

latestStable="latest-stable"
pluginsDir="plugins"
themesDir="themes"

wordpressDownloadUrl="https://downloads.wordpress.org"

if [[ -z "$wcVersion" ]]; then
wcVersion=$latestStable
fi

if [[ -z "$wcExtraCheckoutFieldsVersion" ]]; then
wcExtraCheckoutFieldsVersion=$latestStable
fi

if [[ -z "$wpMailCatcherVersion" ]]; then
wpMailCatcherVersion=$latestStable
fi


installZip "$wordpressDownloadUrl/plugin/woocommerce.$wcVersion.zip" "woocommerce.zip" "$pluginsDir"
installZip "$wordpressDownloadUrl/plugin/woocommerce-extra-checkout-fields-for-brazil.$wcExtraCheckoutFieldsVersion.zip" "woocommerce-extra-checkout-fields-for-brazil.zip" "$pluginsDir"
installZip "$wordpressDownloadUrl/plugin/wp-mail-catcher.$wpMailCatcherVersion.zip" "wp-mail-catcher.zip" "$pluginsDir"
installZip "$wordpressDownloadUrl/theme/storefront.$latestStable.zip" "storefront.zip" "$themesDir"
13 changes: 0 additions & 13 deletions .github/data/update-wp-config.php

This file was deleted.

4 changes: 0 additions & 4 deletions .github/data/wait-for-mysql.sh

This file was deleted.

4 changes: 4 additions & 0 deletions .github/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Nova funcionalidade

### Descrição
Descreva detalhadamente a nova funcionalidade.
8 changes: 8 additions & 0 deletions .github/pull_request_template/branches/master.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## :sparkles: New Features
-

## :bug: Bug fixes
-

## :rocket: Improvements
-
18 changes: 18 additions & 0 deletions .github/pull_request_template/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
![Git Merge](https://media.giphy.com/media/cFkiFMDg3iFoI/giphy.gif)

> [!IMPORTANT]
> Certifique-se de criar o PR para a branch **develop**.

### Qual o tipo de PR é esse? (marque todos os aplicáveis)
- [ ] Refatoração
- [ ] Adição de funcionalidade
- [ ] Correção de bug
- [ ] Otimização
- [ ] Atualização de documentação

### Descrição
Descreva brevemente as alterações feitas neste PR.


### Cenários testados
Descreva brevemente quais foram os cenários testados com as alterações feitas neste PR.
36 changes: 36 additions & 0 deletions .github/workflows/build_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: BUILD BRANCH

on:
workflow_dispatch:
inputs:
wordpress_image_version:
required: false
type: string
default: latest
woocommerce_version:
required: false
type: string
default: latest-stable
woocommerce_extra_checkout_fields_version:
required: false
type: string
default: latest-stable
wp_mail_catcher_version:
required: false
type: string
default: latest-stable
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
call-workflow-cd:
uses: pagarme/woocommerce/.github/workflows/cd_reusable.yml@master
with:
tag: ${{ GITHUB_REF#refs/heads/ }}
wordpress_image_version: ${{ inputs.wordpress_image_version }}
woocommerce_version: ${{ inputs.woocommerce_version }}
woocommerce_extra_checkout_fields_version: ${{ inputs.woocommerce_extra_checkout_fields_version }}
wp_mail_catcher_version: ${{ inputs.wp_mail_catcher_version }}
secrets:
inherit
Loading
Loading