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)
-   -   Removing Product Number for Cart Summary (https://forum.x-cart.com/showthread.php?t=13763)

mrjasonsweet 05-02-2005 09:22 AM

Removing Product Number for Cart Summary
 
I'm editing "cart_details.tpl" so that I can remove the product number that precedes the product name in the cart summary page:

http://www.sbwebhost.com/xcart.gif

I know I need to edit this part but I'm unsure what to remove:

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

Thanks in advance.

balinor 05-02-2005 09:47 AM

Just remove this whole part:

Code:

{if $products[prod_num].productcode}{$products[prod_num].productcode}{else}#{$products[prod_num].productid}{/if}.

bobbyftk 07-08-2005 05:06 PM

worked for me!
 
thanks that was what i was looking for as well.

but i notice the item line stops and puts "..." on the item line.

so it shows as

12 Grain Fresh Quality Tee ...

and i want it to show the entire line (which would show the customer the entire product and option in this case the size)

12 Grain Fresh Quality Tee - Navy Size: 2XL

is there a way i can make it show the complete decription?

thanks!

balinor 07-08-2005 05:07 PM

That is the truncate part....replace this:

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

with this:

{$products[prod_num].product}

bobbyftk 07-08-2005 05:31 PM

worked. but its missing the item option.

so now it shows as

12 Grain Fresh Quality Tee - Navy

but still missing the "size: XL"

is that possible to be included in that line? customer would want to be able to read over those details to make sure hes buying what he needs.

is it possible?

balinor 07-08-2005 05:36 PM

Well it shows the options in the cart...but not the checkout, as it would take up a lot of room if you have multiple options. I haven't tried it, but you could try adding this code to that line:

Code:

{if $products[product].product_options ne ""}
{$lng.lbl_selected_options}:
{include file="modules/Product_Options/display_options.tpl" options=$products[product].product_options}
{/if}


lisasher 07-08-2005 09:56 PM

product id issue
 
Hi guys,
I want to not have the product id visible to the customer in the product details area. In other words, I don't want the "#49" to appear. Can you help? Can I comment this out somewhere or what? I am slowly but surely understanding where things are, but forgive my ignorance for now! Any help is much appreciated.
Thanks!

balinor 07-09-2005 04:42 AM

Hi Lisasher, welcome to X-Cart! A couple of things that may make it easier for you here in the forums:

1. Be sure and search the forums thoroughly before posting

2. Try not to post new questions in other people's threads or threads that don't deal with the same topic

As far as your question goes, I just answered the same question last night:

http://forum.x-cart.com/viewtopic.php?t=20818

Thanks! :)

bobbyftk 07-11-2005 06:43 PM

Quote:

Originally Posted by balinor
Well it shows the options in the cart...but not the checkout, as it would take up a lot of room if you have multiple options. I haven't tried it, but you could try adding this code to that line:

Code:

{if $products[product].product_options ne ""}
{$lng.lbl_selected_options}:
{include file="modules/Product_Options/display_options.tpl" options=$products[product].product_options}
{/if}



this didnt seem to work. i didnt see any change in the cart display. no options anywhere to be seen.

i added the code you posted right after the
Code:

{$products[prod_num].product}

right?
any suggestions? would be great if customer could just see that option again to reassure them they added the right item they wanted. (with the right option selected). all my products would only have one option, which would be size (for clothing & shoes)

thank you.

EnriqueHavoc 07-21-2005 06:05 PM

Heres what i did in 4.0.12:

1. Open skin1/customer/main/cart_contents.tpl.

2. Find
Quote:

<TD>{$products[prod_num].product|truncate:30:"...":true}</TD>

3. Replace it with:
Quote:

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


<font size="1">
{foreach from=$products[prod_num].product_options item=v}
- {$v.class}: {$v.option_name}

{/foreach}
</font>
</TD>

http://forum.x-cart.com/viewtopic.php?p=99201#99201


All times are GMT -8. The time now is 03:56 AM.

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