Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Magento Entity Attributes
1
vote
display getTextAttribute in custom tab
Normally in your custom block for your phtml you should do
public function getProduct(){
if(!$this->product){
$this->product = Mage::registry('current_order');
}
return $this->prod …
1
vote
Hide products with a zero price
I would create a backend script to fix this issue
require_once('app/Mage.php'); //Path to Magento
umask(0);
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
Mage::app();
$Products …
0
votes
Adding a custom attribute to alternate admin (order detail view)
Take a look at Adding Custom Product Attribute To Quote And Order Items In Magento and product attribute to quote item and order item
The better way to do this is
Add the attribute field to your pr …
1
vote
error to add custom attributes
Your issue may have something to with used_in_forms keys didn't get deleted.
Mage::getSingleton('eav/config')
->getAttribute('customer', 'demande')
->setData('used_in_forms', array('adminhtml …
3
votes
Accepted
Magento Attribute
You cannot remove system attribute from your set, because these attribute are use in core magento. I.E name, description, sku, weight etc. (any attribute with the red mark on them)
.
1
vote
Wrong Date Getting Saved For An Attribute
IF you take a look @
Admin -> System -> Configuration -> CATALOG -> Catalog -> Date & Time Custom Options -> Date Fields Order
The 'year' select have a value of 'y' (y = A two digit representation …
1
vote
Accepted
How do I get the attributes using a group id?
Take a look @ How to get the all attributes that belongs to a attribute group in magento
$groupId = 26;
$attributesCollection = Mage::getResourceModel('catalog/product_attribute_collection');
$attributesCollection …
1
vote
Check if customer attribute already exists
Try changing your observer to customer_save_before
.....
$new_name = $postData['display_name'];
// if updating NOT a new customer
if($customer instanceof Mage_Customer_Model_Customer & …
0
votes
Accepted
Show default code if admin attribute field is blank
Try
<?php
$_product = $this->getParentBlock()->getProduct();
$_helper = Mage::helper('productattachments');
$attachments = $_helper->getAttachmentsForProduct($_product->getId());
?>
<?p …
1
vote
Show attribute with type Media Image on category listing
This should not affect anything. By setting used_in_product_listing to 'yes' will only add a column to catalog_product_flat_[X] table.
When you use the workaround it will only add ONE field.
Eg.
`t …
0
votes
how to get attribute values (select type) from a product collection?
Try
$attributeCode = 'compatible_printers';
$usedAttributeValues = array();
foreach($collection as $product){
// get unique code
$usedAttributeValues[$product->getData($attributeCode)] = $prod …
1
vote
Accepted
Amasty Extension - Sales Reps and Dealers - Custom Attributes
Take a look at table am_perm
perm_id | uid | cid
Where:
'uid' = magento admin id
'cid' = customer id.
To look up dealer by order id
Mage::getModel('amperm/perm')->getUserByOrder($orderId);
Mag …
0
votes
New Product DROPDOWN Attribute (IF THEN ELSE)
First try to find a product naming conversion
E.g
{product name}-{color}.jpg
{product sku}-{color}.jpg
Assuming that every product attribute has an image
<img src="/<?php echo $product->getName() …
0
votes
Additional information tab not working anymore
In Admin goto
Category -> Attributes -> Manage Attribute Sets …
3
votes
Accepted
Add asociated array to the Values retrieved before
Not sure if I understand your issue correctly but try
foreach($allProducts as $p){
if(!$p->isSaleable()) continue;
$out = $p->getAttributeText($pAtt->getName());
$frontValues[$out]=$out;
$c …