As i played around with the code i found a solution to the problem that i posted earlier. To get 2Checkout to work and still be able to display the "$" signs in your products' pages and cart, do the following:
- First disable the "$" sign from the "Main AgoraCart Store Settings". This will display all prices on your website without the "$" sign. Now we have to add the "$" sign manually in our pages:
- Edit the following line in
ProductPage.inc:
<FONT FACE="ARIAL" SIZE="2" color="#FF0000">%%price%%</font>
To:
<FONT FACE="ARIAL" SIZE="2" color="#FF0000">
$ %%price%%</font>
- Search for all lines that contain the following line in
agora_order_lib.pl:
print "<TD $order_item_def>$cart_font_style $val</FONT></TD>\n";
Change them to:
print "<TD $order_item_def>$cart_font_style
\$ $val</FONT></TD>\n";
- Change the following line:
<TD $order_item_def>$cartnum_font_style $price</FONT></TD>
To:
<TD $order_item_def>$cartnum_font_style
\$ $price</FONT></TD>
- Change the following line:
print "<TD $order_item_def>$cartnum_font_style
$grand_total</FONT></TD>\n";
To:
print "<TD $order_item_def>$cartnum_font_style
\$ $grand_total</FONT></TD>\n";
If you are using the code that generates the cart summary in your pages, then edit the following code:
"Subtotal: " . &display_price($total_cost) .
To:
"Subtotal:
\$" . &display_price($total_cost) .
This should put the "$" sign almost every where you need it on your website. However, I couldn't figure out an easy way to add the "$" sign to the Price column in the shopping cart.
I tested all these changes with 2Checkout and everything worked fine. Please let me know if the suggestions i provided didn't work.
Cheers!
Ahmed