Search found 93 matches
- 17 Oct 2018, 06:47
- Forum: Help
- Topic: addProduct.before + productstock + jsonapi
- Replies: 4
- Views: 2353
addProduct.before + productstock + jsonapi
Hello, I've another question... I encounteer strange things with the ProductStock Plugin + jsonapi... sorry i'm a bit confused. When a product is out of stock I chose to check the stock before adding the product to the basket with the addproduct.before register event. My idea about it was that the o...
- 16 Oct 2018, 13:10
- Forum: Help
- Topic: Set a basket custom rebate & multiple rebates
- Replies: 9
- Views: 4948
Re: Set a basket custom rebate & multiple rebates
I finally have 2 last questions : 1/ foreach ($basket->getProducts() as $basketItem) { if($myproductid == $basketItem->getProductId()){ var_dump($basketItem->getPosition()); } } returns NULL instead of the expected product position in the basket when $myproductid is in the basket. I don't understand...
- 16 Oct 2018, 08:40
- Forum: Help
- Topic: Set a basket custom rebate & multiple rebates
- Replies: 9
- Views: 4948
Re: Set a basket custom rebate & multiple rebates
Here is my code : $value = <mynewnegativevalue>; $manager = \Aimeos\MShop\Factory::createManager( $context, 'product' ); $product = $manager->getItem($myid, array( 'product','price')); $prices = $product->getRefitems( 'price', 'default', 'default' ); foreach($prices as $p){ $p->setValue($value); } $...
- 16 Oct 2018, 07:34
- Forum: Help
- Topic: Set a basket custom rebate & multiple rebates
- Replies: 9
- Views: 4948
Re: Set a basket custom rebate & multiple rebates
Thank you very much for your answer.
Just to be sure I correctly understand by a "rebate product", you mean a default product where I set a negative price?
Which code do I use to add a given product to the basket in my plugin?
Is there an example somewhere?
Thank you very much,
sbn
Just to be sure I correctly understand by a "rebate product", you mean a default product where I set a negative price?
Which code do I use to add a given product to the basket in my plugin?
Is there an example somewhere?
Thank you very much,
sbn
- 15 Oct 2018, 10:10
- Forum: Help
- Topic: Set a basket custom rebate & multiple rebates
- Replies: 9
- Views: 4948
Set a basket custom rebate & multiple rebates
Hello, 1/ For a special offer, when some particular products are bought together following their given category, I would like to set a custom fixed calculated rebate on my current basket with a basket plugin. I was hoping that something like : <check if products are in the given categories == true >...
- 10 Oct 2018, 08:10
- Forum: Help
- Topic: DELETING ALL BASKET SERVICES BY TYPE
- Replies: 4
- Views: 2286
Re: DELETING ALL BASKET SERVICES BY TYPE
Ok !! Thank you very much
- 08 Oct 2018, 09:38
- Forum: Laravel package
- Topic: User xxx has more than 'max_user_connections' error
- Replies: 1
- Views: 1068
User xxx has more than 'max_user_connections' error
I read the LOG of my server errors and I see many : "User xxx has more than 'max_user_connections' active connections" errors on various Aimeos Requests (like createsearch, finditem, etc.). It seems to be often different ones. I'm currently trying to detect how and when those errors happen...
- 08 Oct 2018, 09:30
- Forum: Help
- Topic: DELETING ALL BASKET SERVICES BY TYPE
- Replies: 4
- Views: 2286
Re: DELETING ALL BASKET SERVICES BY TYPE
Ok thank you very much ! If I well understand, with JSON API, I need to : - make an OPTIONS request - then make another request to get the current basket content - then create a loop on the response data and send a DELETE request for each 'basket/service' item Is there a way to delete all services i...
- 02 Oct 2018, 12:21
- Forum: Help
- Topic: DELETING ALL BASKET SERVICES BY TYPE
- Replies: 4
- Views: 2286
DELETING ALL BASKET SERVICES BY TYPE
I would like to delete all payment services of my current basket in one time : 1/ I tried : $context = app()->make('\Aimeos\Shop\Base\Context')->get(); $controller = \Aimeos\Controller\Frontend\Factory::createController($context, 'basket' ); $basket = $controller->get(); $basket->deleteService('paym...
- 26 Sep 2018, 10:48
- Forum: Help
- Topic: Set Service Attribute Name
- Replies: 4
- Views: 2058
Re: Set Service Attribute Name
Hello ! Thank you very much (one more time) for your help. It finally worked, so here I share what I did if someone else needs it : In myprovider.php private $feConfig = array( 'myprovider.mykey' => array( 'code' => 'myprovider.mykey', 'internalcode'=> 'mykey', 'label'=> 'mykey', 'type'=> 'string', ...