demon_510
-
Posts
18 -
Joined
-
Last visited
Posts posted by demon_510
-
-
function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le ft=150') } var selected; var submitter = null; function submitFunction() { submitter = 1; } function selectRowEffect(object, buttonSelect) { if (!selected) { if (document.getElementById) { selected = document.getElementById('defaultSelected'); } else { selected = document.all['defaultSelected']; } } if (selected) selected.className = 'moduleRow'; object.className = 'moduleRowSelected'; selected = object; // one button is not an array if (document.checkout_payment.payment[0]) { document.checkout_payment.payment[buttonSelect].checked=true; } else { document.checkout_payment.payment.checked=true; } } function rowOverEffect(object) { if (object.className == 'moduleRow') object.className = 'moduleRowOver'; } function rowOutEffect(object) { if (object.className == 'moduleRowOver') object.className = 'moduleRow'; } function check_form() { var error = 0; var error_message = "Errors have occured during the process of your form.\n\nPlease make the following corrections:\n\n"; var payment_value = null; if (document.checkout_payment.payment.length) { for (var i=0; i<document.checkout_payment.payment.length; i++) { if (document.checkout_payment.payment[i].checked) { payment_value = document.checkout_payment.payment[i].value; } } } else if (document.checkout_payment.payment.checked) { payment_value = document.checkout_payment.payment.value; } else if (document.checkout_payment.payment.value) { payment_value = document.checkout_payment.payment.value; } if (payment_value == "cc") { var cc_owner = document.checkout_payment.cc_owner.value; var cc_number = document.checkout_payment.cc_number.value; var cvvnumber = document.checkout_payment.cvvnumber.value; if (cc_owner == "" || cc_owner.length < 3) { error_message = error_message + "* The owner's name of the credit card must be at least 3 characters.\n"; error = 1; } if (cc_number == "" || cc_number.length < 10) { error_message = error_message + "* The credit card number must be at least 10 characters.\n"; error = 1; } if (cvvnumber.length > 4) { error_message = error_message + "*** The credit card validation number must be 4 digits or less. \n"; error = 1; } if (cvvnumber == ""|| cvvnumber.length < 3) { error_message = error_message + "*** The credit card validation number must be at least 3 digits . \n"; error = 1; } } if (payment_value == null && submitter != 1) { error_message = error_message + "* Please select a payment method for your order.\n"; error = 1; } if (error == 1 && submitter != 1) { alert(error_message); return false; } else { return true; } } function couponpopupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re sizable=yes,copyhistory=no,width=450,height=280,screenX=150,screenY=150,top=150,l eft=150') }
I entered the code that was located in mysite into the actual sts_template.html and then saved it and voilla no problem.
-
add this on your sts_templates after body tag
<script language="javascript"><!--
function popupWindow(url) {
url = url
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le
ft=150')
}
//--></script>
Thanks, but that did not work.
-
I am still at a loss as to why my "click to enlarge" is not working. I have tried just using the sts_template.html file and still get the same thing. I looked at the output source code and used the link to enlarge it and it works. It has to be some sort of java error. check it out
-
I should have mentioned that I'm not using the product_info template, just the basic sts template. And it still happens when I remove the sts_product_info page from the server.
Same for me.
-
Anyone have a solution to why the click to enlarge in the product_info file is not working?
-
I cannot seem to get the "click to enlarge" to work. I think there might be a fix out there, can anyone help?
http://signature-diamonds.com/ecommerce/os...&products_id=39
Moez.
Looks like you got it working.
-
Hi everyone,
I've been struggling with the layout for my site since a couple of weeks and have now decided to install STS 2.0
After I copied the files to the catalog/includes folder and changed the configure.php I now have a completely blank page. I have done the simple installation because I reinstalled OsCommerce on my site.
For your information, I haven't manually installed OsC, My webhost has done this for me. Could this have to do anything with the STS not working?
Thanx for your help,
Irma
I just downloaded this contrib and set it up on a new osc install and the same thing is happening for me. I was just using the sts_template.html that comes with the download just to see what is looks like and nadda. I have even linked the stylesheet to its absolute path.
[contribution] Simple Template System (sts)
in Templates and Images
Posted
I had <!-- $headcontent --> in my html page and nothing. As a matter of fact non of my other js on my pages worked right either, then i just added the js from the source it was calling on and added it to my page and it worked.