Skip to content

Commit 4856e2e

Browse files
authored
Merge pull request #127 from Bit-Apps-Pro/chore/plugin-update
Bump version to 2.7.4
2 parents f00d38f + a8b6092 commit 4856e2e

File tree

12 files changed

+86
-59
lines changed

12 files changed

+86
-59
lines changed

bitwpfi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin Name: Bit Integrations
55
* Plugin URI: https://bitapps.pro/bit-integrations
66
* Description: Bit Integrations is a platform that integrates with over 300+ different platforms to help with various tasks on your WordPress site, like WooCommerce, Form builder, Page builder, LMS, Sales funnels, Bookings, CRM, Webhooks, Email marketing, Social media and Spreadsheets, etc
7-
* Version: 2.7.3
7+
* Version: 2.7.4
88
* Author: Automation & Integration Plugin - Bit Apps
99
* Author URI: https://bitapps.pro
1010
* Text Domain: bit-integrations
@@ -24,7 +24,7 @@
2424
$btcbi_db_version = '1.1';
2525

2626
// Define most essential constants.
27-
define('BTCBI_VERSION', '2.7.3');
27+
define('BTCBI_VERSION', '2.7.4');
2828
define('BTCBI_PLUGIN_MAIN_FILE', __FILE__);
2929

3030
require_once plugin_dir_path(__FILE__) . 'includes/loader.php';

frontend-dev/src/Utils/StaticData/webhookIntegrations.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ export const customFormIntegrations = [
7878
'FluentCart',
7979
'MailMint',
8080
'BookingCalendarContactForm',
81-
'ContactFormEmail'
81+
'ContactFormEmail',
82+
'MailerPress',
83+
'Poptics',
84+
'EssentialBlocks'
8285
]
8386

8487
export const actionHookIntegrations = ['ActionHook']

frontend-dev/src/components/AllIntegrations/IntegrationHelpers/WebHook/Body.jsx

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import PayLoadFieldMap from './PayLoadFieldMap'
1212
function Body({ webHooks, setWebHooks, isInfo, setTab }) {
1313
const formFields = useRecoilValue($formFields)
1414
const formattedFormFields = useMemo(
15-
() => formFields.map((field) => ({ key: field.name, value: `\${${field.name}}` })),
15+
() => formFields.map(field => ({ key: field.name, value: `\${${field.name}}` })),
1616
[formFields]
1717
)
1818

@@ -37,7 +37,7 @@ function Body({ webHooks, setWebHooks, isInfo, setTab }) {
3737
setWebHooks(tmpConf)
3838
}
3939

40-
const handleContentType = (e) => {
40+
const handleContentType = e => {
4141
const tmpConf = { ...webHooks }
4242
tmpConf.body.type = e.target.value
4343

@@ -47,7 +47,7 @@ function Body({ webHooks, setWebHooks, isInfo, setTab }) {
4747
setWebHooks(tmpConf)
4848
}
4949

50-
const actionHandler = (e) => {
50+
const actionHandler = e => {
5151
const newConf = { ...webHooks }
5252
if (e.target.checked) {
5353
newConf.body.send_all_data = true
@@ -58,24 +58,26 @@ function Body({ webHooks, setWebHooks, isInfo, setTab }) {
5858
}
5959
setWebHooks({ ...newConf })
6060
}
61-
const setJsonCustomBody = (data) => {
62-
setWebHooks((prevConf) =>
63-
create(prevConf, (draftConf) => {
61+
const setJsonCustomBody = data => {
62+
setWebHooks(prevConf =>
63+
create(prevConf, draftConf => {
6464
draftConf.body.raw = data
6565
})
6666
)
6767
}
6868

6969
return (
7070
<div className="mt-2">
71-
<TableCheckBox
72-
isInfo={isInfo}
73-
checked={webHooks?.body?.send_all_data || false}
74-
onChange={actionHandler}
75-
className="wdt-200 mt-4 mr-2 mb-2"
76-
value="Send All Data"
77-
title={__('Send All Data', 'bit-integrations')}
78-
/>
71+
{formattedFormFields?.length < 100 && (
72+
<TableCheckBox
73+
isInfo={isInfo}
74+
checked={webHooks?.body?.send_all_data || false}
75+
onChange={actionHandler}
76+
className="wdt-200 mt-4 mr-2 mb-2"
77+
value="Send All Data"
78+
title={__('Send All Data', 'bit-integrations')}
79+
/>
80+
)}
7981
<div className="f-m mt-1 mb-2">{__('Add Request Payload', 'bit-integrations')}</div>
8082
<select
8183
name="method"

frontend-dev/src/components/Flow/New/SelectTrigger.jsx

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default function SelectTrigger() {
4343
const sortFeaturedProducts = (dataObj = {}) => {
4444
if (dataObj) {
4545
const newData = deepCopy(dataObj)
46-
const ifAnyFeaturedProdFound = featuredProducts.some((pr) => pr in newData)
46+
const ifAnyFeaturedProdFound = featuredProducts.some(pr => pr in newData)
4747
if (!ifAnyFeaturedProdFound) return sortObj(newData)
4848
const featuredProductData = featuredProducts.reduce((accr, curr) => {
4949
const tempAccr = { ...accr }
@@ -53,34 +53,33 @@ export default function SelectTrigger() {
5353
}
5454
return tempAccr
5555
}, {})
56-
const sortedTriggers = sortObj(newData)
57-
const finalSortedTriggers = isPro ? sortedTriggers : sortFreeProd(sortedTriggers)
58-
const finalData = { ...featuredProductData, ...finalSortedTriggers }
59-
return finalData
56+
const sortedTriggers = { ...featuredProductData, ...sortObj(newData) }
57+
58+
return isPro ? sortedTriggers : sortFreeProd(sortedTriggers)
6059
}
6160

6261
return dataObj
6362
}
64-
// console.log('data', data)
63+
6564
useEffect(() => {
6665
if (data?.success === true) {
6766
setAllTriggers({ data: sortFeaturedProducts(data?.data) })
6867
}
6968
}, [data])
7069

71-
const featuredProducts = ['BitForm']
70+
const featuredProducts = ['BitAssist', 'BitForm', 'BitSocial']
7271

73-
const searchInteg = (e) => {
72+
const searchInteg = e => {
7473
const { value } = e.target
7574
setSearchValue(value)
7675
const filtered = Object.entries(data.data)
77-
.filter((integ) => integ[1].name.toLowerCase().includes(value.toLowerCase()))
76+
.filter(integ => integ[1].name.toLowerCase().includes(value.toLowerCase()))
7877
.reduce((prev, [key, values]) => ({ ...prev, [key]: values }), {})
7978
// const organizeData = filtered?.reduce((prev, [key, values]) => ({ ...prev, [key]: values }), {})
8079
setAllTriggers({ success: true, data: sortFeaturedProducts(filtered) })
8180
}
8281

83-
const setTrigger = (trigger) => {
82+
const setTrigger = trigger => {
8483
const tempConf = { ...newFlow }
8584
tempConf.triggered_entity = trigger
8685
tempConf.triggerDetail = allTriggers.data[trigger]
@@ -105,7 +104,7 @@ export default function SelectTrigger() {
105104
)
106105
}
107106

108-
const showPModal = (name) => {
107+
const showPModal = name => {
109108
setTriggerName(name)
110109
setShowProModal(true)
111110
}
@@ -133,9 +132,7 @@ export default function SelectTrigger() {
133132
<div className="flx">
134133
{newFlow.triggerDetail?.type === 'form' && flowStep === 1 && <FormPlugin />}
135134
{newFlow.triggerDetail?.type === 'webhook' && flowStep === 1 && <Webhook />}
136-
{newFlow.triggerDetail?.type === 'custom_trigger' && flowStep === 1 && (
137-
<CustomTrigger />
138-
)}
135+
{newFlow.triggerDetail?.type === 'custom_trigger' && flowStep === 1 && <CustomTrigger />}
139136
{newFlow.triggerDetail?.type === 'action_hook' && flowStep === 1 && <ActionHook />}
140137
{newFlow.triggerDetail?.type === 'spectra' && flowStep === 1 && <SpectraHelper />}
141138
{newFlow.triggerDetail?.type === 'essentialBlocks' && flowStep === 1 && (

frontend-dev/src/pages/ChangelogToggle.jsx

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { __, sprintf } from '../Utils/i18nwrap'
1111

1212
// const source = !btcbi.isPro ? 'bit-integrations' : 'bit-integrations-pro'
1313
// const dealURL = `https://bitapps.pro/new-year-deal/#bit-integrations-pricing`
14-
const releaseDate = '3rd December 2025'
14+
const releaseDate = '15th December 2025'
1515

1616
// Changelog items format [{ 'label': '', 'desc': '', 'isPro': true }]
1717
const changeLog = [
@@ -25,22 +25,21 @@ const changeLog = [
2525
label: __('New Actions', 'bit-integrations'),
2626
headClass: 'new-integration',
2727
itemClass: 'integration-list',
28-
items: [
29-
{
30-
label: 'MailerPress',
31-
desc: '06 events Added.',
32-
isPro: false
33-
}
34-
]
28+
items: []
3529
},
3630
{
3731
label: __('New Triggers', 'bit-integrations'),
3832
headClass: 'new-trigger',
3933
itemClass: 'integration-list',
4034
items: [
4135
{
42-
label: 'MailerPress',
43-
desc: '07 events Added.',
36+
label: 'Poptics',
37+
desc: '02 events Added.',
38+
isPro: true
39+
},
40+
{
41+
label: 'Bit Social',
42+
desc: '14 events Added.',
4443
isPro: true
4544
}
4645
]
@@ -49,13 +48,7 @@ const changeLog = [
4948
label: __('New Features', 'bit-integrations'),
5049
headClass: 'new-feature',
5150
itemClass: 'feature-list',
52-
items: [
53-
{
54-
label: 'Salesforce',
55-
desc: 'Added the ability to update existing leads, enabling smoother CRM maintenance and automation.',
56-
isPro: true
57-
}
58-
]
51+
items: []
5952
},
6053
{
6154
label: __('Improvements', 'bit-integrations'),
@@ -70,22 +63,27 @@ const changeLog = [
7063
items: [
7164
{
7265
label: 'WooCommerce',
73-
desc: 'Resolved an issue affecting recognition of existing customers during workflows.',
66+
desc: 'Fixed issue with creating customer data.',
7467
isPro: false
7568
},
7669
{
77-
label: 'WooCommerce',
78-
desc: 'Prevented unauthorized product review validation.',
70+
label: 'Amelia',
71+
desc: 'Resolved issue with multiple checkbox data not saving correctly.',
7972
isPro: false
8073
},
8174
{
82-
label: 'Salesforce',
83-
desc: 'Corrected phone number handling to ensure consistent formatting and syncing.',
84-
isPro: false
75+
label: 'License Deactivation',
76+
desc: 'Fixed deactivation issue.',
77+
isPro: true
8578
},
8679
{
8780
label: 'Divi Form (Divi Engine)',
88-
desc: 'Fixed a bug where the Create Kids form type returned a null value.',
81+
desc: 'Fixed form type issue.',
82+
isPro: true
83+
},
84+
{
85+
label: 'Essential Blocks',
86+
desc: 'Fixed blank page issue.',
8987
isPro: true
9088
}
9189
]
3.96 KB
Loading
3.91 KB
Loading

includes/Actions/WooCommerce/RecordApiHelper.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ public function createCustomer($fieldMapCustomer, $required, $module, $fieldValu
5454
$fieldData = $user_inputs;
5555
$fieldData['role'] = 'customer';
5656

57-
$user_id = wp_insert_user($fieldData);
57+
$user_id = wc_create_new_customer(
58+
$fieldData['user_email'],
59+
$fieldData['user_login'],
60+
isset($fieldData['user_pass']) ? $fieldData['user_pass'] : ''
61+
);
5862

5963
if (is_wp_error($user_id) || !$user_id) {
6064
$response = is_wp_error($user_id) ? $user_id->get_error_message() : 'error';

includes/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Config
2121

2222
public const VAR_PREFIX = 'btcbi_';
2323

24-
public const VERSION = '2.7.3';
24+
public const VERSION = '2.7.4';
2525

2626
public const DB_VERSION = '1.0';
2727

includes/Core/Util/AllTriggersName.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public static function allTriggersName()
2020
'ARMember' => ['name' => 'ARMember', 'isPro' => true, 'is_active' => false],
2121
'Asgaros' => ['name' => 'Asgaros Forum', 'isPro' => true, 'is_active' => false],
2222
'AvadaForms' => ['name' => 'Avada Forms', 'isPro' => true, 'is_active' => false],
23+
'BitSocial' => ['name' => 'Bit Social', 'isPro' => true, 'is_active' => false],
2324
'Beaver' => ['name' => 'Beaver', 'isPro' => true, 'is_active' => false],
2425
'BetterMessages' => ['name' => 'Better Messages', 'isPro' => true, 'is_active' => false],
2526
'BitAssist' => ['name' => 'Bit Assist', 'isPro' => true, 'is_active' => false],
@@ -76,6 +77,7 @@ public static function allTriggersName()
7677
'LearnDash' => ['name' => 'LearnDash LMS', 'isPro' => true, 'is_active' => false],
7778
'LearnPress' => ['name' => 'LearnPress LMS', 'isPro' => true, 'is_active' => false],
7879
'LifterLms' => ['name' => 'LifterLMS', 'isPro' => true, 'is_active' => false],
80+
'MailerPress' => ['name' => 'MailerPress', 'isPro' => true, 'is_active' => false],
7981
'MailPoet' => ['name' => 'MailPoet', 'isPro' => true, 'is_active' => false],
8082
'MailMint' => ['name' => 'Mail Mint', 'isPro' => true, 'is_active' => false],
8183
'Mailster' => ['name' => 'Mailster', 'isPro' => true, 'is_active' => false],

0 commit comments

Comments
 (0)