paulcox5 Posted April 11, 2012 Share Posted April 11, 2012 Is there anyway that I can add the manufacturer that is specified in the product in the backend in the front end so that the person browsing the shop can view this. This would save me adding the manufacturer to each product description. Hope this makes sense. I have searched the forum but cannot see anybody wanting this. Thanks Link to comment Share on other sites More sharing options...
Mike Kranzler Posted April 11, 2012 Share Posted April 11, 2012 Hi paulcox, Go ahead and try the suggestions posted here, and let me know if that works for you. -Mike Link to comment Share on other sites More sharing options...
paulcox5 Posted April 11, 2012 Author Share Posted April 11, 2012 I have added <p id="manufacturer_name" {if isset($groups) OR !$product->manufacturer_name}style="display: none;"{/if}><label for="manufacturer_name">{l s='Manufacturer :'} </label><span class="editable">{$product->manufacturer_name|escape:'htmlall':'UTF-8'}</span><br> <p id="supplier_reference" {if isset($groups) OR !$product->supplier_reference}style="display: none;"{/if}><label for="manufacturer_name">{l s='Supplier Reference :'} </label><span class="editable">{$product->supplier_reference|escape:'htmlall':'UTF-8'}</span><br> to my products.tpl from my theme folder and it still does not show. Am I editing the correct .tpl file? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted April 11, 2012 Share Posted April 11, 2012 I have added <p id="manufacturer_name" {if isset($groups) OR !$product->manufacturer_name}style="display: none;"{/if}><label for="manufacturer_name">{l s='Manufacturer :'} </label><span class="editable">{$product->manufacturer_name|escape:'htmlall':'UTF-8'}</span><br> <p id="supplier_reference" {if isset($groups) OR !$product->supplier_reference}style="display: none;"{/if}><label for="manufacturer_name">{l s='Supplier Reference :'} </label><span class="editable">{$product->supplier_reference|escape:'htmlall':'UTF-8'}</span><br> to my products.tpl from my theme folder and it still does not show. Am I editing the correct .tpl file? In your Back Office, please go to Preferences > Performance and set Force Compile to On and Cache to Off, and then reload the page and let me know if the issue persists. -Mike Link to comment Share on other sites More sharing options...
paulcox5 Posted April 11, 2012 Author Share Posted April 11, 2012 The products would not load unless I switched them back to non debugging. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted April 11, 2012 Share Posted April 11, 2012 The products would not load unless I switched them back to non debugging. I'm not sure what you mean by this. Could you please provide some more details? -Mike Link to comment Share on other sites More sharing options...
paulcox5 Posted May 16, 2012 Author Share Posted May 16, 2012 Sorry it has taken me so long to reply but I have been away. In a previous post you said "In your Back Office, please go to Preferences > Performance and set Force Compile to On and Cache to Off, and then reload the page and let me know if the issue persists." I did the above but the products would not load after I set this. Once I set it back to Force complie off and cache on the site started to work again. Hope this makes more sense. Paul Link to comment Share on other sites More sharing options...
Mike Kranzler Posted May 16, 2012 Share Posted May 16, 2012 Hi Paul, If that causes everything to disappear from your page, then it appears that the code you added is incorrect. I would recommend that you double-check it and make sure you're not missing anything that could cause issues on your site. -Mike 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