Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Showing product option in cart summary (checkout)

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-20-2005, 05:15 PM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default 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.
__________________
4.2.2
Reply With Quote
  #2  
Old 07-20-2005, 07:12 PM
 
instinctual instinctual is offline
 

eXpert
  
Join Date: Nov 2003
Posts: 247
 

Default 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...
__________________
Instinctual
8,000 feet up in the Rocky Mountains of Colorado
X-Cart Versions 3.5.x - 4.0.x

IF you xcart, THEN you prosper, ELSE you fail. ELSEIF xcart fails, THEN you fix it, all the WHILE {loop}\'ing {section}\'s to feed your $smarty mind.
Reply With Quote
  #3  
Old 07-21-2005, 03:01 PM
 
hudge hudge is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 50
 

Default

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}
__________________
-----www.hudge.com------
X-Cart Pro v4.1.8
X-Cart Gold v4.1.8
Lite Commerce v2.2
Reply With Quote
  #4  
Old 07-21-2005, 05:49 PM
  EnriqueHavoc's Avatar 
EnriqueHavoc EnriqueHavoc is offline
 

eXpert
  
Join Date: Jul 2004
Posts: 232
 

Default

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>
__________________
X-Cart 4.0.12
PHP 4.3.11
MySQL 4.0.23
Linux/Apache
Net::SSLeay 1.25
libCURL libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4
www.ewdhosting.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:42 AM.

   

 
X-Cart forums © 2001-2020