Skip to content

Commit

Permalink
Merge pull request #39 from EmicoEcommerce/beta
Browse files Browse the repository at this point in the history
Merge beta into master
  • Loading branch information
ah-net authored Jan 16, 2025
2 parents cffc452 + 1297d5f commit 3ee0c73
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"license": "OSL-3.0",
"require": {
"php": "^8.1",
"tweakwise/magento2-tweakwise": ">=5.7.4",
"emico/m2-attributelanding": ">=4.1"
"tweakwise/magento2-tweakwise": ">=8.4.0",
"emico/m2-attributelanding": ">=5.1.0"
},
"require-dev": {
"symfony/finder": "^6.4.0",
Expand Down
5 changes: 5 additions & 0 deletions src/Model/FilterApplier/TweakwiseFilterApplier.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public function applyFilters(LandingPageInterface $page)
if ($sortTemplateId) {
$navigationRequest->setSortTemplateId($sortTemplateId);
}

$builderTemplateId = $page->getTweakwiseBuilderTemplate();
if ($builderTemplateId) {
$navigationRequest->setBuilderTemplateId($builderTemplateId);
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,30 @@
</settings>
</actionDelete>
</container>
</dynamicRows>
</dynamicRows>

<field formElement="select" name="tweakwise_builder_template" sortOrder="66">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="source" xsi:type="string">Page</item>
</item>
</argument>

<settings>
<dataType>text</dataType>
<label translate="true">Tweakwise builder template</label>
<dataScope>tweakwise_builder_template</dataScope>
<validation>
<rule name="required-entry" xsi:type="boolean">false</rule>
</validation>
</settings>
<formElements>
<select>
<settings>
<options class="Tweakwise\Magento2Tweakwise\Model\Config\Source\BuilderTemplate" />
</settings>
</select>
</formElements>
</field>
</fieldset>
</form>

0 comments on commit 3ee0c73

Please sign in to comment.