We just converted out old store to Ready Themes and some of our products are Paypal restricted. We sell batons, for instance and Paypal considers that a weapon. We had written this code and it worked in the old store, but I can't get the code to show up on the Product page, even though I'm inserting it (the code below) into the Product Display Layout. We've got similar code on a checkout page that suppresses the customer from being able to pay using Paypal if the item they are purchasing is restricted. (We use a custom field to define what is restricted and what is not).
Here is the code: Anyone got any idea why it just doesn't work?
<!-- Start check for paypal restriction & put up warning if so --><br />
<script type="text/javascript">
restricted = "&mvta:product:customfield_values:customfields:res tricted;";
if (restricted.toLowerCase() == 'PayPal'.toLowerCase()) {
document.write('<div style="font-size:10px; color:red">'+
'<b>IMPORTANT: This is a PayPal restricted item and cannot be paid for using PayPal. Any other available payment method is OK.</b></div>');
}
</script>
<br />
<!-- End check for paypal restriction & put up warning if so -->
Here is the code: Anyone got any idea why it just doesn't work?
<!-- Start check for paypal restriction & put up warning if so --><br />
<script type="text/javascript">
restricted = "&mvta:product:customfield_values:customfields:res tricted;";
if (restricted.toLowerCase() == 'PayPal'.toLowerCase()) {
document.write('<div style="font-size:10px; color:red">'+
'<b>IMPORTANT: This is a PayPal restricted item and cannot be paid for using PayPal. Any other available payment method is OK.</b></div>');
}
</script>
<br />
<!-- End check for paypal restriction & put up warning if so -->
Comment