Skip to content

Commit 3607f3e

Browse files
Code clean up for 3.1.1 release (#22)
## 3.1.1 Release + upping the version number and validated that updater catches + logger var needs to be declared a global in the class or doesn't get set as global until called, which is causing problems with downstream dependencies + same thing with the api global var + added some notes * adding better merging * updating readme for install * fixed typo
1 parent 67a5aa7 commit 3607f3e

20 files changed

+80
-264
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
### Changelog
22

3+
#### 3.1.1
4+
* Released: 2020-09*05
5+
* [[#21](https://github.com/HeyPublisher/amazon-book-store/issues/21)] : Fixed bug when resetting default ASINs by clearing the field and saving.
6+
* Updated the README to better explain how to install directly from GitHub.
7+
38
#### 3.1.0
49
* Released: 2020-07-25
510
* [[#18](https://github.com/HeyPublisher/amazon-book-store/issues/18)] : Amazon Brazil is now supported

README.md

Lines changed: 58 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,77 @@ You can sell specific products on specific pages of your website, or define a 'p
1010

1111
### Installation
1212

13-
**Install the Widget**
13+
#### Install Plugin
1414

15-
Install the plugin, then activate it. Once activated, configure the Widget:
15+
* Go to the [GitHub repository](https://github.com/HeyPublisher/amazon-book-store) and download the plugin.
1616

17-
* First, drag the 'Amazon Book Store' widget to your sidebar.
18-
* Where prompted, set the "Title" you want displayed above the widget
19-
* Select how many products you want to offer for sale at one time within the widget, 1 or 2.
17+
* Click on the Download ZIP link and save it in your `wp-content/plugins` directory.
18+
![Download Zip File](images/install-1.jpg)
2019

21-
**Configure the ASIN pool**
20+
* Extract the files to a sub-directory called `support-great-writers`. _This will ensure you can install from either WordPress or GitHub without conflict._
2221

23-
Navigate to 'Settings' -> 'Amazon Book Store'. Input your Amazon Affiliate ID and country, the add the ASINs for the products you want to be displayed in the widget. See [How to Find Amazon ASINs](https://www.amazon.com/gp/seller/asin-upc-isbn-info.html) for more information. There are two categorizations of settings:
22+
*Using cURL, you can do all of the above with one command:*
2423

25-
* POST Specific: When set, these products will be offered for sale when users read the associated POST.
26-
* Default: If the request is to a POST that does not have specific ASINs defined, the widget will display products from this group.
24+
`curl -Lo sgw.zip https://github.com/HeyPublisher/support-great-writers/archive/master.zip && unzip sgw.zip && mv support-great-writers-master support-great-writers`
2725

28-
### Frequently Asked Questions
26+
* Active the plugin via the WordPress plugin menu.
27+
![Activate](images/install-2.jpg)
28+
29+
* You can keep the plugin updated within WordPress by clicking on the link.
30+
![Update Plugin](images/install-3.jpg)
31+
32+
#### Install and Configure Widget
33+
34+
##### Install the Widget
2935

30-
**Can I Use This Widget More Than Once In My Sidebar?**
31-
Yes. Absolutely. The widget will keep track of which products have already been displayed on the page and will ensure that duplicates are not shown.
36+
* Navigate to **Appearance > Widgets** in the WordPress Admin menu
37+
* Drag the 'Amazon Book Store' widget to your sidebar.
38+
* Give the widget a title
39+
* Select whether to display 1 or 2 products at a time in the sidebar
40+
* Click the "Save" button
41+
![Install Widget](images/install-4.jpg)
3242

33-
### Screenshots
43+
##### Basic Settings
3444

35-
1. Widget displayed in the Widget manager.
45+
* Navigate to **Settings > Amazon Book Store** in the WordPress Admin menu
46+
* Select the country for your Amazon Affiliate ID
47+
* Input your own Amazon Affiliate ID
48+
* You can register as an [Amazon Affiliate here](https://affiliate-program.amazon.com)
49+
* Input a comma-separated list of ASINs you want to display when a POST-specific override has not be provided
50+
* See [How to Find Amazon ASINs](https://www.amazon.com/gp/seller/asin-upc-isbn-info.html) for more information
3651

37-
![image](https://github.com/heypublisher/amazon-book-store/blob/master/screenshot-1.jpg?raw=true)
52+
![Install Widget](images/install-5.jpg)
3853

39-
1. Widget displayed in the Side-Bar (your styling may differ)
54+
##### Advanced Settings
4055

41-
![image](https://github.com/heypublisher/amazon-book-store/blob/master/screenshot-2.jpg?raw=true)
56+
You can add POST-specific ASIN's from the Settings page by doing:
57+
* Click the "Select" drop-down list next to the **Add New Post ASINs** label at the bottom of the screen
58+
* Select the POST you want to add ASINs for
59+
* The screen will update, displaying the post name with an input field
4260

43-
3. Widget process flow, illustrating how the products are selected for display
61+
![Install Widget](images/install-6.jpg)
62+
* Input the ASINs you want
63+
* Click the **Update Settings** button when done
64+
![Install Widget](images/install-7.jpg)
4465

45-
![image](https://github.com/heypublisher/amazon-book-store/blob/master/screenshot-3.jpg?raw=true)
66+
You can also add POST-specific ASIN's directly from the POST Edit screen by doing:
4667

47-
4. ASIN configuration for POSTs and for Default pool
68+
* Edit the POST you want to configure
69+
* At the bottom of the Edit screen you will see the **Custom Fields** editor
70+
* Click the ** Enter new** link
71+
![Install Widget](images/install-8.jpg)
72+
* Input a comma-separated list of ASINs you want to display
73+
* Click the **Add Custom Field** button to save your selection
74+
![Install Widget](images/install-9.jpg)
75+
76+
You can Add or Edit ASINs from either the plugin settings page, or from an individual POST's Edit screen.
77+
78+
### Frequently Asked Questions
4879

49-
![image](https://github.com/heypublisher/amazon-book-store/blob/master/screenshot-4.jpg?raw=true)
80+
* **How many ASINs can I use per POST?** The widget allows a maximum of 10 ASINs per POST.
81+
* **But the plugin only shows 2 products at a time?** If you have more ASINs configured than the plugin can display, it will randomize the products to display.
82+
![Install Widget](images/install-10.jpg)
83+
* **How can I track if people are clicking or buying?** Login to your [Amazon Affiliate](https://affiliate-program.amazon.com) account and look for the Affiliate ID you used in the Settings. Clicks can sometimes take up to 24 hours to display in your Affiliate report.
84+
* **How does the plugin decide which ASINs to display?** The plugin will use the following logic.
85+
![image](screenshot-3.jpg)
86+
* **What if I find a bug?** [Tell us about it](https://github.com/HeyPublisher/amazon-book-store/issues). You can create an issue at GitHub and we will fix it as soon as possible.

images/install-1.jpg

90.4 KB
Loading

images/install-10.jpg

87.5 KB
Loading

images/install-2.jpg

39.3 KB
Loading

images/install-2.png

36.8 KB
Loading

images/install-3.jpg

75.4 KB
Loading

images/install-4.jpg

56.1 KB
Loading

images/install-5.jpg

111 KB
Loading

images/install-6.jpg

55.6 KB
Loading

0 commit comments

Comments
 (0)