User Tools

Site Tools


faq:ecomm_coupons

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
faq:ecomm_coupons [2009/12/31 15:40 (14 years ago)] eugenefaq:ecomm_coupons [2010/05/14 15:16 (14 years ago)] (current) eugene
Line 14: Line 14:
   - Minimum Order: The lowest value of the contents of the customer's shopping cart that we will allow the coupon to be applied against.   - Minimum Order: The lowest value of the contents of the customer's shopping cart that we will allow the coupon to be applied against.
   - Discount Part: The part number of an inventory item in System Five that will be sent when importing the invoice from the e-commerce system. If the discount part does not exist in System Five when an invoice that uses the coupon is imported, an error message will be written to the invoice's comment.   - Discount Part: The part number of an inventory item in System Five that will be sent when importing the invoice from the e-commerce system. If the discount part does not exist in System Five when an invoice that uses the coupon is imported, an error message will be written to the invoice's comment.
 +
  
  
Line 20: Line 21:
 The form to enter the coupon code should be placed on the normal cart view page, either as part of one of the HTML segments used to construct the page, or the cart template (if the site uses a cart template). The form should submit an action of coupon_submit and the coupon code should be entered into the code field. The following is a simple example of such a form: The form to enter the coupon code should be placed on the normal cart view page, either as part of one of the HTML segments used to construct the page, or the cart template (if the site uses a cart template). The form should submit an action of coupon_submit and the coupon code should be entered into the code field. The following is a simple example of such a form:
  
-  <ww:form_header> +<code html> 
-  <input type="hidden" name="action" value="coupon_submit" /> +<ww:form_header> 
-  <input type="textname="code" /> + <input type="text" name="code" /> 
-  <input type="submit" value="Add Coupon" /> + <input type="submitvalue="Add Coupon" /> 
-  </form>+ <input type="hidden" name="action" value="coupon_submit" />   
 +</form
 +</code>
  
  
   * If the coupon code that the user entered was valid, the cart subtotal will be updated to reflect the discount.   * If the coupon code that the user entered was valid, the cart subtotal will be updated to reflect the discount.
   * It the coupon code is invalid, the <ww:message> tag will provide a description of the problem, that the order is for too small an amount, or that the coupon code is invalid.   * It the coupon code is invalid, the <ww:message> tag will provide a description of the problem, that the order is for too small an amount, or that the coupon code is invalid.
----- 
   * When displaying the shopping cart, the site administrator can show the coupon code and the discount applied to the invoice with the <ww:cart_couponcode> and <ww:cart_couponvalue> tags respectively.   * When displaying the shopping cart, the site administrator can show the coupon code and the discount applied to the invoice with the <ww:cart_couponcode> and <ww:cart_couponvalue> tags respectively.
   * On the checkout page, after the user has submitted their payment details, the <ww:invoice_couponcode> and <ww:invoice_couponvalue> tags do the same purpose.   * On the checkout page, after the user has submitted their payment details, the <ww:invoice_couponcode> and <ww:invoice_couponvalue> tags do the same purpose.
  
faq/ecomm_coupons.1262302814.txt.gz · Last modified: 2009/12/31 15:40 (14 years ago) by eugene