X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   hide sku (https://forum.x-cart.com/showthread.php?t=38510)

surfrider 03-21-2008 01:26 PM

hide sku
 
Is it possible to hide sku from displaying in customer storefront page? I looked in admin if there is an option but I could not find one.

kube 03-21-2008 01:57 PM

Re: hide sku
 
For some strange reason searching for sku doesn't work so I can't find the relevant thread.

Anyways, if you need it for admin purposes and not displaying on the storefront the only way is to manually edit it out from the relevant .tpl

If that is the case, find your skin1/customer/main/product.pl

and locate the lines similar to these...
<tr>
<td width="30%">{$lng.lbl_sku}</td>
<td nowrap="nowrap" id="product_code">{$product.productcode}</td>
</tr>

and then {*comment*} them out

surfrider 03-22-2008 11:59 AM

Re: hide sku
 
Thank you Kube. I was able to comment out the SKU on the produt page.

I also tried to search for sku in the forum but it returns no result. strange...

Although I was able to turn off SKU on product page, I noticed there is SKU in search. When I looked to disabled the option in General Settings -> Product search options, I did not see the option to turn off SKU.

How can I make this sku not show up on the search page?

kube 03-22-2008 01:37 PM

Re: hide sku
 
Unfortunately I haven't got access to a clean install at the moment. Use your Webmaster Mode in Internet Explorer and move your mouse along the lines of the SKU part on the search page. This way you'll be able to refer to the status bar, located (usually) in the bottom left-hand corner of the browser. The status bar should hopefully tell you which tpl to edit.

kube 03-22-2008 01:44 PM

Re: hide sku
 
Okay I used the online demo instead...

If you are referring to the SKU check box that appears if there are no results then...

locate skin1/customer/main/search_result.tpl
and {* comment *} out the lines that look similar to these...

<td width="5"><input type="checkbox" id="posted_data_by_sku" name="posted_data[by_sku]"{if $is_empty_search_prefilled or $search_prefilled.by_sku} checked="checked"{/if} /></td>
<td nowrap="nowrap"><label for="posted_data_by_sku">{$lng.lbl_sku}</label></td>

Hope this helps.
Doms

uglysign 03-22-2008 04:17 PM

Re: hide sku
 
Searched in Dreamweaver > Folder > Skin1 Only

http://teepeesigns.com/images/sku.png

surfrider 03-24-2008 07:28 AM

Re: hide sku
 
Kube - thank you for your direction. I was able to comment out sku from search result. :D

uglysign - thank you for pointing out other files that have reference to sku.


All times are GMT -8. The time now is 05:27 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.