Jump to content

How can I hide product code from the front end? Rate Topic   - - - - -

 
  • P-Pharma
  • Junior Member
  • Members
  • Join Date: 30-Jun 10
  • 338 posts

Posted 14 June 2012 - 04:01 PM #1

Product codes are handy as reference for our staff. They serve no purpose for our customers that I can think off.

How do I hide product code from the front end store?

 
  • Alt-team
  • Member
  • Members
  • Join Date: 18-Jan 11
  • 666 posts

Posted 15 June 2012 - 11:36 AM #2

Hello!

Please follow skins/YOUR_SKIN/customer/views/products/view.tpl
In view.tpl file change
 show_sku=true
to
show_sku=false 

Best regards, Alt-team

 
  • P-Pharma
  • Junior Member
  • Members
  • Join Date: 30-Jun 10
  • 338 posts

Posted 15 June 2012 - 10:51 PM #3

Many thanks!

How do I remove it from the list view (categories) ?

 
  • meseta
  • Advanced Member
  • Members
  • Join Date: 19-Jun 12
  • 32 posts

Posted 19 June 2012 - 09:53 PM #4

Attached Image: view.jpg
I renamed the original view.tpl to view_original.tpl.
I changed to show_sku=false. Then uploaded the view.tpl back. But Product codes was not removed.
Please check my site www.lootbids.com

 
  • apple
  • Member
  • Members
  • Join Date: 28-Jun 12
  • 11 posts

Posted 28 June 2012 - 01:36 AM #5

View Postmeseta, on 19 June 2012 - 09:53 PM, said:

Attachment view.jpg
I renamed the original view.tpl to view_original.tpl.
I changed to show_sku=false. Then uploaded the view.tpl back. But Product codes was not removed.
Please check my site www.lootbids.com

Hi,

Did you clear your cache?

i.e www.lootbids.com/youradminpagename.php?cc

 
  • wwgreen
  • Senior Member
  • Members
  • Join Date: 20-Nov 06
  • 377 posts

Posted 28 June 2012 - 02:40 PM #6

Thanks, P-Pharma and Alt-team, wanted to modify this a long time ago but forgot until I saw the thread.

Worked for me on our version, and yes, I needed to clear the cache before it appeared correctly in my browser.

Thanks again!
v2.2.5

 
  • Pascal
  • Advanced Member
  • Members
  • Join Date: 13-Jun 12
  • 86 posts

Posted 29 June 2012 - 09:15 AM #7

Is there any way to do the same with a profile fields in the customers section ? So we can have a field that appear only in admin and not on the customer details frontend ?

 
  • meseta
  • Advanced Member
  • Members
  • Join Date: 19-Jun 12
  • 32 posts

Posted 04 July 2012 - 12:13 AM #8

View Postapple, on 28 June 2012 - 01:36 AM, said:

Hi,

Did you clear your cache?

i.e www.lootbids.com/youradminpagename.php?cc
How to clear the cache?

 
  • Alt-team
  • Member
  • Members
  • Join Date: 18-Jan 11
  • 666 posts

Posted 04 July 2012 - 05:16 AM #9

View Postmeseta, on 04 July 2012 - 12:13 AM, said:

How to clear the cache?

Hello meseta!

As apple indicated you need to add ?сс to your admin page url, it will clear cache, pay attention to apple's example www.lootbids.com/youradminpagename.php?cc

Best regards, Alt-team

 
  • P-Pharma
  • Junior Member
  • Members
  • Join Date: 30-Jun 10
  • 338 posts

Posted 04 July 2012 - 12:55 PM #10

How do I remove the product code from the list view (categories) ?

 
  • webhome
  • Newbie
  • Members
  • Join Date: 14-Nov 12
  • 1 posts

Posted 14 November 2012 - 10:13 AM #11

There is a simple way to hide the product code for all customer pages.

This works for the basic skin that comes with CS-Cart 3 and should work for all skins that follow this setup.

This involves editing a stylesheet instead of php code or config files

Edit the file located at skins/basic/customer/base.css

Find the class labelled .sku

It should say something like:
.sku {
padding: 0;
font-size: 77%;
}

Add an extra style so it reads like this:
.sku {
padding: 0;
font-size: 77%;
visibility:hidden;
}