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)
-   -   Product Options on Payment Detail Page (https://forum.x-cart.com/showthread.php?t=30152)

nikki 04-01-2007 12:00 PM

Product Options on Payment Detail Page
 
I would prefer, as a customer, to see that the options and variants I selected show up on the payment detail page. Is this possible? When I add the item to the cart I can select my options and see them there. When I go to checkout only the base SKU/Product name appears without the selected options.

stevekem 04-01-2007 02:47 PM

Re: Product Options on Payment Detail Page
 
Open file "/skin1/customer/main/cart_contents.tpl" and find the following below:

PHP Code:

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


Change to:

PHP Code:

<td>{$products[prod_num].product|truncate:30:"...":true}
{include 
file="modules/Product_Options/display_options.tpl" options=$products[prod_num].product_options}</td


nikki 04-02-2007 03:42 AM

Re: Product Options on Payment Detail Page
 
Thank you,
I made the changes, see below, but still don't see the option listed in the payment details area. Perhaps I mis-typed something?

<td>{$product[prod_num].product|truncate:30:"...":true}
{include file="modules/product_options/display_options.tpl"options=$products[prod_num].product_options}</td>

stevekem 04-02-2007 06:11 AM

Re: Product Options on Payment Detail Page
 
1 Attachment(s)
Hello,

Just to clarify, you are trying to show the options selected for each product right below the product title in the shopping cart and throughout checkout, like attached pic, correct?





Quote:

Originally Posted by nikki
Thank you,
I made the changes, see below, but still don't see the option listed in the payment details area. Perhaps I mis-typed something?

<td>{$product[prod_num].product|truncate:30:"...":true}
{include file="modules/product_options/display_options.tpl"options=$products[prod_num].product_options}</td>


nikki 04-02-2007 06:18 AM

Re: Product Options on Payment Detail Page
 
Thank you again,

Yes that's correct. Just like your example.

stevekem 04-02-2007 06:28 AM

Re: Product Options on Payment Detail Page
 
Have you tried clearing your cache?





Quote:

Originally Posted by nikki
Thank you again,

Yes that's correct. Just like your example.


nikki 04-02-2007 06:31 AM

Re: Product Options on Payment Detail Page
 
Yes I did.

stevekem 04-02-2007 09:47 AM

Re: Product Options on Payment Detail Page
 
Hello Nikki,

It looks like the code you had copied has some mis-spellings in it. Try copying the code I posted at the beginning of this message and pasting it in your file at the appropriate lines. Make sure everything is EXACTLY right including letters that are capitalized. If you compare the code I posted and the code you posted, you can see the incorrect parts (ie. Product_Options should be capitalized, etc). Let me know if it works!




Quote:

Originally Posted by nikki
Yes I did.


nikki 04-02-2007 11:25 AM

Re: Product Options on Payment Detail Page
 
Thank you,

I have fixed my errors and pasted it exactly as you directed. Still don't see the options during checkout.

<td>{$products[prod_num].product|truncate:30:"...":true}
{include
file="modules/Product_Options/display_options.tpl" options=$products[prod_num].product_options}</td>

stevekem 04-02-2007 12:36 PM

Re: Product Options on Payment Detail Page
 
Could you post the entire contents of this file on here to review?

/skin1/customer/main/cart_contents.tpl



Quote:

Originally Posted by nikki
Thank you,

I have fixed my errors and pasted it exactly as you directed. Still don't see the options during checkout.

<td>{$products[prod_num].product|truncate:30:"...":true}
{include
file="modules/Product_Options/display_options.tpl" options=$products[prod_num].product_options}</td>


nikki 04-02-2007 12:42 PM

Re: Product Options on Payment Detail Page
 
Here it is...


{* $Id: cart_contents.tpl,v 1.24 2005/11/17 06:55:37 max Exp $ *}
<table cellpadding="5" cellspacing="1" width="100%">
<tr class="TableHead">
<td><b>{$lng.lbl_qty}</b></td>
<td><b>{$lng.lbl_sku}</b></td>
<td><b>{$lng.lbl_product}</b></td>
{if $cart.display_cart_products_tax_rates eq "Y"}
<td align="center"><b>{if $cart.product_tax_name ne ""}{$cart.product_tax_name}{else}{$lng.lbl_tax }{/if}</b></td>
{/if}
<td align="right"><b>{$lng.lbl_price}</b></td>
<td align="right"><b>{$lng.lbl_total}</b></td>
</tr>
{section name=prod_num loop=$products}
<tr{cycle values=", class='TableSubHead'"}>
<td class="ProductPriceSmall">{if $config.Appearance.allow_update_quantity_in_cart eq "N" or ($active_modules.Egoods and $products[prod_num].distribution) or ($active_modules.Subscriptions and $products[prod_num].sub_plan)}{$products[prod_num].amount}{else}{if $link_qty eq"Y"}<a href="cart.php">{$products[prod_num].amount}</a>{else}<input type="text" size="3" name="productindexes[{$products[prod_num].cartid}]" value="{$products[prod_num].amount}" />{/if}{/if}</td>
<td>{$products[prod_num].productcode}</td>
<td>{$products[prod_num].product|truncate:30:"...":true}
{include file="modules/Product_Options/display_options.tpl" options=$products[prod_num].product_options}</td>
{if $cart.display_cart_products_tax_rates eq "Y"}
<td align="center">
{foreach from=$products[prod_num].taxes key=tax_name item=tax}
{if $cart.product_tax_name eq ""}<span style="white-space: nowrap;">{$tax.tax_display_name}:</span>{/if}
{if $tax.rate_type eq "%"}{$tax.rate_value}%{else}{include file="currency.tpl" value=$tax.rate_value}{/if}<br />
{/foreach}
</td>
{/if}
<td class="ProductPriceSmall" align="right">{include file="currency.tpl" value=$products[prod_num].display_price}</td>
{math equation="x*y" x=$products[prod_num].display_price y=$products[prod_num].amount assign="total"}
<td class="ProductPriceSmall" align="right">{include file="currency.tpl" value=$total}</td>
</tr>
{/section}
{if $active_modules.Gift_Certificates ne ""}
{include file="modules/Gift_Certificates/gc_checkout.tpl"}
{/if}
</table>

stevekem 04-02-2007 01:02 PM

Re: Product Options on Payment Detail Page
 
Everything looks good. Unfortunately I do not know what else to tell you to try as it should be working for you. Maybe somebody else could come along and offer some other suggestions. I wish I could help you further.



Quote:

Originally Posted by nikki
Here it is...


proboscidian 05-03-2007 03:57 AM

Re: Product Options on Payment Detail Page
 
Did you set Smarty to recompile the templates? The changes won't show if compile_check and force_compile are set to false while you're in development.


All times are GMT -8. The time now is 02:10 AM.

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