Skip to content

Commit dc69e48

Browse files
committed
Readme and final version update
1 parent 861190c commit dc69e48

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# WooCommerce External Product Embed
22
This plugin provides a shortcode to embed products from a separate store on your site. It connects to another website running WooCommerce, and displays products from that site through the use of a shortcode.
33

4+
Here is a screenshot of the products being displayed on the [frontend](http://cld.wthms.co/4TlMMw) and the settings in the [backend](http://cld.wthms.co/CeLShM).
5+
46
## Installation
57
1. Go to the [releases tab](https://github.com/WPprodigy/woocommerce-external-product-embed/releases) in this repo.
68
2. Find the "Latest release" and click to download `woocommerce-external-product-embed.zip`.
@@ -15,7 +17,7 @@ This plugin provides a shortcode to embed products from a separate store on your
1517

1618
## Usage
1719

18-
The shortcode you can use to embed products onto your WordPress pages/posts is `[wcepe_products]`. Just using this shortcode on a page won't do anything though by default, you need add shortcode attributes to tell it what products you want to show.
20+
The shortcode you can use to embed products onto your WordPress pages/posts is `[wcepe_products]`. Just using this shortcode on a page won't do anything though by default, you will need to add attributes to tell the shortcode what products you want to show.
1921

2022
You can show specific products by listing the IDs or SKUs like this:
2123
- `[wcepe_products ids='96,99']`
@@ -41,7 +43,7 @@ There are some additional attributes that can also effect what is displayed.
4143
- `hide` - List certain parts of the product display you would like to hide. Can be set to image, title, rating, onsale, price, and/or button.
4244

4345
An example shortcode using the above attributes would look like this:
44-
[wcepe_products orderby='title' order='desc' number='12' columns='4' hide='image,rating,onsale' number=12 button='View Product']
46+
- `[wcepe_products orderby='title' order='desc' number='12' columns='4' hide='image,rating,onsale' number=12 button='View Product']`
4547

4648
You of course don't need to type all of that out every time. Here are the default settings for each attribute, along with the options:
4749

@@ -56,9 +58,9 @@ You of course don't need to type all of that out every time. Here are the defaul
5658
'hide' => '', // image, title, rating, onsale, price, and/or button
5759
'button' => 'View Product',
5860
59-
'ids' => '', // Comma separated IDs
60-
'skus' => '', // Comma separated SKUs
61-
'category' => '', // Comma separated category IDs
61+
'ids' => '', // comma separated IDs
62+
'skus' => '', // comma separated SKUs
63+
'category' => '', // comma separated category IDs
6264
```
6365

6466
Note that some attributes can contradict each other. For example, using a list of `ids` and `skus` in the same shortcode will result in products only showing if both an ID and a SKU match for it.

classes/class-wcepe-shortcodes.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ public static function products( $atts ) {
123123
'number' => 12,
124124
'per_page' => 0, // Will override 'number'
125125
'columns' => '4', // 1-6
126-
'ids' => '', // Comma separated IDs
127-
'skus' => '', // Comma separated SKUs
128-
'category' => '', // Comma separated category IDs
126+
'ids' => '', // comma separated IDs
127+
'skus' => '', // comma separated SKUs
128+
'category' => '', // comma separated category IDs
129129
'recent' => false,
130130
'on_sale' => false,
131131
'featured' => false,

woocommerce-external-product-embed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: WooCommerce External Product Embed
44
* Plugin URI: http://calebburks.com/plugins
55
* Description: Provides a shortcode to embed products from another store.
6-
* Version: 3.0.0-beta
6+
* Version: 3.0.0
77
* Author: Caleb Burks
88
* Author URI: http://calebburks.com
99
* Copyright: (c) 2017 Caleb Burks

0 commit comments

Comments
 (0)