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)
-   -   Hiding SKU (https://forum.x-cart.com/showthread.php?t=51583)

Babydoll 01-03-2010 05:32 AM

Hiding SKU
 
Is there anyway we can hide SKU from the product information?
There's no point having it visible to the customers.
Thanks.

cflsystems 01-03-2010 05:56 AM

Re: Hiding SKU
 
Should be a tick box in general settings/appearance

Babydoll 01-03-2010 09:07 PM

Re: Hiding SKU
 
I have the box unchecked but the SKU is still there. Is there another option that is enabling it?

gizmo 01-04-2010 04:04 AM

Re: Hiding SKU
 
Yep even if you do this it still shows, as in 4.3.0 only other way is hard code and remove it. Not look into doing that, but shouldn't have to, maybe this is a bug in 4.3.0

cflsystems 01-04-2010 04:26 AM

Re: Hiding SKU
 
The tick box in admin hides it from products list pages not from product details page. To hide it from there you have to edit product_details.tpl and comment out the code. It is not a bug, always been like this

gizmo 01-04-2010 04:55 AM

Re: Hiding SKU
 
Pretty Pointless then, I didn't say it is a bug. I said "Maybe" so a little misleading then, for an average user maybe x-cart needs to explain this within admin exactly what it hides and where.

And would save on post like this from the original user

gizmo 01-04-2010 05:11 AM

Re: Hiding SKU
 
Just realised it does say "Products list" but still should point out, "will show in Product details only" like some of the other admin text, that alerts you. Then you still have to modify the search option, as there is not an option to blank out sku from search, unless modified.

Just trying to make x-cart see and improve on what I would call basic options

ARW VISIONS 01-04-2010 05:15 AM

Re: Hiding SKU
 
it says... Display product code (SKU) in the products list

seems ok to me.

gizmo 01-04-2010 05:20 AM

Re: Hiding SKU
 
Quote:

Originally Posted by Ashley
it says... Display product code (SKU) in the products list

seems ok to me.



Yep if you read back, we are on about it does not state "Will show on Product detail page"

My whole thought though on this, is what's the point of just having "Hide form Products list" and for it to show on Product Details, pretty pointless If a store doesn't want to show this at all............

Besides it will still show as mentioned in search, there is no function in admin to disable searching by sku..

ARW VISIONS 01-04-2010 05:24 AM

Re: Hiding SKU
 
I read the whole thing.

gizmo 01-04-2010 05:28 AM

Re: Hiding SKU
 
Ok.... We know it says what you posted, we have established that, we moved on from that, this is why I mentioned if you read the follow ups since then that is all...

As you posted what it says, your point being?

ARW VISIONS 01-04-2010 05:32 AM

Re: Hiding SKU
 
I have no point sir, carry on.

gizmo 01-04-2010 05:36 AM

Re: Hiding SKU
 
Quote:

Originally Posted by Ashley
I have no point sir, carry on.

OMG....What. LOL, I'm outta this topic..

ARW VISIONS 01-04-2010 05:40 AM

Re: Hiding SKU
 
lol... nothing man. I was just saying that the verbiage seems ok to me. I don't personally see a need to add any text that says won't show on product page. That's it.

cflsystems 01-04-2010 05:40 AM

Re: Hiding SKU
 
That's one of the things I love about xcart - its open source. You can go in any file and change it the way you want it to be. Lots of customers, lots of stores and each one has different requirements. It's not possible to have everything out-of-the-box ready for every user. It is hard to make everything a setting with on/off option. I agree that xcart can still be improve in many areas but just like every other everyday task - if you know it you do it, if you don't you ask someone who knows or hire someone to do it for you and you move on. Makes life easier :)

gizmo 01-04-2010 05:48 AM

Re: Hiding SKU
 
True, and that's why the modders come into there own...

Babydoll 01-04-2010 01:50 PM

Re: Hiding SKU
 
Quote:

Originally Posted by cflsystems
The tick box in admin hides it from products list pages not from product details page. To hide it from there you have to edit product_details.tpl and comment out the code. It is not a bug, always been like this


Does anyone know how to do this?

cflsystems 01-04-2010 02:34 PM

Re: Hiding SKU
 
In skin1/customer/main/product_details.tpl find this code
Code:

    <tr>
      <td class="property-name">{$lng.lbl_sku}</td>
      <td class="property-value" id="product_code" colspan="2">{$product.productcode|escape}</td>
    </tr>

and comment it out like this
Code:

{*    <tr>
      <td class="property-name">{$lng.lbl_sku}</td>
      <td class="property-value" id="product_code" colspan="2">{$product.productcode|escape}</td>
    </tr>
 *}


Babydoll 01-04-2010 03:23 PM

Re: Hiding SKU
 
I got it! Thanks :)

gizmo 01-09-2010 03:38 PM

Re: Hiding SKU
 
Also to hide from showing advance search > skin1/customer/Main/search_result.tpl

No point having it there at all..........
Around line 90/93 in 4.3.0 Gold

Code:

{*<label>
                <input type="checkbox" id="posted_data_by_sku" name="posted_data[by_sku]"{if $is_empty_search_prefilled || $search_prefilled.by_sku} checked="checked"{/if} />
                {$lng.lbl_sku}
              </label>*}


I have commented it out in Orange (That's what's added, nothing removed)

ambal 03-05-2010 03:24 AM

Re: Hiding SKU
 
moved to X-Cart Customization > Storefront Design & Template Editing in v 4.2.x and 4.3.x


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

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