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.

Vous parlez français ? par ici !
[SOLVED] How to change settings for Block Advertising?
#1 Guest_Paradox_*
Posted 02 February 2010 - 03:28 PM
How do you also add more than one with different settings?
Thanks
#2 Guest__*
Posted 03 February 2010 - 08:28 AM
#3 Guest__*
Posted 03 February 2010 - 01:46 PM
Thanks a lot in advance!
#4 Guest__*
Posted 03 February 2010 - 01:54 PM
class BlockAdvertising extends Module
to:
class BlockAdvertising2 extends Module
and:
$this->name = 'blockadvertising';
to:
$this->name = 'blockadvertising2';
You can do the same with number 3, for example, if you need three advertising modules.
#5 Guest__*
Posted 03 February 2010 - 02:58 PM
#6 Guest__*
Posted 07 March 2010 - 08:57 AM
From 1265201690:
class BlockAdvertising extends Module
to:
class BlockAdvertising2 extends Module
and:
$this->name = 'blockadvertising';
to:
$this->name = 'blockadvertising2';
You can do the same with number 3, for example, if you need three advertising modules.
I tried to follow the process above but there were no new advertising block appear. Am i missing something?
#7 Guest__*
Posted 07 March 2010 - 10:17 AM
Attached File(s)
blockadvertising2.zip (11bytes)
Number of downloads: 368
#8 Guest__*
Posted 08 March 2010 - 05:39 AM
From 1267953469:
The module you updated,i uploaded the blockadvertising2 folder and it appeared:
"No template found" in my online shop.
What could be wrong?
Thanks
Regards,
Eileen
#9 Guest__*
Posted 08 March 2010 - 05:53 AM
#10 Guest__*
Posted 11 March 2010 - 03:19 AM
#11 Guest__*
Posted 01 April 2010 - 12:02 AM
#12 Guest__*
Posted 01 April 2010 - 12:31 AM
#13 Guest__*
Posted 02 June 2010 - 09:56 AM
I would also rename:
$this->displayName = $this->l('Block advertising');
to:
$this->displayName = $this->l('Block advertising2');
So you can distinguish them in the BO
Regards.
#14 Guest__*
Posted 09 July 2010 - 07:49 PM
I followed the workaround and now I have four different folders:
blockadvertising, blockadvertising2, blockadvertising3, blockadvertising4
so far so good.
All four ads have different pictures but the links are all the same. I cant find a reason why all four ads link to the same site.
What am i doing wrong?
Can anyone help me.
If you need more info, just tell me.
Thanks in advance.
I included blockadvertising"1" and blockadvertising3 (zip folders)
Attached File(s)
blockadvertising3.zip (16bytes)
Number of downloads: 113
blockadvertising.zip (24bytes)
Number of downloads: 96
#15 Guest__*
Posted 10 July 2010 - 01:05 AM
#16 Guest__*
Posted 10 July 2010 - 07:10 AM
It's so obvious.
It works fine now, thanks thanks thanks!
#17 Guest__*
Posted 05 August 2010 - 03:30 AM
I have followed the workaround and made blockadvertising02.php. I got the new module kinda working and have it show an image. But same as eileensiow, blockadvertising02 is linked to the same website as the original blockadvertising module, even after I have changed the BLOCKADVERT_LINK setting to BLOCKADVERT02_LINK as rocky instructed. And I checked both of the files which eileensiow and rocky shared, they are quite a bit different from mine, even though mine states as version =0.1 as well.
I have attached my file here. Would someone please give me some hint here. Thanks much!
Attached File(s)
blockadvertising02.php (4bytes)
Number of downloads: 123
#18 Guest__*
Posted 05 August 2010 - 05:08 AM
The way rocky provided works perfect! Cheers!
#19 Guest__*
Posted 14 August 2010 - 01:14 PM
#20 Guest__*
Posted 15 August 2010 - 12:55 PM
Have you put the cloned module - blockadvertising02 - in your module file? If you do, you should be able to find it in the module page of your admin section.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











