Magento add a facebook like box to left sidebar

Good post

Magento Tips and Fundamental Solutions

This is not a big thing in magento whoever knows the file structure of magento, what we have to do here is just add a static CMS block called magento facebook like box then enter the code you got from the facebook for like button here https://developers.facebook.com/docs/reference/plugins/like-box/ and save it, now block is saved, now now just switch your page layout to 3-columns-left and then open app/design/frontend/default/your-magento-theme-name/template/page/3-columns-left.phtml, and just add the below line which will reference the static block code.

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('fblike')->toHtml()?>

View original post

Advertisements

How to Install Varnish on Ubuntu?

[ad#mconnect-solutions-1]

Varnish is the type of cache which is used to optimize speed of the server, my experience says that it will just doubled the speed of your website in just short time.

Below are the points how to install varnish on ubuntu, centos and other unix and linux interfaces.

apt-get install varnish

Go to “/etc/default/varnish” and edit 6081 to 80 and let varnish listen to port 80

DAEMON_OPTS=”-a :80 \
-T localhost:6082 \
-f /etc/varnish/default.vcl \
-S /etc/varnish/secret \
-s file,/var/lib/varnish/$INSTANCE/varnish_storage.bin,1gb”

You should change the storage size also to the size of your server.

Edit /etc/apache2/ports.conf and change the port setting to listen port 80 for varnish and let apache listen to local host at 127.0.0.1 on port 8000 or whatever port you want

Then change your apache2 virtual host file to listen to the new port.

install this for apache: sudo aptitude install libapache2-mod-rpaf

Once you are done…you can run varnishstat to see if it is working. hope this helps 🙂

(make sure you change the admin28 to your admin name for backend and also change the port to the port you have on apache…..)

————————– BELOW IS THE VARNISH VCL ——————————–

backend apache {
.host = “localhost”;
.port = “8000”;
.max_connections = 30;
.connect_timeout = 4.0s;
.first_byte_timeout = 600s;
.between_bytes_timeout = 600s;
}

acl purge {
“localhost”;
“127.0.0.1”;
}

sub vcl_recv {
if (req.http.x-forwarded-for) {
set req.http.X-Forwarded-For =
req.http.X-Forwarded-For “, ” client.ip;
} else {
set req.http.X-Forwarded-For = client.ip;
}

if (req.request == “GET” &amp;&amp; (req.url ~ “^/admin28”) || req.url ~ “^/index.php/admin28”) {
return (pipe);
}

# Force lookup if the request is a no-cache request from the client
#if (req.http.Cache-Control ~ “no-cache”) {
#return (pass);
#}

## Default request checks
if (req.request != “GET” &amp;&amp;
req.request != “HEAD” &amp;&amp;
req.request != “PUT” &amp;&amp;
req.request != “POST” &amp;&amp;
req.request != “TRACE” &amp;&amp;
req.request != “OPTIONS” &amp;&amp;
req.request != “DELETE”) {
# Non-RFC2616 or CONNECT which is weird.
return (pipe);
}
if (req.request != “GET” &amp;&amp; req.request != “HEAD”) {
# We only deal with GET and HEAD by default
return (pass);
}

## Modified from default to allow caching if cookies are set, but not http auth
if (req.http.Authorization) {
/* Not cacheable by default */
return (pass);
}

// Strip cookies for static files:
if (req.url ~ “\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm)$”) {
unset req.http.Cookie;
return(lookup);
}

// Remove has_js and Google Analytics __* cookies.
set req.http.Cookie = regsuball(req.http.Cookie, “(^|;\s*)(__[a-z]+|has_js)=[^;]*”, “”);

// Remove a “;” prefix, if present.
set req.http.Cookie = regsub(req.http.Cookie, “^;\s*”, “”);

// Remove empty cookies.
if (req.http.Cookie ~ “^\s*$”) {
unset req.http.Cookie;
}

if (req.request == “PURGE”) {
if (!client.ip ~ purge) {
error 405 “Not allowed.”;
}
purge(“req.url ~ ” req.url ” &amp;&amp; req.http.host == ” req.http.host);
error 200 “Purged.”;
}
}

