- in Admin Console
- go to Website & Content → Structure & Data section
- go to Products category
- switch to Sections tab
- use Add toolbar button to add new Sub Products category
- switch to Sub Products category using tree in left frame
- switch to Products tab
- add new Tangible product by using New Product button
- on the Front-End:
- click on Products top menu item
- click on Sub Products sub menu item, that appeared
- confirm, that created product is shown
- click on product to see it's detail page
- in IDE:
- open /themes/advanced/in-commerce/products/product_detail.tpl template
- locate <inp2:m_if check="p_ImageSrc" MaxWidth="fullsize"> line
- replace whole <inp2:m_if ...> ... </inp2:m_if> tag with <inp2:p_Image render_as="image_element" Primary="1" MaxWidth="thumbnail" DefaultWidth="150" DefaultImage="platform/img/no_picture.gif" align="center"/><br />
- on Front-End
- reload the page
- confirm, that default product image is shown
- in IDE:
- add data_exists="1" parameter to p_Image tag
- on Front-End
- reload the page
- confirm, that default image is shown
- in IDE:
- remove the DefaultImage parameter from p_Image tag
- on Front-End
- reload the page
- confirm, that no image is shown
- in IDE:
- remove the data_exists parameter from p_Image tag
- on Front-End
- reload the page
- confirm, that no image is shown
Details
Details
Diff Detail
Diff Detail
- Repository
- rINP In-Portal
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.