Jump to content
AMS777

[Free Module] Block Product Promotion

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

blockproductpromotion 0.0.zip

blockproductpromotion 0.1.zip

blockproductpromotion 0.2.zip

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Hello!

Great module!

I use it to put the monthly promotion in this box. I want to add a red text "PROMOTION OF THE MONTH" over the box. But where and how should I add it?

I modified blockproductpromotion.tpl - nothing changes :wacko:

Edited by newage

Share this post


Link to post
Share on other sites

Version for 1.5 if some one needs.

 

If no image, just change in blockproductpromotion.tpl:

 

 

tm_home_default

 

 

On your image type name.

 

Btw i dont test how it works with specific product price (discounts).

 

blockproductpromotion.zip

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×