I'm using Cart2, but can not get the options working like it should be.
Seems that there was a bugreport for this.
So Cart2 options could not handle decimals.
If I have a product price €5 and an option to get the price on €-0.5, it desplays and takes (in the option dropdown and the cart) €4 instead of €4.5.
The bug report mentioned a solution for the drop down:
http://dev.cmsmadesimple.org/bug/view/9332
I changed the action.default.php of the Cart2 module, like mentioned to test, the drop down is ok but it still takes the wrong values to the cart!
So after 'add to cart', I get €4 in the cart instead of the €4.5 .
Anyone has an idea of a solution please.
Thank you, Kind regards,
Peter
Cart2 and Cart Option wrong price, please help
Re: Cart2 and Cart Option wrong price, please help
Isn't is an rounding error that can be solved by using the correct Smarty settings? Just a wild guess though...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Cart2 and Cart Option wrong price, please help
Rolf, thank you for the reply.
All I had to do, to let the option dropdown, work is changing 1 line of code in the action.default.php. Then it displays the correct price.
Like the bug reports tells.
But that is for the product detail view, so after that i need to get the product in the cart.
If I push the "add to cart" button, it takes the 'old' wrong value and not the value from the options drop down.
So probely there is somewhere another little piece of code (smarty) code that need to be changed.
Kind regards.
Peter
All I had to do, to let the option dropdown, work is changing 1 line of code in the action.default.php. Then it displays the correct price.
Like the bug reports tells.
But that is for the product detail view, so after that i need to get the product in the cart.
If I push the "add to cart" button, it takes the 'old' wrong value and not the value from the options drop down.
So probely there is somewhere another little piece of code (smarty) code that need to be changed.
Kind regards.
Peter
Re: Cart2 and Cart Option wrong price, please help
I know there's a bug in Cart2 that causes this specific issue: http://forum.cmsmadesimple.org/viewtopic.php?p=318328
It's specific for locales that use a decimal delimiter other than a dot. You could test this by setting the front end language to:
Site Admin -> Global Settings -> General Settings (tab) -> Default language for the frontend: No Default Selected (not sure that works on all occasions).
It's specific for locales that use a decimal delimiter other than a dot. You could test this by setting the front end language to:
Site Admin -> Global Settings -> General Settings (tab) -> Default language for the frontend: No Default Selected (not sure that works on all occasions).
Re: Cart2 and Cart Option wrong price, please help
velden, thank you for your reply.
Like you mentioned, I got the add to cart decimal worked, if I put the Default language for the frontend: No Default Selected.
But now I have some trouble that 2 items not showing up anymore...
one is a item to show if the sore is open or not, the other is the little cart view on the top of the page...
Any idea?
Kind regards
Peter
Like you mentioned, I got the add to cart decimal worked, if I put the Default language for the frontend: No Default Selected.
But now I have some trouble that 2 items not showing up anymore...
one is a item to show if the sore is open or not, the other is the little cart view on the top of the page...
Any idea?
Kind regards
Peter
Re: Cart2 and Cart Option wrong price, please help
About the store open hours: that could be related of course because the locales are about formatting time too.
I don't know what could cause the disappearance of the Cart view.
I don't know what could cause the disappearance of the Cart view.
Re: Cart2 and Cart Option wrong price, please help
off course this is not a good thing, so i can not set up a little ecommerce then...
that is a shame.
Is the Cart module still working ? or is that fully replaced with the Cart2 module?
that is a shame.
Is the Cart module still working ? or is that fully replaced with the Cart2 module?



