Skill Level : Beginner
In this post, I will explain how to convert an add-on domain to a primary domain. Considering a complex case, lets consider the primary domain should be a different one from the one that holds the Add-on domain.
Pre Requisites
Server Platform : Linux
User requires : cPanel and SSH access (root)
This is a Site transfer. Also both the sites I’ve mentioned here is on same server.
Case
The Add-on Domain under a website has to be converted as its Primary Domain. If you have a Full backup, its another case. I’ll explain it in another post.
Solution
Lets consider the Add-on Domain is addon.com under the user admin and the document root of the add-on domain is :
/home/admin/public_html/addon
Now it should be transferred as the Primary Domain
* Using WHM Create a New account primary.com, the document root is then say /home/primary
We’ve to transfer the whole data from /home/admin/public_html/addon.com to /home/primary/public_html first.
* The Steps will be :
root@server [/home/admin/public_html/addon]# cp -r ./* /home/primary/public_html
This will recursively copy everything inside the PWD to the specified location
(Read the rest of this entry…)
We used to get tickets complaining that the customers are not able to install Magento Blue theme via Magento Connect. When you try to install you may get the below error.
ERROR: Via magento connect magento-core/Interface_Frontend_Default_Default_Blue requires package "magento-core/Interface_Frontend_Default" (version >= 1.3.1, version <= 1.4.0, excluded versions: 1.4.0), installed version is 1.4.0.0 Install Errors No valid packages found PEAR ERROR: install failed magento-core/Interface_Frontend_Default magento-core/Mage_Core_Modules
To fix this, login to your account via SSH and navigate to the Magento installation folder and execute the below command.
Install Interface_Frontend_Default correct version
./pear install magento-core/Interface_Frontend_Default
And then the Blue theme
./pear install magento-core/Interface_Frontend_Default_Default_Blue
You can get help for pear command by executing
pear help
And to list Channels
pear list-channels Registered ChannelContinue Reading
Rounded edges or curvy corners are always a trendy style in web designing. Early stages we used images to make the edges rounded, later it replace with css or javascript alternatives. Among all the easiest method is curvycorners.js. Just include this javascript file and some 4-5 lines of code, your job is done. You can find examples and usage guide in www.curvycorners.net.
I am not going to explain much about curvy corners here, you just go to the above mentioned website and explore yourself more on that. Here i am going to explain how to use this with a magento themes.
For adding curvycorners.js, download the file ,extract it and copy curvycorners.js (curvycorners.src.js) to
<Magento installation>/js/lib
After this go to your theme directory and edit the page.xml file. You can find your page.xml in
/app/design/frontend/defaul//layout/page.xml
Here we will add the code for calling javascript. You can see a lot of js calls already there on the page.xml. Add these line to your page.xml file
<action method=”addJs”><script>lib/curvycorners.js</script></action>
So the new javascript will be called. There is few more steps to curve your html boxes in Magento. Hope you found how to use curvycoreners from its site (Refer it how to use section). There are some lines of code to add to the header section of the code. Here i suggest you to add that code to a new .js file and include it like what we did for curvycorners.js.
addEvent(window, ‘load’, initCorners);
function initCorners() {
var settings = {tl: { radius: 0 },tr: { radius: 10},bl: { radius:10 },br: { radius: 0 },antiAlias: true}
var settings2 = {tl: { radius: 10 },tr: { radius: 10 },bl: { radius: 10 },br: { radius: 10 },antiAlias: true}
var settings3 = {tl: { radius: 4 },tr: { radius:4 },bl: { radius: 4},br: { radius: 4 },antiAlias: true}
var settings4 = {tl: { radius: 5 },tr: { radius: 5 },bl: { radius: 0 },br: { radius: 0 },antiAlias: true}
curvyCorners(settings, “.footer”);
curvyCorners(settings2, “.col-main”);
curvyCorners(settings3, “.registered-users,.new-users”);
curvyCorners(settings4,”.breadcrumbs”);
}
The file content will be like this. So now you are done. This post is not of course to teach curvycorners, so if you have any doubt with curvycorenrs please visit www.curvycoreners.net and explore more.
Continue ReadingSometimes Magento admins face the issue of some values missing from the frontend even though the configuration would have shown to be saved from Backend. This could be due the limit in the number of values set by suhosin.
The common override for this issue is to have the following values set in .htaccess
php_value suhosin.mail.protect 0
php_value suhosin.memory_limit 128M
php_value suhosin.post.max_vars 5000
php_value suhosin.post.max_value_length 500000
php_value suhosin.request.max_vars 5000
php_value suhosin.request.max_value_length 500000
php_flag suhosin.session.cryptua off
For php.ini use the variables without php_value or php_flag
Continue Reading