Skip to content

Commit

Permalink
Release 3.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
edgaraswallee committed Sep 20, 2024
1 parent d2b66a6 commit 5aec148
Show file tree
Hide file tree
Showing 96 changed files with 6,474 additions and 4,893 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,11 @@ ____________________________________________________________________________
## License

Please see the [license file](https://github.com/pfpayments/woocommerce/blob/3.1.3/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.
32 changes: 19 additions & 13 deletions assets/css/admin.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
/**
* PostFinance Checkout WooCommerce
* Plugin Name: PostFinanceCheckout
* Author: postfinancecheckout AG
* Text Domain: postfinancecheckout
* Domain Path: /languages/
*
* This WooCommerce plugin enables to process payments with PostFinance Checkout (https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html).
* 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).
*
* @author postfinancecheckout AG (https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html)
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Software License (ASL 2.0)
* @category Class
* @package PostFinanceCheckout
* @author postfinancecheckout AG (https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html)
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Software License (ASL 2.0)
*/
/* 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
14 changes: 10 additions & 4 deletions assets/css/checkout.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
/**
* PostFinance Checkout WooCommerce
* Plugin Name: PostFinanceCheckout
* Author: postfinancecheckout AG
* Text Domain: postfinancecheckout
* Domain Path: /languages/
*
* This WooCommerce plugin enables to process payments with PostFinance Checkout (https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html).
* 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).
*
* @author postfinancecheckout AG (https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html)
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Software License (ASL 2.0)
* @category Class
* @package PostFinanceCheckout
* @author postfinancecheckout AG (https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html)
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Software License (ASL 2.0)
*/
/* Order button disabled */
#place_order.postfinancecheckout-disabled{
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
2 changes: 1 addition & 1 deletion assets/js/frontend/blocks/build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?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' => '7f92f9325421ea216f54');
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 5aec148

Please sign in to comment.