close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

calculations

Thread began 5/27/2011 12:23 am by QuiruNet | Last modified 5/31/2011 11:05 am by Jason Byrnes | 2778 views | 13 replies |

QuiruNet

calculations

how can i multiply times 100 the GRANDTOTAL?, my bank as me to this multipication to check out to payment plataform. i try it in Object Ecart but I can not do the calculation because i can not put the shipping total, in the shipping formula i have two rules with a flat rate.


<?php echo WA_eCart_DisplayMoney($tenacitas, $tenacitas->GrandTotal()); ?>

Sign in to reply to this post

Jason ByrnesWebAssist

use the following code:

php:
<?php echo(WA_eCart_DisplayMoney($tenacitas$tenacitas->GrandTotal()) * 100); ?>
Sign in to reply to this post

QuiruNet

no decimal

it do the multiplication but is a round number, how i can do to show the decimals.

Sign in to reply to this post

Jason ByrnesWebAssist

use this code:

php:
<?php echo(WA_eCart_DisplayMoney($tenacitas$tenacitas->GrandTotal() * 100)); ?>
Sign in to reply to this post

QuiruNet

it is working

i have the same problen with ecart4 but in asp you can help me to the same operation the code is:

<%=WA_eCart_DisplayMoney(tienda, WA_eCart_GrandTotal(tienda))%>

thanks

Sign in to reply to this post

Jason ByrnesWebAssist

<%=WA_eCart_DisplayMoney(tienda, WA_eCart_GrandTotal(tienda) * 100)%>

Sign in to reply to this post

QuiruNet

bank news

the bank tolme if we can send the total with out decimal spaces, how i can do it?

I wrote this code you sendme:
<?php echo(WA_eCart_DisplayMoney($tenacitas, $tenacitas->GrandTotal() * 100)); ?>

an for example the number diplay like this: 280.50, but the bank plataform need like this 28050

Please can you send me the answer for asp too:
<%=WA_eCart_DisplayMoney(tienda, WA_eCart_GrandTotal(tienda) * 100)%>

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

PHP:
<?php echo(str_replace(".", "", WA_eCart_DisplayMoney($tenacitas, $tenacitas->GrandTotal() * 100))); ?>
ASP:

<%=Replace(WA_eCart_DisplayMoney(tienda, WA_eCart_GrandTotal(tienda) * 100), ".", "")%>

Sign in to reply to this post

QuiruNet

What i need is like this (example): 1490, i wrotte the code you give me and display like this: 1490,00 &#8364;, and need only like this: 1490

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

PHP:
<?php echo(str_replace(".", "", $tenacitas->GrandTotal() * 100)); ?>

ASP:
<%=Replace(WA_eCart_GrandTotal(tienda) * 100, ".", "")%>

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...