Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made checkout root customizable #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions data/PopRestStoreAaaSetupData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ along with this software (see the LICENSE.md file). If not, see
<moqui.basic.Enumeration enumCode="template_server_product" description="Template Server Product" enumId="PsstTemplateServerProduct" enumTypeId="ProductStoreSettingType"/>
<moqui.basic.Enumeration enumCode="template_server_search" description="Template Server Search" enumId="PsstTemplateServerSearch" enumTypeId="ProductStoreSettingType"/>
<moqui.basic.Enumeration enumCode="template_server_category" description="Template Server Category" enumId="PsstTemplateServerCategory" enumTypeId="ProductStoreSettingType"/>
<moqui.basic.Enumeration enumCode="template_server_checkout" description="Template Server Checkout" enumId="PsstTemplateServerCheckout" enumTypeId="ProductStoreSettingType"/>

<!-- store setting used for dynamically setting the productStoreId depending on the hostname -->
<moqui.basic.Enumeration enumCode="product_store_id_from_hostname" description="Product Store ID From Hostname" enumId="PsstHostname" enumTypeId="ProductStoreSettingType"/>
Expand Down
1 change: 1 addition & 0 deletions screen/store.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ var storeInfo = ${storeInfoJson};
<set field="template_server_product" from="storeInfo.settings.template_server_product" default-value="component://PopRestStore/template/store/product.html.ftl"/>
<set field="template_server_content" from="storeInfo.settings.template_server_content" default-value="component://PopRestStore/template/store/help.html.ftl"/>
<set field="template_server_search" from="storeInfo.settings.template_server_search" default-value="component://PopRestStore/template/store/search.html.ftl"/>
<set field="template_server_checkout" from="storeInfo.settings.template_server_checkout" default-value="component://PopRestStore/template/store/checkout.html.ftl"/>
</pre-actions>

<widgets>
Expand Down
3 changes: 1 addition & 2 deletions screen/store/d.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ along with this software (see the LICENSE.md file). If not, see
]]></script></pre-actions>

<widgets>
<render-mode><text type="html"><![CDATA[<div id="app"></div>]]></text></render-mode>
<!-- TODO use server rendered footer to avoid redundant templates: <render-mode><text type="html" location="component://PopRestStore/template/store/footer.html.ftl"/></render-mode> -->
<render-mode><text type="html" location="${template_server_checkout}"/></render-mode>
</widgets>
</screen>
1 change: 1 addition & 0 deletions template/store/checkout.html.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div id="app"></div>