Jump to content

GlennD

Members
  • Posts

    16
  • Joined

  • Last visited

Profile Information

  • Location
    Australia
  • Activity
    Developer

GlennD's Achievements

Newbie

Newbie (1/14)

3

Reputation

  1. tdr170 - I did the procedure again exactly as you said and this time it worked without issue. I personally can't explain why because i am 99% sure I had tried the exact same file edit prior to doing it this morning after reading the above post (I am currently scratching my head). I would only be guessing but this may have been a cache issue or something to do with the memory i have dedicated to my virtual machine (maybe it wasn't keeping up - who knows). After saying that it may have been a cache issue, I did ensure that Smarty cache was turned off with force recompile on. I did however have the browser cache set to remember history (Firefox v19.0.2 for anyone interested) which I did clear at one stage to see if that was the problem. Yesterday there was no result after doing so, however I have had some strange anomalies with Firefox before where I have set it to "Never Remember History" and it seemed to me that it was in fact still remembering history even with that option selected. This was an issue for me mid 2012 in an earlier release of Firefox and maybe with the latest release the problem has returned. In all honesty, I'm not trying to pass on the blame here - as with an aeroplane going down it is usually related to user error and in this case that would be me - luckily I'm not flying! Just to clarify for anyone else who may visit this thread in future, here is what worked for me: 1) Ensure that browser cache is emptied 2) Ensure that Force Compile is turned on and Smarty cache is turned off in the back office (Advanced Parameters tab -> Performance -> Smarty section -> Select Force Compile radio button -> x the cache radio button 3) Open blockcms.tpl file in suitable text editor such as Notepad or Notepad++ ( themes -> theme name (in my case "default") -> modules -> blockcms -> blockcms.tpl 4) Edit the file (insert comment tags <!-- -->) as mentioned previously: <!--{if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a></li>{/if} <li class="{if $PS_CATALOG_MODE}first_{/if}item"><a href="{$link->getPageLink('new-products')}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'}</a></li> {if !$PS_CATALOG_MODE}<li class="item"><a href="{$link->getPageLink('best-sales')}" title="{l s='Top sellers' mod='blockcms'}">{l s='Top sellers' mod='blockcms'}</a></li>{/if}--> Note: for anyone not much into coding comments here are using a double hyphen. ie: <!hyphenhyphen hyphenhyphen> 5) Where force compilation and cache were configured (Advanced Parameters -> Performance) click the Save button just to be on the safe side Thanks tdr170 for explaining the edit of the file a little clearer - I still have a brief question if you have time: Why is New Products not wrapped in an {if /if} statement like the rest of the link items appearing in this code?
  2. No problem - thanks anyway. If anyone else has any ideas about what I may be doing wrong here please advise - ty
  3. Yes I have tried this and it is not working for me. I have done a search of the prestashop directory and there is no such file. Here is the footer code that currently resides in blockcms.tpl (back to un-edited): {if $block == 1} <!-- Block CMS module --> {foreach from=$cms_titles key=cms_key item=cms_title} <div id="informations_block_left_{$cms_key}" class="block informations_block_left"> <h4 class="title_block"><a href="{$cms_title.category_link}">{if !empty($cms_title.name)}{$cms_title.name}{else}{$cms_title.category_name}{/if}</a></h4> <ul class="block_content"> {foreach from=$cms_title.categories item=cms_page} {if isset($cms_page.link)}<li class="bullet"><b style="margin-left:2em;"> <a href="{$cms_page.link}" title="{$cms_page.name|escape:html:'UTF-8'}">{$cms_page.name|escape:html:'UTF-8'}</a> </b></li>{/if} {/foreach} {foreach from=$cms_title.cms item=cms_page} {if isset($cms_page.link)}<li><a href="{$cms_page.link}" title="{$cms_page.meta_title|escape:html:'UTF-8'}">{$cms_page.meta_title|escape:html:'UTF-8'}</a></li>{/if} {/foreach} {if $cms_title.display_store}<li><a href="{$link->getPageLink('stores')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a></li>{/if} </ul> </div> {/foreach} <!-- /Block CMS module --> {else} <!-- MODULE Block footer --> <div class="block_various_links" id="block_various_links_footer"> <h4 class="title_block">{l s='Information' mod='blockcms'}</h4> <ul> {if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a></li>{/if} <li class="{if $PS_CATALOG_MODE}first_{/if}item"><a href="{$link->getPageLink('new-products')}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'}</a></li> {if !$PS_CATALOG_MODE}<li class="item"><a href="{$link->getPageLink('best-sales')}" title="{l s='Top sellers' mod='blockcms'}">{l s='Top sellers' mod='blockcms'}</a></li>{/if} {if $display_stores_footer}<li class="item"><a href="{$link->getPageLink('stores')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a></li>{/if} <li class="item"><a href="{$link->getPageLink($contact_url, true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a></li> {foreach from=$cmslinks item=cmslink} {if $cmslink.meta_title != ''} <li class="item"><a href="{$cmslink.link|addslashes}" title="{$cmslink.meta_title|escape:'htmlall':'UTF-8'}">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</a></li> {/if} {/foreach} <li><a href="{$link->getPageLink('sitemap')}" title="{l s='sitemap' mod='blockcms'}">{l s='Sitemap' mod='blockcms'}</a></li> {if $display_poweredby}<li class="last_item">{l s='Powered by' mod='blockcms'} <a target="_blank" href="http://www.prestashop.com">PrestaShop</a>™</li>{/if} </ul> {$footer_text} </div> <!-- /MODULE Block footer --> {/if} I have noted that when i open this file within Notepad++ that the file appears in ALL black text where as some other files I open have color - is this normal? Any more suggestions anyone?
  4. Hi all I was wondering if someone might be able to assist me in removing the footer links in the default theme of PS 1.5.3.1 So far I have tried the "solutions" found in the following threads but so far i am struggling to find a solution which works for me: http://www.prestasho...__1#entry777975 http://www.prestasho...lock-in-footer/ and also the one mentioned here at post #2 by tdr170 about modifying modules/blockcms/blockcms.tpl : http://www.prestasho...ooter-cms-menu/ I have looked at the CMS Block Configuration and can see that there are no options available to remove the links i want gone as can be seen in the image below: I have seen mentioned that within CMS Block Configuration there are meant to be left blocks and right blocks, however i can only see left blocks, again with no options for deleting what I want (have I possibly deleted something i shouldn't have here - ie:where is right blocks?) Following is an image of the links in the footer which i would like to remove: For future reference, I would also like to know that if a solution can be reached in this scenario, would the same procedure apply to removing links from other parts of the footer, for example removing the My addresses link under MY ACCOUNT section of the footer. Appreciate any feedback.
  5. Just got the blocks sorted with the border radius - I guess i'll just keep using trial and error to figure out adding it to the main page banner etc and Google around to see what else i can find to try to make more sense of what files to edit under certain circumstances. . Don't know how many times I can say it but thanks again for the assistance - I know you're probably very busy helping many people so I really do appreciate the input.
  6. Wow - very quick resonse mate Login now siiting as required by adding margin-right:10px to #header_user_info{ in blockuserinfo.css as suggested. It seems that sometimes IE are a little slow to implement change but that's browser wars (another topic for another forum - can be very annoying but some things we just to have to wear. Is the border-radius code above added to the global.css file (if so where?) or do you need to add it to individual css files as required? If I am starting to understand correctly, and maybe I'm not, but it seems that with the login the css was added to the block itself. Does this mean that if I want to make changes to the manufacturers block for example, I would then need to do this via blockmanufacturers.css (if there is indeed a file with that name)? As I said before - is there any guide out there that has a list of the associations required to make changes to individual blocks/modules? Would appreciate any links or information on how you went about learning what related to what - or is this a learn yourself/ trial and error type of process for everyone?
  7. Hey thankyou very much again for your time and patience - appreciate it. The above code worked perfectly. The only thing the code didn't reposition as I would have liked is the Cart login which I would also like to move in just a touch so it is not sitting hard against the background color. I understand that these two things are unrelated when it comes to positioning. What should I look for in the global.css file that I would need to play with to accomplish this? I am finding the concept of modules, blocks, hooks etc..and what relates to what CSS and so forth and so on a little hard to comprehend at the moment. i have downloaded the Prestashop Designer Guide PDF which I will try to get some ideas from. If you could also recommend any other good learning guides for people like myself who do have experience with HTML, CSS and PHP (although I'm not really to confident with the latter) about what files are actually related to what and what CSS is pointing to which part of what page it would be very helpful. I would much rather learn the ins and outs of the software myself if possible, that is, rather than turning up here at the forums with questions I really should be able to solve myself if I knew where to look. Just as an example, I would like to use border-radius to give modules a nice rounded look, however it is the association between the files that has me scratching my head a little. Ty again tdr, hitting the Like this button now!
  8. Perfect! Thankyou very much for your assistance tdr. The only thing that I don't like when changing this to a solid background color (for example black) is that the log in link and modules (I think these are modules) like Categories, Manufacturers and Contact us sit flush against the edge of the main shell. Is there anywhere i can alleviate that problem, maybe by experimenting with padding, margin somewhere and if so in what file (there are so many!) Maybe I should save that for another thread?
  9. Can someone explain how to change the background color OUTSIDE of the main page shell using Prestashop v1.5.3.1 please? I have looked at other threads in relation to this topic, one of them being here: http://www.prestasho...ter-page-white/ The above link does not explain how to do what I require, that is, in the above case the background image can be seen behind the slider, page banner and all other page content in the main shell (as seen in the YouTube video). There is also another suggestion in the same thread at post #11 by Holspeed to edit: Line 41 of global css to #page {background: #examplecolor} which i tried - this also changed colors of certain parts of the page within the main page shell - again - not what I require. My apologies if this question has indeed been answered prior to this however i am still working out the navigation within this forum. I have included an image of what I require: Would appreciate suggestions.
  10. Your tutorials are fantsatic - really!!! It is people like yourself that make the internet what it should be for all who use it - a learning environment. Basically I don't know if i would have had the patience to learn how to use the software if it wasn't for these simple to follow tutorials. I'm sure i will still need much assistance to get to where I would like to be in discovering the full range of features available through Prestashop but this series is most definitely a must watch for newcomers. Two thumbs up to a job well done Nemo.
  11. I am using v1.5.3.1 with the default Prestashop theme as I have only just discovered this fantastic software package. Alex I was unable to locate homeslider.tpl in the path you mentioned - actually I could not see a folder named homeslider using that path. Here is the path I am talking about (I think you may have been giving the path for an older version than I am using - apologies for not being version specific): prestashop/themes/default/modules -> there is no homeslider directory or homeslider.tpl file here I did however manage to find a homeslider.tpl file at the following path: prestashop/modules/homeslider/ -> there IS a homeslider.tpl here In the location where I did manage to find the homeslider.tpl file I did the following: 1) Commented out the original code using <!-- --> 2) Replaced the <li></li> line of code as suggested after copying and pasting the original straight underneath the commented code 3) Saved edited file 4) Ensured force compile 5) Refresh page Obviously that didn't work and I witnessed the original slider images which when clicked would direct to a 404 error and also one of each of the slider images appearing vertically underneath the slider itself. The solution as you would know was to use the correct comment tags for dealing with smarty parsed PHP: {* *} After commenting the original code out correctly using {* *} and replacing the html list item line of code in the copied version it worked perfectly! Thankyou very much for your assistance.
  12. Thankyou for the reply however I wouldn't know where to start with what you have mentioned. Is there not an easier way? Can I alter a file so as when the images in the slider are clicked they point at nothing ie: Point to no URL?
  13. Can someone explain if I can have home page slider images that do not actually connect to a product URL - I would simply like to have a slide show of images without the click on slide and connect to product feature. If this is possible could somone please explain to me how to do so. Also - what size should slider images be for best display? Thankyou
  14. Thankyou for clarification tdr170 - hopefully this will now assist users of the older and newer versions.
×
×
  • Create New...