PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

[module] homeproducts

32 replies to this topic
#1
illutic

    PrestaShop Apprentice

  • Members
  • PipPip
  • 31 posts
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 ;)

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 ;)

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é ;)

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 ;)

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

Attached Files



#2
ejectcore

    PrestaShop Addict

  • Members
  • PipPipPip
  • 827 posts
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 >:(
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 ;-)

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:
Filter Search 2.1 Enterprise Edition Now Available

Available Soon
Filter Search 2.1 Lite Edition

Follow us on twitter

#3
kenmcneill

    PrestaShop Newbie

  • Members
  • Pip
  • 20 posts
Thanks for this module, it was just what I needed.

#4
agatha

    PrestaShop Newbie

  • Members
  • Pip
  • 1 posts
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!

#5
Presta-TR

    PrestaShop Addict

  • Members
  • PipPipPip
  • 544 posts
i am not worked that. missing css file or other problems. i am installes and not seeing smooth preview..

please a resolve. thx

#6
ukbill69

    PrestaShop Apprentice

  • Members
  • PipPip
  • 70 posts
All boxes are not set right, they are all over the place.

#7
Hoodgrown

    PrestaShop Apprentice

  • Members
  • PipPip
  • 370 posts
can i see an example of this on someone's site?
PetsRight.com
http://www.petsright.com
http://www.twitter.com/petsright

My Interview In Practical Ecommerce Magazine
http://www.practical...ime-s-The-Charm

#8
alexguerrin

    PrestaShop Newbie

  • Members
  • Pip
  • 6 posts
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 -->

<!-- /MODULE homeproducts -->

Attached Files


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

Votre Boutique SEXTOYS

#9
LeGhe

    PrestaShop Apprentice

  • Members
  • PipPip
  • 231 posts
Hello

Problème avec ce module sous IE6 (produits partent en vrac), quelqu'un a géré une solution ?
www.autourdumonde.biz
V1.4.6.2 / 10.000 produits en ligne
V1.4.6.2 en local

#10
aqua-occaz

    PrestaShop Apprentice

  • Members
  • PipPip
  • 30 posts
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
www.aqua-occaz.be

#11
Patric Codron

    PrestaShop Superstar

  • PrestaTeam
  • 9152 posts
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.
Patric CodronCommunity Manager | Manager de CommunautéPrestaShop

Posted Image Merci de respecter les règles du forum PrestaShop.com :)
Posted Image Please comply with the PrestaShop.com forum rules :)

#12
jj67

    PrestaShop Newbie

  • Members
  • Pip
  • 2 posts
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 ?

#13
vietnam

    PrestaShop Apprentice

  • Members
  • PipPip
  • 192 posts
I think that is possible, look to integrate the

<!-- 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

#14
Elphase

    PrestaShop Newbie

  • Members
  • Pip
  • 3 posts
Bonjour ,

Comment duppliquer ce module svp ? J'ai bien trouvé une info là --> http://www.prestasho...r_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 ...

#15
mel-

    PrestaShop Apprentice

  • Members
  • PipPip
  • 81 posts
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.

Featured

Category [VIEW ALL]




#16
mhu100

    PrestaShop Apprentice

  • Members
  • PipPip
  • 109 posts
Is it possible to use this module with the New products? So it only shows the New Pproducts on the homepage.

#17
Cyprus

    PrestaShop Newbie

  • Members
  • Pip
  • 15 posts
i have installed this module as directed but i get a 'no categories' message. i cannot understand why ! please help ! followed all directions. categories are on left column shown perfectly, module is hooked to home page. what is wrong ! please help us

#18
chicken

    PrestaShop Newbie

  • Members
  • Pip
  • 18 posts
Is there a way to make the module show the MOST RECENTLY ADDED 5 Items.

As far as I can see, its only RANDOM 5 and FIRST 5 ADDED.

#19
noesac

    PrestaShop Apprentice

  • Members
  • PipPip
  • 492 posts
very helpful thankyou

#20
noesac

    PrestaShop Apprentice

  • Members
  • PipPip
  • 492 posts

From 1270728251:

Is there a way to make the module show the MOST RECENTLY ADDED 5 Items.

As far as I can see, its only RANDOM 5 and FIRST 5 ADDED.


Good question!

I ***think*** it might be in here (from the php file):

            $products = $category->getProducts(intval($params['cookie']->id_lang), 1, ($nb ? $nb : 10));


I think you need to replace "1" with the latest product id, and then decrement it.

I could be wrong though, coding is not my strong point...:)

Also I've made the block header into a link to the category itself...however I have hard coded the link. Does anyone know how to reference the original data source ("HOME_PRODUCTS_CATEG"), so that the back office value can be used?