Categories
Friends
Links
Tag Archives: Business Catalyst
How to Force Opt-In automatically instead of having to go into each contacts details – Business Catalyst
just add: &Optin=True at the form action, see example below: HTML example <form action="/FormProcessv2.aspx?WebFormID=10090&OID={module_oid}&OTYPE={module_otype}&EID={module_eid}&CID={module_cid}&Optin=True" enctype="multipart/form-data" onsubmit="return checkWholeForm13472(this)" method="post" name="catwebformform13472">
Posted in Business Catalyst / GoodBarry | Also tagged automatically, contacts, Force, How, Opt-In | Leave a comment
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 add, American Express, Amex, checkout, Diners, form, GoodBarry, How, Online Store, surcharge | 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 CAPTCHA, Captchav2, Change Colours, Customize Captcha Verification Code, GoodBarry | 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 Disable, Disable JavasScript Alerts, GoodBarry, JavaScript, Remove Alerts, Supress Alerts | 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 Change Shipping, Change Text, GoodBarry, Replace Shipping Options, Replace Text, Shipping Options | 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 GoodBarry, JavaScript, Members area, Show div, Show when logged, When Logged In | 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 change, Change Message, GoodBarry, shopping cart, shopping cart is empty | 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 Cell height, GoodBarry, Invoice Layout, invoice template | 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>
How to change the message “No bookings found.” on Business Catalyst using JavaScript.