Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Removing Product Number for Cart Summary

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-02-2005, 09:22 AM
 
mrjasonsweet mrjasonsweet is offline
 

Newbie
  
Join Date: Apr 2005
Posts: 6
 

Default 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.
__________________
--
Jason Sweet
Current version: 4.0.13
Reply With Quote
  #2  
Old 05-02-2005, 09:47 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Just remove this whole part:

Code:
{if $products[prod_num].productcode}{$products[prod_num].productcode}{else}#{$products[prod_num].productid}{/if}.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-08-2005, 05:06 PM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default 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!
__________________
4.2.2
Reply With Quote
  #4  
Old 07-08-2005, 05:07 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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

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

with this:

{$products[prod_num].product}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 07-08-2005, 05:31 PM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default

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?
__________________
4.2.2
Reply With Quote
  #6  
Old 07-08-2005, 05:36 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 07-08-2005, 09:56 PM
 
lisasher lisasher is offline
 

Newbie
  
Join Date: Jun 2005
Location: california USA
Posts: 7
 

Default 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!
__________________
xcart version 4.0.13
Reply With Quote
  #8  
Old 07-09-2005, 04:42 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 07-11-2005, 06:43 PM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default

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.
__________________
4.2.2
Reply With Quote
  #10  
Old 07-21-2005, 06:05 PM
  EnriqueHavoc's Avatar 
EnriqueHavoc EnriqueHavoc is offline
 

eXpert
  
Join Date: Jul 2004
Posts: 232
 

Default

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
__________________
X-Cart 4.0.12
PHP 4.3.11
MySQL 4.0.23
Linux/Apache
Net::SSLeay 1.25
libCURL libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4
www.ewdhosting.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:19 PM.

   

 
X-Cart forums © 2001-2020