Developer forum

Forum » Ecommerce - Standard features » Can't purchase with Gift Card Code

Can't purchase with Gift Card Code

Hsu Sandar Swe
Reply

Hi, 

I want to use gift card code to purchase order. So, I added codes in cart page as per document mentioned. 

When I applied gift card code in order, it was effective on applied order. After going next step (payment) , the gift card amount was removed from order. 

Please could you advice me how can I use gift card code correctly.

Here is html tag I put in cart template. 

<input type="text" class="u-full-width" placeholder="@Translate("Enter code")" name="EcomOrderGiftCardCode" id = "EcomOrderGiftCardCode" onkeyup="checkEmpty();" value="@GetString("Ecom:Order.Customer.GiftCardCode")" />

 


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply
This post has been marked as an answer

Hi,

You use not correct tag name, it should be Ecom:Order.GifTCardCode. Here is simple html uses the tag and ordered OK.

            <dl>
                <dt>
                    <label for="EcomOrderGiftCardCode"><!--@Translate(giftcardcode, "GiftCard code")--></label>
                </dt>
                <dd>
                   <input type="text" name="EcomOrderGiftCardCode" id="EcomOrderGiftCardCode" value="<!--@Ecom:Order.GifTCardCode-->" />
                </dd>
            </dl>

BR, Oleg QA

Votes for this answer: 1
 
Hsu Sandar Swe
Reply

Hi Oleg, 

Thank a lot for your solution. Now , I can use gift card code to purchase an order. 

Best regards

 

You must be logged in to post in the forum