Peter_UK Posted January 13, 2011 Share Posted January 13, 2011 Hi all,I am new to Prestashop, and am no programmer apart from some html, so I need some advice.I have installed PhPOnline - Live chat support for my website and it is working just fine.What I would like to do now is to add a new block to the right column, above the cart column and add the image of the PhP online, which then in turn links to the client side of the application.I have looked around the forum here, but I can not seem to find how this is being done.Could anybody explain in "not too technical" English please?Thanks in advance, and best regardsPeter Link to comment Share on other sites More sharing options...
Tomas Jancik Posted January 13, 2011 Share Posted January 13, 2011 You can create new module block to achieve this... but it requires some PHP programming knowledges....A good guide to writing your module is http://www.ecartservice.net/17072009/writing-your-own-prestashop-module-part-1/ Link to comment Share on other sites More sharing options...
Peter_UK Posted January 13, 2011 Author Share Posted January 13, 2011 Hi, and thanks for the replyI will read this, but like I said in the OP, I am not a programmer.Would it be possible to position and display the phpOnline image above the cart block without having to make a new block?Thanks in advancePeter Link to comment Share on other sites More sharing options...
Peter_UK Posted January 13, 2011 Author Share Posted January 13, 2011 JUst to be a bit more clear, If you look at the image below, this is how I would like it to show on my site Link to comment Share on other sites More sharing options...
Tomas Jancik Posted January 13, 2011 Share Posted January 13, 2011 you can ask owner of the shop from your screenshot, if he could provide you we his module...or if you need contact me directly via PM and I could prepare such module for you (if you just need to display the image with some link) Link to comment Share on other sites More sharing options...
shokinro Posted January 13, 2011 Share Posted January 13, 2011 You can use existing block advertising module that already in your PrestaShop. what you need to do is install it and change the image and link at your back office.log in to your back officeselect "modules" tablook for "Block advertising" and install it if it is not installed yetthen click "configure" and upload your new image and input your URLthen click "positions" sub-tab under "Module" change column and position Link to comment Share on other sites More sharing options...
Peter_UK Posted January 14, 2011 Author Share Posted January 14, 2011 Hi and thanks for the reply.I have got it working now and have the image where I want it.The only thing now is that the live support does not load in to the framework, like all other pages, products etc. but it loads as a normal page, without my site navigation (you can try it on my site, it is live) Can anyone advise me on how to get this to load in to the site pleaseThanks in advance and best regardsPeter Link to comment Share on other sites More sharing options...
shokinro Posted January 14, 2011 Share Posted January 14, 2011 You need to following the structure of the main pages and include headers/footers/3 columns.1. create a new file client.tpl under /themes/yourtheme/ and put your HTML inside to this file2. Chage your client.php as following. <?php /* SSL Management */ $useSSL = true; include(dirname(__FILE__).'/config/config.inc.php'); include(dirname(__FILE__).'/init.php'); $errors = array(); ////Your page code here--- ///-------------------------- include(dirname(__FILE__).'/header.php'); $smarty->assign('errors', $errors); Tools::safePostVars(); $smarty->display(_PS_THEME_DIR_.'expresscheckout.tpl'); include(dirname(__FILE__).'/footer.php'); ?> If you don't know what I mean, send me your client.php to me, I can make it for you. Link to comment Share on other sites More sharing options...
Peter_UK Posted January 14, 2011 Author Share Posted January 14, 2011 Hi ShokinroThank you very much for the reply.I will try it, but if I can not get it to work, I will PM you.Thanks very much againPeter Link to comment Share on other sites More sharing options...
shokinro Posted January 15, 2011 Share Posted January 15, 2011 I got your PM message and I checked you site again.The client.php is under folder livesupport, so I guess it is not a part (page) of your PrestaShop application.I suggest to show "live support" in a pop up window, not in the application main windows.Because when customer needs help, he maybe need remain the current page at your store.To do this, please make changes in /modules/blockadvertising/blockadvertising.tpl file.Add following attributes to the hyper link tag before title. target="_blank" Before change <a href="{$adv_link}" title="{l s='Advertising' mod='blockadvertising'}"><img src="{$image}" alt="{l s='Advertising' mod='blockadvertising'}" width="155" height="163" /></a> After change <a href="{$adv_link}" target="_blank" title="{l s='Advertising' mod='blockadvertising'}"><img src="{$image}" alt="{l s='Advertising' mod='blockadvertising'}" width="155" height="163" /></a> Link to comment Share on other sites More sharing options...
Peter_UK Posted January 15, 2011 Author Share Posted January 15, 2011 Hi, I have sorted it all now, and it's working brilliant.Thank you very much for your help, and have a great weekendBest RegardsPeterP.S. Your blog has been very helpful, and I have found really useful tips there.Thank you Link to comment Share on other sites More sharing options...
shokinro Posted January 15, 2011 Share Posted January 15, 2011 I am glad you have solved the problem and thanks for visiting my blog. Welcome to leave any comments or questions there if you like.By the way, please add [sOLVED] to the title of your first post of this thread to mark it as solved. Link to comment Share on other sites More sharing options...
Boka Posted January 27, 2011 Share Posted January 27, 2011 Hello, You can use existing block advertising module that already in your PrestaShop. what you need to do is install it and change the image and link at your back office.log in to your back officeselect "modules" tablook for "Block advertising" and install it if it is not installed yetthen click "configure" and upload your new image and input your URLthen click "positions" sub-tab under "Module" change column and position I have a similiar problem: i want to add a block to the right containing just an image/logo. My favourite solution would be a module that allows me to add some HTML-Source. I haven't found such one.I've tried the workaround described above too: In the module-tab I installed "Block Werbung v0.1" (internal name as found in the source: "modules/blockadvertising/") but this does not offer me an "configure"-Link. I see a green check mark and a button to uninstall the module, but no link? Why not? Link to comment Share on other sites More sharing options...
Peter_UK Posted January 27, 2011 Author Share Posted January 27, 2011 You need to edit the blockadvertising.tpl or in your case I suspect that will be blockwerbung.tpl Link to comment Share on other sites More sharing options...
shokinro Posted January 27, 2011 Share Posted January 27, 2011 The module name is "Block advertising", you should be able to find it the module list from Modules tab.And once you install it, you should see the Configure link.Yes, as Peter_UK pointed, you can add your HTML code to file /modules/blockadvertising/blockadvertising.tpl Link to comment Share on other sites More sharing options...
stopandshop Posted March 20, 2011 Share Posted March 20, 2011 I have a similar issue, only difference being that I need more blank advertisement blocks so that I can i can put 3-4 ad blocks on my site. Please advice me how to do that. Thank you for your time. Link to comment Share on other sites More sharing options...
shokinro Posted March 20, 2011 Share Posted March 20, 2011 please refer here to learn on how to duplicate an existing module such as Advertising block module.There is detailed instructions there.http://alvinjiang.blogspot.com/2011/01/prestashop-tips-how-to-duplicate.html Link to comment Share on other sites More sharing options...
stopandshop Posted March 20, 2011 Share Posted March 20, 2011 I was going through your blogs when I received your reply, thanks. I will read it completely and revert back to you. BTW great blog site your have. Link to comment Share on other sites More sharing options...
chance Posted March 25, 2011 Share Posted March 25, 2011 hi,how to use popup new windows intend of open a new tap target="_blank" any body can help?thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now