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)
-   -   sku on checkout page (https://forum.x-cart.com/showthread.php?t=29853)

sparker2 03-20-2007 06:55 PM

sku on checkout page
 
I have searched and searched for hours on how to remove the whole sku number that is being displayed on my checkout page and invoice. I think this sku thing is stupid and I would like to get rid of it. It does not make since to me. I am so frustrated about it. I do not understand why it is there. Please help me remove it from all customer sides of this cart. My customers do not need to get all confused about this sku thing. I have removed it from the details page already. I am stuck on removing it from the checkout and invoice page. Thanks in advance.

balinor 03-21-2007 01:14 AM

Re: sku on checkout page
 
It is there because quite a number of people use it. To remove it, you need to determine which template it is showing in. I would start with customer/main/cart_contents.tpl, as that is usually the one used. Remove these two lines:

<td><b>{$lng.lbl_sku}</b></td>

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

sparker2 03-21-2007 08:45 AM

Re: sku on checkout page
 
I did that and i am still seeing the sku showing up on my checkout pages and invoice. I am looking at it now on Checkout: Step 1 of 2. Thanks for your help in advance.

balinor 03-21-2007 08:50 AM

Re: sku on checkout page
 
Are you using fast lane checkout?

sparker2 03-21-2007 09:02 AM

Re: sku on checkout page
 
no

balinor 03-21-2007 09:09 AM

Re: sku on checkout page
 
Try clearing out your template cache...you might just not be seeing the change.

sparker2 03-21-2007 09:10 AM

Re: sku on checkout page
 
where is the template cache

balinor 03-21-2007 09:12 AM

Re: sku on checkout page
 
Go to your 'Summary - Tools' page in admin. You'll see a Clear templates cache area. Click the 'clear' button.

sparker2 03-21-2007 09:32 AM

Re: sku on checkout page
 
1 Attachment(s)
Ok I cleared the cache and it is still showing up. Look at the image i am sending with this message.

balinor 03-21-2007 09:37 AM

Re: sku on checkout page
 
Ahhh...you are using a different template...that is customer/main/cart_details.tpl. Replace this:

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

with this:

{$products[prod_num].product}

sparker2 03-21-2007 09:56 AM

Re: sku on checkout page
 
1 Attachment(s)
Thank you that worked. I knew it could be done. I am so proud of x-cart once again. How do I change the logo on the invoice though. It says Company Name and it is in red. I thought my logo that is on my home page would be on the invoice as well but I was wrong. Look at the picture!

balinor 03-21-2007 09:58 AM

Re: sku on checkout page
 
Yep, that is companyname_small.gif. Just upload a new version to skin1/images and overwrite that one.

sparker2 03-21-2007 10:38 AM

Re: sku on checkout page
 
1 Attachment(s)
Balinor, thank you for that. How do I move everything up on the invoice. There is a hugh space at the top of the page. Look at image.

balinor 03-21-2007 10:41 AM

Re: sku on checkout page
 
The invoice template is skin1/mail/html/order_invoice.tpl. Take a look and see if there is anything that would be causing that.

sparker2 03-21-2007 11:14 AM

Re: sku on checkout page
 
No I did not see anything that could cause that

sparker2 03-21-2007 11:21 AM

Re: sku on checkout page
 
1 Attachment(s)
I also notice that after all that I have done to remove the sku from all other pages it is showing up on the invoice page. Look at the picture included.

balinor 03-21-2007 02:27 PM

Re: sku on checkout page
 
Shareen, please don't double post...you have already asked the question here. Did you try editing the template I suggested?

sparker2 03-21-2007 03:27 PM

Re: sku on checkout page
 
what do you mean by double post. i do not recall double posting.

sparker2 03-21-2007 03:33 PM

Re: sku on checkout page
 
you helped me remove the sku from the checkout not the invoice. this is different

balinor 03-21-2007 04:13 PM

Re: sku on checkout page
 
Quote:

Balinor, thank you for that. How do I move everything up on the invoice. There is a hugh space at the top of the page. Look at image.

No need to post another thread about it when you already asked it here is what I mean.

sparker2 03-21-2007 04:51 PM

Re: sku on checkout page
 
Sorry for the double post but can you please help me remove the sku from the invoice please

balinor 03-21-2007 05:32 PM

Re: sku on checkout page
 
The template you want to look at is skin1/mail/html/order_data.tpl

sparker2 03-21-2007 06:10 PM

Re: sku on checkout page
 
thank you for your help but I do not see this line of code that you told me to look for before in this order_data.tpl. Am I looking for something else because you were not to clear. Thanks in advance for all your help.

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

sparker2 03-21-2007 06:55 PM

Re: sku on checkout page
 
Don't worry about this, I fixed it by taking a chance with dreamweaver. I opened it up and removed the sku from the template. thanks anyway for all you help.

balinor 03-22-2007 02:09 AM

Re: sku on checkout page
 
Yes, Dreamweaver is very handy for finding things in the table structure of templates. Just be careful with it, as it can't read Smarty and you stand a good chance of botching up your templates if you edit with it.

scoobie 03-22-2007 02:12 AM

Re: sku on checkout page
 
Does this code change to the cart_contents.tpl work for version 4.1.4? I thought I would have a go at doing it myself, but nothing happened.

balinor 03-22-2007 03:14 AM

Re: sku on checkout page
 
Yes, should be exactly the same. Did you read the whole thread? You may be using cart_details.tpl.


All times are GMT -8. The time now is 04:17 PM.

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