Jump to content

Modify blockspecials extended to show 8 products instead of 4.


mgo3
 Share

Recommended Posts

Hi

 

in file blockspecials_ext.php line 90

change

$n = 4;

to

$n = 8;

in file blockspecials_ext.tpl line 35

change

{if $smarty.foreach.specProducts.index < 4}

to

{if $smarty.foreach.specProducts.index < 8} 

@++

 

loulou66

Edited by loulou66 (see edit history)

Share this post


Link to post
Share on other sites

Thank you very much. I have another problem now. As you can see: http://rocaynieve.com/es/ the display of the products it's not clean and appropriate. I have two lines for the last 4 products maybe because of some extra space at left side that should not be ther. Do you know how can I fix it?

 

Thank yo so much!

Share this post


Link to post
Share on other sites

Hi

 

i see only 1 lines with 4 products on your url but on my ps 1.5.6.2 

 

in files blockspecials_ext.css

line 10

#special_block .block_content li {
    float: left;
    margin-left: 10px; <=decrase this number (7px with default theme)
    width: 126px;
}

for better display you can on file blockspecials_ext.tpl

 

after </div> line 51  add this tag <br />

 

 

@++

 

Loulou66

Edited by loulou66 (see edit history)

Share this post


Link to post
Share on other sites

Hi 

 

 i found one little errror on file blockspecials_ext.php

 

del line 107

'priceWithoutReduction_tax_excl' => Tools::ps_round($special['price_without_reduction'], 2),

1°) $specials not exist

2°) not need for tpl

 

@++

 

Loulou66

Share this post


Link to post
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

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