Tag Archives: GoodBarry

How to add a surcharge to the Amex option for the checkout form in the Online Store – Business Catalyst

Use onchange to alert the customer that a charge will occur and then the function doMath() calculates the surcharge. JavaScript   <script type="text/javascript">      function checkSel(obj) {       var ind = obj.selectedIndex;       if  (ind == 3) {           alert(‘This Card incurs a 3.5% Surcharge.’);   [...]
Posted in Business Catalyst / GoodBarry | Also tagged , , , , , , , , , | Leave a comment

how to disable the Autoresponder for Web Forms – Business Catalyst/GoodBarry

Just add &SAR=False to the form code: HTML:   <form name="catwebformform47565" method="post" onsubmit="return checkWholeForm47565(this)" enctype="multipart/form-data" action="/FormProcessv2.aspx?WebFormID=12374&amp;OID={module_oid}&amp;OTYPE={module_otype}&amp;EID={module_eid}&amp;CID={module_cid}&amp;SAR=False">  
Posted in Business Catalyst / GoodBarry | Also tagged , , , | Leave a comment

How to Change Colours of Captchav2 in Business Catalyst / GoodBarry

You can specify the colors for the CAPTCHA V2 using CSS color names with following syntax: {module_captchav2,backcolor,forecolor}. HTML Example:   <label>Enter Word Verification in box below <span class="req">*</span></label>  {module_captchav2,skyblue,white}     You can find the CSS color names here: http://www.w3schools.com/css/css_colornames.asp
Posted in Business Catalyst / GoodBarry | Also tagged , , , , | Leave a comment

How to Disable/Supress Alerts on Business Catalyst/GoodBarry

If you want to suppress the “pop-up” alerts like “1 item has been added to your shopping cart”, simply add the code below to the pages/templates where you don’t want alerts to appear. JavaScript   <script type="text/javascript"> window.alert=function(msg){} </script>  
Posted in Business Catalyst / GoodBarry | Also tagged , , , , , | Leave a comment

How To Replace Shipping Options Text – Business Catalyst / GoodBarry

Put the JavaScript code at the end of your page. JavaScript   <script type="text/javascript"> var sel = document.getElementById(‘ShippingOptions’) for(var i=sel.options.length-1;i>=0;i–) { if(sel.options[i].value == "-1")     sel.options[i].text = "Here goes the text of whatever you want to replace Choose Shipping Options to"; } </script>  
Posted in Business Catalyst / GoodBarry | Also tagged , , , , , | Leave a comment

How to Show a DIV Only When User is Logged In – Business Catalyst / GoodBarry

HTML Example   <div id="hiddenDiv" style="display:none"> <p>Here you put whatever you want to show only when someone is logged in.</p> </div>   JavaScript   <script type="text/javascript">         var loggedin = "{module_isloggedin}";         if  (loggedin == 1)         document.getElementById(‘hiddenDiv’).style.display = "block"; </script>     Remember to put [...]
Posted in Business Catalyst / GoodBarry | Also tagged , , , , , | Leave a comment

How to Change “shopping cart is empty” message – Business Catalyst / GoodBarry

JavaScript   <script type="text/javascript">   var ele = GetElementsByClass(‘cartLink’); if(ele[0])   ele[0].innerHTML = ‘Empty’;// replace with your own message!          function UpdateProductExtras(c, p, res) {          document.getElementById(‘catCartDetails’).innerHTML = ‘This Cart Is Empty’; // replace with your own message! </script>  
Posted in Business Catalyst / GoodBarry | Also tagged , , , , | Leave a comment

How to change the height of Invoice’s cell to fit longer product names – BC and GoodBarry

To change the size of product cell on Invoice’s table so they can fit 2 lines of text, just add the below code inside the INVOICE TEMPLATE on “Customize System Emails” Style   <style type="text/css"> .productitemcell{ height:60px; } </style>  
Posted in Business Catalyst / GoodBarry | Also tagged , , , | 1 Comment

How to Change “This product is unavailable or out of stock” message – Business Catalyst / GoodBarry

JavaScript:   <script type="text/javascript">     function AddProductExtras(catalogId,productId,ret) {         var td = document.getElementById(‘catProdTd_’+productId);         if (td.innerHTML == ‘This product is unavailable or out of stock.’)            td.innerHTML = ‘Product added successfully.’;            } </script>    
Posted in Business Catalyst / GoodBarry | Also tagged , | Leave a comment

How to Make Billing Information Same as Shipping – Business Catalyst / GoodBarry

HTML:   <input type="checkbox" onclick="SetBilling(this.checked);"/> Same as Shipping   JavaScript:   <script type="text/javascript"> function SetBilling(checked) {         if (checked) {                 document.getElementById(‘BillingAddress’).value = document.getElementById(‘ShippingAddress’).value;                 document.getElementById(‘BillingCity’).value = document.getElementById(‘ShippingCity’).value;                 document.getElementById(‘BillingState’).value = [...]
Posted in Business Catalyst / GoodBarry, JavaScript | Also tagged , , | Leave a comment