Created
April 10, 2018 22:40
-
-
Save mghdotdev/600d4b5363a4c6d753c1cc90fe225aab to your computer and use it in GitHub Desktop.
Reel Fly Rod Custom Builder Notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Storage: | |
1) Use global variables: | |
g.Rod = PRODUCT_CODE | |
g.Reel = PRODUCT_CODE | |
g.Line = PRODUCT_CODE | |
Select Button Action | |
1) Make the select button an anchor link using this template => | |
LINK_TO_NEXT_SUBCATEGORY.html?PLACEHOLDER=PRODUCT_CODE&FILTER=PRODUCT_FILTER_VALUE | |
tokens: | |
LINK_TO_NEXT_SUBCATEGORY = Either /rods.html, /reels.html or lines.html | |
PLACEHOLDER = Rod/Reel/Line | |
PRODUCT_CODE = the product code of the Rod/Reel/Line | |
FILTER = Compatibility filter code. Follow Miva 9.8 search format. | |
PRODUCT_FILTER_VALUE = Compatibility filter value for the selected product | |
Each step adds the additional "PLACEHOLDER=PRODUCT_CODE" fragment. | |
Search/Filter Display: | |
1) Hide the compatibility filters from the side bar to prevent user overrides. | |
2) Sort the products by Price HIGH to LOW by default. | |
Determine step number by checking null values: | |
Ex: | |
<mvt:if expr="(NOT ISNULL g.Rod)"> | |
<mvt:assign name="g.Step" value="2" /> | |
<mvt:elseif expr="(NOT ISNULL g.Rod) AND (NOT ISNULL g.Reel)"> | |
<mvt:assign name="g.Step" value="3" /> | |
<mvt:elseif expr="(NOT ISNULL g.Rod) AND (NOT ISNULL g.Reel) AND (NOT ISNULL g.Line)"> | |
<mvt:assign name="g.Step" value="4" /> // review step | |
<mvt:else> | |
<mvt:assign name="g.Step" value="1" /> | |
</mvt:if> | |
Final review step: | |
1) Pull in attributes either via AJAX call or in-line item. | |
2) Use the ADPM action to add the products to the cart. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment