我想使用自定义表单使用Magento高级搜索功能。我创建了一个具有自定义表单的静态块,并复制并粘贴了表单acion =“getSearchPostUrl()?>”提前发布搜索。结果是找不到404,因为表格是空的?
这是自定义表单
<form id="prod-selector" action="<?php echo $this->getSearchPostUrl() ?>" method="POST">
<div class="input-wrapper">
<h3>Drilling Brand</h3>
<ul>
<li>
<input class="input-text validate-one-required-by-name" type="radio" value="bosch" name="torque-action" />
<label for="">Bosch</label>
</li>
<li>
<input class="input-text validate-one-required-by-name" type="radio" value="AEG" name="torque-action" />
<label for="">AEG</label>
</li>
</ul>
</div>
<div class="input-wrapper">
<h3>Power</h3>
<ul>
<li><label for="">Enter Your Torque Required:</label></li>
<li><input class="input-text validate-no-html-tags validate-alphanum-with-spaces" type="text" placeholder="Torque Required" name="torque-required" /></li>
</ul>
</div>
<div class="input-wrapper">
<h3>Metric unit</h3>
<ul>
<li>
<input class="input-text validate-one-required-by-name" type="radio" value="torque tools" name="torque-action" />
<label for="">ft. lbs.</label>
</li>
<li>
<input class="input-text validate-one-required-by-name" type="radio" value="calibration" name="torque-action" />
<label for="">N.m</label></li>
<li>
<input class="input-text validate-one-required-by-name" type="radio" value="torque tools" name="torque-action" />
<label for="">Kgf.m</label>
</li>
</ul>
</div>
<div class="input-wrapper input-submit">
<input id="hideit" style="display: none !important;" type="text" value="" name="hideit" />
<button class="button" type="submit">Submit</button>
</div>
</form>
我有三个属性品牌博世,AEG和日立,但日立将暂不提供高级搜索。我还有三个公制单位ft.lbs,N.m和Kgf.m,它们具有单独的值。输入字段只接受数字。
用户将选择哪个品牌,输入他们需要的力量,并选择他们正在寻找的具体公制单位。
如何为我自定义高级搜索以获得确切的搜索结果?
由于