Tag Archives: tips

26 Ways to Boost Your eCommerce Site Conversions

Get more conversions on your eCommerce site

Often overlooked ways for you to turn more visitors into customers on your eCommerce site.

‘corePHP’ is always on the look-out for ways our clients can boost conversions on their eCommerce sites. We thought we’d share 26 of the most often overlooked, inexpensive, and easy to implement ideas, to help you generate more eCommerce conversions. Treat this like a checklist, every time you add a product to your inventory, and you’ll be on the right track to higher conversion rates. Do you have advice to share? Please feel free to comment, and add your advice to this compilation as well!

Continue reading

Some Useful Tips to Registering a Domain Name

Domain Name

Whether you are an established company owner or a working professional, you can benefit from registering your own domain name. A domain name is a unique online identity that a business or individual can use to promote themselves and their products or services. For the fairly inexpensive price of registering a domain name, you can connect with internet users around the world.

Here are a few of the benefits of registering a domain name:

Reputation Management

Have you ever had a friend snap a photo when you were not exactly on your best behavior? The rise of social media websites has made it increasingly easy for those photos to end up on the web. Once they do, this information is available to employers and customers forever.

Domain names allow you to control what people see when they search the internet for your name or the name of your company. The more domains you have, the more control you have. Take control of your online reputation by registering your own domain. Continue reading

jQuery click event fires twice

Today I had an issue with jQuery where a listener for a ‘click’ event was being triggered twice.
With the following code, I would get two logs in the console:

jQuery(document).ready(function(){
	jQuery('#button').click(function(){
		console.log(1);
		return false;
	});
});

I was even trying the jQuery(function() { }); method, but I would still get the same results.

After some debugging, I figured out that if I moved that javascript to be inside the <head></head> tag instead of the <body></body> tag which is where I originally had it, that would fix the problem.

Hope it helps,
Rafael Corral
Lead developer

CMS Expo Presentations

The beginning of May ‘corePHP’ attended the CMS Expo for the 4th time. This year was a complete blast and the best yet. Over the 4 days of attending the Expo we learned a lot of useful new material and met a great deal of new faces. We thank everyone who came out to make the Expo a complete success and we look forward to attending next year.

Continue reading

Control HTML without javascript

This is something I have known about for a long time. It is advanced and can mostly be used for Cross Site Request Forgeries (CSRF). Not that I condone these, but the best way to defend yourself against hackers is by knowing as much as they do.

In some cases users turn javascript off in their browsers (I do) for security reasons. HTML has just about no scripting capabilities if you discard the FOR attribute on the LABEL tag. It is possible to trick a user into submitting a form by them simply highlighting text on a page. The FOR attribute binds a label to another element, which is some sort of scripting, I guess.

Continue reading

Controlling Joomla! templates depending on menu you use

We have been working on building a multi-school Joomla! website and there have been many hurdles to overcome since Joomla! isn’t a multi-site CMS. After searching for anything that’s common across each school, I realized the menu for each school could be used as a common denominator. If I could set a variable depending on which menu is loaded on the page then I can do just about anything I want, such as change the logo, set a unique CSS class, etc. After meeting with our developers we figured out how to do this and I’ll share it with all of you in case you ever need to do the same.
Continue reading

How to use countModules in any Joomla! file

One of the core parts of creating Joomla! templates is using $this->countModules to show or hide code depending on if a module is in a particular position on the page. It is very powerful and it makes your templates very dynamic according to what is happening on the page. So what happens if you need to do this outside of the template index.php file? Save yourself a huge headache and use the following code in any file to check for a module position:

jimport( 'joomla.application.module.helper' );
if(count(JModuleHelper::getModules('left'))) {
	put your code here
}

A very powerful addition to you Joomla! PHP library!

Fixing permissions on your Joomla! site

I am writing this post as a tip, because I tend to use this more often than not. There is only one requirement – you must have shell access to your server.

These are the two commands to run:
find /path/to/joomla/root/ -type d -exec chmod 755 {} ;
find /path/to/joomla/root/ -type f -exec chmod 644 {} ;

Replace the path “/path/to/joomla/root/” with the path to your website’s Joomla! root. It is OK to simply use the relative path.

The first line will change the permissions for all folders to 755 and the second one will change the permissions of all files to 644.

One last thing to know about this – and this is just my experience from working with servers that are running cPanel/WHM – normally, these servers have the root of your Joomla site located under a folder called “public_html”. When you run the command for directories, you need to do something like this for the path: “public_html/*” (note the asterisk).

Anyway, enjoy!

Joomla! 1.5.12 Bug

Today I found a bug in Joomla! 1.5.12 while working on a project. Since I have been developing this project on my computer at home, I had it installed on Joomla 1.5.11. Yesterday I completely finished the extension and decided to test it in a different environment, so I installed a new Joomla! development site on a live server. At this point I realized that Joomla 1.5.12 had been released, so I went through the simple installation process and installed the extension I had been working on. This is where the problems started.

Continue reading

Joomla PDF links and sh404SEF

One our clients pointed out that the links being generated in the PDFs in Joomla! were relative and not absolute. The links start with “index.php?…blah…blah…” when they should have the domain name in front of the link – and they should also be SEFed. I’ve come up with a pretty good solution. It may not be the best one out there, but it works and it works well.

Continue reading