Entries by ctn-admin

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 […]

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 […]

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 […]