Jump to content

Specials produts modul for homepage? (Prestashop 1.5.4)


Recommended Posts

Hi,

 

I am looking for special products modul for homepage with viewing more then just one products. Like the nativ modul: FEATURED PRODUCTS

I was searching for something like this, but without succes for prestashop 1.5.4 Everything I found just didn't work.

 

Is there something like this for current version of prestashop?

Share this post


Link to post
Share on other sites
  • 1 month later...

hmm

Display error:

 

Notice: Undefined variable: p in \modules\homespecialproducts\homespecialproducts.php on line 68

Notice: Undefined variable: orderBy in \modules\homespecialproducts\homespecialproducts.php on line 68

Notice: Undefined variable: orderWay in \modules\homespecialproducts\homespecialproducts.php on line 68

Share this post


Link to post
Share on other sites
  • 1 month later...
Thanks for sharing, it works great. It only needs some css styling! :)

 

Hi, sorry but where´s the css for this module?

I installed module but have no image or price products, only name and small description and a grey strike i guess is the photo of the product

 

thanks

Edited by joaofilipe (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

The problem maybe the name of the images like home or home_default.

If i'll have time, i'll do a correct module. Now, there're no css file. you can add css rules in your global file or modify the module to add a css file.

  • Like 1

Share this post


Link to post
Share on other sites

The problem maybe the name of the images like home or home_default.

If i'll have time, i'll do a correct module. Now, there're no css file. you can add css rules in your global file or modify the module to add a css file.

 

Yup images you were right. But the prices? Aren't they supposed to show like in normal specials block?

 

thanks

Edited by joaofilipe (see edit history)

Share this post


Link to post
Share on other sites

Yes there aren't price in this tpl.

Try in the foreach this

{if isset($product.show_price) && $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{/if}

  • Like 1

Share this post


Link to post
Share on other sites

We are in good direction! Prices do appear but we have to increase the liHeight value (I increased it to 270). If we manage to put the prices like in specials post-484832-0-16269800-1375370253_thumb.png this gonna be a hit!

Share this post


Link to post
Share on other sites
  • 2 months later...

Hi,

 

You can test this one.

It works for presta 1.5, but you must adapt to your template.

Hello,

thank you for uploading this module, but I get no images after adding to website, seems web links are bad. Maybe somebody else faced such problem?

 

P.S.

Just noticed the problem exists not only for me, can somebody help me? :)

Edited by Rokixz (see edit history)

Share this post


Link to post
Share on other sites

Dear Grafics, this question was for me? I've checked PHP code, but didn't noticed anything I would know (I'm just a amateur coder), the images didn't show, you can check here: http://namuakcentai.lt on the bottom. I'd be really appreciate if you will help to solve my problem, because the designers added that function to template, and it's really hard to fine one, I've deleted original one by accident, then downloaded from one guys github and it wasn't working properly :( You'd be really my day saver :) 

Share this post


Link to post
Share on other sites

I know, it's for developing reasons, none of cache etc. are enabled :) anyway, sorry to bother you with stupid question, but I did change dir to modules/homespecialproducts/ and grep -R medium didn't find nothing with that word... I will be really appreciated if you will help such a n00b for me to solve it, I'm new to prestashop and moreover in developing :) Thanks in advance.

Share this post


Link to post
Share on other sites

It's not medium... but home

Replace

<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.legend|escape:htmlall:'UTF-8'}" />

by

<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" alt="{$product.legend|escape:htmlall:'UTF-8'}" />

Share this post


Link to post
Share on other sites

Hi guys!

 

Rokixz you got to go to the tlp file of the module (homespecialproducts.tlp).

 

there you will see this line

 

src ="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home') 

 

chabge it to 

 

src ="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')

 

as Grafics suggested this helped me.

 

Hope also helps you.

Edited by joaofilipe (see edit history)

Share this post


Link to post
Share on other sites
  • 1 month later...

Hello again, one question, how to sort products by price or other value? Now it showing only most expensive products, maybe it's possible to sort by other value? Thanks for reply.

Share this post


Link to post
Share on other sites

Hi, and thank u for this modul, For me dosnt work :-( showing the  product name , picture and price but not like it was on the picture. It is possible to  show % and some picture like on sale?

 

big  thx

Share this post


Link to post
Share on other sites
  • 5 months later...

I need a hand. I'm going to install this module in my shop created with prestashop 1.6, but unfortunately the result is not what I wanted. I would also like that this module is collocated on the Home Tab and Tab Content Home. Can you help me?

Edited by marcellolaforgia (see edit history)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More