Leetay Posted October 1, 2012 Share Posted October 1, 2012 Hi. Please, please can anyone help me with this. I'm using PS v1.5 in Catalogue mode but after trying MANY options, the Add to Cart button still appears on the product details page (greyed out). I REALLY don't want it there! I'm trying to use the software as a business directory and having this button there looks really pointless. ...any suggestions greatly received?!?! Lee 1 Link to comment Share on other sites More sharing options...
CartExpert.net Posted October 1, 2012 Share Posted October 1, 2012 Hi. You should modify the product.tpl file and remove lines 434-437: <span class="exclusive"> <span></span> {l s='Add to cart'} </span> Regards. Robin. The CartExpert Team 1 Link to comment Share on other sites More sharing options...
Leetay Posted October 1, 2012 Author Share Posted October 1, 2012 (edited) Hi Robin & thanks for your prompt response. I've tried this but even with such a small amount of coding being deleted, the product detail page then fails to display (no errors, just blank). I'm right in thinking that the product.tpl file you refer to is in themes/default right? Thanks again. Lee Edited October 1, 2012 by Leetay (see edit history) Link to comment Share on other sites More sharing options...
Leetay Posted October 1, 2012 Author Share Posted October 1, 2012 Sorry I guess important information would be.... using IE8 to view my site and PS is in catalogue mode. If anyone viewing this would like to take a look, the site is at www.realtradesmen.co.uk and due to this "glitch" I was unable to launch on local/regional radio this weekend! Link to comment Share on other sites More sharing options...
CartExpert.net Posted October 1, 2012 Share Posted October 1, 2012 Hi. You must have deleted something else too. If blank page appears you can set the error display to 'on' in config/config.inc.php to see what the problem is. Regards. Robin. The CartExpert Team Link to comment Share on other sites More sharing options...
Leetay Posted October 2, 2012 Author Share Posted October 2, 2012 Hi & thanks for your reply. I've altered the config.inc.php file and below is what displays: Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/handmade/public_html/realtradesmen.co.uk/themes/default/product.tpl" on line 263 "<form id="buy_block" {if $PS_CATALOG_MODE AND !isset($groups) $product->quantity > 0}class="hidden"{/if} action="{$link->getPageLink('cart')}" method="post">" too many shorthand attributes' in /home/handmade/public_html/realtradesmen.co.uk/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:627 Stack trace: #0 /home/handmade/public_html/realtradesmen.co.uk/tools/smarty/sysplugins/smarty_internal_compilebase.php(71): Smarty_Internal_TemplateCompilerBase->trigger_template_error('too many shorth...', 263) #1 /home/handmade/public_html/realtradesmen.co.uk/tools/smarty/sysplugins/smarty_internal_compile_if.php(31): Smarty_Internal_CompileBase->getAttributes(Object(Smarty_Internal_SmartyTemplateCompiler), Array) #2 /home/handmade/public_html/realtradesmen.co.uk/tools/smarty/sys in /home/handmade/public_html/realtradesmen.co.uk/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 627 ...this is now getting a bit scary!!! Any ideas? Thanks again. Lee Link to comment Share on other sites More sharing options...
CartExpert.net Posted October 2, 2012 Share Posted October 2, 2012 Hi Lee. Don't worry, it's not scarry. Seems like there's an 'AND' missing after !isset($groups) on line 263. This is how that line should look like: <form id="buy_block" {if $PS_CATALOG_MODE AND !isset($groups) AND $product->quantity > 0}class="hidden"{/if} action="{$link->getPageLink('cart')}" method="post"> Regards. Robin. The CartExpert Team 2 Link to comment Share on other sites More sharing options...
Leetay Posted October 2, 2012 Author Share Posted October 2, 2012 Hi Robin It worked!! BRILLIANT, BRILLIANT, BRILLIANT!!!! Awesome..... It's just so far beyond my level of web-design knowledge how you could have known that, words are beyond me!! Thanks SOOOOO much. Having this fixed means an enormous amount to my near and distant future Before I close this off, (hope I@m not taking advantage) at the top right of my homepage at: www.realtradesmen.co.uk there's a "Contact Us" box and I can't find how to edit the text within it that says "Our hotline is available 24/7". I really don't want to be woken up in the middle of the night. Please could you tell me where/how to edit this? Many thanks again. Lee Link to comment Share on other sites More sharing options...
CartExpert.net Posted October 2, 2012 Share Posted October 2, 2012 Hi Lee. Happy to have helped. Have you tried to change the translation in Back Office? Regards. Robin. The CartExpert Team Link to comment Share on other sites More sharing options...
Leetay Posted October 2, 2012 Author Share Posted October 2, 2012 Hi Robin I just want to change the text If it's not too complicated, maybe change the image of the girl too? Regards Lee Link to comment Share on other sites More sharing options...
CartExpert.net Posted October 2, 2012 Share Posted October 2, 2012 Changing the translation in Back office should work for you. Regarding the image: you need to overwrite it on the server. Regards. Robin. The CartExpert Team Link to comment Share on other sites More sharing options...
Leetay Posted October 2, 2012 Author Share Posted October 2, 2012 Hi Robin It seemed a bit to risky to try changing the text via that route as the cart was saying that all of my previous changes would be undone! It was easy enough to edit the text under /modules/blockcontact/blockcontact.tpl ...the image file is in there too but I haven't got a pretty pic of me that I want plastered all over the web just yet!! ...anyway, thanks again SOOO much for your help & guidance. I'm delighted that my site is now working as I want it and can now press on in the real world to promote it without embarrassing "glitches"!! If I can add you as a friend on here, I'd be very humbled... Kind regards. Lee Link to comment Share on other sites More sharing options...
CartExpert.net Posted October 2, 2012 Share Posted October 2, 2012 Hi Lee. Thank you for your kind words. We are happy we were at your assistance. Please, add us as friends. And mark the topic [sOLVED] Regards. Robin. The CartExpert Team 1 Link to comment Share on other sites More sharing options...
Leetay Posted October 3, 2012 Author Share Posted October 3, 2012 [sOLVED] Link to comment Share on other sites More sharing options...
pneeds Posted November 4, 2012 Share Posted November 4, 2012 Hello. While editing my CSS I accidentally deleted my 'Add to Cart' from Featured Products... do you know how to get it back without losing all my customisation? Link to comment Share on other sites More sharing options...
arialea Posted January 13, 2013 Share Posted January 13, 2013 Hi I am a French girl developer I also desperately looking to debug the same I could not do it ... until I came on this topic and then The miracle! Finally it worked !! Thank you so much you are my savior ... sorry for my bad english but I'm French girl 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