Jump to content

Change image size from free native module


Recommended Posts

Hi, I have installed ps_crossselling module on ps 1.7.5 and is working well, the only detail I need to update is the size of the default image.

https://github.com/PrestaShop/ps_crossselling

It load the (default-cart_default.jpg) image but I need to use (default-small_default).

 

the .tpl is the following:

<section>
  <h2>{l s='Customers who bought this product also bought:' d='Modules.Crossselling.Shop'}</h2>
  <div class="products">
    {foreach from=$products item="product"}
      {include file="catalog/_partials/miniatures/product.tpl" product=$product}
    {/foreach}
  </div>
</section>

I tryied to edit: catalog/_partials/miniatures/product.tpl but it affect another modules. Any ideas? Thanks in addvance

Share this post


Link to post
Share on other sites

1. copy catalog/_partials/miniatures/product.tpl to computer

2. edit image size

3. rename to product-crossseling.tpl

4. upload to catalog/_partials/miniatures/ folder

5. open and edit modules/ps_crossselling/views/templates/hook/ps-crossseling.tpl

6. change product.tpl to product-crossseling.tpl

7. save

8. clear cache and recompile template

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

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