Skip to content

Commit

Permalink
v2.7.18
Browse files Browse the repository at this point in the history
  • Loading branch information
kousikmukherjee committed Jun 3, 2024
1 parent fc83028 commit b63a269
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
14 changes: 11 additions & 3 deletions includes/shortcodes/class-alg-products-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Product XML Feeds for WooCommerce - Products Shortcodes
*
* @version 2.7.17
* @version 2.7.18
* @since 1.0.0
* @author WPFactory
*/
Expand Down Expand Up @@ -1198,11 +1198,19 @@ function alg_product_publish_date( $atts ) {
* Get the product's weight.
*
* @return string
* @version 1.0.0
* @version 2.7.18
* @since 1.0.0
*/
function alg_product_weight( $atts ) {
return ( $this->the_product->has_weight() ) ? $this->the_product->get_weight() : '';
$weight = '';
if( $this->the_product->has_weight() ) {
$weight = $this->the_product->get_weight();
}

if ( 0 != $atts['multiply_by'] && is_numeric( $atts['multiply_by'] ) && is_numeric( $weight ) ) {
$weight = $weight * $atts['multiply_by'];
}
return $weight;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions langs/product-xml-feeds-for-woocommerce.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GNU General Public License v3.0.
msgid ""
msgstr ""
"Project-Id-Version: product-xml-feeds-for-woocommerce 2.7.17\n"
"Project-Id-Version: product-xml-feeds-for-woocommerce 2.7.18\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/product-xml-feeds-for-woocommerce\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-05-28T14:49:32+02:00\n"
"POT-Creation-Date: 2024-06-03T17:40:05+02:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.9.0\n"
"X-Domain: product-xml-feeds-for-woocommerce\n"
Expand Down
4 changes: 2 additions & 2 deletions product-xml-feeds-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Product XML Feeds for WooCommerce
Plugin URI: https://wpfactory.com/item/product-xml-feeds-woocommerce/
Description: Create your own XML files using tens of preconfigured shortcodes for you on your WooCommerce store
Version: 2.7.17
Version: 2.7.18
Author: WPFactory
Author URI: https://wpfactory.com
Text Domain: product-xml-feeds-for-woocommerce
Expand Down Expand Up @@ -53,7 +53,7 @@ final class Alg_WC_Product_XML_Feeds {
* @var string
* @since 1.0.0
*/
public $version = '2.7.17';
public $version = '2.7.18';

/**
* @var Alg_WC_Product_XML_Feeds The single instance of the class
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: wpcodefactory, omardabbas, karzin, anbinder, algoritmika, kousikmu
Tags: woocommerce, product xml feeds, xml, export
Requires at least: 4.4
Tested up to: 6.5
Stable tag: 2.7.17
Stable tag: 2.7.18
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -158,6 +158,9 @@ Once activated, access the plugin's settings by navigating to “WooCommerce > S

== Changelog ==

= 2.7.18 - 03/06/2024 =
* Update [alg_product_weight] multiply_by

= 2.7.17 - 28/05/2024 =
* WC tested up to: 8.9
* Add - new shortcode [alg_wc_product_category_hierar_list]
Expand Down

0 comments on commit b63a269

Please sign in to comment.