Page MenuHomeIn-Portal Phabricator

MINC-146 - Modernize "orditems:RemoveCouponLink" tag

Authored by alex on Feb 1 2016, 10:45 AM.


Test Plan
  • in Admin Console
    1. go to Structure & DataWebsite & Content section
    2. go to Products category
    3. click on Sections tab
    4. create Sub Products category in the Products category using Add button on toolbar
    5. switch to Sub Products category using tree in the left frame
    6. click on Products tab
    7. use Add button on toolbar to add new Tangible product
    8. go to E-commerceDiscounts & Certificates section
    9. go to Coupons tab
    10. press Add button on toolbar to open coupon creation window
    11. press Generate Code to generate coupon code
    12. enter any coupon name & amount
    13. go to Items tab
    14. press Entire Order button on toolbar
    15. press Save button on toolbar
  • on Front-End
    1. click on Products item in top menu
    2. click on Sub Products item in dropdown menu, that was shown
    3. click Buy Now button below a product
    4. confirm, that redirect to shopping cart page was made
    5. enter created before coupon code into If you have coupon code, enter it here field
    6. press Update Cart button
    7. confirm, that instead coupon entry field the coupon name is shown with Recycle Bin icon
    8. click on Recycle Bin icon next to coupon name
    9. confirm, that coupon was removed
  • in IDE
    1. open /themes/advanced/in-commerce/checkout/shop_cart.tpl template
    2. locate lines containing <inp2:ord_RemoveCouponLink type="coupon"/> tag
    3. change tag usage to the <inp2:ord_RemoveCouponLink type="coupon" my_param="1"/>
  • on Front-End
    1. enter created before coupon code into If you have coupon code, enter it here field
    2. press Update Cart button
    3. move mouse over the Recycle Bin icon that is displayed next to applied coupon name
    4. confirm, that product removal link contains my_param=1 string

Diff Detail

rMINC Modules.In-Commerce
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

alex updated this revision to Diff 479.Feb 1 2016, 10:45 AM
alex retitled this revision from to MINC-146 - Modernize "orditems:RemoveCouponLink" tag.
alex updated this object.
alex edited the test plan for this revision. (Show Details)
alex added 1 JIRA issue(s): MINC-146.
alex edited the test plan for this revision. (Show Details)Feb 1 2016, 10:46 AM
alex edited edge metadata.
glebs accepted this revision.Feb 19 2016, 6:29 AM
glebs edited edge metadata.
This revision is now accepted and ready to land.Feb 19 2016, 6:29 AM
alex edited edge metadata.Mar 10 2016, 5:14 AM
alex added a project: Restricted Project.
This revision was automatically updated to reflect the committed changes.