View Single Post
  #3  
Old 07-23-2006, 07:43 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Editing /skin1/customer/main/cart.tpl

Quote:
Originally Posted by geckoday
What you really should do is delete the title (Selected options) as I said above, leave {$v.class}:$nbsp in and change the name of your option from Color to Color/Shade. That way if you ever have options other than color they will display properly. This will change the product page option from Color to Color/Shade as well. But is't that what you want - have it say the same thing on the product page and in the cart?

Bingo. Thanks for the suggestion.

1. I restored the language, "Selected options" back to "Selected options"
2. I restored the {$v.class} variable from /skin1/modules/Product_Options/display_options.tpl , per your suggestion (also made v.class [b];
Code:
<TR> <TD>{$v.class}:</TD> <TD>{$v.option_name}</TD> </TR>
3. I renamed the color option to "Color/Shade"
4. in /skin1/customer/main.cart.tpl - I changed the following:

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}

to look like

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

That seemed to do the trick...

Is there a better way to do this?

I DO NOT need to see the "Selected options" label -- the variant label (in bold) is all that I need to see... I think the code will give me this now.

Thanks a zillion for pointing this newb in the right direction. I WILL get it one of these days, and I am grateful to the community for being here. Someday I hope to give back as much as I get from reading everyone's posts.

Thanks!

Jeremy

PS -- is there a way to COMMENT OUT these kinds of edits, as opposed to saving a backup, labeling the backup, etc... ?

I tried using {* and *} but that didn't seem to work for this -- is this because we're deep into Smarty territory? I need to learn more about Smarty, I know... baby steps....
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote