Giter Site home page Giter Site logo

verygoodplugins / wp-fusion-lite Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 10.0 7.07 MB

WP Fusion connects your WordPress website to your CRM or marketing automation system.

License: GNU General Public License v3.0

CSS 2.66% JavaScript 3.27% PHP 93.99% SCSS 0.08%

wp-fusion-lite's People

Contributors

alimemz avatar bensontrent avatar devguar avatar hectorfarahani avatar henrycorkins avatar pebblo avatar verygoodplugins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wp-fusion-lite's Issues

Make Bento CRM support defer'd loading

Hey WPFusion friends,

We had a customer who is happily using WPFusion + Bento and installed a speed optimization plugin which caused a slight issue with tracking. This plugin made all enqueued scripts, including Bento.js, load defer'd which meant the inline script firing off the first pageview did not work.

Bento.js supports and encourages defer loading now so I was wondering if we could patch the integration to:

  • Load Bento.js defer and async by default.
  • Wrap the inline script here in an event listener looking for bento:ready.

Example:

<script src="https://app.bentonow.com/------ SITE UUID -----.js" defer async></script>
<script>
window.addEventListener("bento:ready", function () {
  if (typeof(bento$) != 'undefined') {
    bento$(function() {
        bento.identify("[email protected]");
        bento.view();
    });
  }
})
</script>

End result: users who aren't using performance plugins load a little faster due to defer'ing of the script + users who install a plugin which adds defer don't run into a silent issue. Win win!

General custom CRM development question

Dear Developers!

Because our last some Mautic relevant PR requests maybe you already know something like that we are ( particularly with @pety-dc ) a small developer company who started to use your WP Fusion plugin as a paid version (with Profession plan) between our Mautic and WordPress instances. We love it and this is why @pety-dc made those some Mautic relevant bugfix PR-s what could ironing the available Mautic integration. For our WordPress and Mautic usage this seems perfect now and we will try to continuously watch this data connection because our WP <> Mautic configurations.

From another aspect we have a totally own e-mail marketing software/service in Hungary what is probably the largest and oldest in our country. Our e-mail marketing system (MailEngine) - of course - is not a full featured CRM but has lot more features as a plain mail sender solution so based on the only one channel communication (e-mail) is has almost all features what need to a service for handle it's costumers/partners. Based on these informations in the last week in our head there was a spark that what if we would like to make an integration between WP Fusion and our MailEngine system.

@pety-dc saw that there are more possible way for it. There are already lot of CRMs in WP Fusion and because it maybe we could integrate our service into WP Fusion of course with your help. Or there is one custom CRM like integration possibility and with it maybe we could make one 'standalone' solution for our goal where the 'standalone' just suggest that in this case we do not (need to) try to code/extend the core plugin set but we could handle it with a WP Fusion 'external' plugin.

Currently our first question is that what is the preferred way for it? Could we start to make a core plugin what you could validate? Or we need to start to make one 'external' custom CRM integration based on your already available custom CRM integration solution?

If you could define the preferred way, our next question would be that what are the limits, rules, policies to make one such plugin? @pety-dc is currently trying to examine the available environment and codebase for the further steps.

Although our MailEngine service usually used only in our local country but would be very nice if with our development WP Fusion could expand it's CRL list with out service. Of course in this case all the responsibilities about the MailEngine integration could be ours as the e-mail marketing system is our and the WP Fusion integration also would be.

In MailEngine we have a SOAP API for external data connections so basically we would try o build the integration based on that SOAP interface but seems that in WP such restriction would be normal (as for example SOAP functions also need to be available for general WooCommerce usage).

Lot of thanks for your answer and effort in advance!

Tamas Toth (ebola)

Custom fields

stdClass Object
(
[data] => Array
(
[0] => stdClass Object
(
[code] => INVALID_DATA
[details] => stdClass Object
(
[api_name] => Owner
)

                [message] => invalid data
                [status] => error
            )

    )

)

What does this mean??

Mautic multiselect values are handled in wrong format

The base format_field_value implodes the multi/select value arrays into a comma separated string.

"alpha,beta,gamma"

Mautic multiselect fields however store multiselect values to be separated by "|"-s

"alpha|beta|gamma"

I guess it expects the values in that format too.

Undefined constant WPF_TAGS_META_KEY

I get my logs full of the following warning:

PHP warning: Use of undefined constant WPF_TAGS_META_KEY - assumed 'WPF_TAGS_META_KEY' (this will throw an Error in a future version of PHP)

/.../wp-content/plugins/wp-fusion-lite/includes/class-user.php:1066

Can this be easily fixed?

Mautic webhook performance

Hey VeryGoodPlugins!

We are using the wp-fusion plugin for WP with Mautic.
We set up a webhook in mautic to send data to Wordpress each time the contact is updated.

We are concerned about the performance of the webhooks. As far as I know by default WP fusion does not use the data it gets from the webhook call to perform the update, but rather starts an api call to pull the data from the CRM.
In our case if the visitor fills a form, mautic processes that request.
Then mautic invokes the webhook and starts a request to WP-fusion.
Then Wp-fusion sends an api request to mautic to pull the data.

I'm aware that both mautic and WP-fusion are capable of queuing/buffering the webhook calls. But unfortunately the data-sharing cannot be delayed. All the 3 above requests bouncing between wordpress and mautic are synchronous and thus holding the original request started by the visitor occasionally for several seconds.

I've found a workaround in the activecampaign CRM driver. Namely the quick_update_tags feature, which according to the comment makes the update_tags webhook call use the data it gets and omit the api call.

Would you implement it for Mautic too?

date field incompatibility with Advanced Custom Fields

I tried to add a date field with Advanced Custom Fields

ACF stores dates internally in Ymd format
WPfusion on the other hand converts the value of a date/picker type field to time if the value is numeric in the format_field_value method:

if( ! is_numeric( $value ) && ! empty( $value ) ) {
				$value = strtotime( $value );
			}

This results in a wrong date.
This Probably affects every crm (unless override_filters is true)

Custom CRM only works if the directory name alphabetically follows wp-fusion(-lite)

if the directory order is

wp-fusion-lite
wp-fusion-customcrm

The add_filter( 'wpf_crms', 'wpf_custom_crm'); in the custom crm plugin's main php file does not run before wp-fusion's main php file which runs the apply_fliter on wpf_crms

if the custom crm plugin's directory follows the WP-fusion directory it runs as expected

wp-fusion-xxx-customcrm
wp-fusion-lite

Either WP-fusion should run the apply_filter later, or this naming rule should be highlighted in the Custom CRM developers guide

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.