View Single Post
  #7  
Old 03-17-2010, 08:33 PM
  McPace's Avatar 
McPace McPace is offline
 

Member
  
Join Date: Sep 2008
Posts: 26
 

Thumbs up Re: Need help with options script

OH FOR THE LOVE!
If I put in this code:
Code:
if (document.getElementById('po1701').selectedIndex == 0) { alert('Please select the size of your artwork.'); return false; } if (document.getElementById('po1701').selectedIndex == 1 && document.getElementById('po1746').selectedIndex != 0 ) { alert('The smallest size of this image does not come framed, please un-select a frame option and try again. See our FAQ page for more information.'); return false; } if (document.getElementById('po1746').selectedIndex == 0 && document.getElementById('po1701').selectedIndex != 1 ) { alert('Please select a frame style for your artwork.'); return false; } else return true;

And have product variants that say select art size, select frame style, then it works perfectly.

So does anyone know how I can take this and apply it universally without using a specific products poID?
__________________
McPace
4.1.12
Reply With Quote