Skip to content

Commit

Permalink
Added shortcode for scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nomasi committed Aug 23, 2023
1 parent 5d87a9f commit b400586
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
Contributors: sizeme
Tags: sizeme, measurements, sizeguide, size guide, size recommendations
Requires at least: 3.8
Tested up to: 6.2.2
Stable tag: 2.3.0
Tested up to: 6.3.0
Stable tag: 2.3.1
Requires PHP: 5.2.4
WC requires at least: 2.5
WC tested up to: 7.9.0
WC tested up to: 8.0.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -22,6 +22,8 @@ It also provides a true-to-product size guide. No more generic guides.

The plugin is fully WPML compatible and also works with multiple attributes (such as size and color).

https://www.youtube.com/watch?v=RRrMBtog75A

== Features ==

* Integrates seamlessly with your existing store
Expand Down
1 change: 1 addition & 0 deletions sizeme-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,7 @@ protected function init_frontend() {

add_action( 'wp_enqueue_scripts', array( $this, 'register_scripts' ) );
add_action( 'woocommerce_before_single_product', array( $this, 'add_sizeme_scripts' ), 20, 0 );
add_shortcode( 'sizeme_write_scripts', array( $this, 'add_sizeme_scripts' ) );

add_action( 'woocommerce_add_to_cart', array( $this, 'send_add_to_cart_info' ), 10, 6 );
add_action( 'woocommerce_thankyou', array( $this, 'send_order_info' ), 10, 1 );
Expand Down

0 comments on commit b400586

Please sign in to comment.