Logic Hop
Forum Replies Created
-
Thank you for taking the time to bring this issue to our attention. Your detailed information regarding the get_client_ip() method and the HTTP_CF_CONNECTING_IP server variable.
Please expect the correction to be made in the next few hours. Once completed, we will inform you immediately so that you can confirm the resolution on your end. We appreciate your patience and understanding while we work on this issue.Warm regards,
Hi
It must be ok , right know , new version 3.8.5.
Forum: Reviews
In reply to: [Logic Hop - Dynamic Content Personalization for WordPress] Be WearyThank you for your inquiry, and we appreciate your interest in our products/services. We apologize for any inconvenience caused and are sorry to hear that. However, please note that you had contacted us a year ago, and we believed that we had provided a solution to your request. Best regards.
Thank you for reaching out to us and sharing the error message you encountered while installing the base plugin.
The upcoming version – in few hours- will address and resolve the problem.
Best regards
Forum: Plugins
In reply to: [Logic Hop - Dynamic Content Personalization for WordPress] IE 11 SupportWe just push the updates to the WP.org plugin directory. WPackagist should scan that every hour or so and update their repository accordingly.
Once you’re able to install the update, please confirm if it works for you. Otherwise let us know what errors/issues you see and we’ll work to resolve it.
- This reply was modified 4 years, 5 months ago by Logic Hop.
Forum: Plugins
In reply to: [Logic Hop - Dynamic Content Personalization for WordPress] IE 11 SupportThanks @jkca – Logic Hop is using some modern Javascript when set to “Javascript Mode” which is not supported in IE 11 without a polyfill.
We pushed a new version of Logic Hop today (3.5.2) with a setting to include the necessary polyfills for IE 11 that should solve the issue. The polyfill can be enabled at Dashboard > Logic Hop > Settings > Internet Explorer 11 Polyfill
This is an optional setting to prevent conflicts as many themes and plugins already include similar polyfills.
We’ve added the new logic types in_reverse and in_reverse_i (and a few more) and also the filter you requested, now titled logichop_apply_custom_logic.
Hope that’s helpful – Thanks!
Hi Lulia,
The current “in” method does the following:
'in' => function($a, $b){ if (empty($a) || empty($b)) return false; if(is_array($b)) return in_array($a, $b); if(is_string($b)) return strpos($b, $a) !== false; return false; },
For “in_reverse” would you be looking for:
'in_reverse' => function($a, $b){ if (empty($a) || empty($b)) return false; if(is_array($a)) return in_array($b, $a); if(is_string($a)) return strpos($a, $b) !== false; return false; },
Thanks!
Great suggestion! We’ll add it to our short-term roadmap and see if we can roll this out by mid-May.
Hi Lulia,
We just pushed a new version of Logic Hop (3.4.8) with a filter that will allow you to override and add to the condition builder options.
If you wanted to add a new User Data option the User Data condition you can now use the following filter:
function filter_condition_builder ( $builder ) { $_builder = json_decode( $builder ); $_builder->userdata->inputs[0]->options->my_custom_var = 'My Custom Var'; return json_encode( $_builder ); } add_filter( 'logichop_admin_condition_builder', 'filter_condition_builder', 10, 1 );
The object my_custom_var should have the same name as the key you added to the stored UserData. The string ‘My Custom Var’ is the name which will appear in the select option.
I hope that’s helpful and works for your needs.
Thanks!
- This reply was modified 4 years, 7 months ago by Logic Hop.
Thanks Lulia! Yes, I believe that will work as you’ve described. The Logic Hop Custom Object should be able to handle the values that way and be subsequently displayed with a Logic Tag.
Please let us know if you have any other questions.
Thank you Lulia!
To display a named array item you can reference it with a colon. For example if you had set the custom object with an array set via PHP such as:
$myvar = array (); $myvar['color1'] = 'red'; $myvar['color2'] = 'green'; $myvar['color3'] = 'blue'; $logichop->set_data( 'myvar', $myvar );
You could use the following Logic Tags to display the values:
{{ var: Custom.myvar:color1 }} {{ var: Custom.myvar:color3 }} {{ var: Custom.myvar:color3 }}
If you are using an indexed array set via PHP such as:
$myothervar = array (); $myothervar[] = 'red'; $myothervar[] = 'green'; $myothervar[] = 'blue'; $logichop->set_data( 'myothervar', $myothervar );
You could use the following Logic Tags to display the values:
{{ var: Custom.myothervar:0 }} {{ var: Custom.myothervar:1 }} {{ var: Custom.myothervar:2 }}
Currently with Logic Tags there’s not a way to iterate through the data as you would with a for or foreach loop. However you can use PHP to get the value and then iterate through it, such as:
$colors = $logichop->get_data('Custom.myvar', false); foreach ( $colors as $color ) { echo $color; }
I hope that’s helpful – Please let us know if you have any other questions!
- This reply was modified 4 years, 8 months ago by Logic Hop.
Shortcodes are being phased out of Logic Hop and replaced with Logic Tags. Logic Tags offer more powerful functionality, greater ease-of-use as well as Gutenberg support (https://www.youtube.com/watch?v=ZqXJwMoOap4)
All existing Shortcodes and Javascript will continue to work and can be manually added to page/post content. The Shortcode structure is documented at https://logichop.com/docs/using-logic-hop-shortcodes/
For sites that employ caching, Logic Tags are automatically rendered with the appropriate Javascript HTML code to work with caching when “Javascript Mode” and “Javascript Variables” are enabled on the Logic Hop Settings page.
An overview of Logic Tags can be viewed at https://www.youtube.com/watch?v=D8iMAuMUGH0
The Logic Tag documentation is available at https://logichop.com/docs/using-logic-hop-logic-tags/
Apologies for any inconvenience, but we hope that Logic Tags will improve your experience with Logic Hop!
If you would like help getting up and running, please email us at [email protected] or you can always book a time with us at https://calendly.com/logichop/15-minute
Thank you! There are a number of ways to easily test Logic Hop personalization and conditions.
One of the easiest ways is to preview your page or post from the WordPress editor and use the Logic Hop Preview Tool. The Preview Tool automatically appears when you preview your pages or posts and allows you to turn conditions off and on and also set, enable and disable personalization variables.
Another great way to quickly preview your personalization is to open your pages in an Incognito Window. This will create a new session and show your conditions and content as it would appear for a first-time visitor. Closing the Incognito Window will clear the session and any data.
To test for repeat visitor functionality a good approach is to use a separate browser – This will allow you to quit the browser and reopen it to simulate a return visit. To clear the user data you can delete the Logic Hop cookie by using the browser tools.
Query strings and UTM codes are incredibly powerful tools for personalizing your site. To simulate this type of personalization you can use the Preview Tool or simply add the query string to the URL of the page you’re testing. For example, adding ?utm_source=logichop at the end of a URL would pass in the value “logichop” for the UTM code “utm_source”.
For full details be sure to check out our documentation at https://logichop.com/docs/ and you can always contact us directly for live support.
Logic Hop works with over 40 points of real-time data including geolocation, lead score, goals, page views, referrers, query strings and dates/times. The data is available for every visitor regardless of if they’re logged in or not. When users are logged in, Logic Hop makes it easy to use their WordPress user data to further personalize your site.
Logic Hop uses a cookie to identify returning users and help load their stored data. The cookie is optional and can be enabled/disabled in the Logic Hop settings. You can also require user consent before setting the cookie and storing data for GDPR compliance.
Hope this is helpful! You can learn more at https://logichop.com. Please schedule a demo if you’d like to learn more.