PDA

View Full Version : <?=$Item_Total?> call not working!?!?!


Laxidasical
February 25th, 2004, 09:08 PM
I am using cart version 1.0.9...

I placed the <?=$Item_Total?> call in order_confirmation_item.php in my custom theme directory. This is what I am using in both order_confirmation_item.php and email_merchant_item.php...

(<?=$Quantity?>) <?=$Name?>[<?=Product_Code?>] @ <?=$Item_Total?> <?=$Options?>

The result I get is something like:

(1) Lubricant[G01] @ <?=$Item_Total?>

It works fine in email_merchant_item.php, just not order_confirmation_item.php! I haven't tried it, but I'm guessing <?=$Options?> is going to do the same thing. How do I fix this???

Laxidasical
March 4th, 2004, 03:15 AM
Any update on this????

Jamie
March 11th, 2004, 05:14 PM
Hi,

That was a bug that was fixed since v1.0.9. To fix it, add this @ line 65 of squirrelcart/functions/order_confirmation_email.func:

$new_item_file = str_replace('<?=$Item_Total?>',$item['item_total'],$new_item_file);

Thanks,
Jamie

Laxidasical
March 11th, 2004, 10:57 PM
I don't have a file called "order_confirmation_email.func", I do however have one called "email_order_confirmation.func". I assume that is the one you are refering too, but I'll wait for you to confirm this before I make any changes.

Thanks!!!

Jamie
March 12th, 2004, 03:01 PM
Yes, that is the right name. Sorry about that!

-Jamie

Laxidasical
March 12th, 2004, 08:32 PM
Thanks Jamie!