![]() |
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. |
Just remove this whole part:
Code:
{if $products[prod_num].productcode}{$products[prod_num].productcode}{else}#{$products[prod_num].productid}{/if}. |
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! |
That is the truncate part....replace this:
{$products[prod_num].product|truncate:"30":"...":true} with this: {$products[prod_num].product} |
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? |
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 ""} |
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! |
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! :) |
Quote:
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. |
Heres what i did in 4.0.12:
1. Open skin1/customer/main/cart_contents.tpl. 2. Find Quote:
3. Replace it with: Quote:
http://forum.x-cart.com/viewtopic.php?p=99201#99201 |
i did that ^^
nothing happened? we'll nothing i can see when i hover over my item, the little popup label it shows exactly what i want it to show. hmmm. maybe im not doing something right? i copied it exactly as you stated above. :( |
hmm ill take a look, maybe i did some other mods first.. i think i got the code from a minicart mod someone else posted
|
well the only other cart mod i remember doing was this one for the minicart:
http://forum.x-cart.com/viewtopic.php?t=19065 so you could try that and see if it changes anything. Im not really a coder i just find other peoples stuff and tweak it until it works the way i want so someone more familiar with smarty could help better. |
All times are GMT -8. The time now is 01:25 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.