Master Facet Setup (SCA websites)
- or -
Post a project like this$28/hr
- Posted:
- Proposals: 4
- Remote
- #2200306
- Expired
Description
Experience Level: Expert
Estimated project duration: less than 1 week
Definition Note:
We have some PARENT MATRIX items which are currently available on both the 2 B2C Websites & a B2B Websites
However, in the B2B, some additional MATRIX CHILD items ( Colour Variants) of the same PARENT MATRIX ITEM should be visible
In B2C these MATRIX CHILD ITEMS (Colour Variants) should not be visible
Also it needs to be ensured that Item Images corresponding to the colour variants must only be seen in Website B, not in Website A.
Approach:
1. Custom item field (facet)
Create an Item Field - "Hide from B2C Webstores" (Type checkbox).
Also add it to every matrix child fieldset (matrxichilditem_details and others if you have others), and
Order fieldset
2. Master Facet:
Modules/suitecommerce/SCA@3.0.0/JavaScript/SC.Configuration.js
Based on this, need to add to searchApiMasterOptions the value for custitem_hide_from_b2c: 'T'
3. Item.Model.js
Implement in the parse method, to filter out in the raw JSON Object, all matrixchild_detail items with custitem_hide_from_b2c = T
4. ProductDetails Router:
Here, in productDetails function, if item is matrix but item.get('_matrixChilds') === 0 (model would filter items) then throw a 404.
5. Server-side validation:
After live order. get a check that there is no item in the cart with custitem_hide_from_A= T. If there is, remove it and recalculate LiveOrder.get
6. Colour Images need to be identified and prevented from being displayed on the B2C Website:
Currently we find that if the image name e matches the format “URL Component -” , all images show up.
You can find the naming convention of the images here -Please suggest approach
We have some PARENT MATRIX items which are currently available on both the 2 B2C Websites & a B2B Websites
However, in the B2B, some additional MATRIX CHILD items ( Colour Variants) of the same PARENT MATRIX ITEM should be visible
In B2C these MATRIX CHILD ITEMS (Colour Variants) should not be visible
Also it needs to be ensured that Item Images corresponding to the colour variants must only be seen in Website B, not in Website A.
Approach:
1. Custom item field (facet)
Create an Item Field - "Hide from B2C Webstores" (Type checkbox).
Also add it to every matrix child fieldset (matrxichilditem_details and others if you have others), and
Order fieldset
2. Master Facet:
Modules/suitecommerce/SCA@3.0.0/JavaScript/SC.Configuration.js
Based on this, need to add to searchApiMasterOptions the value for custitem_hide_from_b2c: 'T'
3. Item.Model.js
Implement in the parse method, to filter out in the raw JSON Object, all matrixchild_detail items with custitem_hide_from_b2c = T
4. ProductDetails Router:
Here, in productDetails function, if item is matrix but item.get('_matrixChilds') === 0 (model would filter items) then throw a 404.
5. Server-side validation:
After live order. get a check that there is no item in the cart with custitem_hide_from_A= T. If there is, remove it and recalculate LiveOrder.get
6. Colour Images need to be identified and prevented from being displayed on the B2C Website:
Currently we find that if the image name e matches the format “URL Component -” , all images show up.
You can find the naming convention of the images here -Please suggest approach
PaperPlane S.
100% (1)Projects Completed
1
Freelancers worked with
1
Projects awarded
0%
Last project
11 Dec 2018
India
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies