Jump to content

Conditions if isset for some tasks


Arthur007

Recommended Posts

There are several questions on the software part:

1. How to limit the number of products in the module "BlockNewProduct". Through the admin panel put 10 products on the main. However, I need to make a left module 1 product. Necessary condition that limits the number of displayed items.

2. Want to make new-label (Hits) for the module "homefeature".
Necessary condition for popular items.

{if isset($product.new) && $product.new == 1}
     <span class="new-box">
         <span class="new-label">{l s='HITS'}</span>
     </span>
{/if}
Link to comment
Share on other sites

 

 

1 Topic = 1 Subject or 1 Question

- If you have more than one question, open more than one new topic!

- Do not ask your question on a thread that doesn’t deal with the exact same matter. Open a new thread, it’s alright to do so.

 

1. this module uses caching, so it's more than possible that you still see "old" cached version. clear shop cache and see if it changes number of products.

 

2. what prestashop version you use? everything depends on it.

Link to comment
Share on other sites

1. this module uses caching, so it's more than possible that you still see "old" cached version. clear shop cache and see if it changes number of products.

 

I need to in Left Module Conclusions 1 items. And on the main output module 20 items. Q: how to do it?

 

PS: Prestashop 1.6

PS2: cache is disabled

Edited by Arthur007 (see edit history)
Link to comment
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
×
×
  • Create New...