Hola , Usuario |
| Registro
Recordar mi cuenta ¿Ha olvidado la contraseña ?
Site Map Mapa de sitio Contact us Contacte con nosotros
PrestaShop e-commerce software
  755 Usuarios en línea
Forum  >  English Forum  >  Third party modules  >  Thread

1 of 2
1
Post Reply
New Topic
[module] homeproducts

offline
Posted: 18 July 2008 02:39 PM   [ Ignore ]
Apprentice
RankRank

Messages :

  • total: 33
  • last 7 days: 0
Joined: 2008-07-14

As discussed in this topic, I wanted to have a module similar to the homefeatured2 module, but not with the featured products.
I wanted to be able to choose my own category as ‘featured’ and an idea for a new module was born wink

As you can read in that topic I was unable to generate a list of categories in the BackOffice, so – at least for now – you’ll have to insert the category id manually. But since the id’s are displayed in the catalog, finding the id shouldn’t be too hard wink

There are 4 languages included: Dutch, English, French and German. I’ve used Google Translate to get the FR and DE translations.

=====================================

Translation by Google Translate: || Traduction par Google Traduction:

Comme il est indiqué dans ce sujet, je voulais avoir un module similaire à la homefeatured2 module, mais pas avec les produits en vedette.
Je voulais être en mesure de choisir son propre catégorie que sont présentées et une idée pour un nouveau module est né wink

Comme vous pouvez le lire dans ce sujet, je n’ai pas pu générer une liste des catégories dans le backoffice, si – au moins pour l’instant – vous aurez à ajouter la catégorie id manuellement. Mais depuis l’identifiant sont affichés dans le catalogue, trouver l’ID ne doit pas être trop difficile wink

Il ya 4 langues: néerlandais, anglais, français et allemand. J’ai utilisé Google Translate pour obtenir le FR et DE traductions.

File Attachments
homeproducts.zip  (File Size: 7KB - Downloads: 1703)
 
