Search found 44 matches

by lucadambros
26 Aug 2019, 07:07
Forum: Laravel package
Topic: Add price after pressing "add to basket" button
Replies: 20
Views: 7291

Re: Add price after pressing "add to basket" button

I got another error:

Code: Select all

Call to undefined method Aimeos\MShop\Price\Item\Standard::setCurrency()
EDIT: the function is SetCurrencyId
by lucadambros
26 Aug 2019, 06:57
Forum: Laravel package
Topic: Add price after pressing "add to basket" button
Replies: 20
Views: 7291

Re: Add price after pressing "add to basket" button

I got this error:

Code: Select all

Aimeos \ MShop \ Exception
Unable to call method "createListItem"
EDIT: the function is createListsItem not createListItem
by lucadambros
23 Aug 2019, 10:19
Forum: Laravel package
Topic: Add price after pressing "add to basket" button
Replies: 20
Views: 7291

Re: Add price after pressing "add to basket" button

Sorry I have another question: how can I clone the product and change the price of it? I have the product $params = $view->param(); $productManager = \Aimeos\MShop::create( $context, 'product' ); $item = $productManager->getItem( $params['b_prod'][0]['prodid'], ['media', 'price', 'text'] ); Now what...
by lucadambros
22 Aug 2019, 13:39
Forum: Laravel package
Topic: Add price after pressing "add to basket" button
Replies: 20
Views: 7291

Re: Add price after pressing "add to basket" button

Last question: how can I change the value of a param into the decorator?

I have the array

Code: Select all

$view->param( 'b_prod' );
How can I change the value of that?
by lucadambros
22 Aug 2019, 09:36
Forum: Laravel package
Topic: Add price after pressing "add to basket" button
Replies: 20
Views: 7291

Re: Add price after pressing "add to basket" button

If you have configurable products (with additonal options that have an additional price), you can also assign one or more config attributes with own prices to the product. Customers can then choose the options they want and the total price of the product is calculated automatically. I know that but...
by lucadambros
22 Aug 2019, 09:12
Forum: Laravel package
Topic: Add price after pressing "add to basket" button
Replies: 20
Views: 7291

Re: Add price after pressing "add to basket" button

What happens if another user adds the same product but has a different price?
by lucadambros
22 Aug 2019, 08:30
Forum: Laravel package
Topic: Add price after pressing "add to basket" button
Replies: 20
Views: 7291

Re: Add price after pressing "add to basket" button

Use case:

The product can have a strange type of calculation of the price that depends on external factors like the betting system or something like creation of gadgets.
by lucadambros
22 Aug 2019, 08:04
Forum: Laravel package
Topic: Form action getting url instead of route and addData to view
Replies: 9
Views: 11228

Re: Form action getting url instead of route and addData to view

I found another way to do all this:
- I have a form
- onchange this form will make an ajax call
- the ajax call is a laravel function
- jquery will send the new data without refreshing the page
- the laravel function will store the data I need
by lucadambros
22 Aug 2019, 08:01
Forum: Laravel package
Topic: Add price after pressing "add to basket" button
Replies: 20
Views: 7291

Add price after pressing "add to basket" button

Hi,
I have a product without a price. How can I add the price after pressing the "add to basket" button?

Thank you very much