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)
-   -   Showing product option in cart summary (checkout) (https://forum.x-cart.com/showthread.php?t=15362)

bobbyftk 07-20-2005 05:15 PM

Showing product option in cart summary (checkout)
 
I would like to the checkout to show the option for the item as well.

The cart shows the option, which in my case is SIZE (i sell clothing & shoes).

but when the customer goes to checkout, only the main product description is shown.

anyone know of a way to have it show the option as well?

example, as of now it shows like this

Adidas Superstar Jacket - White

(white is part of the description btw, not an option.)
i would like it to show

Adidas Superstar Jacket - White Size: L

anyone have any suggestions?

balinor had a suggestion for this in this thread (which i tried, but didnt work)
http://forum.x-cart.com/viewtopic.php?t=19116
but the thread was dedicated to a slightly different issue, so i thought i would post a fresh one.

instinctual 07-20-2005 07:12 PM

assign variable
 
You have to assign the variable and then include the options name into the cart:

Code:

{include file="modules/Product_Options/display_options.tpl" options=$products[prod_num].product_options options_txt=$products[prod_num].product_options_txt force_product_options_txt=$products[prod_num].force_product_options_txt}

That is the code to include the product options text in your .tpl - but making that available would mean that you need to declare it on cart.php -
Something like:

Code:

$smarty->assign("main","orders");

But for options...

hudge 07-21-2005 03:01 PM

I am trying to the exact same thing for a product listing page.

I want it to show options here. I have tried both methods and am getting no luck. :(

http://www.dejaun.com/store/home.php?cat=80

Each column would show an option. All my products in these cats will have the same options.

ie column 1 equal to option1 and so on.

I have tried that... but it was a guess
{if $usertype eq "A"}{$v.class}{else}{$v.classtext|default:$v.class }{/if}

{$products[product].product_options}

EnriqueHavoc 07-21-2005 05:49 PM

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>


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

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