You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to create a product with the price of 0 instead of the validation returning 0||hash it returns price||hash. This is due to the foxycart validation assuming it is an open (user editable) value.
To Reproduce
Steps to reproduce the behavior:
Create a new product
Enter anything for the SKU
Enter 0 for the Price
Save
Go to the page in the front end
Inspect the form and find the Price input
Expected behavior
Values of 0 that should not be editable by the user should return 0||hash instead of field_name||hash.
Additional Context
Was creating a free product for a promotion that was to be added to the cart with the foxycart js.
Possible solutions
add an open flag to the fc_hash_value function in the thirdparty/foxycart/foxycart.cart_validation.php file.
The text was updated successfully, but these errors were encountered:
Describe the bug
When trying to create a product with the price of 0 instead of the validation returning
0||hash
it returnsprice||hash
. This is due to the foxycart validation assuming it is an open (user editable) value.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Values of 0 that should not be editable by the user should return
0||hash
instead offield_name||hash
.Additional Context
Was creating a free product for a promotion that was to be added to the cart with the foxycart js.
Possible solutions
add an open flag to the
fc_hash_value
function in thethirdparty/foxycart/foxycart.cart_validation.php
file.The text was updated successfully, but these errors were encountered: