Hello everyone,
I have made a module to create a customized product.
By pressing the "add to cart" button a specific price is inserted into the "specific_price" table of the database. This price is also connected with the current cart-id which I get with this code:
{$context = Context::getContext()}
{if is_null($context->cart->id)}
{$context->cart->add()}
{/if}
{$ggg = $context->cart->id}
(The code is written in the tpl-file of the module)
My problem is, that the first time you visit my page and customize your product and add it to the cart, you will get the product with the standard price. After reloading the page or adding a new customized product everything works fine.
I think that there is just a little error in my code or something isn't updating correctly.
Thanks for your help!!