Skip to content

Commit

Permalink
Fix - Added additional css class of product_type_external to archive …
Browse files Browse the repository at this point in the history
…external products button.
  • Loading branch information
stuartduff committed Feb 14, 2017
1 parent 732f7dd commit a8a9db2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ All support requests for this extension should be posted to the [WooCommerce Ext

## Changelog

**1.0.1 - 14/02/17**
* Fix - Added additional css class of product_type_external to archive external products button.

**1.0.0 - 07/09/16**
* Initial Release - first version of the plugin released.
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
Contributors: stuartduff
Tags: ecommerce, e-commerce, store, sales, sell, shop, cart, checkout, storefront
Requires at least: 4.6
Tested up to: 4.6
Stable tag: 1.0.0
Tested up to: 4.7.2
Stable tag: 1.0.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

== Description ==

This plugin sets all external / affiliate product buy now links on a [WooCommerce](https://wordpress.org/plugins/woocommerce/) site to open in a new web browser tab.

There are no settings for the plugin and you simply need to install and activate for your WooCommerce external product links to then open in a new tab.

== Installation ==

1. Download the plugin from the WordPress plugin directory.
Expand All @@ -24,5 +26,8 @@ For this extension to function the [WooCommerce](https://wordpress.org/plugins/w

== Changelog ==

= 1.0.1 - 14/02/17 =
* Fix - Added additional css class of product_type_external to archive external products button.

= 1.0.0 - 07/09/16 =
* Initial Release - first version of the plugin released.
6 changes: 3 additions & 3 deletions wc-external-product-new-tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* Plugin Name: WooCommerce External Product New Tab
* Plugin URI: https://wordpress.org/plugins/wc-external-product-new-tab
* Description: This plugin sets all external / affiliate product buy now links on a WooCommerce site to open in a new web browser tab.
* Version: 1.0.0
* Version: 1.0.1
* Author: Stuart Duff
* Author URI: http://stuartduff.com
* Requires at least: 4.6
* Tested up to: 4.6
* Tested up to: 4.7.2
*
* Text Domain: wc-external-product-new-tab
* Domain Path: /languages/
Expand Down Expand Up @@ -181,7 +181,7 @@ public function external_add_product_link( $link ) {
esc_attr( isset( $quantity ) ? $quantity : 1 ),
esc_attr( $product->id ),
esc_attr( $product->get_sku() ),
esc_attr( isset( $class ) ? $class : 'button' ),
esc_attr( isset( $class ) ? $class : 'button product_type_external' ),
esc_html( $product->add_to_cart_text() )
);
}
Expand Down

0 comments on commit a8a9db2

Please sign in to comment.