Demo: https://codecanyon.net/item/cyberbukit-automatic-writing-saas-ready/29677768
V1.1.3
The Coupon and Affiliate Add-on is available from this version.
https://codecanyon.net/item/cyberbukit-addon-coupon-and-affiliate/30873286
Date: February 20, 2021
Actions Required: No Actions Required.
Bugfix: For the double quotes in the tags and presets.
Bugfix: Free subscription can be purchased multiple times even when it's allowed once only, it's fixed in this update.
Improvement: TAX/VAT/GST is available, you can set the tax rate and it takes effect at checkout.
Improvement: Now you and your user can add the company number and tax number to the invoice.
Improvement: Now you can append custom CSS and javascript files for front-end and dashboard, from General Setting and Front-End Setting.
Improvement: When the front-end is enabled, you can remove 'home' from the URL and achieve a friendly SEO URL.
Improvement: Now you can create an access code for a package, and your user can see the package only when they visit through http://your_url/redirect?from=access_code
Affected Files:
application\controllers\Admin.php
application\controllers\Api_v1.php
application\controllers\Aw.php
application\controllers\Blog.php
application\controllers\Home.php
application\controllers\Query.php
application\controllers\User.php
application\controllers\Webhook.php
application\core\MY_Controller.php
application\helpers\my_basic_helper.php
application\hooks\LanguageLoader.php
application\language\english\global_lang.php
application\language\english\payment_lang.php
application\models\User_model.php
application\models\Admin_model.php
application\views\themes\default\Admin\front_setting.php
application\views\themes\default\Admin\general_setting.php
application\views\themes\default\Admin\payment_item_detail.php
application\views\themes\default\Admin\payment_list_view.php
application\views\themes\default\Admin\payment_setting.php
application\views\themes\default\Front\footer.php
application\views\themes\default\Front\header.php
application\views\themes\default\Front\pricing.php
application\views\themes\default\Front\documentation.php
application\views\themes\default\Front\documentation_list.php
application\views\themes\default\Front\documentation_view.php
application\views\themes\default\Generic\user_profile.php
application\views\themes\default\header.php
application\views\themes\default\footer.php
application\views\themes\default\User\pay_now.php
application\views\themes\default\User\invoice.php
assets\themes\default\front\css\front.css
assets\themes\default\front\js\front.js
assets\themes\default\js\app.js
ADD A FILE application\views\themes\default\Menu\admin_global.php
ADD A FILE application\language\english\addon_lang.php
ADD A FILE assets\themes\default\vendor\bootstrap-datepicker\*
ADD A FILE application\controllers\Redirect.php
SQL Statement:
alter table aw_writing modify column outcome longtext;
alter table aw_template modify column block longtext;
alter table setting add enabled_addons text not null;
alter table setting add affiliate_setting varchar(1024) not null;
alter table setting add dashboard_custom_css varchar(255) not null;
alter table setting add dashboard_custom_javascript varchar(255) not null;
update setting set enabled_addons='{}';
update setting set affiliate_setting='{"enabled":0,"commission_policy":"A","commission_rate":0, "description":"", "stuff":""}';
alter table payment_log add coupon varchar(50) not null;
alter table payment_log add coupon_discount double not null;
alter table payment_log add tax double not null;
alter table payment_item add access_code varchar(50) not null;
alter table user add referral varchar(255) not null;
alter table user add affiliate_enabled tinyint(1) not null;
alter table user add affiliate_code varchar(50) not null;
alter table user add affiliate_earning varchar(1024) not null;
alter table user add affiliate_setting varchar(1024) not null;
alter table user add company_number varchar(50) not null;
alter table user add tax_number varchar(50) not null;
update user set referral = '{"src_from":"","referral_code":""}', affiliate_earning='{}';
update setting set version='1.1.3';