我希望我的Magento產品定製選項定位在價格以下。我試圖在catalog.xml文件中移動塊,但沒有任何工作。 我確實每次刷新所有緩存。Magento產品定製選項定位在價格以下
回答
此功能可以在
/app/design/frontend/your_package/your_theme/template/catalog/product/view.phtml
被發現,或者如果它不存在,看在
/app/design/frontend/your_package/default/template/catalog/product/view.phtml
如果該文件不存在,那麼從
/app/design/frontend/base/default/template/catalog/product/view.phtml
複製創建
或者,如果您在企業版上,則從:
/app/design/frontend/enterprise/default/template/catalog/product/view.phtml
請記住不要觸摸/app/design/frontend/enterprise/default/
The code responsible for showing prices is:
<?php echo $this->getChildHtml('tierprices') ?>
You have to move the code responsible for showing the options, that looks like this:
<?php if (!$this->hasOptions()):?> <div class="add-to-box"> <?php if($_product->isSaleable()): ?> <?php echo $this->getChildHtml('addtocart') ?> <?php endif; ?> <?php echo $this->getChildHtml('addto') ?> </div> <?php else:?> <?php if ($_product->isSaleable() && $this->hasOptions() && $this->getChildChildHtml('container1')):?> <div class="options-container-small"> <?php echo $this->getChildChildHtml('container1', '', true, true) ?> </div> <?php else: ?> <?php echo $this->getChildHtml('addto') ?> <?php endif;?> <?php endif; ?>
directly below the code that's responsible for prices. Remember that the code above is an example, it may look different in your template, so don't copy-paste it.
Anyway, the file responsible for showing prices is usually /app/design/frontend/your_package/your_theme/template/catalog/product/view/tierprices.phtml中的任何內容(與通常情況相同),但不應在您的情況下對其進行修改。
您可以通過編輯模板(一個.phtml)文件進行修改: 應用程序/設計/前端/ {默認}/{}默認/catalog/product/view.phtml
但我似乎無法找到價格區塊的位置.. –
修改模板或ovverride它你的主題!
/app/design/frontend/base/default/template/catalog/product/view.phtml
This is where the price is :
<?php echo $this->getTierPriceHtml() ?>
This means customer options showing between this if(){}
<?php if (!$this->hasOptions()):?>
所以當你在模板文件喜歡,你可以移動它們!或者你可以使用CSS來設計它們,以將它們放在自定義位置!
這可以在管理中的管理產品部分內完成。在設計中,設置「顯示產品選項」>「產品信息欄」
- 1. magento產品定製選項
- 2. Magento簡單的產品自定義選項價格作爲產品價格
- 3. Magento的定製產品價格表
- 4. Magento促銷 - 以固定價格購買產品精選
- 5. 在magento中額外的價格定製產品
- 6. 價格根據產品定製選項(寬度和高度)
- 7. magento捆綁產品特價定價
- 8. Opencart總產品價格乘以自定義選項
- 9. 以購買價格銷售產品(Magento)
- 10. Magento負面產品價格
- 11. Magento更新產品價格
- 12. Magento刪除產品自定義選項
- 13. magento產品出口自定義選項
- 14. Magento的:添加產品到購物車定製價格
- 15. Prestashop定製/計算產品價格
- 16. 替換實際價格在Magento配置的產品選項1.9
- 17. Magento定製產品設計
- 18. Magento產品定製訂購
- 19. Magento:在無定製的CMS塊中包含特定產品價格
- 20. 如果/在Magento產品定製選項部分
- 21. 添加到購物車在Magento產品定製選項
- 22. Magento:自定義選項的產品,需要與價格和sku更新ajax
- 23. Magento - 自定義選項不會更新可配置產品的價格
- 24. Magento產品自定義選項文本字段Caclulate價格(寬x高)
- 25. 請指定產品的選項。可配置產品magento
- 26. Magento的產品頁 - 相關產品,如自定義選項卡
- 27. 帶有不同選項的Magento產品不會更改價格
- 28. Magento - 更新可配置產品選項的價格
- 29. Magento - 更新主要產品價格以包含所選相關產品?
- 30. Opencart按價格或按產品選項篩選產品
嘗試更改phtml。 –