sub vcl_hash {
if (req.http.Cookie) {
set req.hash += req.http.Cookie;
}
}

sub vcl_fetch {

// Strip cookies for static files:
if (req.url ~ “\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm)$”) {
unset beresp.http.set-cookie;
}

// Varnish determined the object was not cacheable
if (!beresp.cacheable) {
set beresp.http.X-Cacheable = “NO:Not Cacheable”;
}

// You don’t wish to cache content for logged in users
elsif(req.http.Cookie ~”(UserID|_session)”) {
set beresp.http.X-Cacheable = “NO:Got Session”;
return(pass);
}

// You are respecting the Cache-Control=private header from the backend
elsif ( beresp.http.Cache-Control ~ “private”) {
set beresp.http.X-Cacheable = “NO:Cache-Control=private”;
return(pass);
}

// You are extending the lifetime of the object artificially
elsif ( beresp.ttl &lt; 1s ) {
set beresp.ttl = 300s;
set beresp.grace = 300s;
set beresp.http.X-Cacheable = “YES:Forced”;
}

// Varnish determined the object was cacheable
else {
set beresp.http.X-Cacheable = “YES”;
}

return(deliver);
}

sub vcl_error {

if (obj.status == 503 &amp;&amp; req.restarts &lt; 5) {
set obj.http.X-Restarts = req.restarts;
restart;
}

}
[ad#mconnect-solutions-1]
[ad#yogesh-1]
[ad#mconnect-solutions-1-1]

 

This post created by M-Connect Media (www.mconnectmedia.com) a Magento design agency.

Fashion & Beauty Managed eCommerce Platform for Retailers (clothing & apparel websites)

Vanquish Consulting

The Vanquish Commerce department have recently launched a new service providing retailers in fashion and beauty who are currently selling products at physical stores an online presence in the $trillion industry. The Managed eCommerce Platform for Fashion Retailers (MEP-Fashion) is a full end-to-end solution built on advanced enterprise class technology used by the largest multi-nationals and has been scaled to businesses from $250,000 revenue to $25million revenue per year. For larger retailers we have partnered with Large Enterprise consultants who have a similar platform to the Yoox Group Mono-Brand solution used by companies such as Armani and Dolce & Gabbana.

View original post 223 more words

2013’s Best 7 Responsive Magento Theme Design and Templates

What is responsive web design with Magento?

The response is a major element  of the communication in this world. Without  Response people can’t communicate with others and not express themselves. In the eCommerce theme development, if you do not  develop a responsive theme design for your Magento store than your store visibility will not increase.

As a Magento Developer for designing a responsive theme for eCommerce store that is view-able, salable and lovable over Mobile and tables devices. So, your brand name and your appearance in the online will also increase.

How do Magento Responsive themes work?

All Magento Responsive design work on all devices like Smartphones, tablet, Laptop, Desktop and other devices. So, you’re all over visitor of the store will increase and your sales and revenue also increase. If you work for responsive than your visitor also work responsive for your store in terms of your web store selling.

M-Connect Media a Magento Responsive Design Company develop Responsive Magento theme and template for your eCommerce store. Here, M-Connect Media list out 7 best and free responsive Magento theme for design and integrate themes of your eCommerce store.

1) Ves T Shirt – Free Responsive Magento Theme

[ Demo & Download ]

Ves T Shirt - Free Responsive Magento Theme

2) Hello Wired – Free Responsive Magento Theme

[ Demo & Download ]

Hello Wired – Free Responsive Magento Theme

3) Ves furniture – Free Responsive Magento Theme

[ Demo & Download ]

Ves furniture - Free Responsive Magento Theme

4) Women Fashion – Free Responsive Magento Theme

[ Demo & Download ]

Women Fashion - Free Responsive Magento Theme

5) Ebajes – Free Responsive Magento Theme

[ Demo & Download ]

Ebajes - Free Responsive Magento Theme

6) Mobile Shoppe – Free Responsive Magento Theme

[ Demo & Download ]

Mobile Shoppe – Free Responsive Magento Theme

7) Home Interior – Free Responsive Magento Theme

[ Demo & Download ]

Home Interior - Free Responsive Magento Theme