2012-09-21 121 views

回答

1

此功能可以在

/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中的任何內容(與通常情況相同),但不應在您的情況下對其進行修改。

0

您可以通過編輯模板(一個.phtml)文件進行修改: 應用程序/設計/前端/ {默認}/{}默認/catalog/product/view.phtml

+0

但我似乎無法找到價格區塊的位置.. –

0

修改模板或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來設計它們,以將它們放在自定義位置!

3

這可以在管理中的管理產品部分內完成。在設計中,設置「顯示產品選項」>「產品信息欄」

相關問題