[ 
https://issues.apache.org/jira/browse/OFBIZ-11333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17033410#comment-17033410
 ] 

Aditya Sharma edited comment on OFBIZ-11333 at 2/10/20 7:28 AM:
----------------------------------------------------------------

{quote}Does this mean that it does not support internationalization at all?
{quote}
Looking at the library 
[documentation|https://github.com/Aleksander98/bsgdprcookies] and 
[code|https://github.com/Aleksander98/bsgdprcookies/blob/master/jquery.bs.gdpr.cookies.js#L82]
 I think library do not support internationalization.
{quote}Can you elaborate how to make it support other languages (which is a 
must IMO)?
{quote}
 

Now when I think about it, there is a way we can handle it at OFBiz end also, 
instead of initializing it in ofbizutil.js if we do it in 
ecommerce/template/includes/Header.ftl with internal Javascript we will be able 
to access and pass values from uiLabels to it.

Another way is to fork and change the existing code of the plugin to support 
internationalization as done in jQuery.cookiebar 
[here|https://github.com/kovarp/jquery.cookieBar/blob/master/jquery.cookieBar.js#L140]
 
 I will update the PR with my first solution for now and if my second solution 
worked we will certainly have it in our next plugin upgrade.
| |


was (Author: aditya.sharma):
{quote}Does this mean that it does not support internationalization at all?
{quote}
Looking at the library 
[documentation|https://github.com/Aleksander98/bsgdprcookies] and 
[code|https://github.com/Aleksander98/bsgdprcookies/blob/master/jquery.bs.gdpr.cookies.js#L82]
 I think library do not support internationalization.
{quote}

Can you elaborate how to make it support other languages (which is a must IMO)?
{quote}
 

Now when I think about it, there is a way we can handle it at OFBiz end also, 
instead of initializing it in ofbizutil.js if we do it in 
ecommerce/template/includes/Header.ftl with internal Javascript we will be able 
to access and pass values from uiLabels to it.

Another way is to fork and change the existing code of the plugin to support 
internationalization as done in jQuery.cookiebar [here
|https://github.com/kovarp/jquery.cookieBar/blob/master/jquery.cookieBar.js#L140]
I will update the PR with my first solution for now and if my second solution 
worked we will certainly have it in our next plugin upgrade.

> Cookie Consent In E-Commerce
> ----------------------------
>
>                 Key: OFBIZ-11333
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11333
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ecommerce
>    Affects Versions: Trunk, Release Branch 17.12, Release Branch 18.12
>            Reporter: Deepak Nigam
>            Assignee: Aditya Sharma
>            Priority: Minor
>
> This ticket has been cloned from OFBIZ-10639: in the original ticket the work 
> was completed and committed only to the Release Branch 16.11; this new ticket 
> has been created to implement a solution for the other branches.
> =========================================
> As per discussion on Dev ML [https://markmail.org/message/rcatehtckz6vlvuv] 
> The Cookie Law is a piece of privacy legislation that requires websites to 
> get consent from visitors to store or retrieve any information on their 
> computer, smartphone or tablet. It was designed to protect online privacy, by 
> making consumers aware of how information about them is collected and used 
> online, and give them a choice to allow it or not. 
>   
>  The EU Cookie Legislation began as a directive from the European Union. Some 
> variation on the policy has since been adopted by all countries within the EU.
>   
>  The EU Cookie Legislation requires 4 actions from website owners who use 
> cookies:
>  1. When someone visits your website, you need to let them know that your 
> site uses cookies. 
>  2. You need to provide detailed information regarding how that cookie data 
> will be utilized. 
>  3. You need to provide visitors with some means of accepting or refusing the 
> use of cookies in your site. 
>  4. If they refuse, you need to ensure that cookies will not be placed on 
> their machine.
>  
>  For more information about EU cookie policy, please visit 
> [here|http://ec.europa.eu/ipg/basics/legal/cookies/index_en.htm].
>   
>  As this crucial feature is missing in OFBiz E-Commerce application, we 
> should work towards its implementation. There are numerous open-source jQuery 
> plugins available which we can use.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to