Remove old GitHub copy & paste install method

This commit is contained in:
Matt Pass 2018-07-30 19:35:57 +01:00 committed by GitHub
parent 7640dad09f
commit 826f3fc4e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 112 deletions

View File

@ -73,116 +73,4 @@ Your plugin should now be working and BTCP Pay activated succesfully!
![](../.gitbook/assets/btcp7.png)
## Install form GitHub
### Downloading the plugin from GitHub
{% hint style="info" %}
You should have registered in [BTCP Pay](https://btcppay.com) before attemping to follow the steps.
{% endhint %}
Firstly, **download** the [WooCommerce plugin](https://github.com/BTCPrivate/btcp-widget/blob/master/plugins/btcp-pay-woocommerce.php) from the official repo by clicking on **'Raw'**.
![](../.gitbook/assets/btcp0.PNG)
Then **right click** and click on **'Save as...'.**
![](../.gitbook/assets/btcp1.PNG)
Then click on **'Save'.**
{% hint style="success" %}
You have now downloaded the BTCP Pay WooCommerce plugin!
{% endhint %}
### Uploading the plugin to WordPress
Next we will need to **upload** the plugin on WordPress.
{% hint style="warning" %}
You must have access to your website through FTP and should be confident in how to navigate directories.
{% endhint %}
{% hint style="info" %}
Use an FTP client such as [FileZilla](https://filezilla-project.org/) or [WinSCP](https://winscp.net/eng/download.php). In this guide we will be using FileZilla.
{% endhint %}
Firstly, login to your website and navigate to your WordPress home directory.
Next go to your plugin directory, this is normally `/wp-content/plugins/`
![](../.gitbook/assets/btcp2.PNG)
Drag the .PHP file to the directory to upload it.
![](../.gitbook/assets/btcp3.png)
{% hint style="success" %}
You have now uploaded the plugin to WordPress!
{% endhint %}
### Activate the plugin
{% hint style="warning" %}
You must access to you administrator account on WordPress in order to activate the plugin.
{% endhint %}
Firstly login to your target WordPress site and click on `Plugins`
![](../.gitbook/assets/btcp4%20%281%29.png)
Next, look for a plugin called `Bitcoin Private for WooCommerce` and click on `Acitavte`
![](../.gitbook/assets/btcp5.png)
Once you have clicked on activate the website will redirect you directly you the configuration page.
{% hint style="success" %}
You have now activated the BTCP Pay for WooCommerce plugin!
{% endhint %}
### Configure the plugin
{% hint style="danger" %}
Create a BTCP Pay button now if you haven't already
{% endhint %}
{% page-ref page="../cloud-hosted-guide/create-a-btcp-pay-button.md" %}
To configure the plugin simply paste **btcpWidget.data from your widget.** It should look something like this:
```javascript
btcpWidget.data = {
"id" : "btcp_widget",
"buttonData" : "buy_A1_6",
"merchantid" : "414",
"walletid" : "2",
"amount" : 0.001,
"itemid" : "0",
"description" : "Pepperoni Pizza",
"transactiondetails" :
{
"size" : "12 inch",
"crust" : "stuffed",
"pan" : "thin base"
}
```
{% hint style="info" %}
If you want to make BTCP your store-wide currency you can do so by adding the line `"currency": "BTCP",` to your `btcpWidget.data`
{% endhint %}
Finally, click on save
![](../.gitbook/assets/btcp6.png)
{% hint style="success" %}
Your plugin should now be working and BTCP Pay activated succesfully!
{% endhint %}
![](../.gitbook/assets/btcp7.png)