我使用PrestaShop CMS创建了一个自定义页面。 我可以在前端轻松看到我的页面。
我想知道的是,页面的相关控制器和视图文件在哪里?
所以我可以在表单/页面上执行某些操作吗? 任何帮助将不胜感激。
我的页面如下:
<h1>Sell your item</h1>
<p>Select Category:</p>
<p><select class="selectBox selectBox-dropdown selectProductSort" name="catgeory_dropdown">
<option value="">-- Select Category</option>
<option value="category1">Category 1</option>
<option value="category2">Category 2</option>
<option value="category3">category 3</option>
</select></p>
<p>Item Name/Description:*</p>
<p><input id="item_name" class="ac_input" name="item_name" type="text" /></p>
<p>Select Category*:</p>
<p><select class="selectBox selectBox-dropdown selectProductSort" name="catgeory_dropdown">
<option value="">-- Select Category</option>
<option value="category1">Category 1</option>
<option value="category2">Category 2</option>
<option value="category3">category 3</option>
</select></p>
<p>Original Purchase Price, USD</p>
<p><input id="item_name" class="ac_input" name="item_name" type="text" /></p>
<p>Your Asking Price, USD</p>
<p><input id="item_name" class="ac_input" name="item_name" type="text" /></p>
<p></p>
<p>Condition*:</p>
<p><input id="condition1" name="condition" type="radio" />New (Unused Item)</p>
<p><input id="condition2" name="condition" type="radio" />Like New (Hard to Notice,Very Slight signs of use)</p>
<p><input id="condition3" name="condition" type="radio" />Gently Used (Noticeable, Slight signs of wear)</p>
<p><input id="condition4" name="condition" type="radio" />Well Used (Obvious sign of wear)</p>
<p>Includes</p>
<p><input id="includes1" name="includes1" type="checkbox" />Original Box</p>
<p><input id="includes2" name="includes2" type="checkbox" />Original Invoice</p>
<p><input id="includes3" name="includes3" type="checkbox" />Original Brand/Authenticity Card</p>
<p><input id="includes4" name="includes4" type="checkbox" />Well Used (Obvious sign of wear)</p>
<p>Do you have an authentic luxury item that you are not using anymore? Or are you simply tired of the current one and thinking of getting a new one? Then sell it with us, get cash and upgrade your wardrobe!</p>
答案 0 :(得分:1)
AFAIK所有CMS页面(甚至是CMS类别)都由CmsController
处理,模板为cms.tpl
。
要添加适用于每个页面的任何功能,您可以尝试覆盖这些文件,但是如果您只想在一个/某些特定页面中使用该功能,我发现最好开发用作Smarty插件的模块。