- in Admin Console
- go to Structure & Data → Website & Content section
- go to Products category
- click on Sections tab
- create Sub Products category in the Products category using Add button on toolbar
- switch to Sub Products category using tree in the left frame
- click on Products tab
- use Add button on toolbar to add new Tangible product
- go to E-commerce → Discounts & Certificates section
- go to Coupons tab
- press Add button on toolbar to open coupon creation window
- press Generate Code to generate coupon code
- enter any coupon name & amount
- go to Items tab
- press Entire Order button on toolbar
- press Save button on toolbar
- on Front-End
- click on Products item in top menu
- click on Sub Products item in dropdown menu, that was shown
- click Buy Now button below a product
- confirm, that redirect to shopping cart page was made
- enter created before coupon code into If you have coupon code, enter it here field
- press Update Cart button
- confirm, that instead coupon entry field the coupon name is shown with Recycle Bin icon
- click on Recycle Bin icon next to coupon name
- confirm, that coupon was removed
- in IDE
- open /themes/advanced/in-commerce/checkout/shop_cart.tpl template
- locate lines containing <inp2:ord_RemoveCouponLink type="coupon"/> tag
- change tag usage to the <inp2:ord_RemoveCouponLink type="coupon" my_param="1"/>
- on Front-End
- enter created before coupon code into If you have coupon code, enter it here field
- press Update Cart button
- move mouse over the Recycle Bin icon that is displayed next to applied coupon name
- confirm, that product removal link contains my_param=1 string
Details
Details
- Reviewers
glebs - Commits
- rMINC16360: Fixes MINC-146 - Modernize "orditems:RemoveCouponLink" tag
Diff Detail
Diff Detail
- Repository
- rMINC Modules.In-Commerce
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.