Jump to content

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

SKU codes - can they be turned off? Rate Topic   - - - - -

 
  • Scott_C
  • Senior Member
  • Members
  • Join Date: 23-Jun 11
  • 452 posts

Posted 13 July 2011 - 11:16 AM #1

Is there a way to not show the product SKU in the frontend? I'd like to turn it off from displaying to the customer, but i still want the code their for the backend.

On another note, the forum search blocks you from searching on the word 'code' and 'SKU' is too short. I was unable to search on whether this had been discussed before.

Cheers,

Scott.

 

Posted 13 July 2011 - 11:15 PM #2

Is there a way to not show the product SKU in the frontend? I'd like to turn it off from displaying to the customer, but i still want the code their for the backend.

On another note, the forum search blocks you from searching on the word 'code' and 'SKU' is too short. I was unable to search on whether this had been discussed before.

Cheers,

Scott.


you need to edit a few files

skins > your skin > customer > blocks > product_list_templates > products.tpl

change
show_sku=true
to
show_sku=false

skins > your skin > customer > views > products > view.tpl

in the line
{include file=$product.product_id|fn_get_product_details_layout product=$product show_sku=true show_rating=true show_old_price=true show_price=true show_list_discount=true show_clean_price=true details_page=true show_discount_label=true show_product_amount=true show_product_options=true hide_form=$smarty.capture.val_hide_form show_qty=true min_qty=true show_edp=true show_add_to_cart=true show_list_buttons=true but_role="action" capture_buttons=$smarty.capture.val_capture_buttons capture_options_vs_qty=$smarty.capture.val_capture_options_vs_qty separate_buttons=$smarty.capture.val_separate_buttons show_add_to_cart=true show_list_buttons=true but_role="action" block_width=true no_ajax=$smarty.capture.val_no_ajax}

change
show_sku=true
to
show_sku=false

Doing these 2 will remove the product code from the products the customer seea but will
allow you to still see it i the admin area etc

 
  • Scott_C
  • Senior Member
  • Members
  • Join Date: 23-Jun 11
  • 452 posts

Posted 13 July 2011 - 11:51 PM #3

Thank you! :D

you need to edit a few files

skins > your skin > customer > blocks > product_list_templates > products.tpl

change

show_sku=true
to
show_sku=false

skins > your skin > customer > views > products > view.tpl

in the line
{include file=$product.product_id|fn_get_product_details_layout product=$product show_sku=true show_rating=true show_old_price=true show_price=true show_list_discount=true show_clean_price=true details_page=true show_discount_label=true show_product_amount=true show_product_options=true hide_form=$smarty.capture.val_hide_form show_qty=true min_qty=true show_edp=true show_add_to_cart=true show_list_buttons=true but_role="action" capture_buttons=$smarty.capture.val_capture_buttons capture_options_vs_qty=$smarty.capture.val_capture_options_vs_qty separate_buttons=$smarty.capture.val_separate_buttons show_add_to_cart=true show_list_buttons=true but_role="action" block_width=true no_ajax=$smarty.capture.val_no_ajax}

change
show_sku=true
to
show_sku=false

Doing these 2 will remove the product code from the products the customer seea but will
allow you to still see it i the admin area etc



 
  • Scott_C
  • Senior Member
  • Members
  • Join Date: 23-Jun 11
  • 452 posts

Posted 14 July 2011 - 01:24 AM #4

Any thoughts on turning off the SKU code in the cart contents? I've done a code search on; "show_sku=true" and so far have turned off the sku display in the following files;

\skins\mytemplate\customer\blocks\product_list_templates\products.tpl (sku turned off)
\skins\mytemplate\customer\blocks\product_list_templates\products_grid.tpl (sku turned off)
\skins\mytemplate\customer\views\products\view.tpl (sku turned off)
addons\required_products\blocks\product_tabs\required_products.tpl (sku off)
addons\product_configurator\hooks\products\view_main_info_override.tpl (sku off)
addons\wishlist\views\wishlist\view.tpl (sku off)
blocks\product_list_templates\short_list.tpl (sku off)
blocks\product_list_templates\products_without_options.tpl (sku off)

But its still showing in the cart.. :unsure:

Thank you! :D



 
  • jordenaleman
  • Member
  • Authorized Reseller
  • Join Date: 05-Nov 11
  • 27 posts

Posted 11 June 2012 - 09:40 AM #5

you can remove it from cart in file : skins/yourskin/customer/views/checkout/components/cart_items.tpl at rule 36
Jorden
Eyesi Webshops
www.eyesiwebwinkels.com

 
  • larous
  • Junior Member
  • Members
  • Join Date: 09-Dec 07
  • 89 posts

Posted 06 January 2013 - 07:47 PM #6

thanks :)