peterp Posted June 9, 2021 Share Posted June 9, 2021 Hi All, I have a customer who is using a Mican skin which has been modified so as to have advertising ad sliding across the top of the logo and currency, language boxes, which has had the advertising pictures hard coded which is what they wanted originally,however now they want to be able to change the pictures that are scrolling. If I could replace the hard coded images selection with the ones that are used in the welcome document this I think would solve the issue and they would be able to maintain the images themselves.They already use the documents selection for special deals they are offering which is different to the on sale column. I hope somebody can help Best Regards, Peterp Link to comment Share on other sites More sharing options...
bsmither Posted June 9, 2021 Share Posted June 9, 2021 The images shown in the HomePage "Welcome" document are, in fact, hard-coded -- entered in the document contents, as opposed to making a selection in admin. So, I would think the images "sliding across the top of the logo and currency, language boxes", being hard-coded, would be found in the "main.php" template. Maybe more info about what you need is in order. Link to comment Share on other sites More sharing options...
peterp Posted June 9, 2021 Author Share Posted June 9, 2021 Hi Brian, What I have managed to do is have ads and supplier logos slide across the top of the homepage above where the logo and currency and language boxes are, and you are right I have hard coded the images in, however what my client wants is for them to have the ability to change them through the admin>documents selection using the welcome document. Unfortunately they have no idea how to code and will not even try. So is there a way that I can get the welcome document to display the images that they enter in the documents selection. They have also added another document which is called specials and this is used to display specials that are special and not just a on sale item and also could be messages such as free delivery of these items etc and as you cannot have this document turned on as well as the welcome document it presents a problem. The web page is www.workgearselect.com.au this will show what I mean. The sliding pictures are not controlled by the admin>document select it is purely hard coded. Hope this helps if not I can send you the admin url which is a live site. Best Regards, peterp Link to comment Share on other sites More sharing options...
bsmither Posted June 9, 2021 Share Posted June 9, 2021 If I recall, and regrettably, SemperFi had some plugins that would have solved this nicely. If how what you now have displayed is satisfactory, one can add a section "Promo Banner" to the Store Settings, Layout tab, to list images to show in the promo slider. If, however, a distinct set of images is to be displayed according to what product or category is currently being viewed, that would require a bit more code. (I already have a plugin, "Additional Product Fields", that might be usable for this.) Link to comment Share on other sites More sharing options...
peterp Posted June 9, 2021 Author Share Posted June 9, 2021 Hi Brian, The adding of a promo banner section sounds like what I'm looking for. As long as the user can easily change the images and the images would appear where they are currently displaying with my hard coded solution. What changes will I need to do so as to achieve this promo banner You help is very much appreciated Best Regards, Peterp Link to comment Share on other sites More sharing options...
bsmither Posted June 10, 2021 Share Posted June 10, 2021 I can have specific instructions in a few hours, but essentially, create three to five text entry fields named promo[]. You can get fancy by adding a FILE upload field, but maybe later. Put the images (be sure they are properly sized!) in a very specific folder (via FTP?). Then the skin will have within the slider's list structure (the path is an example): {foreach $CONFIG.promo as $promo_image} <li><img src="/skins/Mican/images/promo/{$promo_image}"></li> {/foreach} Link to comment Share on other sites More sharing options...
peterp Posted June 10, 2021 Author Share Posted June 10, 2021 Hi Brian, I think I would like to wait for your specific instructions as I'm not confident about how to achieve this. The fancy bit would be a great addition. Thanks for the help Best Regards, Peterp Link to comment Share on other sites More sharing options...
bsmither Posted June 10, 2021 Share Posted June 10, 2021 In the admin skin template settings.index.inc.php, find near line 235: <fieldset> <legend>{$LANG.settings.title_popular_latest}</legend> Above this, add: <fieldset> <legend>Promo Banner Images</legend> {for $i=1 to 5} <div><label for="promo_banner_image_{$i}">Image #{$i} Name</label> <span><input name="config[promo_banner_images][{$i}]" id="promo_banner_image_{$i}" type="text" class="textbox" value="{$CONFIG.promo_banner_images[$i]}"></span> </div> {/for} </fieldset> You say you already have a working slider, so the following is only the list item code: {foreach $CONFIG.promo_banner_images as $promo_image}{if $promo_image ne ""} <li><img src="/skins/foundation/images/examples/{$promo_image}"></li> {/if}{/foreach} You can hard-code the path to the images, or you can plan to enter the complete path to each image in the image text entry fields in admin. You can also plan to locate the banner images in CubeCart's /images/source/ folder -- the established location for the admin "Image FileManager", where the admin can create a /promo/ sub-folder and upload images using the "Image FileManager" Upload tab. Thus, the hard-coded path would be /images/source/promo/. Link to comment Share on other sites More sharing options...
peterp Posted June 16, 2021 Author Share Posted June 16, 2021 Hi Brian, Thanks for the suggestion but what I need is that the user will only enter the image from the image/file/manager and this then will be the images that are displayed via the bxslider. I thought I had he slider working but I don't it does not reference the images that were assigned to the top of the page slider that is because the images have been hard coded into the program by myself. The user is not capable of being able to enter any path names and is not a programmer. So what he wants is the ability to enter just the name of the image and then the slider will be able to show the images as he entered. The website I talking about is https:/www.workgearselect.com.au. I thought we could use the editor to add the images to the file that holds them for the 'Welcome To' selection in the documents selection and as the 'Welcome To' will not be used for a welcome we could use this to hold the required images and display them at the top of the page. The system would have to attach the path to the images the user has selected from the Image File Manager. I hope you can help, Best Regards, Peterp Link to comment Share on other sites More sharing options...
bsmither Posted June 16, 2021 Share Posted June 16, 2021 "What I need is that the user will only enter the image from the image/file/manager and this then will be the images that are displayed via the bxslider." That is my suggestion made in the last paragraph in my post above. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.