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)
-   -   display_options show each options price @ cart (https://forum.x-cart.com/showthread.php?t=46508)

Xel 03-24-2009 11:40 AM

display_options show each options price @ cart
 
Currently my store's cart shows product options but not the price or % associated with it.

Relevant Code:
skin1/customer/main/cart.tpl
Code:

{strip} 
{include file="modules/Product_Options/display_options.tpl" options=$product.product_options}
{/strip}


skin1/modules/product_options/display_options.tpl
Code:

{*
$Id: display_options.tpl,v 1.14 2008/12/05 12:54:17 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{if $options && $force_product_options_txt eq ''}
{if $is_plain eq 'Y'}
{if $options ne $options_txt}
{foreach from=$options item=v}
  {$v.class}: {$v.option_name}
{/foreach}
{else}
{$options_txt}
{/if}
{else}
{if $options ne $options_txt}
<table width="100%" cellspacing="0" class="poptions-options-list2" summary="{$lng.lbl_product_options|escape}">
{foreach from=$options item=v}
        <tr>
                <td>{$v.class|escape}:</td>
                <td>{$v.option_name|escape}</td>
{*************************}
                                <td>
{from=$v.options item=o}
{strip}
                  {if $v.is_modifier eq 'Y' && $o.price_modifier ne 0}
                    (
                    {if $o.modifier_type ne '%'}
                      {include file="currency.tpl" value=$o.price_modifier display_sign=1 plain_text_message=1}
                    {else}
                      {$o.price_modifier}%
                    {/if}
                    )
                  {/if}
                {/strip}
</td>
{**********************}
        </tr>
{/foreach}
</table>
{else}
{$options_txt|escape|replace:"\n":"<br />"}
{/if}
{/if}
{elseif $force_product_options_txt}
{if $is_plain eq 'Y'}
{$options_txt|escape:"html"}
{else}
{$options_txt|replace:"\n":"<br />"}
{/if}
{/if}


I've marked the section i edited with comment lines.
I don't get any errors, but I also don't get any results...

www.speartech.net/shop/home.php?shopkey=testing
add a home pc to the cart and you'll see what I'm saying.

Thanks in advance!

JWait 03-27-2009 04:40 AM

Re: display_options show each options price @ cart
 
"add a home pc to the cart and you'll see what I'm saying."

I never did see a "add to cart" button, just a seemingly endless string of "configure" buttons that seem to open a new product with more "configure" buttons. I gave up.

Xel 03-27-2009 05:29 AM

Re: display_options show each options price @ cart
 
Well, that's not the user experience I was hoping for...

You select to add a "Case", choose from the list by hitting "details", and then you will see an add to configuration button.

Add the case. Rinse and repeat for the other items required (only the first page, case, monitor, keyboard, mouse).

click continue on the next two "step" pages at the bottom.

On summary page, click "add to cart".

Then you'll see what I'm saying. =/

I'd prefer an ajax configurator, but haven't seen a mod for it :(

Xel 03-27-2009 05:34 AM

Re: display_options show each options price @ cart
 
I actually do intend to remove the other 2 step pages. I think I'll make case step 1, monitor step 2, keyboard and mouse step 3.

Then summary, no accessories or software steps.

Does that sound like a better user experience?


All times are GMT -8. The time now is 02:55 PM.

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