Page 2 of 2
Re: Merging Carts without the customer knowing (Checkout)
Posted: Sat Aug 15, 2020 11:21 pm
by Retrofox
Thanks, working on that.=)
For the Mobile visual problem shown above, any idea how I can replace it with the mini cart shown below?
This style would fit perfectly on mobile if the product names force wrap.
Oh just found that the files I need are in the default theme folder like some other modules ect.
I should be able to sort this visual problem out now and will post back results.
Re: Merging Carts without the customer knowing (Checkout)
Posted: Sun Aug 16, 2020 1:19 am
by letxobnav
Would this be the root config for v3? Not the admin config? (or both?)
Both or it will write a warning in your error log when in admin as admin also uses the cart class.
Re: Merging Carts without the customer knowing (Checkout)
Posted: Sun Aug 16, 2020 2:26 am
by Retrofox
That did the trick wonderfully mate.
hard coded both configs and then made an Ocmod to do the rest and its perfect.
Thanks a ton.
I also fixed the Mobile issue i mentioned by reformatting the tables in
/catalog/view/theme/default/template/checkout/confirm.twig.
It now looks like this, no one should ever miss the total =)

Re: Merging Carts without the customer knowing (Checkout)
Posted: Sun Aug 16, 2020 7:13 am
by letxobnav
Good, the reason I use switches in config.php is that while developing it gives a single point of turning a change on/off and if it works properly you can easily transform those later to an admin setting and then use the settings table instead and remove it from config.
mobile view looks good.
Re: Merging Carts without the customer knowing (Checkout)
Posted: Sun Aug 16, 2020 2:07 pm
by khnaz35
Retrofox wrote: ↑Sun Aug 16, 2020 2:26 am
That did the trick wonderfully mate.
hard coded both configs and then made an Ocmod to do the rest and its perfect.
Thanks a ton.
I also fixed the Mobile issue i mentioned by reformatting the tables in
/catalog/view/theme/default/template/checkout/confirm.twig.
It now looks like this, no one should ever miss the total =)
Looks good now! finally made it

Re: Merging Carts without the customer knowing (Checkout)
Posted: Tue Oct 13, 2020 7:47 am
by straightlight
I have no idea why this topic has been posted on the Bug Reports but it is clearly not a bug. I also don't know why this CUSTOMER_CART constant has been created and mixed with the library cart as double work. The external API from my Github namespace can already be used:
https://github.com/straightlight/openca ... upload/api . This has been considered since over a year and can simply be pulled from API logins and furthermore as well as using the $this->ApiLoad object from the OC registry along with the original $this->load object from the core altogether.
Meaning, the cart can entirely be created as an interface by calling a new Cart controller by using the $this->ApiLoad in order to be used with other platforms via JSON request and response.
Re: Merging Carts without the customer knowing (Checkout)
Posted: Tue Oct 13, 2020 9:34 am
by letxobnav
I never said this was a bug, if it bothers you, move it.
For the rest, you lost me at "I also don't know why...".
Re: Merging Carts without the customer knowing (Checkout)
Posted: Tue Oct 13, 2020 9:56 am
by straightlight
letxobnav wrote: ↑Tue Oct 13, 2020 9:34 am
I never said this was a bug, if it bothers you, move it.
For the rest, you lost me at "I also don't know why...".
My last reply regarding the created topic in this section itself was not addressed to you. Only the CUSTOMER_CART constant.