Basket don't calculate product options

Basket don't calculate product options

Tuesday 23 May 2006 8:05:28 pm - 5 replies

Author Message

bisk

Wednesday 24 May 2006 1:18:09 am

Try to put the options inside the form tags.

So a part of your code will have to be something like this:

<form method="post" action={"content/action"|ezurl}>

{attribute_view_gui attribute=$node.object.data_map.your_options}

<input type="submit" class="defaultbutton"  name="ActionAddToBasket"  value="{"Add to basket"|i18n("design/base")}" />
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
<input type="hidden" name="ViewMode" value="full" />
</form> 

I've done something similar a few days ago.

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Evandro Pastor

Wednesday 24 May 2006 9:21:52 am

Hello bisk!

Thanks for your tip! It's working perfectly!

But I've another problem:

in pending order;
email sended to client;
and im the order control, in control panel

dont apper these options itens. In the order only have a one line with total number of itens for all options from the same product.

Does the procedure that you described decides this new problem? Do I have to do any other procedure?

ps.: again, sorry about my english :)

Evandro Pastor

Wednesday 24 May 2006 10:01:11 am

bisk

Wednesday 24 May 2006 1:27:54 pm

dont apper these options itens. In the order only have a one line with total number of itens for all options from the same product.

Sorry, but I don't exactly understand what you mean.

For example in "email sended to client;" the options do not show up, because the code used in the template only loops through the ordered products but does not loop through the options of each ordered product. So for orderemail.tpl you will have to create an override template.

So for example for orderemail.tpl replace some of it's default code with something like this:

Your order:
{section var=product_item loop=$order.product_items}

{$product_item.item_count}x {$product_item.object_name} {$product_item.price_inc_vat|l10n(currency)}

{section show=$product_item.item.item_object.option_list}

With the options:
{section var=product_options loop=$product_item.item_object.option_list}

{$product_options.name}: {$product_options.value} {section show=$product_options.price|ne( 0 )}{$product_options.price|l10n( currency )} {/section}

{/section}


{/section}
{/section}
     
Product Total: {$order.product_total_inc_vat|l10n(currency)}
{section var=order_item loop=$order.order_items show=$order.order_items}
{$order_item.description}: {$order_item.price_inc_vat|l10n(currency)}
{/section}

Order Total: {$order.total_inc_vat|l10n(currency)}

In the admin area or the control panel, the options should show up by default I think. Click on the order id. If they do not show up, there might be a problem somewhere else.

Let me know if you have any problems.

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Evandro Pastor

Thursday 25 May 2006 7:36:16 am

Your tip worked perfectly :) Thanks for you help. And again, sorry about my english :D

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.