Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged

0

Why its not showing on list of attributes for mass update? Try re-index and clean cache, also check is your attribute added to all attribute sets. If you want do this programaticaly check: https://stackoverflow.com/questions/39664957/mass-update-of-product-attribute-text Magento : Fastest way to update a product attribute


0

First make sure to assign the "Brand Name" attribute to all the attribute sets in your system. Afterwards, go to the products grid in the admin, click "Actions -> Update Attributes". You should be able to update the value of your attribute.


0

Try this! <?php require_once(Mage::getModuleDir('controllers','Mage_Checkout').DS.'OnepageController.php'); class SR_MagentoCommunity_OnepageController extends Mage_Checkout_OnepageController { /** * Save checkout billing address */ public function saveBillingAction() { if ($this->_expireAjax()) { return; ...


0

Have you got a mixture of product types? For example try selecting all simples first and doing a mass update to see if the option is there. Then try a different type. If the option is missing potentially you've got an attribute locked to a particular type. That's enough for it to not show in the mass update screen. In which case you might need to spend more ...


0

Is warranty "static" type attribute? If yes then static attributes should not appear on update attribute screen.


0

Please check with below url with answer try to do via custom script https://stackoverflow.com/q/12255463/5187928


0

Cause :- The reason is that function working with archives passing non-ASCII characters in the filename and the filename cannot be created simply due to filesystem restrictions on filenames. The simple fix can be just patch :- The fix has been applied already for all our new installations.


0

Might be easier to edit the template files involved in screens such as /customer/account/edit/ and just remove the field. Turn off guest checkout and that should be that. System > Configuration > Sales > Checkout Allow Guest Checkout - set it to No Require Customer To Be Logged in To Checkout - set it to Yes


0

If you're struggling with a slow Magento 1 (or Magento 2) here is a checklist I use: You have to find out whether it's TTFB or frontend that's slow. Go to webpagetest.org and run your website through it. If it's TTFB - disable all 3rd-party extensions and switch to a default Magento theme. It should become faster. Then enable extensions one by one and find ...


0

Magento 1 has default checker to check mail address is changed or not. $customer->getIsChangeEmail() Here $customer is coming from the session, you can check it from the file location. app/code/core/Mage/Customer/controllers/AccountController.php


0

It seems that on line 60 of C:\wamp64\www\app\design\frontend\default\hardwood\template\callouts\left_col.phtml, you have a call to a variable called $cart that has not been defined. You will have to define it or to remove any call of this variable if this is an useless variable.


0

It's hard to see exactly what's going on without the full context, for example what is destElementId? But generally that error sounds like you are trying to append a parent to the child block and doing so would also move the child block into itself which would be an incredibly strange thing to try and do. If $(this.destElementId) is actually the child ...


0

Flat catalog tables enabled? If not, enable them. The unions for EAV attributes are time consuming. If large tables are being sorted, it has to write to disk to sort. If you have too many attributes, you should be sure they are properly configured. I won’t dive into the fact that you are launching on an end of life version of PHP where 7.x has proven to ...


0

Are you using the manage stock feature? You could turn this off whilst the import runs? Or configure backorders? Even just temporarily for the product you are importing. Or use your approach. Your approach is the simplest I can think of.


0

Try this answer, foreach($order->getAllVisibleItems() as $item) { $childItems = $item->getChildrenItems(); foreach($item->getChildrenItems() as $item){ echo $item->getProduct()->getName(); // child product Name } }


0

I think you can override this observer - Magento\CatalogRule\Observer\ProcessFrontFinalPriceObserver - its sets the final price of the product based on the applicable catalog rules, you can override it and add a code that checks if the cookie is set, if not - don't set the special price.


0

You can try like this $tableName = $this->getTable('awcore/logger'); $installer->startSetup(); $connection = $installer->getConnection(); if ($connection->tableColumnExists($tableName, 'custom_field_4') === false) { $connection ->addColumn( $setup->getTable($tableName), 'custom_field_4', ...


0

You should use the tableColumnExist method : $tableName = 'your_table'; $columnName = 'your_column'; if (!$installer->getConnection()->tableColumnExists($installer->getTable($tableName), $columnName)) { // create your column }


1

I've seen some complex solutions to this. But in m1 it can actually be done really simply. $mail = Mage::getModel('core/email') ->setToName('Xigen') ->setToEmail('dominic@whatever.com') ->setSubject('Problem') ->setBody('<p>markup<p>') ->setFromEmail('customerservices@whatever.co.uk') ->setFromName('...


0

I will try this and update with the outcome. Alternatively, Shoaib apna koi contact ka tareeka bata do. I have a project that I would like to discuss.


0

It's going to be custom. Probably something similar to the following https://stackoverflow.com/a/12256318/10121426


1

Grouped Product: The grouped product represents a selection of products consolidated on one product page. There is a quantity box for each item, so if your customer wants 2 or 3 pieces of a specific item, he/she can indicate quantity in the corresponding box. Shoppers, who visit your store can either buy the whole set, means an entire grouped product or ...


0

Configurable Product: 1.It is like a ‘’simple product’’ with its multiple attributes. 2.You cannot add multiple associated products of configurable product to cart 3.With Magento 2 configurable product, you have to do the math to get the price. The price of the children product will be equaled the price of the configurable product plus the price of the ...


0

Configurable product is a number of different but related items in which the user selects one of them by choosing an options. For example, Shirt could have many different sizes like , Small, Medium, Large. Every size is a different physical qty but the customer just goes to the shirt page and then selects a size. Group Product is like a cover that holds ...


0

Configurable and Grouped Products both are completely different. Configurable Products: A configurable product looks like a single product with drop-down lists of options for each variation. Each option is actually a separate simple product with a unique SKU, which makes it possible to track inventory for each product variation. For example, dress with ...


1

Create your own module (if it's not exist yet). Rewrite Mage_Directory_Model_Resource_Country_Collection class: <config> <modules> <Your_Module> <version>0.0.0.1</version> </Your_Module> </modules> <global> <models> <directory_resource> ...


0

Reference: How to add the store view to my module admin grid for store grind column use below code. store is database coulmn name $this->addColumn('store', array( 'header' => 'Website', 'index' => 'store', 'type' => 'store', 'width' => '100px', ...


0

I don't think you need an observer for that. Just add a conditon in your template (catalog/product/view.phtml), like this: //$_product is Mage_Catalog_Model_Product object <?php if ($this->displayProductStockStatus() && $_product->isAvailable()) :?> Stock is back <?php //echo $this->getLayout()->createBlock('cms/block')...


0

You can use an alternative way: Create an attribute say back_on_stock with type Yes/No. Change you event form catalog_product_save_commit_after to catalog_product_save_before. Now in observer you can set this new attribute value in your if condition, like: $product->setBackOnStock(1); return $this; Now in Your phtml, you can check this attribute ...


0

Later versions of magento 1 introduced an email queue mechanism. Caused more problems that it solved in my opinion. Order emails cronjob Magento 1.9.0.1 But that's why


1

Seems to be taking issue with the visitor log mechanism. Apologies you haven't said which version you are running. You have a lot of options with regards to logging in M1. You can disable a lot with this option. https://bobcares.com/blog/magento-disable-visitor-log/ Not directly solving the problem though. Just offering a work-around solution to this ...


1

Alternatively, you can use Mage::register('some_var', $someVar) on parent block and Mage::registry('some_var') on child block to get the value. But in general, Julien's answer suits better.


0

Please try this query it will give you expected output. select fp.*, cpev.value as product_name from flagged_products as fp left JOIN catalog_product_entity_varchar as cpev on cpev.entity_id = fp.product_id WHERE cpev.attribute_id=71 Let me know if you have any query.


1

If you want to try the "Magento way", you could try something like : $flaggedProducts = Mage::getModel('your_module/your_model')->getCollection(); // Join with product table $flaggedProducts->getSelect()->joinLeft( array('cp' => $flaggedProducts->getTable('catalog/product'), 'cp.entity_id=main_table.product_id', array( ...


0

<?php $collection = Mage::getModel('catalog/product') ->getCollection() ->addAttributeToSelect('name') ->getSelect() ->joinLeft( array('flagged_products' => $this->getTable('flagged_products')), 'e.entity_id = flagged_products.product_id' );


0

I found a way. I changed the type of the child block class to the same type as the parent block. <PRODUCT_TYPE_grouped translate="label" module="catalog"> <label>Catalog Product View (Grouped)</label> <reference name="product.info"> <block type="catalog/product_view_type_grouped" name="product.info.grouped" as="...


2

I see at least two possibilities : 1) In the parent block, set your data with some $this->setMyVariable('my_value') or using layout xml declaration. Then, in your child block, you should get the value with some $this->getParentBlock()->getMyVariable() 2) Or you can use the method used here


0

I am not sure to understand what you are trying to achieve but you should look at the getUrl method definition : app/code/core/Mage/Core/Block/Abstract.php:1001. The first param of this method should be the 'route' : i.e ỳour_router_name/your_controller_name/your_action_name. And if you want to pass param, it should be as an array in the second param of the ...


1

Here is the process to create Coupon Code for any particular product:- Login to Admin Go to Promotions -> Shopping Cart Price Rules Click Add New Rule Fill Rule Information Set Conditions On left sidebar, click Conditions tab Click + button icon Select Product attribute combination Click + button icon Select SKU Now, you will ...


0

Have you tried without the smart tag (or whatever magento calls it). So.. secure style="background:url('https://www.domain.name.com/media/wysiwyg/porto/homepage/slider/02/13_new.jpg')" or non-secure style="background:url('http://www.domain.name.com/media/wysiwyg/porto/homepage/slider/02/13_new.jpg')"


0

It seems that you are not testing if the $item_id matches with the $item->getId() : so, you are deleting all the items. Try to replace if ($item && $item->getId()) { with if ($item && $item->getId() && $item_id == $item->getId()) { .


2

If your customer is not logged in (or has no account), Magento is not able to decide if he has or not used a coupon code.


0

In the latest version of Magento Enterprise you can use the rule based product assignments to category. You can go to visual Merchandiser and set the rule you want. No code is needed. You will get an option to adjust then assigned products.


0

The easiest way I've found for adding items to the nav menu is to create categories for them. Go to Catalog > Manage Categories. Click on Default Category in the category list. Click the Add Subcategory button. Enter the text you want to add as a menu item in the Name box. Let's call it "Test". Change Is Active to Yes. Make sure Include in Navigation Menu ...


0

Group product itself doesn't have a price. The associated simples have a price. So for example if you want to get the lowest price you would have to load all the associated simples into any array and sort by lowest to highest. Then load the first.


0

order_totals is the block name defined in: app/design/frontend/{package}/{theme}/layout/sales.xml if you look above xml, there will code like: ..... <block type="sales/order_totals" name="order_totals" template="sales/order/totals.phtml"> ..... So call to : <?php echo $this->getChildHtml('order_totals') ?> will render the block in ...


0

In Mage_Sales_Model_Quote class you can see the function to get customer quote by customer /** @var Mage_Customer_Model_Customer $customer **/ $quote = Mage::getModel('sales/quote')->loadByCustomer($customer); With customer quote you can get cart and cart items $cart->getAllVisibleItems()


0

I may need some (or a lot) of clarification to give a proper answer, but the event that triggers an order confirmation email is in [magento-root]/app/code/core/Mage/Sales/Model/Order.php the function named sendNewOrderEmail(), which then calls queueNewOrderEmail in the same class to do the heavy lifting. Depending on the information that you are trying to ...


1

Since Magento EE has many advanced features as compared to Magento CE (Open Source Edition), direct migration is not possible (as I know). I can suggest a process (rebuilding the site afresh on community version) which may seem a bit lengthy but it will work for sure. The key here is to migrate the most useable code from EE version to CE version. But ...


0

Please follow these below step: 1- Check if Magento cron is running by looking into cron_schedule table. There should be resent records for newsletter queue listed in the table and status of the module execution. 2- Run cron service manually by pointing your browser to http://your.magento.url.here/cron.php 3- Enable PHP mail log: http://php.net/manual/en/...


Top 50 recent answers are included