Creating a one time authentication in ActiveCollab. The example was taken from the developer’s guide at ActiveCollab website. When i checked this one first time the file structure mentioned in the guide and the actual file structure in AC 3.1.16…
Useful php debug function to output data with line number
A very useful php debug function i like to use to print debug output to browser window. In some cases where i may not output the debug to browser window i use the same php debug function to receive debug…
Capitalize, Uppercase, Lowercase Online
Different code editors do have different keyboard shortcuts to do Capitalize, Uppercase and Lowercase of text. Generally, i use EditPlus as code editor which has shortcuts for uppercase and lowercase but it does not seem to have a shortcut or…
How to know whether an element existed with jQuery
For the reference. In general javascript we can check for the existence of an element using the method below: if(document.getElementById(‘element_id’)) { //element exists } else { //element does not exist }
Ideal way to perform email validation in php
I found this email validation function while working in ActiveCollab. By default, this function uses PHP’s inbuilt filter_var function to validate email, which is supported in PHP 5 (> 5.2.0). If version of PHP is older (is less than 5.2.0)…
Custom Image thumbnail on Single Product page in Woocommerce
WooCommerce provides easy and efficient ways to customize product thumbnail sizes on Single Product page. There are three the methods one could utilize in order to set Single Product Image Thumbnail size according to one’s needs. Method One – You…
Customizing purchase log email in WP-Ecommerce
There is an useful filter/hook you could use. I used this hook to increase space between columns and showing Subtotal and Shipping cost aligned to the right and aligning parallel it with the product cost, as shown in the figure…
Payway Net payment method for WPCommerce
Payway Net payment method for WP-Commerce is available. It works just similar to any other payment method in WPCommerce. It notifies of success, failure and/or decline and updates the store and order status accordingly.
How to set IPN Notification url of Paypal
Following a brief note on ‘how to set IPN Notification url of Paypal’.
How to get current category id in Woocommerce?
How to get current category id in a template or theme functions file while using Woocommerce. In fact not only using Woocommerce but this method can be used to get the category object and subsequently the ID in normal category…