CamelCase is important in the magic getters/setters
You mention your attribute is called 'budgetcode' but you are using getBudgetCode() - which will translate to an attribute called budget_code.
If you attribute is called budgetcode then you need to use getBudgetcode()
Sure, you can do whatever you want with every page
Remove the image per product
The product grid is defined here:
/app/design/frontend/base/default/template/catalog/product/list.phtml
If you change this template, copy it to your personal theme
/app/design/frontend/mypackage/<mytheme I recommend default>/template/catalog/product/list.phtml
then change it. Just search for the <img
in the code, e.g. <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
in version 1.7.0.2
Add something before the products
You can define in the backend for every category a cms_block
to be shown on the category page.
The category page is defined here:
/app/design/frontend/base/default/template/catalog/category/view.phtml
as with the product list, if you want to change anything you want to copy this template to your own theme.
You can see at the end of the template, that the cms block is inserted:
<?php if($this->isContentMode()): ?>
<?php echo $this->getCmsBlockHtml() ?>
<?php elseif($this->isMixedMode()): ?>
<?php echo $this->getCmsBlockHtml() ?>
<?php echo $this->getProductListHtml() ?>
<?php else: ?>
<?php echo $this->getProductListHtml() ?>
<?php endif; ?>
You can change here a lot, e.g. put the block after the product listing, if you want this.
The CMS-Block must be filled and created in the backend under CMS > CMS Blocks
. Which block is used for which category is defined at the category: Catalog > Manage Categories > Click on one Category > Content(?)
Best Answer
one way would be to use an observer and a converter.
the observer would be to get the attribute from the product to the quote (using an attribute called 'test'), and the converter gets the attribute from the quote to the order.
in your config:
in your observer: