close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Tax rule as per logged in user

Thread began 4/01/2016 7:17 pm by Kumel | Last modified 4/04/2016 11:26 am by Ray Borduin | 1023 views | 5 replies |

Kumel

Tax rule as per logged in user

I have cart & i was wondering how can we add tax rule from users table. Like every customer has different tax rate. I added a new column on User table as TaxRate
Example: User ABC has 5.5% or XYZ has 5%

Also 0.3% Charges , discount of 5% needs to be added on ecart. what options would be perfect for these?
How can it be done?

I got latest version of eCart.

Sign in to reply to this post

Ray BorduinWebAssist

You would want to save the information from the users table into the Session when they log in. Then you can use the session variable to add discounts, charges, and taxes by editing the cart object and using the appropriate tab to add a rule based on the stores session variables.

Sign in to reply to this post
Did this help? Tips are appreciated...

Kumel

i added session new session as UserTax but how does formula work?
Example:
I m looking at something lik this:

PRODUCT | RATE | SUBTOTAL
XYZ | 100 | 100
ABC | 100 | 100

SUBTOTAL: 200**

Discount 5% on subtotal (static value) : -10 *

Sales Tax $_SESSION['UserTax'] (ex: 5) so 5% on subtotal after discount ie 190 (200**-10*) : 9.5
Insurance 0.3% on Subtotal (200): 0.6

TOTAL: 200.1 (200-10+9.5+0.6)

Sign in to reply to this post

Ray BorduinWebAssist

Add the discounts and charges by editing the cart. Do one at a time. Start with the discount. Then add the insurance. Then add the tax.

If you want help then we could do this for you in a premium support ticket.

Sign in to reply to this post
Did this help? Tips are appreciated...

Kumel

In cart i want to use 5% off, all the time. This is default. Screenshot attached.


this is displaying : Parse error: syntax error, unexpected ')' in /***/**/WA_eCart/eCart1_PHP.php on line 90

Sign in to reply to this post

Kumel

Ah thanks anyways. i got it fixed.

Sign in to reply to this post

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