The "Product::getNoPackPrice" method returns an incorrect value for comparison; a string of the form "$ 10.99" is returned, which leads to an incorrect comparison
Steps to reproduce the behavior:
Create pack product, go on front page and see




PS1.7.4.1: https://drive.google.com/file/d/18Bk-l-4zWjuAb9__Ts-UWHemh6LlP4d8/view
PS1.7.7.0: https://drive.google.com/file/d/11Vqwi0fIaqkadj5d4Re62KVlWwxCH9T8/view
Hi @dariusakafest
I didn't see any error (see the screen shot below)

Could you please provide steps to reproduce the issue more clearly.
PS: don't mind the price of the pack, it's me who want it to be 50 euro without tax.
Thanks!
@hibatallahAouadni Hi!
Now I don't remember all the details of how I got the error, but please see this code
https://prnt.sc/vgp2m8
Do you think it is correct to compare the float value for example "100" with the string "$100"
https://prnt.sc/vgp3gf
I think that the comparison should be done with the types suitable for this.
We need a specific list of steps to reproduce. Please provide a clear scenario with all the steps.
@SimonGrn set product price 50.2
$this->context->smarty->assign('displayPackPrice', ($pack_items && $productPrice < $this->product->getNoPackPrice()) ? true : false);
displayPackPrice will become false
@SimonGrn.
You have the sum of the goods in the pack: 50.92! Product price 50 !
https://prnt.sc/vhgqoj
You should see here on the page: "Instead of 50.92". And he is not there !
When product bundle price < sum pack items price you must see here:
@SimonGrn And all why because you compared like this:
50 < $50,92, $50,92 converted in php to => 50.00
@dariusakafest
PS: don't mind the price of the pack, it's me who want it to be 50 euro without tax.
I already said it that it's me who want it to be 50(tax exclu)
Here's the price edited:

Thanks!
@SimonGrn Ok.
You must see "Instead of 40$" In the second case, you will not see it
Hello @dariusakafest
Thanks for clarifying and your patience. i managed to reproduce your issue with PS1.7.4.1, PS1.7.6.8, PS1.7.7.0-rc.1+build.4 and develop.




PS1.7.4.1: https://drive.google.com/file/d/18Bk-l-4zWjuAb9__Ts-UWHemh6LlP4d8/view
PS1.7.7.0: https://drive.google.com/file/d/11Vqwi0fIaqkadj5d4Re62KVlWwxCH9T8/view
I鈥檒l add this to the debug backlog so that it鈥檚 fixed.
Thank you!
Hi @PrestaShop/qa-functional
This issue should be fixed with this PR: #21732
Thanks!
Hi @RomainBocheux
As this issue seems to be a duplicate of #21034, could you check if this issue is well fixed on develop following the merge of #21732 ?
Thank you :)
Hi @marionf,
The PR #21732 fix this issue
Thank you
Most helpful comment
Hi @marionf,
The PR #21732 fix this issue
Thank you