benoitmarie9
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Neve] Neve theme – Sub-menu – Styling problemHi @vytis,
This approach wasn’t working before.
However I updated the theme and now it is working fine. I managed to overwrite the styling thanks to your approach.Thanks a lot for your feedback,
Best regards,
Ben
Forum: Plugins
In reply to: [GDPR] Adding a close button to the popupHi Fernando,
Thanks a lot for the feedback. I know you should have a lot of work with the 25th being tomorrow ;). I do agree with you that the close button might not be validated in regards of the GDPR law but since I am not in the legal department and that one of my client requested that I just made sure that it wasn’t a functionality included in the plugin.
Thanks again for your help!
Hi Nick,
What would it take to have this option up and running on the plugin? I tried to contact the premium support but it seems too complicated to arrive to the point.
Please advice
- This reply was modified 6 years, 6 months ago by benoitmarie9.
Forum: Plugins
In reply to: [GDPR] Fatal error; Undefined FunctionThanks @amooreto ??
- This reply was modified 6 years, 6 months ago by benoitmarie9.
Forum: Plugins
In reply to: [GDPR] Fatal error; Undefined FunctionHi guys,
I faced an identical problem when saving the settings page:
“Fatal error: Call to undefined function boolval() in /home/content/69/6589069/html/beta/tsint3/wp-content/plugins/gdpr/admin/class-gdpr-admin.php on line 254”.
It’s pointing to a file in the plugin but I don’t know what to do about it.
Thanks in advance for the help
- This reply was modified 6 years, 6 months ago by benoitmarie9.
Forum: Plugins
In reply to: [Brilliant Web-to-Lead for Salesforce] Multiple Return UrlHi Nick,
The code finally worked. Actually, it worked since the latest version you sent me but the form id was wrong. I was taken it from Salesforce directly and not from the form within the plugin:
// Filter Return/Success URL on a specific form
// salesforce_w2l_returl_{Form ID}
add_filter( ‘salesforce_w2l_returl_12’, ‘map_country_to_return_url’, 10, 1 );
function map_country_to_return_url( $returl ){//$country_of_residence = $_POST[‘Country_of_residence__c’]; // change this to the name of your custom field
$country_of_residence = $_POST[’00N0Y00000Fm3IX’];// add/remove elements below to map countries to URLs
$url_map = array(
‘Saudi Arabia’ => ‘https://www.interactivebrokers.com/Universal/servlet/OpenAccount.IBrokerGuestLogin?partnerID=I2093204&invitedBy=&template=FX+CFD+only&invitation_id=21066426’,
‘Kuwait’ => ‘https://www.interactivebrokers.com/Universal/servlet/OpenAccount.IBrokerGuestLogin?partnerID=I2093204&invitedBy=&template=FX+CFD+only&invitation_id=21066426’,
‘United Arab Emirates’ => ‘https://www.interactivebrokers.com/Universal/servlet/OpenAccount.IBrokerGuestLogin?partnerID=I2093204&invitedBy=&template=FX+CFD+only&invitation_id=21066426’,
‘Oman’ => ‘https://www.interactivebrokers.com/Universal/servlet/OpenAccount.IBrokerGuestLogin?partnerID=I2093204&invitedBy=&template=FX+CFD+only&invitation_id=21066426’,
‘Jordan’ => ‘https://www.interactivebrokers.com/Universal/servlet/OpenAccount.IBrokerGuestLogin?partnerID=I2093204&invitedBy=&template=FX+CFD+only&invitation_id=21066426’,
‘Bahrain’ => ‘https://www.interactivebrokers.com/Universal/servlet/OpenAccount.IBrokerGuestLogin?partnerID=I2093204&invitedBy=&template=FX+CFD+only&invitation_id=21066426’,
);if( isset( $url_map[ $country_of_residence ] )){
return $url_map[ $country_of_residence ];
}return $returl;
}
?>
Thanks again for your help ^^
Best regards,
Benoit
Forum: Plugins
In reply to: [Brilliant Web-to-Lead for Salesforce] Multiple Return UrlHi Nick,
Really sorry to bother you with this. I did update the code with the above but the result remains identical.
If I am setting a return url from the plugin I will be systematically redirected on it (even if I select one of the country listed in function.php).
If I don’t set a return url from the plugin I will be redirected on the basic success page on my website.
I rechecked all the elements that could potentially create a problem and they are all correct:
1- “Country_of_residence__c” field name
2- Form id (12)
3- Countries names based on their Salesforce values
Thank you very much ^^
Benoit
Forum: Plugins
In reply to: [Brilliant Web-to-Lead for Salesforce] Multiple Return UrlHi Nick,
Thanks again for taking the time to assist me on this. I really appreciate it.
I followed your example and ended up with the following code that I inserted in my child theme function.php file (my webform id is “12”):
// Filter Return/Success URL on a specific form
// salesforce_w2l_returl_{Form ID}
add_filter( ‘salesforce_w2l_returl’, ‘salesforce_w2l_returl_12’, 10, 1 );
function salesforce_w2l_returl_12( $returl ){$country_of_residence = $_POST[‘Country_of_residence__c’]; // change this to the name of your custom field
// add/remove elements below to map countries to URLs
$url_map = array(
‘Saudi Arabia’ => ‘https://www.interactivebrokers.com/Universal/servlet/OpenAccount.IBrokerGuestLogin?partnerID=I2093204&invitedBy=&template=FX+CFD+only&invitation_id=21066426/’,
‘Kuwait’ => ‘https://www.interactivebrokers.com/Universal/servlet/OpenAccount.IBrokerGuestLogin?partnerID=I2093204&invitedBy=&template=FX+CFD+only&invitation_id=21066426/’,
‘United Arab Emirates’ => ‘https://www.interactivebrokers.com/Universal/servlet/OpenAccount.IBrokerGuestLogin?partnerID=I2093204&invitedBy=&template=FX+CFD+only&invitation_id=21066426/’,
‘Oman’ => ‘https://www.interactivebrokers.com/Universal/servlet/OpenAccount.IBrokerGuestLogin?partnerID=I2093204&invitedBy=&template=FX+CFD+only&invitation_id=21066426/’,
‘Jordan’ => ‘https://www.interactivebrokers.com/Universal/servlet/OpenAccount.IBrokerGuestLogin?partnerID=I2093204&invitedBy=&template=FX+CFD+only&invitation_id=21066426/’,
‘Bahrain’ => ‘https://www.interactivebrokers.com/Universal/servlet/OpenAccount.IBrokerGuestLogin?partnerID=I2093204&invitedBy=&template=FX+CFD+only&invitation_id=21066426/’,
);if( isset( $url_map[ $country_of_residence ] )){
return $url_map[ $country_of_residence ];
}return $returl;
}
?>
However, it didn’t work….. Any idea what could be the problem?
Thank you,
Benoit
Forum: Plugins
In reply to: [Brilliant Web-to-Lead for Salesforce] Multiple Return UrlThank you so much Nick.
I will try that and let you know how it went.
Best,
Benoit
Forum: Plugins
In reply to: [Shipping by Rules for WooCommerce] Is it compatible with Vendors?Hi,
I am currently working on a Marketplace using WC Vendors & WoCommerce.
However we are facing a huge drawback regarding the shipping methods since we are unable to provide a flat fee per vendor. Actually the system only allows us to set shipping fees based on either “Flat Fee” or “Country table rate” that are systematically applied on the product level.
Since our vendors are in France and most of our client in Asia you can imagine our situation.
Any idea if we could make things better by using your plugin?
Thank you in advance for your feedback.
Best regards,
PS: we are in Lebanon so we don;t have access to Paypal. Is there another way we could purchase the pro version? Thx.
Benoit