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
0
votes
What is the product attribute for product ID?
The "product id" is an auto-incremented field created in catalog_product_entity table.
See
entity_id in catalog_product_entity table
0
votes
Update dropdown attribute value Programtically for single product
Create a custom module
app/code/local/MagePal/UpdateProductOnAddToCart/etc/config.xml
<frontend>
<events>
<checkout_cart_product_add_after>
<observers>
<mage …
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 …
1
vote
how to get order/quote getAttributes in magento
Since 'sales/order' and 'sales/quote' uses flat table and not EAV, then EAV attributes would be the same as the table columns name. …
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)
.
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
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 …
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
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
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 …
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 …
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 …
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
Additional information tab not working anymore
In Admin goto
Category -> Attributes -> Manage Attribute Sets …
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() …