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 |
General questions about Magento 1 not specific to a minor version. You can use it to distinguish from Magento 2, but if you have issues with a specific installation, use the appropriate magento-1.x tag instead.
1
vote
check if the inserted data is already present in database
public function SaveAction() {
$postdata = $this->getRequest()->getPost();
if($postdata)
{
$model = Mage::getModel("test/test");
$model->load($postdata["test_id"],"test_id");
…
2
votes
Captcha taking too so much disk space in magento 1.9.2.4
Captcha image is generated each time a captcha appears on on your website. It will create a new one if someone refreshes captcha.
So you need to delete the old captcha files as they are no longer use …
3
votes
Who receives contact form emails?
Go to Admin Panel > System > Configuration > Contacts
Check email address in Send Emails To field. The data will be sent to this email address.
1
vote
How to send transactional email programatically?
If you look at default Magento confirmation email send function Mage_Newsletter_Model_Subscriber::sendConfirmationRequestEmail You will see that they have used $this, object of newsletter/subscriber m …
3
votes
Accepted
How can I add attribute to product properly?
Your setup script looks correct, Try removing attribute before creating it. downgrade entry from core_resource and run the script again.
$installer = Mage::getResourceModel('catalog/setup', 'catalog_ …
0
votes
Unable to override Magento Adminhtml Block
Update your
app\code\local\Comp\Module\Block\Adminhtml\Catalog\Product\Attribute\Edit\Tab\Options.php file with below code.
<?php
class Comp_Module_Block_Adminhtml_Catalog_Product_Attribute_Edit_Tab …
3
votes
Accepted
How to programmatically add custom options to all products without duplication?
To get Products which has option with title Request Samples?, please use below code.
$Option=Mage::getModel('catalog/product_option')->getCollection();
$Option->getSelect()->joinLeft( array('option_t …
1
vote
Accepted
Magento : Attribute Returns NULL or NO
If it returns "No" that means that there is no value added for that attribute for a product. Most probably it is because the attribute is not assigned for a particular product type.Make sure that your …
2
votes
How to Add Custom Options programmatically
Use below code,
foreach ($review['options'] as $pro_opt) {
$optionInstance = $product->getOptionInstance()->unsetOptions();
$options = Mage::helper('core')->jsonDecode($pro_opt['product_optio …
4
votes
Accepted
Magento : Get Quantity of Added Product in cart_product_add_after Event
If you do var_dump($product->getData() you will see that there is a field with name qty_to_add in the data. This field contains the quantity which was requested to be add.
So to get what you want use …
0
votes
Accepted
Create dynamic products in cart_product_add_after observer, product "belongs" to other product
You can distinguish your EXAMPLE products by adding additional options to them. It will also allow you to display to which product the EXAMPLE product belongs.
You can try below code, Note that this …
12
votes
Accepted
Admin config: show field depending on selected multiselect values
Reason for The Issue
The issue you are facing is related to Javascript functionality for getting value of a multiselect attribute.
Magento's dependable fields are based on Javascript. They creates a …