Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Hice Product Code Rate Topic   - - - - -

 
  • jeta
  • Advanced Member
  • Trial users
  • Join Date: 01-Apr 16
  • 124 posts

Posted 06 March 2018 - 01:54 PM #1

Hello,

 

Is there any way to hide the product code in the products page, i dont want to give that information to the costumer because i think it useless?

 

 

Thanks in advance



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18173 posts

Posted 06 March 2018 - 02:13 PM #2

The simplest way is to add the following code to the CSS section of the Theme editor

.ty-product-block__sku {
    display: none !important;
}

Note that product code still can be found in the source code of the pages with this solution


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • jeta
  • Advanced Member
  • Trial users
  • Join Date: 01-Apr 16
  • 124 posts

Posted 03 May 2018 - 01:41 PM #3

The simplest way is to add the following code to the CSS section of the Theme editor

.ty-product-block__sku {
    display: none !important;
}

Note that product code still can be found in the source code of the pages with this solution

Hello i tried adding the css but nothing happend the product code still shows, is there any other solution?



 
  • Alt-team
  • CS-Cart Developer
  • Authorized Reseller
  • Join Date: 18-Jan 11
  • 2606 posts

Posted 03 May 2018 - 01:51 PM #4

Check the topic.

 

Best regards,

Alt-team.


ADD-ONS  |  Web development service  |  Web design  |  Page speed increasing  | Server Optimization

Buy MULTIVENDOR - USD 1250 (14% off)   Buy CS-CART LICENCE - USD 345 (13% off)

 Email - manager@alt-team.com | Skype - Altteam    


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10908 posts

Posted 03 May 2018 - 06:04 PM #5

You can also use a hook to have it set the captured SKU code to be empty for the condition that $controller == 'products' && $mode == 'view'.  Or you can have the template be called with a parameter of "$show_sku = false".  Too much detail to describe here. 

 

However, the original css solution provided by alt-team should work fine.  Assuming you cleared the cache after you made the changes.  Does the "display: none !important;" property show when inspecting that field using the browser inspector?


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • oleg.gorshkov
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 3010 posts

Posted 04 May 2018 - 05:56 AM #6

Hello!

 

Please have a look at our Page Layout Options add-on. It allows to modify product detail page, product list page and product blocks. For example, you can easily switch off some elements on the product detail page:

 

page-layout-details-page-settings.png


Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE

Mega SEO Package - All you need for your SEO


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18173 posts

Posted 04 May 2018 - 06:40 AM #7

Hello i tried adding the css but nothing happend the product code still shows, is there any other solution?

 

It can caused by 3rd party theme. Please PM me URL of your website so that we can help you.


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.