ssh ubnt@<your-ip>
configure
| <?php | |
| /** | |
| * @snippet WooCommerce - Fortnox plugin by Redlight Media - Add fee to AdministrativeFee via functions.php | |
| * @author Redlight Media AB / Christopher Hedqvist | |
| * @compatible WooCommerce 3.2.5 | |
| */ | |
| function redlight_fortnox_administrative_fee( $orderData, $order_id ) { | |
| // Get the total fees of this order | |
| $order = wc_get_order($order_id); | |
| $fees = $order->get_fees(); |
| Logging at level: debug | |
| Configuration file: /Users/paul/paulfioravanti.github.io/_config.yml | |
| GitHub Pages: github-pages v192 | |
| GitHub Pages: jekyll v3.7.4 | |
| Requiring: jekyll-github-metadata | |
| Dotenv not found. Skipping | |
| Requiring: jekyll-seo-tag | |
| Requiring: jekyll-feed | |
| Requiring: jekyll-gist | |
| Requiring: jekyll-include-cache |
| <?php | |
| /** | |
| * @snippet WooCommerce - Fortnox plugin by Redlight Media - Add Company Name to Fortnox order Name | |
| * @author Redlight Media AB / Christopher Hedqvist | |
| * @compatible WooCommerce 3.3.5 | |
| */ | |
| function redlight_fortnox_order_companyname( $orderData, $order_id) { | |
| $order = new WC_Order($order_id); | |
| if(!empty($order->get_billing_company())){ | |
| $orderData['Order']['CustomerName'] = $order->get_billing_company(); |
| <?php | |
| /** | |
| * @snippet WooCommerce - Fortnox plugin by Redlight Media - Add Company Name to Fortnox order Name | |
| * @author Redlight Media AB / Christopher Hedqvist | |
| * @compatible WooCommerce 3.3.5 | |
| */ | |
| function redlight_fortnox_order_companyname( $orderData, $order_id) { | |
| $order = new WC_Order($order_id); | |
| if(!empty($order->get_billing_company())){ | |
| $orderData['Order']['CustomerName'] = $order->get_billing_company().": "; |
| <?php | |
| /** | |
| * @snippet WooCommerce - Fortnox plugin by Redlight Media - Set InvoiceType depending on payment method via functions.php | |
| * @author Redlight Media AB / Christopher Hedqvist | |
| * @compatible WooCommerce 3.2.5 | |
| */ | |
| function redlight_fortnox_payment_method_invoicetype($invoice, $order_id) { | |
| $order = wc_get_order($order_id); | |
| $order_payment_method = $order->get_payment_method(); | |
| switch( $order_payment_method ) { |
This is based on a guide on the Ubnt forums.
Log into your Edgerouter and run the following - sudo -i && vi /config/user-data/update-adblock-dnsmasq.sh
This will switch you to the root user and open up vi.
#!/bin/bash
| $mail->Host = "HOSTINGER_SMTP_HOST_HERE"; | |
| //Set the SMTP port number - likely to be 25, 465 or 587 | |
| $mail->Port = HOSTINGER_SMTP_PORT_HERE; | |
| //Whether to use SMTP authentication | |
| $mail->SMTPAuth = true; | |
| //Username to use for SMTP authentication | |
| $mail->Username = "YOUR_SMTP_USERNAME"; | |
| //Password to use for SMTP authentication | |
| $mail->Password = "YOUR_SMTP_PASSWORD"; | |
| //Set who the message is to be sent from |