Search found 17 matches

by GagDalakyan
06 Aug 2021, 07:37
Forum: Help
Topic: Add global scope on retrieving products
Replies: 10
Views: 12274

Re: Add global scope on retrieving products

Thank you. It is what i want.
by GagDalakyan
05 Aug 2021, 07:15
Forum: Help
Topic: Add global scope on retrieving products
Replies: 10
Views: 12274

Re: Add global scope on retrieving products

Many thanks.
And my last question. ))
This works fine, but does not affect to similar products and products bought together in product detail. Any suggestions ?
by GagDalakyan
04 Aug 2021, 08:56
Forum: Help
Topic: Add global scope on retrieving products
Replies: 10
Views: 12274

Re: Add global scope on retrieving products

Thanks for your reply.
I understand. But i want to know is there a way, to add it global to product manager class( as product status is always set to 1 ), not every time add this filter while using product manager.
by GagDalakyan
04 Aug 2021, 06:09
Forum: Help
Topic: Add global scope on retrieving products
Replies: 10
Views: 12274

Re: Add global scope on retrieving products

And where add this filter ?
by GagDalakyan
03 Aug 2021, 15:11
Forum: Help
Topic: Add global scope on retrieving products
Replies: 10
Views: 12274

Re: Add global scope on retrieving products

Thanks for reply!
Im sorry.I asked wrong question.
I need to show in frontend for example only products where ( '>', 'product.rating', '2' );
Rating column is already in mshop_product table. How i can add this rule in all queries?
by GagDalakyan
02 Aug 2021, 07:25
Forum: Help
Topic: Add global scope on retrieving products
Replies: 10
Views: 12274

Add global scope on retrieving products

Laravel : 8.4 Aimeos : 2021.04 PHP Version : 7.4 Environment : Windows Good day. I need to add global scope for products in frontend ( Product lists, detail page, bought together products, etc. ) , for example $productManager->compare( '==', 'product.config', 'visibility":"1' ); Can anyone...
by GagDalakyan
18 Jun 2021, 06:52
Forum: Help
Topic: Different extensions depends on user group
Replies: 0
Views: 79827

Different extensions depends on user group

Laravel : 8.4
Aimeos : 2021.04
PHP Version : 7.4
Environment : Windows
Good day. Is there a way to have multiple own extensions in project, and depends on user group work with needed extension.
Thanks
by GagDalakyan
05 Jun 2021, 07:09
Forum: Help
Topic: Manual create new order, without removing current basket products
Replies: 2
Views: 4304

Re: Manual create new order, without removing current basket products

Many thanks for your fast reply. I done this by another way ) When user clicked buy now i send user to checkout page with hidden data, and show there only current product, and when user click process in checkout i clear basket via Ajax and add my product to basket,then i submit the form, and everyth...
by GagDalakyan
04 Jun 2021, 08:29
Forum: Help
Topic: Manual create new order, without removing current basket products
Replies: 2
Views: 4304

Manual create new order, without removing current basket products

Laravel : 6.20.5
Aimeos : 2020.10
PHP Version : 7.2
Environment : Windows
Hi. I have a button buy now in product detail page. When user clicked it i want to create order with only this product and send user to checkout. But i want to save current basket items. How can i do this.

Thanks!
by GagDalakyan
01 Apr 2021, 08:16
Forum: Help
Topic: Upload media and attach to product from custom form
Replies: 5
Views: 3604

Re: Upload media and attach to product from custom form

I did it :)) May be someone else need this. Here is example This is product builder if( (isset($_GET['f_stock']) && $_GET['f_stock'] == '1')) { $products = $products->isInStock(); } public function isInStock() : Iface { $func = $this->filter->createFunction( 'product:stock', [$this->getConte...