Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Force Selection not working for product options
Author « Topic »  

atlend
Advanced Member

USA
331 Posts

Posted - 04/25/2022 :  06:19:10  
I'm currently on PHP v.7.5.0, but this was happening on the previous version as well. I hoped that moving to the newest update would fix it, but it didn't. I have many products that have not changed in ages (and it definitely used to work) that are all set up with options (and dependent options) that are all set to "Force Selection", but it allows the customer to proceed without making a choice. For example, this product (https://www.proudproducers.com/proddetail.php?prod=JG02-tee) is set up this way, yet it allows them to add to cart without choosing a size. Any ideas?

Thanks,
Chris

Vince
Administrator

42852 Posts

Posted - 04/25/2022 :  08:43:26  
Hi Chris
It seems that this bit of code is causing the problems...

<script language="javascript">
<!--
function validatewrapper0(tform){
if(tform.quant.value<1){
alert("There is a minimum purchase of 1 units.");
return false;
}
return formvalidator0(tform);
}
//-->
</script>

But I don't think this is standard. Do you have a MOD for instance that could be adding this?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

atlend
Advanced Member

USA
331 Posts

Posted - 04/25/2022 :  09:01:59  
Hi Vince,

Thank you so much for identifying this problematic code! I felt so sure that it was tested (and still not working) immediately after the 7.5.0 updater (pre-mods), but it seems I was simply incorrect. That code does indeed come from a mod, and I will reach out to the developer for a solution on it. I have re-applied a fresh 7.5.0 update and it works as it should. I appreciate your time on this!

Sincerely,
Chris

Vince
Administrator

42852 Posts

Posted - 04/26/2022 :  00:36:20  
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000