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>



All times are GMT -8. The time now is 01:13 PM.

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