Skip to content

Commit

Permalink
Release 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrowanwallee committed Sep 12, 2024
1 parent 7e8578a commit aebcacb
Show file tree
Hide file tree
Showing 107 changed files with 4,758 additions and 4,977 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This repository contains the PostFinance Checkout plugin that enables WooCommerc

## Documentation

* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.0.12/docs/en/documentation.html)
* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.1.0/docs/en/documentation.html)

## Support

Expand All @@ -33,4 +33,12 @@ ____________________________________________________________________________

## License

Please see the [license file](https://github.com/pfpayments/woocommerce/blob/3.0.12/LICENSE) for more information.
Please see the [license file](https://github.com/pfpayments/woocommerce/blob/3.1.0/LICENSE) for more information.

## Privacy Policy

Please see the [PostFinance Checkout privacy policies site](https://www.postfinance.ch/en/detail/data-protection/general-privacy-policy.html) for more information.

## Terms of Use

Please see the [PostFinance Checkout terms of use site](https://www.postfinance.ch/content/dam/pfch/doc/0_399/00201_en.pdf) for more information.
23 changes: 13 additions & 10 deletions assets/css/admin.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/**
* PostFinance Checkout WooCommerce
* Plugin Name: PostFinanceCheckout
* Author: postfinancecheckout AG
* Text Domain: postfinancecheckout
* Domain Path: /languages/
*
* PostFinanceCheckout
* This plugin will add support for all PostFinanceCheckout payments methods and connect the PostFinanceCheckout servers to your WooCommerce webshop (https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html).
Expand All @@ -11,15 +14,15 @@
*/
/* Icons for status */
@font-face {
font-family: 'woocommerce-postfinancecheckout';
src: url('../font/woocommerce-postfinancecheckout.eot?8310684');
src: url('../font/woocommerce-postfinancecheckout.eot?8310684#iefix') format('embedded-opentype'),
url('../font/woocommerce-postfinancecheckout.woff2?8310684') format('woff2'),
url('../font/woocommerce-postfinancecheckout.woff?8310684') format('woff'),
url('../font/woocommerce-postfinancecheckout.ttf?8310684') format('truetype'),
url('../font/woocommerce-postfinancecheckout.svg?8310684#woocommerce-postfinancecheckout') format('svg');
font-weight: normal;
font-style: normal;
font-family: 'woocommerce-postfinancecheckout';
src: url('../font/woocommerce-postfinancecheckout.eot?8310684');
src: url('../font/woocommerce-postfinancecheckout.eot?8310684#iefix') format('embedded-opentype'),
url('../font/woocommerce-postfinancecheckout.woff2?8310684') format('woff2'),
url('../font/woocommerce-postfinancecheckout.woff?8310684') format('woff'),
url('../font/woocommerce-postfinancecheckout.ttf?8310684') format('truetype'),
url('../font/woocommerce-postfinancecheckout.svg?8310684#woocommerce-postfinancecheckout') format('svg');
font-weight: normal;
font-style: normal;
}

/* Status Icons */
Expand Down
5 changes: 4 additions & 1 deletion assets/css/checkout.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/**
* PostFinance Checkout WooCommerce
* Plugin Name: PostFinanceCheckout
* Author: postfinancecheckout AG
* Text Domain: postfinancecheckout
* Domain Path: /languages/
*
* PostFinanceCheckout
* This plugin will add support for all PostFinanceCheckout payments methods and connect the PostFinanceCheckout servers to your WooCommerce webshop (https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html).
Expand Down
58 changes: 28 additions & 30 deletions assets/js/admin/management.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
*/

jQuery(
function($) {
function ($) {

var wc_postfinancecheckout_management = {

init : function() {
init : function () {
this.handle_refund_button();
this.show_refund_states();
$( '#woocommerce-order-items' ).off( 'click.woo-postfinancecheckout' );
Expand Down Expand Up @@ -83,17 +83,17 @@ jQuery(
);
},

handle_refund_button : function() {
handle_refund_button : function () {
if ($( 'span#postfinancecheckout-remove-refund' ).length > 0) {
$( 'div.wc-order-bulk-actions' ).find( 'button.refund-items' )
.remove();
}
},

show_refund_states : function() {
show_refund_states : function () {
$( 'tbody#order_refunds div.postfinancecheckout-refund-status' )
.each(
function() {
function () {
var id = $( this ).data( 'refund-id' );
var state = $( this ).data( 'refund-state' );
var refund_thumb = $(
Expand All @@ -114,15 +114,15 @@ jQuery(

},

show_completion : function(event) {
show_completion : function (event) {
var self = event.data.self;

$( 'div.refund-actions' ).children().remove();

$( 'div.wc-order-add-item' ).children(
'button.postfinancecheckout-completion-button'
).each(
function(key, value) {
function (key, value) {
$( value ).show();
$( 'div.refund-actions' ).prepend( $( value ) );
}
Expand Down Expand Up @@ -180,7 +180,7 @@ jQuery(
$( 'div.wc-order-refund-items' ).slideDown();
$( 'div.wc-order-item-bulk-edit' ).remove();
$( '#woocommerce-order-items' ).find( 'input.quantity' ).each(
function() {
function () {
$( this ).closest( 'td.quantity' ).find(
'input.refund_order_item_qty'
).val(
Expand All @@ -190,7 +190,7 @@ jQuery(
)

$( '#woocommerce-order-items' ).find( 'input.line_total' ).each(
function() {
function () {

$( this ).closest( 'td.line_cost' ).find(
'input.refund_line_total'
Expand All @@ -212,7 +212,7 @@ jQuery(
}
)
$( '#woocommerce-order-items' ).find( 'input.line_tax' ).each(
function() {
function () {

$( this ).closest( 'td.line_tax' ).find(
'input.refund_line_tax'
Expand Down Expand Up @@ -246,20 +246,20 @@ jQuery(
return false;
},

cancel_completion : function() {
cancel_completion : function () {
location.reload();

return false;
},

update_taxes_for_line_items : function() {
update_taxes_for_line_items : function () {
var initial_amount = $( this ).data( 'postfinancecheckout-initial-amount' );
var current_amount = $( this ).val();
$( this )
.closest( 'tr' )
.find( 'input.refund_line_tax' )
.each(
function() {
function () {
var initial_tax = $( this ).data(
'postfinancecheckout-initial-tax'
);
Expand Down Expand Up @@ -288,7 +288,7 @@ jQuery(
);
},

execute_completion : function() {
execute_completion : function () {

$( '#woocommerce-order-items' ).block(
{
Expand All @@ -309,7 +309,7 @@ jQuery(
var refund_amount = $( 'input#refund_amount' ).val();

$( '.refund input.refund_order_item_qty' ).each(
function(index, item) {
function (index, item) {
if ($( item ).closest( 'tr' ).data( 'order_item_id' )) {
if (item.value) {
line_item_qtys[$( item ).closest( 'tr' ).data(
Expand All @@ -321,7 +321,7 @@ jQuery(
);
$( '.refund input.refund_line_total' )
.each(
function(index, item) {
function (index, item) {
if ($( item ).closest( 'tr' ).data(
'order_item_id'
)) {
Expand All @@ -336,7 +336,7 @@ jQuery(
);
$( '.refund input.refund_line_tax' )
.each(
function(index, item) {
function (index, item) {
if ($( item ).closest( 'tr' ).data(
'order_item_id'
)) {
Expand Down Expand Up @@ -385,8 +385,7 @@ jQuery(
$.post(
woocommerce_admin_meta_boxes.ajax_url,
data,
function(
response) {
function ( response ) {

if (true === response.success) {
window.alert( response.data.message );
Expand All @@ -407,13 +406,13 @@ jQuery(
return false;
},

show_void : function() {
show_void : function () {

$( 'div.refund-actions' ).children().remove();

$( 'div.wc-order-add-item' ).children( 'button.postfinancecheckout-void-button' )
.each(
function(key, value) {
function (key, value) {
$( value ).show();
$( 'div.refund-actions' ).prepend( $( value ) );
}
Expand Down Expand Up @@ -458,13 +457,13 @@ jQuery(
return false;
},

cancel_void : function() {
cancel_void : function () {
location.reload();

return false;
},

execute_void : function() {
execute_void : function () {

$( '#woocommerce-order-items' ).block(
{
Expand All @@ -489,8 +488,7 @@ jQuery(
$.post(
woocommerce_admin_meta_boxes.ajax_url,
data,
function(
response) {
function ( response ) {

if (true === response.success) {
window.alert( response.data.message );
Expand All @@ -508,7 +506,7 @@ jQuery(
return false;
},

update_order : function() {
update_order : function () {

$( '#woocommerce-order-items' ).block(
{
Expand All @@ -529,7 +527,7 @@ jQuery(
$.post(
woocommerce_admin_meta_boxes.ajax_url,
data,
function(response) {
function (response) {

if (true === response.success) {
window.location.href = window.location.href;
Expand All @@ -543,11 +541,11 @@ jQuery(
return false;
},

restrict_refund_inputs : function(event) {
restrict_refund_inputs : function (event) {
var self = event.data.self;

$( '#woocommerce-order-items' ).find( 'input.line_total' ).each(
function() {
function () {

$( this ).closest( 'td.line_cost' ).find(
'input.refund_line_total'
Expand All @@ -566,7 +564,7 @@ jQuery(
}
)
$( '#woocommerce-order-items' ).find( 'input.line_tax' ).each(
function() {
function () {

$( this ).closest( 'td.line_tax' ).find(
'input.refund_line_tax'
Expand Down
4 changes: 3 additions & 1 deletion assets/js/frontend/blocks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ How to modify this project
==========================

If you need to modify the source code of this project, you need to build the project. Everything needed is already configured in the package.json file.
If you have not done it before, you need to fist install the dependencies needed by the project by running:
If you have not done it before, you need to first install the dependencies needed by the project by running:

`npm install`

Please notice that you need at least npm version 10 or up.

After you have saved your changes, build the project by running:
`npm run build`

Expand Down
9 changes: 8 additions & 1 deletion assets/js/frontend/blocks/build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
<?php return array('dependencies' => array('@woocommerce/blocks-registry', 'react', 'wp-polyfill'), 'version' => '62bb6a74015c35f7df1a');
<?php return array(
'dependencies' => array(
'@woocommerce/blocks-registry',
'react',
'wp-polyfill',
),
'version' => '95e2ee718829327fb379',
);
2 changes: 1 addition & 1 deletion assets/js/frontend/blocks/build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit aebcacb

Please sign in to comment.