Entries by ctn-admin

Add a Delivery Phone number field to Woocommerce Checkout

If you need a customer to be able to add seperate billing and delivery phone numbers (for example when having a product sent as a gift) you can achieve this by adding the code below to your theme’s functions.php file   /** Add an extra Phone number field to the Delivery Address checkout. */ add_filter( ‘woocommerce_checkout_fields’, […]

Display Woocommerce Attributes on Product pages

Want to display a list of your product attributes on your product page? For example show the Manufacturer, Dimensions etc. Just add the code below to your themes functions.php file. If you want to change exactly where on the product page the attributes are displayed update the priority of the hook. (Thats the 25 in […]

How to Recover and Reprint the last document printed on a Mac

So this happened today. I paid for a coupon online, pressed print, then closed the webpage. Walked over to printer, it was out of ink so so had not printed out properly. No problem you would think, just print it again? Logged back in, and it would not let me print the coupon again without […]

Opencart SEO homepage (remove index.php?route=common/home)

If you are using SEO urls on your opencart site (which you should be), you may notice that sometimes when you navigate to the homepage by clicking on your site logo or other link, the url appears with the index.php?route=common/home suffix.   The easiest way to remove this, is to edit your .htaccess file with the […]

Remove weight from cart/checkout – (Opencart Weight Based Shipping)

If you are using the Weight Based Shipping module in Opencart you may find that the weight appears in certain places such as the cart and checkout. However, you may not want this displayed as your weight might not be accurately setup or you may have it configured in your own way. There is a setting to […]

Adding Adwords Conversion code to Opencart Checkout

Google Adwords Conversions can be very useful for tracking what purchases on your site come from paid clicks through a PPC campaign. Firstly you need to set up the tracking code on your Adwords account: https://support.google.com/adwords/answer/6095821 To setup the conversion for an Opencart store we are going to track the success page that appears after a successful […]

Force HTTPS using .htaccess Opencart

You may wish to use your ssl cert for every page on your opencart store. To do so you will need to select “Use SSL” in your opencart amin settings. You will also need to edit your .htaccess file as follows:   RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]   Make sure to […]

How to move position of Customize button – Fancy Product Designer

If you are using the Fancy Product Designer wordpress plugin and need to move the  location of the “Customize Product” button I will show you how. Find the file called class-frontend-product.php, it lives in the inc/ folder of the plugin. Find the code below: //add customize button add_action( ‘woocommerce_single_product_summary’, array( &$this, ‘add_customize_button’), 25 );   The wordpress codex […]

How to Fix: VQMod::_parseMods – DOM UNABLE TO LOAD:

One of the most likely problems you will encounter with your XML VQMod files, assuming that your path locations are correct is going to be markup errors. The smallest thing such as an “&” symbol will cause the whole file to not load correctly. You can access your VQMod error log by looking in the […]

How To Allow Additional Upload File Types in WordPress

Many file types you may want to upload to your WordPress blog or site will not be allowed by default. This is down to security concerns; uploading incorrect files etc that could bring down the site or introduce vulnerabilities. If you know what you are doing here is how to unlock any file type you […]