close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

HELP! - Big Currency Error

Thread began 6/21/2011 4:55 am by hbibizadeh396670 | Last modified 6/24/2011 7:18 am by hbibizadeh396670 | 4209 views | 22 replies

hbibizadeh396670

Ok thank you.

That worked for my currency, however I need to make my Tax and Promo Code Dynamic as well.

If I could just deal with my Tax First.

I had hoped I could just apply what I learnt from the currency to make tax dynamic (Which was why I did not say before) however it does not work.

Here is the code.

function WAEC_eCart_SalesTax() {
$totalTax = 0;
if (true && (($this->GetTaxableTotal() > 0))) {
$totalTax += ($this->GetTaxableTotal() * "".$row_Settings['Tax']."");//Result
}
return WA_eCart_FormatNumber($totalTax, $this->ForceDecimalsC, $this->DecimalPlacesC);
}

The bit I changed is "".$row_Settings['Tax'].""

From

0.2

I get an error on the cart page:

Notice: Undefined variable: row_Settings in C:\wamp\www\Siteezy_eCart2\WA_eCart\eCart_PHP2.php on line 149
$48.16

What I want to do is enable the Admin to enter a tax value, which is stored in my database table. I need this in case the VAT % changes in the future. I do not want my clients coming back to me when I built them a website 5 years ago, asking me to change there Tax %.

As you can understand this is why I need to do this.



Hope you can help.

Thank you..

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...