Showing posts with label prestashop. Show all posts
Showing posts with label prestashop. Show all posts

Friday, May 10, 2013

Prestashop 1.5.4.1 released.

Prestashop

Time to upgrade your e-commerce solution!

As usual changelog is too long to post it here, so here's the link to prestashop site.

A lot of bugs fixed, few features improved.

Friday, February 15, 2013

Import of external images doesn't work in PrestaShop 1.5.3.1

Ok if you try to import some items with images in prestashop, you will fail.

They just do not appear in imported products.

How to resolve this? Very simple.

There's a bug in presta that was fixed in repository, but do not released yet.
So you can 1. wait for next release, 2. head to this link and apply provided changes to your prestashop installation.

Here's a screenshot for fast review.
Import of external images doesn't work in PrestaShop 1.5.3.1

You have to locate the file controllers/admin/AdminImportController.php
Then yo have to replace the lines marked with - (red) with the one marked with + (green).
Left columns means line numbers.

Easy as pie.

Thursday, November 29, 2012

Prestashop and GoodRelations plugin - solve problem with page

When you try to install goodrelations plugin in prestashop 1.4 or 1.5 you will see that your pages are broken. i mean your category page.

how can you fix broken by goodrelations plugin category page in prestashop?

open "prestashop installed folder on hosting/modules/goodrelations/goodrelations_page.tpl" file


Locate this part of code

 {if $shop_city}
  <div rel="vcard:adr">
   <div typeof="vcard:Address">
   {if $shop_country}
   <div property="vcard:country-name" content="{$shop_country|strip_tags|escape:'htmlall':'UTF-8'}"></div>
   {/if}
   {if $shop_city}
   <div property="vcard:locality" content="{$shop_city|strip_tags|escape:'htmlall':'UTF-8'}"></div>
   {/if}
   {if $shop_code}
   <div property="vcard:postal-code" content="{$shop_code|strip_tags|escape:'htmlall':'UTF-8'}"></div>
   {/if}
   {if $shop_address}
   <div property="vcard:street-address" content="{$shop_address|strip_tags|escape:'htmlall':'UTF-8'}"></div>
   {/if}
  </div>
  {/if}
  </div>


as you can see - open div is IN {if} statement, and closing div is OUTSIDE of ending {/if} statement, so when you have no shop_city configured, you will have spare div in your page code - this is the little bastard that ruin your design!
let's get rid of him

  {if $shop_city}
  <div rel="vcard:adr">
<div typeof="vcard:Address">
{if $shop_country}
   <br />
<div content="{$shop_country|strip_tags|escape:'htmlall':'UTF-8'}" property="vcard:country-name">
</div>
{/if}
   {if $shop_city}
   <br />
<div content="{$shop_city|strip_tags|escape:'htmlall':'UTF-8'}" property="vcard:locality">
</div>
{/if}
   {if $shop_code}
   <br />
<div content="{$shop_code|strip_tags|escape:'htmlall':'UTF-8'}" property="vcard:postal-code">
</div>
{/if}
   {if $shop_address}
   <br />
<div content="{$shop_address|strip_tags|escape:'htmlall':'UTF-8'}" property="vcard:street-address">
</div>
{/if}
  </div>
</div>
{/if}  
basically I've just put closing div into this shop_city {if} statement. so when you have no shop_city - no spare tags will appear on page.