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)
-   -   Remove SKU from checkout pages (https://forum.x-cart.com/showthread.php?t=12808)

jkirkpatrick 03-14-2005 04:18 PM

Remove SKU from checkout pages
 
Hello,

I'd like to remove the SKU that is displayed along with the name for each product during the checkout process. Since I don't mention the SKU any other place on the site I think it will confuse customers.

Anyone know how to do this?

Thanks,
Jennifer

hooter 03-14-2005 08:24 PM

Hi Jennifer,

Start with skin1/customer/main/cart_totals.tpl

Look for something like this:
Code:

<TD>{$lng.lbl_sku}</TD>

If you don't want the SKU label heading to appear, then either replace {$lng.lbl_sku} with a or delete that line completely.

Then a little further on in the same file look for:
Code:

<TD>{$products[prod_num].productcode}</TD>

Again as above either replace {$products[prod_num].productcode} with a or delete that line completely.

Note: if you choose to delete on either one, you must do it in both places, otherwise your table/cart columns will not align correctly.

jkirkpatrick 03-15-2005 05:43 AM

Hello,

I copied cart_totals.tpl in to Word and did a search and no where in that document is anything to do with the SKU. I think I may have already removed it from there.

Where I'm having a problem getting rid of it is in the summary at the top of the checkout pages. It has the SKU and the product name together with a period in between them. They're both hyperlinked to the product listing.

Based on my playing around I'm pretty sure the answer lies in this code:


Is that possible? Does anyone know how to remove the SKU from above?

Thanks,
Jennifer

tecdady 05-06-2005 11:15 AM

hooter, not sure if you had the wrong template or if they have changed it for the new version, but you advice is correct, its just that you will find these lines of code in the cart_contents.tpl

chris

mffowler 05-11-2005 02:20 AM

Jennifer,

Yes, you are right:

customer/main/cart_details.tpl

Replace:
Code:

{if $products[prod_num].productcode}{$products[prod_num].productcode}{else}#{$products[prod_num].productid}{/if}. {$products[prod_num].product|truncate:"30":"...":true}

With this:
Code:

{$products[prod_num].product|truncate:"30":"...":true}

virtualdynamix 06-12-2005 05:16 AM

@mffowler,

I'm not sure if your code worked properly for Jennifer, but it worked perfectly for me. Thank you very much.

After doing this, I realized there was a good reason for me to show the SKU after I added more products. Is there a good way to show:

SKU | Manufacturer | Product Name

?

Thanks again.

Virtual Dynamix
X-Cart 4.0.13

Realsecurity 06-15-2005 01:36 PM

How to remove the SKU site wide and replace withProduct code
 
Anyone know if this is possible to change the text SKU to Product code or Order code as the Work SKU doesnt ring any bells for me let alone the visitors to the site.....i would like to change this text SITE WIDE.....

any suggestions would be very greatfull.

many thanks


Realsecurity

X-cart V 4.0.12

hooter 06-15-2005 02:05 PM

Cart Admin -> Languages -> pick your language to edit -> select labels as topic -> use "sku" as filter -> edit to suit your needs

bluecat 07-12-2005 10:12 PM

Quote:

Originally Posted by mffowler
Jennifer,

Yes, you are right:

customer/main/cart_details.tpl

Replace:
Code:

{if $products[prod_num].productcode}{$products[prod_num].productcode}{else}#{$products[prod_num].productid}{/if}. {$products[prod_num].product|truncate:"30":"...":true}

With this:
Code:

{$products[prod_num].product|truncate:"30":"...":true}


Just wanted to say thank you, works like a charm. :D


All times are GMT -8. The time now is 06:36 PM.

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