I am using Carthrob with the price modifiers fieldtype.
In the add to cart form everything works as it should. However, when I add an item to the cart, I can't get the price to display, and the cart total is all out of wack.
I have done a variety of tests but can't figure out the issue. Can anyone take a look at the following code and see if I am missing something really obvious?
I have the following code for my add to cart form:
{exp:cartthrob:add_to_cart_form return="enter/checkout"}
{exp:cartthrob:item_options entry_id="{entry_id}" }
{select id="purchase-submissions-select" class="standard required"}
<option {selected} value="{option_value}">{option_name} {price}</option>
{/select}
{/exp:cartthrob:item_options}
<input id="purchase-submissions-submit" type="submit" value="Submit" />
{/exp:cartthrob:add_to_cart_form}
and this as a test in my cart:
{exp:cartthrob:update_cart_form return="/index.php/basket/"}
{exp:cartthrob:cart_items_info}
{item_option:fees} - {price} - {quantity}<br />
{if last_row}
{cart_total}
{/if}
{/exp:cartthrob:cart_items_info}
{/exp:cartthrob:update_cart_form}
P.S I have seen the other thread with a similar problem, and have checked and its not the same issue (i.e no dollar symbols in with the price).
Thank you.
cart_items_info
on the outside ofupdate_cart_form
. Maybe try swapping them. – Jason Varga May 27 '13 at 14:23cart_items_info
. You should use{item_price}
instead of{price}
. – Jason Varga May 27 '13 at 14:27