Skip to content

Commit

Permalink
Merge pull request #1 from teodormoq/feature/cookie-popup
Browse files Browse the repository at this point in the history
Feature/cookie popup
  • Loading branch information
alfredsgenkins authored Mar 26, 2020
2 parents 50b2e2e + 28594b8 commit e908c42
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ Adds *ScandiPWA* tab in the Store configuration. Adds color and content configur
- Footer, Cart, Mini-cart, Checkout CMS block selection
- Product card displayed attribute selection
- Main menu switcher
- Cookie popup content
3 changes: 2 additions & 1 deletion src/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @category ScandiPWA
* @package ScandiPWA\Customization
* @author Alfreds Genkins <[email protected]>
* @author Teodor Moquist <[email protected]>
* @copyright Copyright (c) 2015 Scandiweb, Ltd (http://scandiweb.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
Expand All @@ -16,4 +17,4 @@
<include path="ScandiPWA_Customization::system/colors.xml"/>
<include path="ScandiPWA_Customization::system/content.xml"/>
</system>
</config>
</config>
17 changes: 16 additions & 1 deletion src/etc/adminhtml/system/content.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @category ScandiPWA
* @package ScandiPWA\Customization
* @author Alfreds Genkins <[email protected]>
* @author Teodor Moquist <[email protected]>
* @copyright Copyright (c) 2015 Scandiweb, Ltd (http://scandiweb.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
Expand Down Expand Up @@ -85,5 +86,19 @@
<source_model>ScandiPWA\Customization\Model\Product\Attribute\Source\VisibleOnFrontend</source_model>
</field>
</group>

<group id="cookie_content" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Cookie Popup</label>

<field id="cookie_text" translate="label" type="textarea" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Cookie Popup Text</label>
<comment>The text there is displayed in the cookie popup.</comment>
</field>

<field id="cookie_link" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Cookie Popup Read more Link</label>
<comment>The link there is used in the read more for cookie popup.</comment>
</field>
</group>
</section>
</include>
</include>

0 comments on commit e908c42

Please sign in to comment.