Jump to content

vrobador

Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Location
    Spain
  • Activity
    Developer

Recent Profile Visitors

913,413 profile views

vrobador's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

0

Reputation

  1. I know this is an old topic, but i think i've found a solution, at least for PS Version 1.7.7.8 My situation is that I have to share customers within all the stores, but the stock only between store groups. Unfortunately this can't be done, because customers only are shared between groups, and while a costumer was regitered in one store, and he can sign up in other store of the same group, he can't sign up in other group's store. Investigating about it, I discovered the problem was in the login process, so i looked for how login is done, and found it, in the costumer core class. On it, there is a function which is used for login, public function getByEmail($email, $plaintextPassword = null, $ignoreGuest = true) On it I found the code that filters the id_shop or id_shop_group while login: if (Shop::getContext() == Shop::CONTEXT_SHOP && $shopGroup['share_customer']) { $sql->where('c.`id_shop_group` = ' . (int) Shop::getContextShopGroupID()); } else { $sql->where('c.`id_shop` IN (' . implode(', ', Shop::getContextListShopID(Shop::SHARE_CUSTOMER)) . ')'); } So, as I want is all costumers to be shared by all shop groups, I made a Override of hte CostumerCore class just with the functions getByEmail and customerExists, removing the id_shop and id_shop_group filters or adapting them to my specifications. Be careful, as this code appears twice on the getByEmail Function I've looking fo other id_shop and id_shop_group filters related with costumers, and is the only i've found. Now the project is under development, so some bugs may appear. Any thing related I found I'll promise to share
  2. This is not quite correct Until user does not accept specifically the cookies these third party cookies should not be installed, or must be blocked
  3. According RGPD, in its Cookie Consent section, user may accept specifically the use of cookies. Navigation without action it's not allowed, and closing advertising neither (or means rejection). User must specifically say "yes" or "no" to the use of cookies. About cookies, there of two kind: Mandatory cookies are those necessary for the proper functioning of the site, and these can't be deactivated. The others, are third party cookies, and these must be accepted separately or together. These are external cookies. Facebook and Google are examples, but there are lots of sites nad kinds: social networks (twitter, linkedin), advertising (amazon, bing, adsense), audience (alexa, google analytics), video (vimeo, youtube).... Regards
  4. This is the idea. Site cookies are always active, but the script i've talked about allows to accept/reject third party cookies, so users will be able to enable google cookeis but reject facebook ones. Regards
  5. Finally solved it, but without a prestashop module. Just with a script which allow to set up which cookies will be blocked. Script URL is https://tarteaucitron.io/ and have two options, free and registered. With free option we got what we wanted. In the script site you can find a full example of these "customizable" cookies Regards
  6. Same problem here, due the last changes of the law. Any help will be appreciated
×
×
  • Create New...