Search found 15 matches

by bar_on
24 Mar 2025, 18:47
Forum: Laravel package
Topic: Order price, cost, rebate set to 0 after setting payment status
Replies: 3
Views: 27612

Re: Order price, cost, rebate set to 0 after setting payment status

Order price is still set to 0 after this change. This is the payment status and order total before payment intent was created (custom controller). Screenshot 2025-03-24 at 11.38.58 AM.png Screenshot 2025-03-24 at 11.38.45 AM.png This is after the payment intent was created. Screenshot 2025-03-24 at ...
by bar_on
24 Mar 2025, 06:06
Forum: Laravel package
Topic: Order price, cost, rebate set to 0 after setting payment status
Replies: 3
Views: 27612

Order price, cost, rebate set to 0 after setting payment status

$manager = MShop::create($context, 'order'); $order = $manager->get($orderId); $order->setStatusPayment(4) Before I set the payment the order has its price, costs and rebate. After setting it in a custom frontend controller, the data returned are 0. Before: "order.price": "450.00&quo...
by bar_on
20 Feb 2025, 19:55
Forum: Help
Topic: Hide variant product on jqadm product list page
Replies: 3
Views: 11441

Re: Hide variant product on jqadm product list page

Ideally I want the product listing to show simple product (ie. product of type default, but is not related to a variant product), and mother variant product (ie. product of type select). Is that achievable in the backend?
by bar_on
20 Feb 2025, 19:52
Forum: Help
Topic: Jsonapi get variant attribute type's translated name
Replies: 1
Views: 3738

Jsonapi get variant attribute type's translated name

Screenshot 2025-02-20 at 11.49.25 AM.png In aimeos backend, I can see the attribute type has a translation section provided. I want to know if I can access this translation in product api. If not, what's the recommended method of getting this translation to show the variant attribute type in custom...
by bar_on
25 Jan 2025, 17:26
Forum: Help
Topic: Hide variant product on jqadm product list page
Replies: 3
Views: 11441

Hide variant product on jqadm product list page

Screenshot 2025-01-25 at 9.24.04 AM.png
Screenshot 2025-01-25 at 9.24.04 AM.png (227.9 KiB) Viewed 11441 times
I'd like to know if there's any way I can hide the variant product in listing page, so I can only see
1. A separate article product with no variant
2. The mother variant product.

(ie. hide ID. 42, 43, 44. Keep 41, 45)
by bar_on
19 Jan 2025, 10:50
Forum: Help
Topic: How to customize default values in add form (admin backend)?
Replies: 1
Views: 3104

How to customize default values in add form (admin backend)?

When creating new product, I want the tax rate in all new price to be 0 by default, also currency to be EUD. Is there a way I can achieve this easily?

Version:
"aimeos/aimeos-laravel": "~2023.10",
"php": "^8.1.0",
by bar_on
13 Nov 2024, 07:34
Forum: Help
Topic: How do I customize the context.php in vendor folder?
Replies: 7
Views: 105299

Re: How do I customize the context.php in vendor folder?

You can change the guard in the ./config/shop.php using the "guards" key: https://github.com/aimeos/aimeos-laravel/blob/master/src/Base/Context.php#L281 It works now! Thank you very much. For anyone using jsonapi with laravel passport, the setup in shop.php is 'guards' => ['jsonapi' => 'y...
by bar_on
11 Nov 2024, 06:05
Forum: Help
Topic: How do I customize the context.php in vendor folder?
Replies: 7
Views: 105299

Re: How do I customize the context.php in vendor folder?

From another post I read that the user function works if Auth::id() returns the correct user id. However, Laravel by default uses guard 'web' instead of 'api'. If I change the default guard to api, the aimeos backend wouldn't login. How do I configure aimeos to use guard 'api' instead? (ie. auth('a...
by bar_on
07 Nov 2024, 06:47
Forum: Help
Topic: How do I customize the context.php in vendor folder?
Replies: 7
Views: 105299

Re: How do I customize the context.php in vendor folder?

From another post I read that the user function works if Auth::id() returns the correct user id. However, Laravel by default uses guard 'web' instead of 'api'. If I change the default guard to api, the aimeos backend wouldn't login. How do I configure aimeos to use guard 'api' instead? (ie. auth('ap...
by bar_on
07 Nov 2024, 06:34
Forum: Help
Topic: How do I customize the context.php in vendor folder?
Replies: 7
Views: 105299

Re: How do I customize the context.php in vendor folder?

Thanks for the reply. I couldn't get the customer get self jsonapi to work (ie. returning everything null when logged in), except changing the user function (in context.php of vendor folder) to return the laravel auth user id instead. I'm using laravel passport for user auth. Hence I'd like to know:...