delconick Posted May 10, 2022 Share Posted May 10, 2022 (edited) Does anyone know how to disable the front office product reference, I am needing to use this reference tab for the wholesale item number and wanting to disable it so customer's don't see this information unless there is a secret spot to put supplier item sku's in without customer's seeing that content. My prestashop is running on 1.7.7.6. Edited May 10, 2022 by delconick (see edit history) Link to comment Share on other sites More sharing options...
Mian Waqas Posted May 10, 2022 Share Posted May 10, 2022 hi, you can simply hide it via css i.e. placing this in your Theme/Assets/Css/Custom.css file .product-reference {Display:none!important;} or you can comment out this in your Theme Tpl files usually in product.tpl & category.tpl (depends on your theme structure) Please hit love button above if you finds this usefull Regards Link to comment Share on other sites More sharing options...
delconick Posted May 10, 2022 Author Share Posted May 10, 2022 10 minutes ago, SMTmardan said: hi, you can simply hide it via css i.e. placing this in your Theme/Assets/Css/Custom.css file .product-reference {Display:none!important;} or you can comment out this in your Theme Tpl files usually in product.tpl & category.tpl (depends on your theme structure) Please hit love button above if you finds this usefull Regards There is no Custom.css file under my theme in Assets/css/ directory. Link to comment Share on other sites More sharing options...
Mian Waqas Posted May 10, 2022 Share Posted May 10, 2022 1 minute ago, delconick said: There is no Custom.css file under my theme in Assets/css/ directory. you can create one or you can try adding it to theme.css file there. or your theme-module in back office have custom css options to set. Regards Link to comment Share on other sites More sharing options...
delconick Posted May 10, 2022 Author Share Posted May 10, 2022 2 minutes ago, SMTmardan said: you can create one or you can try adding it to theme.css file there. or your theme-module in back office have custom css options to set. Regards Yeah I ain't an expert at css/js stuff Added it into theme.css , clicked save, refreshed front end page and reference still shows. There is no custom.css in back office and dunno how to create, I would assume the theme I am using doesn't support custom.css Link to comment Share on other sites More sharing options...
Mian Waqas Posted May 10, 2022 Share Posted May 10, 2022 1 minute ago, delconick said: Yeah I ain't an expert at css/js stuff Added it into theme.css , clicked save, refreshed front end page and reference still shows. There is no custom.css in back office and dunno how to create, I would assume the theme I am using doesn't support custom.css Please can you share url of the page in which reference is showing? also had you cleared the cache? Link to comment Share on other sites More sharing options...
delconick Posted May 10, 2022 Author Share Posted May 10, 2022 1 hour ago, SMTmardan said: Please can you share url of the page in which reference is showing? also had you cleared the cache? Sending you a direct message Link to comment Share on other sites More sharing options...
Mian Waqas Posted May 12, 2022 Share Posted May 12, 2022 On 5/10/2022 at 10:26 PM, delconick said: Sending you a direct message Yes its grainfoodmarket>assets>css>theme.css even try by creating a new file custom.css in grainfoodmarket>assets>css>custom.css and place the code. did u had placed the code at the very end in the theme.css file? Also clearing cache from back office is very important, as i can see cache is turned on ur store Link to comment Share on other sites More sharing options...
delconick Posted May 12, 2022 Author Share Posted May 12, 2022 1 hour ago, Mian Waqas said: Yes its grainfoodmarket>assets>css>theme.css even try by creating a new file custom.css in grainfoodmarket>assets>css>custom.css and place the code. did u had placed the code at the very end in the theme.css file? Also clearing cache from back office is very important, as i can see cache is turned on ur store Yes, I've cleared cache and posted at bottom Link to comment Share on other sites More sharing options...
delconick Posted May 12, 2022 Author Share Posted May 12, 2022 Here is the bottom of theme.css Link to comment Share on other sites More sharing options...
Mian Waqas Posted May 13, 2022 Share Posted May 13, 2022 (edited) 11 hours ago, delconick said: Here is the bottom of theme.css Please place it at the very end, also can you Disable backoffice>advance parameters>performence > "Smart cache" for style sheets (CSS)" and then clear cache. so that way i will be able to see exact location of where to place the code. Edited May 13, 2022 by Mian Waqas (see edit history) Link to comment Share on other sites More sharing options...
Mian Waqas Posted May 14, 2022 Share Posted May 14, 2022 This seems to be solved (it was not reflecting due to cache) @delconick please can you confirm. Regards 1 Link to comment Share on other sites More sharing options...
delconick Posted May 16, 2022 Author Share Posted May 16, 2022 All good over here thanks bruh 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