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

Advertising blocks?

26 replies to this topic
#1
SettleR

    PrestaShop Newbie

  • Members
  • Pip
  • 14 posts
How do i change the advertising banners on my shop?
Right now it is the computer: http://settlernetwork.be/shop/

I want to add some other banners there instead

#2
PShopExpert

    PrestaShop Addict

  • Members
  • PipPipPip
  • 669 posts
This ad block is very basic.
You can change the image module/blockadvertising/advertising.jpg for this block there is no media manager and no ad zone manager...
This will change all banners to this image.
To add more banners you need to copy the module, rename it everywhere, install it and place it to another position.
Essayez Store Commander pour Prestashop et disposez enfin de vos week-ends !
Want spare time, lovely week-ends? Then request a demo of Store Commander for Prestashop!

#3
SettleR

    PrestaShop Newbie

  • Members
  • Pip
  • 14 posts
how do i change the adress/url for the banner?

#4
PShopExpert

    PrestaShop Addict

  • Members
  • PipPipPip
  • 669 posts
In /modules/blockadvertising/blockadvertising.php

Change:

$smarty->assign('image', './modules/'.$this->name.'/advertising.jpg');

Essayez Store Commander pour Prestashop et disposez enfin de vos week-ends !
Want spare time, lovely week-ends? Then request a demo of Store Commander for Prestashop!

#5
SettleR

    PrestaShop Newbie

  • Members
  • Pip
  • 14 posts

From 1228930493:

In /modules/blockadvertising/blockadvertising.php

Change:

$smarty->assign('image', './modules/'.$this->name.'/advertising.jpg');


no i mean, the picture is now linked to prestashop.com How do i change that?

#6
disarci

    PrestaShop Fanatic

  • Moderators
  • 2041 posts

#7
jhnstcks

    PrestaShop Fanatic

  • Moderators
  • 1913 posts
You could download this advertising module or this addstuff module, they both supply alot better advertising opportunities than the basic module.
Helpful hints and tips to Empower your Prestashop site - Join us on Facebook and get involved, tell us the things that help you.
If you think someone's answer helped, please give him/her a Positive Reputation vote by liking their post.
E-commerce hosting from Scotserve, fast, reliable and affordable.

#8
vecvagars

    PrestaShop Newbie

  • Members
  • Pip
  • 15 posts
[quote author="disarci" date="1228933480"]In the tpl file in the module: blockadvertising.tpl

[code]<!-- MODULE Block advertising -->
gl all

#9
vecvagars

    PrestaShop Newbie

  • Members
  • Pip
  • 15 posts
how do I put more adds? what I need to doble or what? and how can I take off one side? dont need two sides...

thx a lot
gl all

#10
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
The advertising block has been updated in PrestaShop v1.3, so the advice in this thread is no longer relevant. In PrestaShop v1.3, you can go to Modules > Block advertising v0.1 (in the Blocks section) > Configure to change the image and link. To remove the advertising block from a position, go to Modules > Positions and click the X next to the module's name under the "Left column blocks" or "Right column blocks" section, depending on which column you want to remove it from.

The module still only allows you to have one ad though. To put more than one ad, you'll need to copy the module and give it a different name. For example, copy and paste the blockadvertising directory to blockadvertising2, then rename blockadvertising.php to blockadvertising2.php, change "class BlockAdvertising" on line 3 to "class BlockAdvertising2", change line 11 from:


$this->name = 'blockadvertising';


to:


$this->name = 'blockadvertising2';


and change line 17 from:


$this->displayName = $this->l('Block advertising');


to:


$this->displayName = $this->l('Block advertising 2');


You can do this again with different numbers (like 3 instead of 2) if you need more ads.

EDIT: If you are using PrestaShop v1.3.1, you will also need to replace 'BLOCKADVERT_LINK' in modules/blockadvertising2/blockadvertising2.php with 'BLOCKADVERT2_LINK'.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#11
vecvagars

    PrestaShop Newbie

  • Members
  • Pip
  • 15 posts
Hey thx m8 for you time to help
gl all

#12
andybr1ggs

    PrestaShop Apprentice

  • Members
  • PipPip
  • 150 posts
When I change the line as descibed above and log into BO and check modules they dont load (see pic)

when i delete the module thats been renamed they (modules) load fine ??

Thanks,

Andy

Attached Files



#13
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
You must have made a mistake when renaming the files. Edit config/config.inc.php and temporarily change 'display_errors' from 'off' to 'on' to get an error message instead of a blank tab, which should help you identify the problem.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#14
safa

    PrestaShop Addict

  • Moderators
  • 968 posts
example;
The modules were added to replicate;

regards

Attached Files


Posted Image

Sanal Pos Modülü İçin tıklayınız.(Tüm Bankalar Api ve 3d Secure)

#15
andybr1ggs

    PrestaShop Apprentice

  • Members
  • PipPip
  • 150 posts

From 1279839757:

You must have made a mistake when renaming the files. Edit config/config.inc.php and temporarily change 'display_errors' from 'off' to 'on' to get an error message instead of a blank tab, which should help you identify the problem.


Thanks




From 1279841008:

example;
The modules were added to replicate;

regards


Thanks

#16
Max B

    PrestaShop Newbie

  • Members
  • Pip
  • 8 posts
Hi rocky,

I tried your method and it works - THANKS!!!

However the block replicates on both columns (left and right). I want my advertising to either be on JUST the left, or JUST the right.

Please take a look to see what I mean:
http://www.widesoccercleats.net/

Thanks for the support rocky!

Max

#17
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
Go to Modules > Positions and click the X button next to advertising block in the "Left column blocks" or "Right column blocks" sections, depending on which column you want to delete the adveritising block from.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#18
Max B

    PrestaShop Newbie

  • Members
  • Pip
  • 8 posts

From 1283163563:

Go to Modules > Positions and click the X button next to advertising block in the "Left column blocks" or "Right column blocks" sections, depending on which column you want to delete the adveritising block from.


Beautiful! Thank you very much. I'm so excited about my new store design!!!

Thanks!!!!!

#19
Dapur Coklat Holly

    PrestaShop Newbie

  • Members
  • Pip
  • 11 posts
Again, when I got problems, I can get the solutions here.
Although Prestashop has provided the ads blocks, I never noticed it before until my friend asks me can i do it.
Please visit toko coklat Holly Choco :)

#20
Ash.Krish

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 posts
hi ya.

i cant able to view my advertising block after enabling it in modules....

pl help me out, where i made the mistake.....

cheers
Krish:-)