close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Coupons / Discount Code Tutorials

Thread began 10/13/2014 12:40 pm by Daniel | Last modified 10/13/2014 5:02 pm by Jason Byrnes | 1560 views | 9 replies |

Daniel

Coupons / Discount Code Tutorials

I was wondering if there was any good documentation available for adding coupons or discount codes to your site.

Thank You

Sign in to reply to this post

Jason ByrnesWebAssist

Here is an older PDF tutorial that was written for eCart 4, but the concept is the same in current versions:

http://assets.webassist.com/solutionrecipes/ecart_coupons_sr.pdf

Sign in to reply to this post

Daniel

Jason,

I've followed the steps, but when I put in the promocode of WebAssist, it doesn't do anything at all.

First, I have the for with the name CouponCode and id CouponCode starting after the closing form and closing div for the continue shopping button, clear cart button, and the other two.

<input type="submit" name="Summit_Checkout" id="Summit_Checkout" value="Checkout" class="eC_FormButton" /></td>
</tr>
</table>
</form>
</div>
<form name="CouponCode" id="CouponCode">
<label for="Coupon Code">Coupon Code</label>
<input name="txtPromoCode" type="text" id="txtPromoCode">
<br>
<input type="button" value="Submit"></form>

In Server behaviors, I followed everything exactly, and it looks like the images that are on that pdf document, so i'm assuming it has something to do with that form that was made.

Also, what I would like to do is if a person uses a coupon, then I would like to be able to save what coupon was used in the purchase orders that get saved to the database. I know that I would need to add to the orders table something named CouponCode for example, but I'm not sure what would be needed to have eCart send the coupon to the order along with all the other information that gets saved.

Any thoughts?

Thank You

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

Daniel

As far as the database goes, I've only set up a new column named DiscountCode, but haven't' started anything in eCart yet for that.

Also, I'm not sure if we're going to give additional discounts to people who are getting a 25% discount for academia which works great with you help last week.

I would imagine that it is just an additional discount trigger under Promotional Discount
AND Based on session variable value userapproved = a value of 0

where 0 is the default value a new user receives to not get the general 25% discount.

Thank You

Sign in to reply to this post

Jason ByrnesWebAssist

The form method needed to be changed to POST and the button type needed to be changed to submit.

as for saving the discount code that is being used, create a new column in the orders table, and in the store order summary behavior, bid the new column to the Promo Code session variable.

Sign in to reply to this post

Daniel

Jason,

Would this be done on the confirm.php page here?
$WA_connection = $Local;
$WA_table = "orders";
$WA_redirectURL = "";
$WA_indexField = "OrderID";
$WA_fieldNamesStr = "OrderAmount|OrderShipName|OrderShipAddress|OrderShipAddress2|OrderCity|OrderState|OrderZip|OrderCountry|OrderPhone|OrderShipping|OrderTax|OrderEmail|OrderDate";

By adding DiscountCode to the end after OrderDate?

I'm not sure where or what line would be needed to tell it to save the Discount Code.

As far as implementing the discount, it works great... Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

you don't update the code directly, open the server behaviors panel and double click the store order summary behavior to make changes.

Sign in to reply to this post

Daniel

Is this in the cart.php page? in the server behaviors I don't see anything called store order summary.

Sign in to reply to this post

Jason ByrnesWebAssist

should be on the page where you saw the code you quoted in the earlier thread. probably confirm.php

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