Search found 52 matches

by flomo
03 Feb 2020, 16:13
Forum: Laravel package
Topic: Polyfill CDN, defer and GDPR
Replies: 2
Views: 1242

Re: Polyfill CDN, defer and GDPR

GDPR only makes statements about cookies for tracking but the server doesn't send any cookie so using the polyfill script is save. GDPR is also about sharing personal user data with third parties, and that is what happens, when you make a call to a CDN. There are cease and desist cases for german w...
by flomo
31 Jan 2020, 18:00
Forum: Laravel package
Topic: Polyfill CDN, defer and GDPR
Replies: 2
Views: 1242

Polyfill CDN, defer and GDPR

I noticed, that the default Aimeos theme makes a request to https://cdn.polyfill.io/v2/polyfill.min.js I think there are a few issues with this: - This might breach GDPR conformity of a site, by sending data to a third party server - Loading the polyfill script at the bottom of the page and with &qu...
by flomo
27 Jan 2020, 10:57
Forum: Laravel package
Topic: Hook into order completing process
Replies: 13
Views: 4192

Re: Hook into order completing process

Thanks a lot! It becomes so easy, once you get to know the processes and the classes. But it's a steep learning curve.
by flomo
25 Jan 2020, 18:54
Forum: Laravel package
Topic: Hook into order completing process
Replies: 13
Views: 4192

Re: Hook into order completing process

Ok, good to know. Now the attribute is hidden, I can fetch it. Thanks! Now I'm on the last step, storing the serial. I'm using this code to add it to the payment service: $basket = $this->getOrderBase($orderItem->getBaseId(), OrderItemBaseBase::PARTS_ALL); $paymentServiceObject = $basket->getService...
by flomo
25 Jan 2020, 17:27
Forum: Laravel package
Topic: Hook into order completing process
Replies: 13
Views: 4192

Re: Hook into order completing process

The code in my previous post ist not about the serial yet. I store an API reference called "serialapi" (each product might get its serial from another API, depending on the brand) with each product. After payment I have to retrieve this reference to know, which API I have to contact. So I ...
by flomo
25 Jan 2020, 17:11
Forum: Laravel package
Topic: Hook into order completing process
Replies: 13
Views: 4192

Re: Hook into order completing process

I tried those methods, but getAttributeItem() returns null, and getAttributeItems() an empty array [] with this code: $basket = $this->getOrderBase($orderItem->getBaseId(), OrderItemBaseBase::PARTS_ALL); $products = $basket->getProducts(); foreach($products as $product) { $product->getAttributeItems...
by flomo
24 Jan 2020, 16:05
Forum: Laravel package
Topic: Hook into order completing process
Replies: 13
Views: 4192

Re: Hook into order completing process

Still having problems. I now have the Aimeos\MShop\Order\Item\Base\Product\Standard objects from the order, but the supplier ( getSupplierCode() ) and attributes ( getAttribute(), the function getAttributes() is even not available) are empty. How can I access this data?
by flomo
24 Jan 2020, 14:05
Forum: Laravel package
Topic: Hook into order completing process
Replies: 13
Views: 4192

Re: Hook into order completing process

:? Nevermind. I just found out, that \Aimeos\MShop\Service\Provider\Base::getOrderBase() accepts a second parameter that defines, which part of the order to load: https://aimeos.org/api/latest/class-Aimeos.MShop.Service.Provider.Base.html Using \Aimeos\MShop\Order\Item\Base\Base::PARTS_ALL or \Aimeo...
by flomo
24 Jan 2020, 11:27
Forum: Laravel package
Topic: Hook into order completing process
Replies: 13
Views: 4192

Re: Hook into order completing process

How would I get the basket/products? I was able to fetch the basket, but the products are always empty: public function updateSync(\Psr\Http\Message\ServerRequestInterface $request, \Aimeos\MShop\Order\Item\Iface $orderItem) { $update = $this->getProvider()->updateSync($request, $orderItem); // Retu...
by flomo
21 Jan 2020, 09:59
Forum: Laravel package
Topic: Hook into order completing process
Replies: 13
Views: 4192

Re: Hook into order completing process

Thank you very much! Will dive into this this week.