In an ongoing effort to keep all our modules up to date, a new version of of advertising module has been created to address differences in the admin tab architecture in PrestaShop 1.1. The older version was displaying view and edit links against each of the adverts, rather than edit and delete links.
An updated version of the PrestaShop Random adverts and Callouts module is now available.
Comments
18 responses to “Adverts and Callouts module updated to version 1.2”
Adverts and Callouts module is very useful but will be more if there’s an option to display more than 1 advert per column. For example if you have 10 adverts you can display 5 only and those adverts are displayed randomly so you can display actually all of them.
Fatal error: Cannot redeclare class adverts in /var/www/vhosts/linksphere.co.uk/httpdocs/modules/adverts2/adverts2.php on line 175
I’ve tried trying to change all variables and classes to have 2 on the end of them, and the image directories are the same but with a2 for example. Is there anychance you could quickly go through the code and change it to fix it? I’m scared about making some major db cockup with the images!
The reason i’d like to run two seperate ads is so I can use one in the left column running vendor ads along side the right column ad module which will be displaying featured products/ranges.
Any help would be appreciated!
You could certainly clone the module part of it, if you just wanted a second “pick” from the same collection. In that case it’s the same procedure as you would use for cloning any module.
To create a whole new set of adverts would involve cloning the advert class (in classes), the admin front end (in admin tabs) and the module – which would be a bit more work.
Essentially the configuration variables and the actual classes themselves are the only things you need to have unique (in the case of the advert class this includes the table), as well as a new directory for the images to live in (as they would be named similarly by the PrestaShop upload code).
I’ve managed to get it working by changing the module to look for gifs rather than jpgs and then manually uploaded the gif files. Probably not the best way but it works! Is there anyway I can install a second advert and callout module to display a complete seperate listing of ads? I imagine a new table will have to be created with a new name etc but which are the vitals I should edit?
PrestaShop only supports jpeg files for their built-in image handling, so there isn’t really an easy way that I can think of. I guess you could rename your .gif to .jpg and replace thefile after upload though….. worth a try 😉
How can I change one of the jpgs to an animated gif? I looked in the db but only see advert id’s… no links to actual files :).
Having the same problem that ‘Osman’ had. I have installed everything manually inside the folder but still getting the message ‘Tab does not exist’. AHH! Help!
Thanks, I found it.
It’s in Modules -> positions and you can transplant them. It’s a standard PrestaShop bit of functionality.
I got it running fine, but I need to move it to the left side instead of the default right-side. I read about Hooks that allows the moving of the block to different location but I could not see it in the Adverts menu!
How do I move it to the left-side?
Yes, you are right. I had to copy all the files, manually, to the appropriate folder.
Now I need to figure out how to use it.
Thanks
it sounds like the files aren’t in their correct folders! the contents of the archive mimic the structure of the install, so the files in the archive should go in the corresponding folders of your store. It would appear that it can’t find the classes and tab in the right place.
Now I am passed step # 3 and got the module installed, but when I go to the Advets tab it shows “Tab does not exist ”
Also the right side blocks disappear when the Adverts module is activated!
Help please.
It works, thanks for the help.
Osman,
There should be an “adverts” folder under “modules” in the archive. This folder should go in the modules folder of your store.
I got an Adverts Tab, but when I went to step 3.(Again, in the Back Office, go to the Modules tab and click install for the “Adverts” module) I did not see the Adevrts module to install. I have copied the advert folder (the copied folder is advert and not adverts) and its sub-folders and files to the root.
What do you think went wrong?
There are only “hooks” coded for right and left columns in this version (the module has to explicitly support them sadly, despite the impression the Back Office gives to the contrary!).
I’ll add a few more hooks and update to v1.3 in the very near future (today, if I can squeeze it in).
Hi, I am trying to add this into the ‘header’ block but although it tells me it successfully placed it in the hook it is still not showing, it only shows when I tell it to be left column or right column. Please advise? Many thanks, ChurchPath.