Php 使用自定义表单自定义magento高级搜索
我想使用自定义表单使用Magento高级搜索功能。我创建了一个具有自定义表单的静态块,并复制和粘贴了表单acion=“getSearchPostUrl()?>”以在提前搜索时发布它。找不到结果404,因为表单为空 这是定制表格Php 使用自定义表单自定义magento高级搜索,php,forms,magento,Php,Forms,Magento,我想使用自定义表单使用Magento高级搜索功能。我创建了一个具有自定义表单的静态块,并复制和粘贴了表单acion=“getSearchPostUrl()?>”以在提前搜索时发布它。找不到结果404,因为表单为空 这是定制表格 <form id="prod-selector" action="<?php echo $this->getSearchPostUrl() ?>" method="POST"> <div class="i
<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
权力
- 输入所需扭矩:
公制单位
-
英尺磅。
-
N.m
-
公斤米
提交
我有三个属性品牌Bosch、AEG和Hitachi,但Hitachi将暂时无法在提前搜索中使用。我还有三个公制单位ft.lbs,N.m和Kgf.m,它们有各自的值。输入字段将只接受数字
用户将选择哪个品牌,输入他们需要的力,并选择他们正在寻找的特定公制单位
我如何为自己定制高级搜索以获得准确的搜索结果
谢谢