PrestaShop Forums: [module] homeproducts - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


[module] homeproducts


[module] homeproducts

#1 illutic

    PrestaShop Apprentice

  • 14 Jul 2008
  • Members
  • PipPip
  • 31 posts
  • Location:The Netherlands

Posted 18 July 2008 - 11:39 AM

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 File(s)



#2 ejectcore

    PrestaShop Addict

  • 08 Apr 2008
  • Members
  • PipPipPip
  • 827 posts
  • Location:UK

Posted 18 July 2008 - 09:32 PM

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

  • 26 Dec 2008
  • Members
  • Pip
  • 20 posts
  • Location:NC USA

Posted 20 February 2009 - 09:40 AM

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

#4 agatha

    PrestaShop Newbie

  • 06 Apr 2009
  • Members
  • Pip
  • 1 posts

Posted 07 April 2009 - 02:19 PM

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

  • 12 Nov 2008
  • Members
  • PipPipPip
  • 544 posts

Posted 08 April 2009 - 03:15 PM

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

  • 26 Mar 2009
  • Members
  • PipPip
  • 70 posts

Posted 08 April 2009 - 09:06 PM

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

#7 Hoodgrown

    PrestaShop Apprentice

  • 14 Mar 2009
  • Members
  • PipPip
  • 370 posts

Posted 09 April 2009 - 01:15 AM

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

  • 05 Apr 2009
  • Members
  • Pip
  • 6 posts

Posted 23 April 2009 - 12:52 AM

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 File(s)


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

Votre Boutique SEXTOYS

#9 LeGhe

    PrestaShop Apprentice

  • 03 Jun 2009
  • Members
  • PipPip
  • 215 posts
  • Location:LILLE

Posted 10 July 2009 - 10:53 AM

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

  • 16 Jul 2009
  • Members
  • PipPip
  • 30 posts

Posted 16 July 2009 - 01:55 PM

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

  • 17 Jun 2008
  • PrestaTeam
  • 8894 posts

Posted 16 July 2009 - 03:16 PM

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

  • 09 Sep 2009
  • Members
  • Pip
  • 2 posts

Posted 09 September 2009 - 08:19 AM

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

  • 10 Mar 2009
  • Members
  • PipPip
  • 182 posts

Posted 09 September 2009 - 09:05 PM

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

  • 10 Nov 2009
  • Members
  • Pip
  • 3 posts

Posted 11 November 2009 - 10:17 AM

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

  • 05 Nov 2009
  • Members
  • PipPip
  • 81 posts

Posted 24 December 2009 - 12:03 AM

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

  • 02 Dec 2008
  • Members
  • PipPip
  • 107 posts
  • Location:Germany

Posted 25 December 2009 - 05:06 PM

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

  • 17 Jan 2010
  • Members
  • Pip
  • 15 posts

Posted 26 February 2010 - 06:48 PM

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

  • 25 Nov 2009
  • Members
  • Pip
  • 18 posts

Posted 08 April 2010 - 01:04 PM

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

  • 05 Feb 2010
  • Members
  • PipPip
  • 480 posts

Posted 24 July 2010 - 10:49 AM

very helpful thankyou

#20 noesac

    PrestaShop Apprentice

  • 05 Feb 2010
  • Members
  • PipPip
  • 480 posts

Posted 24 July 2010 - 11:06 AM

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?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users