offline
Posted: 19 July 2008 12:32 AM   [ Ignore ]   [ # 1 ]
V.I.P.
RankRankRankRank
Avatar

Messages :

  • total: 887
  • last 7 days: 0
Joined: 2008-04-08

This is a very useful module to have for prestashop.
With regards to the category issue this is a very complex issue.

I have also looked into this code & everything I have tried to display the categories in the drop down has failed mad
The category id is a really good work around, but ideally this needs to be a drop-down.
I will look into this further next week.

Suggestion for this module
Featured products shown for specific categories & possibly the same for products page (using the product footer hook)
Just a thought. I realise how difficult this may be, but these are just a few suggestions to take this module further which I can assist you with next week wink

One issue I have found with all these modules is you have to recall functions to use within the module.
my thoughts on this matter would be to be able to extend to more than one class at least in the modules directory.
that way all functions can be called within the module direction for more flexability & less coding LOL

 Signature 

Filter Search 2.1 Enterprise Edition Now Available

Available Soon
Filter Search 2.1 Lite Edition

Follow us on twitter

 
offline
Posted: 20 February 2009 11:40 AM   [ Ignore ]   [ # 2 ]
Apprentice
RankRank

Messages :

  • total: 31
  • last 7 days: 0
Joined: 2008-12-26

Thanks for this module, it was just what I needed.

 
offline
Posted: 07 April 2009 05:19 PM   [ Ignore ]   [ # 3 ]
Newcomer
Rank

Messages :

  • total: 1
  • last 7 days: 0
Joined: 2009-04-06

Hello and thanks for the module.
I tried to modify it to show products from 5 choosen categories instead of only 1, but I didn’t succeed.
I also need to show on the top of each product category the category name and his image.
If anyone interested in developing this modification? (it’s a payed work, of course)
Thank you!

 
offline
Posted: 08 April 2009 06:15 PM   [ Ignore ]   [ # 4 ]
Senior Member
RankRankRank
Avatar

Messages :

  • total: 341
  • last 7 days: 14
Joined: 2008-11-12

i am not worked that. missing css file or other problems. i am installes and not seeing smooth preview..

please a resolve. thx

 
offline
Posted: 09 April 2009 12:06 AM   [ Ignore ]   [ # 5 ]
Regular
RankRank

Messages :

  • total: 83
  • last 7 days: 0
Joined: 2009-03-26

All boxes are not set right, they are all over the place.

 
offline
Posted: 09 April 2009 04:15 AM   [ Ignore ]   [ # 6 ]
Senior Member
RankRankRank

Messages :

  • total: 453
  • last 7 days: 0
Joined: 2009-03-14

can i see an example of this on someone’s site?

 Signature 

PetsRight.com
http://www.petsright.com
http://www.twitter.com/petsright

My Interview In Practical Ecommerce Magazine
http://www.practicalecommerce.com/articles/747-Shopping-Carts-The-Umpteenth-Time-s-The-Charm

 
offline
Posted: 23 April 2009 03:52 AM   [ Ignore ]   [ # 7 ]
Beginner
Rank

Messages :

  • total: 6
  • last 7 days: 0
Joined: 2009-04-05

Bonjour et merci pour cette contribution
Mais avec la version 1.1
Rien n‘était aligné et il y avait des oucis d’affichage
J’ai donc modifié le TPL de cette façon est maintenant c’est parfait :
Voici également les sources en fichier joint

<!-- MODULE homeproducts -->
<
div id="featured-products_block_center" class="block products_block">
    <
h4>{l s='featured products' mod='homeproducts'}</h4>
    
{if isset($products) AND $products}
        
<div class="block_content">
            
{assign var='liHeight' value=360}
            {assign 
var='nbItemsPerLine' value=4}
            {assign 
var='nbLi' value=$products|@count}
            {assign 
var='nbLines' value=$nbLi/$nbItemsPerLine|ceil}
            {assign 
var='ulHeight' value=$nbLines*$liHeight}
            
<ul style="height:{$ulHeight}px;">
            
{foreach from=$products item=product name=homeproducts}
                {assign 
var='productLink' value=$link->getProductLink($product.id_product$product.link_rewrite$product.category)}
                
<li class="ajax_block_product {if $smarty.foreach.homeproducts.first}first_item{elseif $smarty.foreach.homeproducts.last}last_item{else}item{/if} {if $smarty.foreach.homeproducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1}first_item_of_line{/if} {if $smarty.foreach.homeproducts.iteration > ($smarty.foreach.homeproducts.total - ($smarty.foreach.homeproducts.total % $nbItemsPerLine))}last_line{/if}">
                    <
h5><a href="{$productLink}" title="{$product.name|escape:htmlall:'UTF-8'|truncate:35}">{$product.name|escape:htmlall:'UTF-8'|truncate:35}</a></h5>
                    <
class="product_desc"><a href="{$productLink}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags:htmlall:'UTF-8'|truncate:130}</a></p>
                    <
a href="{$productLink}" title="{$product.legend|escape:htmlall:'UTF-8'}" class="product_image"><img src="{$img_prod_dir}{$product.id_image}-home.jpg" alt="{$product.legend|escape:htmlall:'UTF-8'}" height="129" width="129"></a>
                    <
p>
                        <
span class="price">{displayWtPrice p=$product.price}</span>
                        <
class="button" href="{$productLink}" title="{l s='View' mod='homeproducts'}">{l s='View' mod='homeproducts'}</a>
                        
{if ($product.quantity OR $product.allow_oosp) AND $product.customizable != 2}
                        
<class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$base_dir}cart.php?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homeproducts'}">{l s='Add to cart' mod='homeproducts'}</a>
                        
{else}
                        
<span class="exclusive">{l s='Add to cart' mod='homeproducts'}</span>
                        
{/if}
                    
</p>
                </
li>
            
{/foreach}
            
</ul>
        </
div>
    
{else}
        
<p>{l s='No featured products' mod='homeproducts'}</p>
    
{/if}
</div>
<!-- /
MODULE homeproducts -->

File Attachments
homeproducts.zip  (File Size: 7KB - Downloads: 512)
 Signature 

------------------------------------------------------------------
http://www.chic-lingerie.fr - http://www.chic-sextoys.com
------------------------------------------------------------------
Votre Boutique CHIC-LINGERIE

Votre Boutique SEXTOYS

 
offline
Posted: 10 July 2009 01:53 PM   [ Ignore ]   [ # 8 ]
Club Member
RankRankRank

Messages :

  • total: 194
  • last 7 days: 1
Joined: 2009-06-04

Hello

Problème avec ce module sous IE6 (produits partent en vrac), quelqu’un a géré une solution ?

 Signature 

http://www.autourdumonde.biz
V1.3.1 / 7012 produits en ligne

 
offline
Posted: 16 July 2009 04:55 PM   [ Ignore ]   [ # 9 ]
Apprentice
RankRank

Messages :

  • total: 27
  • last 7 days: 0
Joined: 2009-07-16

Bonjour, j’aimerais savoir si il est possible d’ajouter plusieures catégories dans le BO

Car le module fonctionne bien mais pour une seule catégories.
J’aimerais que les produits phares soient aleétoires pour l’ensemble des produits en fait

merci
seb

 Signature 

http://www.aqua-occaz.be

 
prestateam online
Posted: 16 July 2009 06:16 PM   [ Ignore ]   [ # 10 ]
PrestaTeam

Avatar


Thanks to who have reported French speaking in this forum. Unfortunately, I can’t do anything because this is an old topic that has been initiated in english and french.
In the futur, this kind of topic will have to be posted in separated forums, in the corresponding language, to avoid “spanfrenglish” topics…

Thanks.

 Signature 

Patric CodronCommunity Manager | Manager de CommunautéPrestaShop

Everyone MUST know and comply with the PrestaShop.com forum rules smile
Chacun DOIT connaître et respecter les règles du forum PrestaShop.com smile

 
offline
Posted: 09 September 2009 11:19 AM   [ Ignore ]   [ # 11 ]
Newcomer
Rank

Messages :

  • total: 2
  • last 7 days: 0
Joined: 2009-09-09

Hello,

I would like use this module to show one single product on the home page, but I would like to show the complete description of my product (like on the page product.tpl). Anybody have any idea ?

 
offline
Posted: 10 September 2009 12:05 AM   [ Ignore ]   [ # 12 ]
Club Member
RankRankRank

Messages :

  • total: 117
  • last 7 days: 0
Joined: 2009-03-10

I think that is possible, look to integrate the <div class=“sheets align_justify” id=“more_info_sheets”> <!— full description —>

And somehow to place it in a table. I think

And for the creator. If you can make like a featured producs, but to show random products every time

 
offline
Posted: 11 November 2009 12:17 PM   [ Ignore ]   [ # 13 ]
Newcomer
Rank

Messages :

  • total: 4
  • last 7 days: 0
Joined: 2009-11-10

Bonjour ,

Comment duppliquer ce module svp ? J’ai bien trouvé une info là —> http://www.prestashop.com/forums/viewthread/29214/discussion_generale/dedoubler_module_resolu

Mais j’ai suivi la démarche et lorsque je modifie la catégories et le nombre pour un module, l’autre se met automatiquement à jour avec les mêmes infos (mêmes produits) …

Sry, in english :

How i can duplicate this module ?
Because i tried but when i change values in one module the other change too and i have the same products and the same category …

 
offline
Posted: 24 December 2009 02:03 AM   [ Ignore ]   [ # 14 ]
Apprentice
RankRank

Messages :

  • total: 39
  • last 7 days: 7
Joined: 2009-11-06

I would like to make the words Featured category a clickable link to the featured category but it doesn’t work, when I click on it it just comes back to the home page. this is the code in the tpl, can someone point out my error? thank you.

[url=”“ title=”{l

s=‘Featured Category’ mod=‘homeproducts’}”]Featured

Category [VIEW ALL][/url]

</br>

 
offline
Posted: 25 December 2009 07:06 PM   [ Ignore ]   [ # 15 ]
Club Member
RankRankRank

Messages :

  • total: 108
  • last 7 days: 0
Joined: 2008-12-02

Is it possible to use this module with the New products? So it only shows the New Pproducts on the homepage.

 
 
1 of 2
1
Fast Reply
New Topic