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
I was wondering if there was any good documentation available for adding coupons or discount codes to your site.
Thank You
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
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
I'll need to troubleshoot directly, see the private message section.
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
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.
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.
you don't update the code directly, open the server behaviors panel and double click the store order summary behavior to make changes.
Is this in the cart.php page? in the server behaviors I don't see anything called store order summary.
should be on the page where you saw the code you quoted in the earlier thread. probably confirm.php
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.