Tag: hints and tips

Fast and Easy remove add-to-cart buttons

by John on Oct.21, 2009, under Hints/Tips/Hacks

This little alteration was taken from the Prestashop forums and all credit goes to user aksolotl.

quick and easy add to cart

Upload the files into your prestashop installation, the .js file goes into your /js/ folder and the .tpl file goes into your theme folder overwriting the old header.tpl file.

The add-on uses javascript to remove all the add-to-cart buttons from your site.

VN:F [1.9.3_1094]
Rating: 4.5/5 (4 votes cast)
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • MisterWong
  • Reddit
  • StumbleUpon
  • Twitter
  • Add to favorites
  • RSS
  • Technorati
2 Comments :, more...

Removing “powered by Prestashop”

by John on Aug.02, 2009, under Hints/Tips/Hacks

Don’t want the prestashop credit link on site?

To remove the credit from the footer area all you need to do is edit the variouslinks.tpl file. This is located in the modules/blockvariouslinks folder. Remove the line of code near the bottom of the file that relates to the link, and then save the file and reupload to your server.

To remove the credit link from the emails you will need to edit each email template individually. These are located in two different folders. Firstly /mails/yourlanguage, modules/mailalerts/mail/yourlanguage.

The link code is located at the bottom of each file.

VN:F [1.9.3_1094]
Rating: 4.8/5 (21 votes cast)
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • MisterWong
  • Reddit
  • StumbleUpon
  • Twitter
  • Add to favorites
  • RSS
  • Technorati
7 Comments :, , more...

Customise admin footer links

by John on Jul.29, 2009, under Hints/Tips/Hacks

Customise your admin footer links by editting the footer.inc.php file and changing the following code:

Powered by <a href="http://www.prestashop.com/" target="_blank">PrestaShop&trade;</a>&nbsp;[&nbsp;<a href="http://www.prestashop.com/forums/" target="_blank">forum</a>&nbsp;&amp;&nbsp;<a href="http://www.prestashop.com/en/contact_us/" target="_blank">contact</a>&nbsp;]

Just change the links to whatever you want them to be – a link to the shop homepage or maybe supplier websites.

VN:F [1.9.3_1094]
Rating: 4.8/5 (4 votes cast)
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • MisterWong
  • Reddit
  • StumbleUpon
  • Twitter
  • Add to favorites
  • RSS
  • Technorati
Leave a Comment :, , more...

Change sub-categories to grid view

by John on Jun.30, 2009, under Hints/Tips/Hacks

Below is the code to change your sub-categories page from the list in the default theme to a grid with 3 column and no descriptions.

Overwrite the following code in your global.css file should be about line 1500, you will need to edit the colours to match your theme as this is not the default theme.

You will also need to replace your product-list.tpl file with this one for v1.1 and this one for v1.2

You will also need to change your pagination to suit the new 3 column format.  Just edit the pagination.php file in the root folder.  Near the top you will see: $nArray = array(10, 20, 50). Just alter the number to suit the new layout.

/* product-list.tpl */
ul#product_list{ margin-top:2em; list-style-type:none; }
ul#product_list li {
background: #FFF;
padding: 4px;
height:220px;
clear:both;
margin-bottom:0.3em;
float: left;
width: 29%;
height: 255px;
margin-right: 8px;
clear: none;
margin-left:4px;
margin-top:2px;
}
ul#product_list li a {
text-decoration:none;
color:#000;
}
ul#product_list a.product_img_link{
border: solid 1px #d0d3d8;
float:left;
margin-right:0.6em;
margin-left:15px;
margin-top:30px;
}
ul#product_list li h3{ margin:0.4em 0; width:160px;padding-bottom:2px;height:10px; text-align: center;}
ul#product_list li .new{
background:transparent url(../img/flag_new_bg.jpg) repeat-x scroll 0%;
border:1px solid #488C40;
color:white;
font-size:0.6em;
font-weight:bold;
margin:0pt 1em 0pt 0pt;
padding:0pt 0.4em;
text-transform:;
vertical-align:0.3em;
}
ul#product_list li p.product_desc{ font-size:0.92em; }
ul#product_list li div.center_block{
float:left;
width:100%;
}
ul#product_list li div.right_block{
float:left;
text-align:center;
margin-left:2em;
margin-top:0.5em;
display:inline;
}
ul#product_list li .discount{
color:#da0f00;
text-transform:;
font-weight:bold;
display: block;
}
ul#product_list li .on_sale{
color:#da0f00;
text-transform:;
font-weight:bold;
display: block;
}
ul#product_list li .reduction {
display: block;
margin-bottom: 0.3em;
}
ul#product_list li .price{
display: block;
font-size: 170%;
margin-bottom: 0.2em;
}
ul#product_list li span.availability{
color:#000;
font-size:0.9em;
}
ul#product_list li a.button{ margin-top:0.5em; }

VN:F [1.9.3_1094]
Rating: 4.4/5 (9 votes cast)
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • MisterWong
  • Reddit
  • StumbleUpon
  • Twitter
  • Add to favorites
  • RSS
  • Technorati
31 Comments :, , more...

Popular tags