[Free Module] Block Product Promotion - Free Modules & Themes - PrestaShop

Jump to content

Photo

[Free Module] Block Product Promotion

product promotion promotion free module

#1

Posted 20 September 2011 - 07:34 PM

AMS777

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 Active Posts
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



#2

Posted 23 September 2011 - 02:05 PM

Takio

    PrestaShop Apprentice

  • Members
  • PipPip
  • 140 Active Posts
Hello

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

Not fair guys... not fair at all!

Bye
Takio

prestashop_signature2_310.jpg
Tout pour retrouver votre ligne: Santé & Minceur
... ou pour que votre épouse retrouve la sienne ;-)


#3

Posted 23 September 2011 - 05:20 PM

jolvil

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2896 Active Posts
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.6.14


#4

Posted 24 September 2011 - 10:48 AM

Pshopic

    PrestaShop Apprentice

  • Members
  • PipPip
  • 369 Active Posts
Thanks for sharing this useful module. We will use and advice our customers to use your module. Hope you will release another modules.
Imagen enviada

#5

Posted 24 September 2011 - 05:50 PM

AMS777

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 Active Posts
Thanks for the comments, guys :)

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

#6

Posted 12 October 2011 - 03:33 PM

Brotherbears

    PrestaShop Newbie

  • Members
  • Pip
  • 9 Active Posts
Thank you so much :)

#7

Posted 13 October 2011 - 09:20 AM

SolSis

    PrestaShop Newbie

  • Members
  • Pip
  • 18 Active Posts
HI! Can we have a preview of this module many tahnks :D

I will try it!

#8

Posted 13 October 2011 - 01:42 PM

AMS777

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 Active Posts
Thanks for using this module :)

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

Attached File  BlockProductPromotion.jpg   164.76KB   1189 downloads

#9

Posted 15 October 2011 - 09:45 AM

CraigMeade

    PrestaShop Apprentice

  • Members
  • PipPip
  • 126 Active Posts
Good work AMS777!

#10

Posted 15 October 2011 - 02:47 PM

sdracer77

    PrestaShop Newbie

  • Members
  • Pip
  • 15 Active Posts
Great module AMS777 - will look into adding product of the day title above the display

#11

Posted 30 October 2011 - 08:16 PM

cerberus22

    PrestaShop Apprentice

  • Members
  • PipPip
  • 279 Active Posts
Hi AMS777,

Thank you.
Using Prestashop V1.1

#12
AH

Posted 03 November 2011 - 10:30 PM

AH

    PrestaShop Newbie

  • Members
  • Pip
  • 1 Active Posts
thank you for this great module, will there a new one coming soon?

#13

Posted 05 November 2011 - 03:54 PM

AMS777

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 Active Posts
Thanks to all :)

will there a new one coming soon?


Not for now, sorry.

#14

Posted 16 November 2011 - 07:30 PM

lisajef

    PrestaShop Apprentice

  • Members
  • PipPip
  • 61 Active Posts
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!

#15

Posted 17 November 2011 - 01:42 PM

h4mm1e

    PrestaShop Apprentice

  • Members
  • PipPip
  • 37 Active Posts
Would it be possible to make this module scroll through a couple of different products every few seconds?

#16

Posted 17 November 2011 - 05:54 PM

AMS777

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 Active Posts

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

#17

Posted 17 November 2011 - 06:00 PM

AMS777

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 Active Posts

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.

#18

Posted 17 November 2011 - 06:01 PM

lisajef

    PrestaShop Apprentice

  • Members
  • PipPip
  • 61 Active Posts
yep!

#19

Posted 17 November 2011 - 06:02 PM

AMS777

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 Active Posts

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.

#20

Posted 18 November 2011 - 03:51 PM

devmtl

    PrestaShop Newbie

  • Members
  • Pip
  • 14 Active Posts
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

Cookies help us deliver our services. By using our services, you agree to use our cookies.     Learn more