Vote to Improve PrestaShop

PrestaShop Forum: Build a free online shop. Count on the Community!

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

PrestaShop Forum: Build a free online shop. Count on the Community!

Jump to content

 
Photo

[Free Module] Block Product Promotion

product promotion promotion free module

  • Please log in to reply
34 replies to this topic
AMS777

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 posts

Posted 20 September 2011 - 07:34 PM

Hi there,

I've done a simple module to display a block with a product.

The product id is set in the configuration, and the name, picture and short description are displayed as links in the block.

That's it :)

----------------------------------------------------

Version 0.1: Tags stripped in the short description as pointed out by jolvil in post #3.

Version 0.2: Removed the escape:html:'UTF-8' function in blockproductpromotion.tpl for description_short because it produced errors with special characters. Product name truncated to 22 instead of 14.

Attached Files



Takio

    PrestaShop Apprentice

  • Members
  • PipPip
  • 134 posts

Posted 23 September 2011 - 02:05 PM

Hello

Already 25 downloads, and not a single thank you to AMS777?

Not fair guys... not fair at all!

Bye
Takio
Posted Image
Tout pour retrouver votre ligne: Santé & Minceur
... ou pour que votre épouse retrouve la sienne ;-)

jolvil

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2852 posts

Posted 23 September 2011 - 05:20 PM

They are some <p> in description

so I changed

$obj->description_short = $product['description_short'];

to

$obj->description_short = strip_tags($product['description_short']);

in blockproductpromotion.php
PS 1.3.7.0

Pshopic

    PrestaShop Apprentice

  • Members
  • PipPip
  • 369 posts

Posted 24 September 2011 - 10:48 AM

Thanks for sharing this useful module. We will use and advice our customers to use your module. Hope you will release another modules.
Posted Image

AMS777

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 posts

Posted 24 September 2011 - 05:50 PM

Thanks for the comments, guys :)

jolvil, I've updated the module with your correction.

Brotherbears

    PrestaShop Newbie

  • Members
  • Pip
  • 9 posts

Posted 12 October 2011 - 03:33 PM

Thank you so much :)

SolSis

    PrestaShop Newbie

  • Members
  • Pip
  • 18 posts

Posted 13 October 2011 - 09:20 AM

HI! Can we have a preview of this module many tahnks :D

I will try it!

AMS777

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 posts

Posted 13 October 2011 - 01:42 PM

Thanks for using this module :)

You can see this module on my website. Here you have a snapshot:

Attached File  BlockProductPromotion.jpg   164.76KB   1182 downloads

CraigMeade

    PrestaShop Apprentice

  • Members
  • PipPip
  • 126 posts

Posted 15 October 2011 - 09:45 AM

Good work AMS777!

sdracer77

    PrestaShop Newbie

  • Members
  • Pip
  • 15 posts

Posted 15 October 2011 - 02:47 PM

Great module AMS777 - will look into adding product of the day title above the display

cerberus22

    PrestaShop Apprentice

  • Members
  • PipPip
  • 279 posts

Posted 30 October 2011 - 08:16 PM

Hi AMS777,

Thank you.
Using Prestashop V1.1

AH

    PrestaShop Newbie

  • Members
  • Pip
  • 1 posts

Posted 03 November 2011 - 10:30 PM

thank you for this great module, will there a new one coming soon?

AMS777

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 posts

Posted 05 November 2011 - 03:54 PM

Thanks to all :)

will there a new one coming soon?


Not for now, sorry.

lisajef

    PrestaShop Apprentice

  • Members
  • PipPip
  • 61 posts

Posted 16 November 2011 - 07:30 PM

Any chance you can tell me how to get the box around the product?
and centralise it in the column?
Thanks in advance!
p.s. great module!

h4mm1e

    PrestaShop Apprentice

  • Members
  • PipPip
  • 37 posts

Posted 17 November 2011 - 01:42 PM

Would it be possible to make this module scroll through a couple of different products every few seconds?

AMS777

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 posts

Posted 17 November 2011 - 05:54 PM

Any chance you can tell me how to get the box around the product?
and centralise it in the column?
Thanks in advance!
p.s. great module!


Thanks!

The box? Do you mean $('.product_promotion') ?

Centralise? Do you mean the image? With text-align...

AMS777

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 posts

Posted 17 November 2011 - 06:00 PM

Would it be possible to make this module scroll through a couple of different products every few seconds?


Yes. You'll have to develop an ajax functionality that runs the same code of hookRightColumn(), which renders the blockproductpromotion.tpl template.

lisajef

    PrestaShop Apprentice

  • Members
  • PipPip
  • 61 posts

Posted 17 November 2011 - 06:01 PM

yep!

AMS777

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 posts

Posted 17 November 2011 - 06:02 PM

Would it be possible to make this module scroll through a couple of different products every few seconds?


Yes. You'll have to develop an ajax functionality that runs the same code of hookRightColumn(), which renders the blockproductpromotion.tpl template.

devmtl

    PrestaShop Newbie

  • Members
  • Pip
  • 14 posts

Posted 18 November 2011 - 03:51 PM

Thanks AMS777 for the module.

Maybe you guys had an information, I'm looking for a module or an help to create it, which allowed to show different sidebar content depending on the category page you visit.

Any idea ?
Thanks.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users