close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

dynamic discount code for date(s)

Thread began 5/20/2020 2:20 am by MAURIANS | Last modified 5/25/2020 1:15 pm by Ray Borduin | 70 views | 14 replies |

MAURIANS

dynamic discount code for date(s)

I am asking about dynamic discount, like to have separate product once added to cart will be discounted based on start & end date depending on database entry for customers.

I tried using coupon code but not working like I need after changing coding still not working.

Sign in to reply to this post

Ray BorduinWebAssist

It should be possible to do. If you need help you can schedule a premier support ticket and we can work on it together. There isn't enough information in your post to diagnose what might be going wrong.

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

MAURIANS

I created a database called DISCOUNT based on product. I can enter data that corresponds to date (start/end) once customer adds product to cart this should:

Database Driven Discounts

1. See dates to add discount only to that product
2. If no date discount will still work until I disable or delete table.

Sign in to reply to this post

Ray BorduinWebAssist

You should be able to add to cart page and look up the associated discount for that item and filter to make sure it is in the date range.

Then you could add a column to your cart for itemDiscount and insert the value from the recordset.

After that, create a discount rule to the cart equal to the total of the itemDiscount amounts.

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

MAURIANS

Btw is there any tutorials I can use to get me started - Thanks

Sign in to reply to this post

Ray BorduinWebAssist

I don't know of a specific tutorial for this exact scenario, but you can look at any of the tutorials on eCart discounts to see the concepts involved.

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

MAURIANS

Here is what I found looks like nothing else was done - http://www.webassist.com/forums/posts.php?id=30934

Sign in to reply to this post

Ray BorduinWebAssist

Here are some more tutorials about coupons:

http://www.webassist.com/tutorials/eCart-Coupon-series
http://www.webassist.com/tutorials/Static-eCart-coupon-code-II
http://www.webassist.com/tutorials/Static-eCart-coupon-link
http://www.webassist.com/tutorials/Static-eCart-coupon-code-I

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

MAURIANS

Here is what I have so far, like to have "discountTotal" subtracted per product price

example:

qty discount price total

1 $5 $45 $40

Sign in to reply to this post

Ray BorduinWebAssist

I'm going to need a detailed description of where you are getting stuck in order to give advice.

If you are just trying to get the discount total subtracted from the total, then there are a couple of ways to do that. You can do it by updating your cart object calculations or by adding a discount rule. It depends on where you want it listed on your view cart page.

Sign in to reply to this post
Did this help? Tips are appreciated...
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...