texts: checkout broken after removing required fields

texts:
On checkout telephone and region shouldn't be required any more. I set is_required in eav_attribute to 0. I removed validation in

  Customer/Model/Address/Abstract.php.

I removed the required-attributes and required-classes in the Template

  app\design\frontend\base\default\template\persistent\checkout\onepage\billing.phtml

Now Magento doesn't complain about the missing entries any more, but you can't go on too. If the users tries to go on to the next step Magento doesn't react any more, no JS-errors.

This is Magento 1.9.0.1.

What can I do to find where Magento fails?


texts: How could I add rating in to the wishlist page?

texts:
I want to add ratings into my wishlist page How could I achieve it? currently my wishlist page is looks like this

I want it to look like this


texts: How to set "Display Product Options In:" to "Product Info Column" by default

texts:
How to set Catalog-> Manage Products-> X product-> Design-> Display Product Options In: to Product Info Column by default.
i want apply it to all products.


texts: Add to compare and wishlist not showing for custom module products

texts: Why are the 'Add to compare' and 'Add to wishlist' option not coming for the products in frontend when i hover the mouse over the product.


texts: 1.9 RWD - Categories on left side in 3-column-layout

texts:
I'm trying to show the categories on the left side in the 3-column-layout, but it doesn't really work. Am I required to edit the catalog.xml, or does changing to 3-column-layout already do everything? If it should, it doesn't work on my shop.

I've already cleaned the cache and tried reinstalling it. I'm working on a fresh install right now.

This is how it looks:

I have already tried the extension which exists for this purpose, but it isn't bug-free, so I would like to do it myself.

I am very thankful for any suggestions.


texts: Fatal error when editing the custom theme pls check

texts: Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Framework\View\Element\UiComponentFactory::argumentsResolver() must be of the type array, null given, called in /var/www/html/sat/vendor/magento/framework/View/Element/UiComponentFactory.php on line 222 and defined in /var/www/html/sat/vendor/magento/framework/View/Element/UiComponentFactory.php:174 Stack trace: #0 /var/www/html/sat/vendor/magento/framework/View/Element/UiComponentFactory.php(222): Magento\Framework\View\Element\UiComponentFactory->argumentsResolver('header_logo_src', NULL) #1 /var/www/html/sat/vendor/magento/module-ui/Component/Form/Field.php(85): Magento\Framework\View\Element\UiComponentFactory->create('header_logo_src', 'imageploader', Array) #2 /var/www/html/sat/vendor/magento/framework/View/Layout/Generator/UiComponent.php(164): Magento\Ui\Component\Form\Field->prepare() #3 /var/www/html/sat/vendor/magento/framework/View/Layout/Generator/UiComponent.php(161): Magento\Framework\View\Layout\Generator\UiCo in /var/www/html/sat/vendor/magento/framework/View/Element/UiComponentFactory.php on line 174


texts: run custom php code from phtml templates - magento2

texts: I have phtml template (Magento_theme) contain   tag I want insert my custom php code ( connect database, fetch table, if condition ) into script .


texts:
Where and how to clean the vendor folder?

"If something is corrupt in your composer and you do composer install/update it won't fix it. You have to force reinstall that package. Try cleaning the vendor folder and run composer install or composer update"


texts: How to add a button in the Account Information Tab?

texts:
I am trying to add a button in the Customers->Account Information tab. I want the button to do an action when it is clicked. I would like to do this in a custom module. I'm not too fond of the idea of rewriting core files or any classes. From what I have googled people say you can do this using an Observer, an example is here , if that is true then I would like to do it this way.

I know how to make a basic module, what I need help on is how do you put a button in a specific tab without rewriting the files/classes?

Update 11/3/2013 11am:

Here is the screenshot

I would like to add the button on this tab.

Update 2:48pm 11/3/2014

Here is my code so far, maybe I am making a mistake somewhere.

My file structure

-app
    -local
        -Rdtmodules
            -ChangeGroupNotification
                -etc
                    -config.xml
                -Model
                    -Observer.php
    -etc
        -modules
            -Rdtmodules_ChangeGroupNotification.xml

config.xml

<?xml version="1.0" encoding="UTF-8"?>
    <config>
        <modules>
            <Rdtmodules_ChangeGroupNotification>
                <version>1.0.0</version>
            </Rdtmodules_ChangeGroupNotification>
        </modules>
        <global>
            <models>
                <rdtmodules_changegroupnotification>
                    <class>Rdtmodules_ChangeGroupNotification_Model</class>
                </rdtmodules_changegroupnotification>
            </models>
            <events>
                <adminhtml_block_html_before>
                    <observers>
                        <rdtmodules_changegroupnotification>
                            <class>rdtmodules_changegroupnotification/observer</class>
                            <method>sendCustomerGroupChangeNotification</method>
                            <type>singleton</type>
                        </rdtmodules_changegroupnotification>
                    </observers>
                </adminhtml_block_html_before>
            </events>
        </global>
    </config>

Observer.php

<?php

class Rdtmodules_ChangeGroupNotification_Model_Observer {
    public function sendCustomerGroupChangeNotification(Varien_Event_Observer $observer) {
        $block = $observer->getEvent()->getData('block');
        if($block->getId() == 'customer_edit' && $block->getRequest()->getControllerName() == 'customer_edit') {
            $block->addButton('test_print', array(
                'label'     => 'Test',
                'onclick'   =>'setLocation(\'' . $block->getUrl('html/sales_order/print') . '\')',
                'class'     => 'go'
        ));
        }
    }
}


texts: How to Override Module CSS in Custom Theme?

texts:
I am using Magento 2.1.3 EE and my custom theme is using Luma as it's parent. I am trying to override a third-party module's CSS in my custom theme.

I am not using LESS. When I say override, I mean that I want Magento to pull my edited version of the module's CSS instead of the module's default CSS.

Here is the path to the CSS file I want to override:

app/code/Ubertheme/UbContentSlider/view/frontend/web/css/owl-carousel1/owl.theme.css

My understanding was that you could override this file with the following directory structure in my theme:

app/design/frontend/[Namespace]/[theme]/Ubertheme_UbContentSlider/view/frontend/web/css/owl-carousel1/owl.theme.css

I have tried this and numerous other variations however it doesn't work. I can either get both my custom css file and the module's default css file loaded or Magento can't find my custom css file and console gives a 404.

I did notice that UbContentSlider adds their CSS in a Ubertheme/UbContentSlider/Block/Init.php class like so:

$pageConfig->addPageAsset('Ubertheme_UbContentSlider::css/owl-carousel1/owl.theme.css');

Am I unable to override this CSS conventionally because Ubertheme namespaced it? In that case, I suppose I can just override their Block/Init.php class to point to my theme's custom file.


texts: Add cron.sh on crontab but cron is not working

texts:
I added this line to crontab on our server

*/5 * * * * /home/users/mydomain/www/cron.sh >> /home/users/mydomain/www/var/log/cron.log 2>&1

but Aoe_Scheduler said last cron success was few month ago

What should I do to make cron is working?


texts: shifted database to different server - Magento 1

texts:
I shifted database from from one server to another but i see the webiste loads without CSS, JS and also the link as below, where magento1 is root folder under mydomain.com

  magento1index.php/directory/currency/switch/currency/EUR/uenc/aHR0cDovL2thbWJzLmluL21hZ2VudG8yLw,,/?SID=0tk929pbs7vrl8ptjdcp04fkd2?___store=EUR

in similar way when i try to open admin

  magento1index.php/adminz/index/index/key/9fc93bc7d964f

there is no /  between magento1index.php/ ( Magento1 folder and index.php)

Please let me know what might be the issue


texts: Can not override Magento/Checkout/Model/DefaultConfigProvider.php file

texts:
I want to change a file in Magento\Checkout\Model\DefaultConfigProvider file

I am trying to change data in function but I can not override funciton Where I am going to Wrong.

I have Created a File etc/di.xml

<?xml version="1.0"?>

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd">
    <preference for="Magento\Checkout\Model\DefaultConfigProvider" type="Test\Sales\Model\Checkout\DefaultConfigProvider" />
</config>

I want to change or override function getTotalsData()

Created File in app/code/Test/Sales/Model/Checkout/DefaultConfigProvider.php

<?php
namespace Test\Sales\Model\Checkout;

class DefaultConfigProvider extends Magento\Checkout\Model\DefaultConfigProvider
{

    private function getTotalsData()
    {
        die('override');
       // Override stuff
    }

}
?>


texts: Customize request and response of order REST API

texts:
Guest order placement request -

URL - V1/guest-carts/:cartId/order
Body - {
"paymentMethod":
{
    "method":"testpayment_gateway",
    "customField":"CustomFieldValue" // **This is not product attribute, Payment Gateway dynamic params which is only configured from frontend**
    "addition_data":{
        "test" : "test123"
      },
    }
}}

Currently this api shares only order id after successful response

But we need to customize as

    {
      "order_id" : "5",
      "transaction_id": "577657"
   }


texts: Configurable product configurations no longer associated to product after saving

texts:
EDIT: I have resolved my problem by downgrading PHP from 7 to 5.6, this is not a great solution since Magento 2 should work fine on PHP 7, but for now it is an adequate solution for me.

I have just installed Magento ver. 2.1.3 on a clean debian install, no extensions or anything other than the requirements for Magento installed yet.

Whenever I try to create configurations for a configurable product they do get created successfully but after saving the product they disappear from the product configurations tab.
The configurations do show up in the backend catalog, but they don't seem to be associated to the configurable product anymore.

When I visit the product on the frontend I get the following error:


texts: Recollect shipping rates in onepage checkout

texts:
i am developing a shipping extension that provide various options(insurance, exact hour of delivery, etc) to the customer at the checkout page.
The flow is the following:

The customer chooses an address.The received prices of the rates
does not include the extra fee for the available options.
At the shipping method section ot the checkout page, the customer
can choose some option, and when she clicks the button to proceed to
the payment methods section, the recalculation of the shipping rates
must be triggered again.

My goal is to trigger the recollecting of shipping rates  in Mage_Checkout_OnepageController::saveShippingMethod().

How can i achive this?
I've tried the steps in the thread(https://stackoverflow.com/questions/5671787/unset-shipping-and-recalculate-totals-in-magento), but without any luck.

Thanks in advance!


texts:
In Luma theme, the mobile slide out menu is not functioning correctly.

When we click "women" menu item, it opens the sub menu but then we click any other parent to open its sub menu it just closes the already opened menu.

Then we have to click it again to open sub menu

  Demo : http://magento2-demo.nexcess.net/


texts:
How to implement multi select (checkbox) layered navigation?

I want to be able to filter by multiple attributes like sub categories eg:

cat=2,3,4

&

color=green,red


texts: Custom Cart Rule Action Condition in Magento 2

texts:
I have a custom quote item attribute (v_code) and I want to use this when creating a cart sales rule.

Scenario: If a cart item has a v_code, it's included/excluded from the discount.

I've managed to add it to the Conditions section but I am unable to add it to the Action conditions.

I would like to add it here.

Any help or direction would be appreciated.


texts: Is there a simple way to unset an item in an array added using layout xml?

texts:
Magento 2 comes with the following layout update in the Magento_Weee module:

<referenceBlock name="render.product.prices">
    <arguments>
        <argument name="default" xsi:type="array">
            <item name="adjustments" xsi:type="array">
                <item name="default" xsi:type="array">
                    <item name="tax" xsi:type="array">
                        <item name="adjustment_render_class" xsi:type="string">Magento\Weee\Pricing\Render\TaxAdjustment</item>
                        <item name="adjustment_render_template" xsi:type="string">Magento_Tax::pricing/adjustment.phtml</item>
                    </item>
                    <item name="weee" xsi:type="array">
                        <item name="adjustment_render_class" xsi:type="string">Magento\Weee\Pricing\Render\Adjustment</item>
                        <item name="adjustment_render_template" xsi:type="string">Magento_Weee::pricing/adjustment.phtml</item>
                    </item>
                </item>
            </item>
        </argument>
    </arguments>
</referenceBlock>

However, what if I want to remove this renderer? For as far as I know there is no such thing as:

<item name="weee" xsi:type="array" remove="true">

So if I want to remove the template I either have to do something like:

Replacing the template with a blank file, or:
Write a plugin for the class that's responsible for the rendering to disable the rendering at some points, or:
Remove the blocks by names (but the names are dynamic (magento\weee\pricing\render\adjustment_0, etc.))

So how can I achieve this? Can it even be done in a simple matter? I don't like the idea to add all kind of PHP code to remove a small element from my frontend.


texts: Magento 1.6 /admin always redirects to store after SUPEE-9767

texts:
I recently patched a 1.6 site with SUPEE-9767, on our development copy I encountered no issues, but after I pushed it onto the live host I could no longer get into the admin area.

I would get the following redirects:

/admin (302) -> /index.php/admin
/index.php/admin (302) -> /

I've flushed the cache, rebuilt the indexes, and confirmed that the file perms are correct but still the same behaviour.

It feels like I'm overlooking something.


texts: Magento 2.2 - Custom WEBAPI - Custom JSON Structure

texts:
i need to understand following situation:

An external systems need to send a JSON Structure ( nearly similar than the magento default structure ) by using the web-api to import / update (POST/PULL) products.

The Structure differs to the default structure, cause the custom attributes are flat in the JSON and not in an array (custom_attributes).

So the default endpoint: (PUT) /rest/V1/products/:sku and the Interface for the method "save" \Magento\Catalog\Api\Data\ProductInterface can not
understand the attributes.

Is it possible to reformat/normalize the JSON Structure before the Request reaches the initialisation of the \Magento\Catalog\Api\Data\ProductInterface ?

I also try the solution to create a custom endpoint:

<route url="/V1/itc-api/products" method="PUT">
        <service class="Itc\Api\Api\ProductsManagementInterface" method="save"/>
        <resources>
            <resource ref="Magento_Catalog::products" />
        </resources>
    </route>

with a custom save Method:

public function save(\Itc\Api\Api\Data\ProductInterface $product, $saveOptions = false);

This Interface \Itc\Api\Api\Data\ProductInterface has all the flat get/set Methods like the custom JSON needs.

The Endpoint generally works, but magento throws an error:

Fatal error:  Uncaught Error: Cannot instantiate interface Itc\Api\Api\Data\ProductInterface in /app/web/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50

I think the better way is, to reformat the structure and use the
original endpoint.

Thanks for help,
Andre


texts: Magento 2 ProductCollection and ProductRepository not loading all products rows

texts:
I'm trying to load all products.
catalog_product_entity has 3478 rows.
Loading all products though collection or through repository ends up with 2418 products.
I also tried paginating the collection, same result

Loading through collection

$products = $this->productCollectionFactory->create()->getItems();
var_dump(count($products)); // output 2418
exit;

Loading products through repository

$criteria = $this->searchCriteriaBuilder->create();
$products = $this->productRepository->getList($criteria)->getItems();
var_dump(count($products)); // output 2418

Why aren't the other ~ 1k products loading?
What could be the problem?
How to debug?


texts: Why Does Magento 2 Force URLs to be 3+ Characters

texts:
If you attempt to create a module with a front name like hello-world in Magento 2, you'll get an error that looks like this.

Invalid XML in file /Users/alanstorm/Sites/magento-2-with-keys/magento2/app/code/Pulsestorm/HelloPestle/etc/frontend/routes.xml:
Element 'route', attribute 'id': [facet 'pattern'] The value
'hello-world' is not accepted by the pattern '[A-Za-z0-9_]{3,}'.

It seems like Magento doesn't want URL front names that have anything other than a number, letter, or underscore in them.  It also forces front names to have three or more characters.

The number, letter, and underscore limitation make sense since a route ID is used to create a layout handle and "special" characters there may cause a problem.  However, the three character limit is confusing.

Does anyone know the reason for this?


texts: How to stop run command line after changed in Magento 2?

texts:
Can anyone help me how to change the content in Magento without using the command line like

php bin/magento cache:clean

or

php bin/magento cache:flush

I always have to run this command after any changes in Magento 2.


texts: Correct way to Update a Theme's Parent in Magento 2

texts:
In Magento 2, you can specify a parent theme in a theme's theme.xml file.

<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
    <title>Theme Title</title>
    <parent>Package/base-theme</parent>
    <media>
        <preview_image>media/preview.jpg</preview_image>
    </media>
</theme>

The first time Magento sees a theme, it uses this value to set a parent_id in the theme table.  This is the source of truth for where a theme's parent is.

However, if you attempt to change this value after a theme's been added to the system, Magento fails to update the parent_id column, and instantiated Magento\Theme\Model\Theme objects will still have the original parent theme.  (Even if you clear the cache.)

I can fix this by manually changing the parent_id value -- that seems like a hack.  Where is parent_id normally set in Magento's core code, and what user actions trigger this? i.e. is there a way to tell Magento "please re-load this theme"


texts: How to access 'customer/session' with redis_session in custom module?

texts:
I am using the redis_session for storing the back end cache and session with different db id's.

Now, the below code returns empty when using it in the custom module.

Mage::getSingleton('core/session', array('name' => 'frontend'));
Mage::getSingleton('customer/session')->getCustomer()->getId();

It is working fine with in core code(sales_order_history). The issue exists only in my custom module.

Please help..
Thanks in advance


texts: What exactly is vendor management and how does it work? Need some ideas and tips

texts:
I am trying to learn MAGENTO 2 to develop Online E-commerce platform for my company. Everything is going well, and in line with what I planned. However, I have a few doubts about the working of an e-commerce setup, which I wanted to ask you.

The most important thing that I needed to understand is What exactly is vendor management and how does it work with Magento 2?

My knowledge about vendor management is very limited, so I need some suggestions and comments from all of you about the best ways to manage vendors and their inventory.

To give you an example, suppose one of my vendors added PRODUCT A in the catalog. If the vendor has 50 units of the product available as of today, and I am showing 50 units on my website, how do I keep track if he sells a few of those to physical or some other e-commerce site? How exactly does tracking inventory work with vendors? Is there an application or extension of Magento 2 which should be installed at the vendor's end to update the system? Or is it done in some other way?

Kindly help. Thanks in advance


texts: Magento2: How to get current product category id?

texts:
I want to get the current product category ids by Knockout JS.

Please help.


texts: What is the proper way to add theme-specific translations of new strings?

texts:
We are creating a new template and have some new text which are not yet defined anywhere.

If they would be defined before we would add some

"Mage_TheModule::Foo";"Fuh"

to the translate.csv in the theme.

What is a good way to deal with new translations?

Shall they be added just to the translate.csv plainly without a module code?

Or is it better / required to create an own module just for the translations?


texts: Apache Server at boatandyachtbuyer.co.uk Port 80

texts:
Im having this weird problem in magento, when i try to log in the admin i was seeing this

  The requested URL /js/js.php was not found on this server.

  Apache Server at example.co.uk Port 80


texts: How to install Magento Opensource 2.3.x on Windows 10

texts:
I am new to Magento. I have read the requirements for Magento.
I dont have a linux box and I have to make do with my Windows one.
I am trying to install Magento 2.3 with sample data on XAMPP 7.3 by following
https://www.mageplaza.com/devdocs/how-install-magento-2-windows.html.
I completed the installation. However when i hit localhost/magento
(i have named the dir as magento in htdocs), it doesnt load the static assets like
iamges, js, fonts.
So i get almost an empty page
When i inspected the page(in chrome browser) and i noticed that static assets
were not going loaded as most of the fonts, js etc were not there in pub/static dir.
I tried running magento setup:static-content:deploy -f to deploy the static files.
However there is no improvement and the page is empty (http://localhost/magento).
I am grateful for any help in resolving this issue.
Thanks


texts: Magento2: How can I set to a model in "specificcountry" on config.xml file?

texts:
I want to set default values with a model from declared class in system.xml.

The result of the model is extracted from the database, from a custom table and the result looks like this: AF,AL,DE,BE,FR ...

How can I set to a model in specificcountry from etc/config.xml file?

On the Magento2 default is:

<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
    <default>
        <carriers>
            <mailpostenonetwodays>
                <model>Vendorname\Modulename\Model\Carrier</model>
                <active>1</active>
                <title>Courier</title>
                <name>Shipping Method name</name>
                <price>5.00</price>
                <specificerrmsg>This shipping method is not available. To use this shipping method, please contact us.</specificerrmsg>
                <sallowspecific>1</sallowspecific>
                <specificcountry>AF,AL,DE,BE,FR</specificcountry>
            </mailpostenonetwodays>
        </carriers>
    </default>
</config>

I want to use like this:

<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
    <default>
        <carriers>
            <mailpostenonetwodays>
                <model>Vendorname\Modulename\Model\Carrier</model>
                <active>1</active>
                <title>Courier</title>
                <name>Shipping Method name</name>
                <price>5.00</price>
                <specificerrmsg>This shipping method is not available. To use this shipping method, please contact us.</specificerrmsg>
                <sallowspecific>1</sallowspecific>
                <specificcountry>
                    <source_model>Vendornmae\Modulename\Model\Test</source_model>
                </specificcountry>
            </mailpostenonetwodays>
        </carriers>
    </default>
</config>


texts: Copy custom options price of all the products to a new attribute

texts:
I do not know how much complicated can this be but i will explain:
I have all the products on my catalogue with price 0 and the price is calculated from custom options , for example in a product on the frontend the customer do not see a price but only dropdowns:

"New +25$" this will give price 25$ for the product to the cart or:
"Used +15$" this will give a price of 15$ for the product to the cart

Now my problem is that i want to upload the products to Google Feed but because there is only price 0 to all the products i am trying to find another way.(Google doesn't accept products with price 0)

I was thinking to create a new attribute "text_field" type and somehow copy all the custom_options value prices to this "text_field" new attribute.
Then in the xml feed i can give something like <g:price>{type="attribute" value="new_attribute" ... and Google will accept it.


texts: Magento patches: unrecognized option --dry-run

texts:
I'm following the instructions at http://www.magentocommerce.com/knowledge-base/entry/apply-revert-magento-patches?icid=BLOG_php54_knowledgebase but not getting the listed results.  I have 3 sh patches downloaded into my magento root, but when I run them (sh patchname.sh) I immediately get a command prompt again. I'm not getting success or failure.  Just a bounce right back to the command prompt.  I'm running FreeBSD and the first patch I'm looking at specifies /bin/sh, which does in fact exist.  What am I missing here?

edit

I was downloading with IE.  On a whim I decided to try Chrome.  Appears the line ending handling is different.  The Chrome download version gives me:

  PATCH_SUPEE-2677_EE_1.13.0.2_v2.sh: 127: not found
  PATCH_SUPEE-2677_EE_1.13.0.2_v2.sh: 127: not found
  PATCH_SUPEE-2677_EE_1.13.0.2_v2.sh: 0: not found
  Checking if patch can be applied/reverted successfully...
  patch: unrecognized option `--dry-run'
  Usage: /usr/bin/patch [options] [origfile [patchfile]] [+[options] [origfile]]...
  Options:
         [-cCeEflnNRsStuv] [-b backup-ext] [-B backup-prefix] [-d directory]
         [-D symbol] [-F max-fuzz] [-i patchfile] [-o out-file] [-p[strip-count]]
         [-r rej-name] [-V {numbered,existing,simple}] [--check] [--context]
         [--prefix=backup-prefix] [--suffix=backup-ext] [--ifdef=symbol]
         [--directory=directory] [--ed] [--fuzz=max-fuzz] [--force] [--batch]
         [--ignore-whitespace] [--forward] [--reverse] [--output=out-file]
         [--strip[=strip-count]] [--normal] [--reject-file=rej-name] [--skip]
         [--remove-empty-files] [--quiet] [--silent] [--unified] [--version]
         [--version-control={numbered,existing,simple}] [--index-first]
  ERROR: Patch can't be applied/reverted successfully.

Not terribly informative as to why it won't install, but at least it's something more to work with.


texts: How to add icons to input fields if the field has not passed validation

texts:
I need to add a custom icon to the floor if the field does not pass validation, as in the screenshot.

I tried to implement this functionality with ':after' in CSS

    &._error .control input {
        &:after {
            content: 'X';
            color: #000;
            font-size: 18px;
        }
    }

but the item is not displayed on the frontend


texts: Configurable product price is zero in the front-end

texts:
I am probably missing somtheing obvious. When I import configurable products the price in the front-end is zero. Beneath is a examples of one product and the columns that I believe is necessary to get my point across.

Note that there also are a size attribute that is not show here.
Magento will set price field to zero if empty on import.
All prices are including tax

UPDATE:
"configurable_variations" and "additional_variations" fields are setup correctly as well.

Example 1:

Product list: 0,00 DKK

Product page: 0,00 DKK (When choosing the a size the price stays zero.)

sku store_view_code attribute_set_code  product_type    product_websites    name            description short_description   weight  product_online  tax_class_name  visibility                  price   special_price
2999000222568       Configurable        simple          danmark             2999000222568                                   0       1               Taxable Goods   Not Visible Individually    0       0
2999000222575       Configurable        simple          danmark             2999000222575                                   0       1               Taxable Goods   Not Visible Individually    0       0
2999000222582       Configurable        simple          danmark             2999000222582                                   0       1               Taxable Goods   Not Visible Individually    0       0
2999000222599       Configurable        simple          danmark             2999000222599                                   0       1               Taxable Goods   Not Visible Individually    0       0
2999000222605       Configurable        simple          danmark             2999000222605                                   0       1               Taxable Goods   Not Visible Individually    0       0
2499FIRE RED        Configurable        configurable    danmark             jacket                                                  1               Taxable Goods   Catalog, Search             1200    840

Example 2:

Product list: 1050,00 DKK 1.200 DKK

Product page: 0,00 DKK (When choosing a size the price changes to -325. The tax is 25%)

sku store_view_code attribute_set_code  product_type    product_websites    name            description short_description   weight  product_online  tax_class_name  visibility                  price   special_price
2999000222568       Configurable        simple          danmark             2999000222568                                   0       1               Taxable Goods   Not Visible Individually    1200    840
2999000222575       Configurable        simple          danmark             2999000222575                                   0       1               Taxable Goods   Not Visible Individually    1200    840
2999000222582       Configurable        simple          danmark             2999000222582                                   0       1               Taxable Goods   Not Visible Individually    1200    840
2999000222599       Configurable        simple          danmark             2999000222599                                   0       1               Taxable Goods   Not Visible Individually    1200    840
2999000222605       Configurable        simple          danmark             2999000222605                                   0       1               Taxable Goods   Not Visible Individually    1200    840
2499FIRE RED        Configurable        configurable    danmark             jacket                                                  1               Taxable Goods   Catalog, Search             1200    840


texts: Can I access changed parameters in an after/around plugin?

texts:
I want to access a parameter of a method in an after plugin. The value of the parameter has been changed inside the original method, and I want to access the modified value. Example:

class vendorClass
{
    function paintBlue($room, $options)
    {
        // ...
        $options['color'] = 'light green';
    }
}

Now, my plugin looks like this:

class myPerfectMagentoPlugin
{
    public function __construct()
    {
    }

    public function afterPaintBlue($subject, $result, $room, $options)
    {
          // This $options array does not contain the color value:
          var_dump($options);
    }
}

How can I access the modified content of the $options variable in an after plugin?


texts: How to override a advance search & orders return page in magento 2?

texts:
In magento 2  how to override a advance search page and order return
page in my custom theme


texts:
I have issue with Magento 2 + Nginx server. My magento 2 all website page is error "ERR_CONNECTION_REFUSED". Something wrong with my server configuration?
My server configuration

Path: /etc/nginx/conf.d/domain-name.conf
upstream fastcgi_backend {
    # socket
    # server unix:/var/run/php5-fpm.sock;
   server   unix:/var/run/php/php7.0-fpm.sock;
    # use tcp connection
    #  server  127.0.0.1:9000;

}
server {
    listen 80;
    server_name server-domain.com;
    return 301 $scheme://www.magento-website-domain.com$request_uri;
}

server {
    listen 80 reuseport;
    server_name server-domain.com;

    set $MAGE_ROOT /home/host-user/public_html;

   set $MAGE_MODE developer;
#    set $MAGE_MODE default;
#    set $MAGE_MODE production;

    include /home/host-user/public_html/nginx.conf.sample;
    fastcgi_read_timeout 3000;
}

Path: /etc/nginx/nginx.conf
user  nginx;
worker_processes  1;

error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;

events {
    worker_connections  1024;
}

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    keepalive_timeout  65;

    #gzip  on;

    include /etc/nginx/conf.d/*.conf;
}

(/var/log/nginx/error.log) log file can see notification
"/home/host-user/public_html/index.php" failed (13: Permission denied), client: 127.0.0.1, server: server-domain.com, request: "GET /whm-server-status HTTP/1.0"

I have permission for file index.php 644 but same error?


texts: How To Override Custom Module Helper in Magento 2

texts:
I would need to override the custom module helper into my custom module.

Custom module code was,

class Data extends AbstractHelper
{
    const XML_PATH_BLOG = 'blog/';
    protected $storeManager;
    protected $objectManager;
    protected $postfactory;
    protected $categoryfactory;
    protected $tagfactory;
    protected $topicfactory;
    protected $scopeConfig;

    public function __construct(
        Context $context,
        ObjectManagerInterface $objectManager,
        StoreManagerInterface $storeManager,
        PostFactory $postFactory,
        CategoryFactory $categoryFactory,
        TagFactory $tagFactory,
        TopicFactory $topicFactory,
        ScopeConfigInterface $scopeConfig
    )
    {
        $this->objectManager   = $objectManager;
        $this->storeManager    = $storeManager;
        $this->postfactory     = $postFactory;
        $this->categoryfactory = $categoryFactory;
        $this->tagfactory      = $tagFactory;
        $this->topicfactory    = $topicFactory;
        $this->scopeConfig     = $scopeConfig;
        parent::__construct($context);
    }

My overriding code was,

class Resize extends \Mageplaza\Blog\Helper\Data
{
    protected $_filesystem;
    protected $_directory;
    protected $_imageFactory;
    protected $_storeManager;

    public function __construct(
        StoreManagerInterface $storeManager,
        \Magento\Framework\Filesystem $filesystem,
        \Magento\Framework\Image\AdapterFactory $imageFactory
    )
    {
        $this->_storeManager   = $storeManager;
        $this->_filesystem     = $filesystem;
        $this->_imageFactory   = $imageFactory;
        $this->_directory      = $filesystem->getDirectoryWrite(DirectoryList::MEDIA);
    }

Am I missed anything here? Because, it throws the following error when I was calling the method called getConfigValue() as follow:

  Fatal error: Call to a member function getValue() on null in E:\xxxamp\htdocs\accelerator\app\code\Mageplaza\Blog\Helper\Data.php on line 50

public function getConfigValue($field, $storeId = null)
{
    return $this->scopeConfig->getValue($field, \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
}


texts: How to rewrite jquery code in jquery ui widget

texts:
How to remake this code in ui jquery widget?

There is such jquery code. When you select an item using the checkbox, the item is cloned and added to another block.
Tell me how to rewrite it in jquery ui widget since magento uses them to inject js code. Even if you have suggestions on how to improve the code, then I would love to read your ideas :)

I will also be glad of any help from such examples, thanks

example on codepen: https://codepen.io/annbin/pen/VwYRerL


texts:
I would like to add a new email field in the review form, and this fild will also appear in the admin catalog_product_review. I have already looked at several topics and did not get results.
the Magento Version 1.9.4


texts:
I am getting only newsletter email in spam with the sender address like this
Username@ip-111-11-11-111.eu-central-1.compute.internal

What should be the reason ? Please suggest!!


texts: How to remove ‘Add New’ button from Admin Grid in Magento 1.9?

texts:
I am trying to remove the Add New button from an Adminhtml grid in Magento 1.9.

I have found this post and [this other one]
(Magento 2 - How to remove "Add new MODEL" button on \Magento\Backend\Block\Widget\Grid\Container) about doing that in Magento 2.0, but the same technique does not apply to Magento 1.9.

The error reported in Magento 1.9 is this:

exception 'Varien_Exception' with message 'Invalid method TBF_Cupom_Block_Adminhtml_Gerados_Index_Grid::_removeButton(Array
(
    [0] => add
)
)' in /var/www/html/lib/Varien/Object.php:653

In fact it makes sense because Grid's parent class is Mage_Adminhtml_Block_Widget_Grid and it does not have a _removeButton() method.

So, the question remains... How can I remove the Add New button from an Admin Grid Widget in Magento 1.9?

Thanks in advance!


texts: Inject HTML code to a block using modules only

texts: Is it possible to inject an HTML code to a block without using modules only? Without the need to copy anything to the ./app/design/ directory? Or is it actually a normal practice for Magento 1.9 modules to also place files in the ./app/design/ directory?


texts:
I'm currently working on a extension to customize the default Magento 2 checkout. In the first step of the checkout, there is a address form and a block for the shipping methods. I want to seperate those 2 functionalities into 2 individual steps. That will result in a checkout with the steps: 'address > shipping > payment'.

I created a new step and set it as second step according to the dev docs: http://devdocs.magento.com/guides/v2.0/howdoi/checkout/checkout_new_step.html

I've copied the shipping method html from the file module-checkout/view/frontend/web/template/shipping.html to my custom step html file. I also copied the functionality of the shipping method html to my custom step js file.

But now is the shipping method block visible on all 3 steps, while it only has to be visible on the second step. This is a part of my custom step js file:

return Component.extend({
        defaults: {
            template: 'VENDOR_MODULE/custom-step',
            shippingMethodListTemplate: 'Magento_Checkout/shipping-address/shipping-method-list',
            shippingMethodItemTemplate: 'Magento_Checkout/shipping-address/shipping-method-item'
        },

        visible: ko.observable(!quote.isVirtual()),
        isVisible: ko.observable(quote.isVirtual()),
        isLoading: shippingService.isLoading,
        rates: shippingService.getShippingRates(),
        errorValidationMessage: ko.observable(false),

        initialize: function () {
            this._super();

            // register the step
            stepNavigator.registerStep(
                // step code will be used as step content id in the component template
                'custom-step',
                // step alias
                null,
                // step title value
                'Custom Step',
                // observable property with logic when to display the step or hide the step
                this.isVisible,

                _.bind(this.navigate, this),

                /**
                 * sort order value
                 * 'sort order value' < 10: step displays before shipping step;
                 * 10 < 'sort order value' < 20 : step displays between shipping and payment step
                 * 'sort order value' > 20 : step displays after payment step
                 */
                15
            );

            return this;
        },

        navigate: function () {
            var self = this;

            getPaymentInformation().done(function () {
                self.isVisible(true);
            });
        }
})

How can I show the custom step block only on the second step? Or is there a better way to separate the first step into 2 steps?


texts: Product Attributes and filtering mechanics

texts:
TL;DR: How to filter multiple select/dropdown attributes (multi-selects would be cumbersome)? Or use a different method?

Consider a product select/dropdown attribute whose values correspond to each letter of the alphabet (English in this case). The first option's label is "A", its value is 1. "B" is 2, "C" is 3, and so on:

I have this attribute assigned to control layered navigation filters. So a user can click the link for a specific value, and it will add ?my_attribute=2 into the request parameters, and the product list shows only products whose attribute value is "B".

I would like to, instead, display any products who's attribute value is greater than or equal to the selected option. So in the case a user clicks the "B" link in layered nav, the results would be every product from "B-Z" (2-26).

The URL structure: ?my_attribute=2&my_attribute_3&my_attribute=4... would be ugly and besides, it does not work, but the idea is there. ?my_attribute=2-26 would obviously be ideal, but again, this is not what Magento does.

Curiously, using advanced search provides this URL structure (through the advanced search controller instead of layered nav):

?my_attribute%5B%5D=7&my_attribute%5B%5D=8&my_attribute%5B%5D=9&my_attribute%5B%5D=10

This indeed does provide the desired results; however, this structure does not work with category/layered pages, only advanced search.

I am trying to decide which would be a better path at this point; Should I abandon all the built-in usefulness of layered navigation, and instead rewrite the product_list block's loaded product collection based on my attribute value? Or should I adapt some functionality from advanced search results to fit my needs?

It seems like it would be best to leave layered navigation functionality alone so that other product filters continue to work as expected; but it does not seem it will allow multiple values from a single attribute be selected at the same time. Alternatively, a workaround would be to use a multi-select attribute, and if a product would be assigned "B", it would have to be assigned all options from "B-Z". While this would provide the greatest instant results (everything will work without more modifications), it is certainly a sloppy solution that will be error-prone and clunky to manage in the future.


texts: Magento 1 remove currency symbol for product with custom options

texts:
We would like to remove the currency symbol for products with custom options.

Our current code, displayed below, works perfect for normal products. But when a product got custom options it first show the price without the symbol and after 0.5-1.0 seconds the currency symbol is displayed.

Seems that somewhere the code for custom options activate this.

Where can we remove this?

Current price code:

            <?php echo $this->helper('tax')->__('Excl. Tax:') ?>
                <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
                    <?php if ($_finalPrice == $_price): ?>
                        <?php $myPrice = $_coreHelper->formatPrice($_price + $_weeeTaxAmount, false);
                        $zeros = substr($myPrice, -2);
                        if(strval($zeros) == "00") { $myPrice = substr($myPrice, 0, -2);
                        $myPrice = $myPrice . '-'; }
                        $myPrice = str_replace("€","",$myPrice);
                            //or if the € is htmlencoded
                        $myPrice = str_replace("&euro;","",$myPrice);
                        echo ''.$myPrice.''; ?>
                    <?php else: ?>
                        <?php $myPrice = $_coreHelper->formatPrice($_price + $_weeeTaxAmount, false);
                        $zeros = substr($myPrice, -2);
                        if(strval($zeros) == "00") { $myPrice = substr($myPrice, 0, -2);
                        $myPrice = $myPrice . '-'; }
                        $myPrice = str_replace("€","",$myPrice);
                            //or if the € is htmlencoded
                        $myPrice = str_replace("&euro;","",$myPrice);
                        echo ''.$myPrice.''; ?>
                    <?php endif; ?>

                <?php echo $this->helper('tax')->__('Incl. Tax:') ?>
                <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
                        <?php $myPrice = $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmount, false);
                        $zeros = substr($myPrice, -2);
                        if(strval($zeros) == "00") { $myPrice = substr($myPrice, 0, -2);
                        $myPrice = $myPrice . '-'; }
                        $myPrice = str_replace("€","",$myPrice);
                            //or if the € is htmlencoded
                        $myPrice = str_replace("&euro;","",$myPrice);
                        echo ''.$myPrice.''; ?>


texts: Magento 2 custom form in shipping address before-form not validating for registered customers

texts:
I have added a custom form in the shipping address before-form handle. This form is validating for a guest checkout process but not working for logged in customers who have already added address information.

Below is my Layoutprocessor file where am injecting the custom field to shipping step before-form handle.

$customAttributeCode = 'experience_survey_option';
       $customField = [
        'component' => 'Magento_Ui/js/form/element/select',
        'config' => [
            'customScope' => 'shippingAddress.custom_attributes',
            'template' => 'ui/form/field',
            'elementTmpl' => 'ui/form/element/select',
            'id' => 'drop-down',
        ],
        'dataScope' => 'shippingAddress.custom_attributes.experience_survey_option',
        'label' => $this->getSelectLabel(),
        'provider' => 'checkoutProvider',
        'visible' => true,
        'validation' => ['required-entry' => true],
        'sortOrder' => 150,
        'id' => 'drop-down',
        'options' => $this->getSelectOptions()
    ];
    $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['before-form']['children']['experience-survey-form']['children']['experience-survey-checkout-form-fieldset']['children'][$customAttributeCode] = $customField;

Also am attaching the screenshots of checkout form.

Guest checkout

2.Logged in customer checkout

Any help will be appreciated. Thanks.


texts: Show "OUT OF STOCK" and still be able to order the product

texts:
I'm using Magento 1.9.1 and have the following issue:

I want that the customer can order products, whether they are on stock or not. So I turned the backorder option on. This works fine, the "add to card" button appears, the only problem is that all products are marked with the green text ON STOCK.

Is there any way to change that with configuring correctly in the Magento backend ?
Or do I need to modify the template ? If so could you tell me where to change the code ? I looked at view.phtml and found the following code:

<?php echo $this->getChildHtml('product_type_availability'); ?>

Is there any way to get the stock quantity amount in here so I could do if/else? Or do you have any other suggestions on that ?

Thanks a lot !

Oliver


texts: Display level 3 submenus on level 1 hover - Magento 2 menu

texts:
When a user hovers over a parent top level menu item, i want to display it's direct submenu, as all as any other submenus of that submenu.

Please see the design that i'm trying to achieve below.

I don't think it's possible to achieve this with css alone, so I think i need to overwrite the menu.js file. So i've followed the below tutorial to achieve this.

http://inchoo.net/magento-2/extending-magento-2-default-js-components/comment-page-1/#comment-438131

I just don't know where to go from here. Can anyone help me?

Also, the workflow to make changes to this file is horrific so any tips on improving that would be welcomed. Do I really need to deploy static files everytime I make a change, regardless of whether I have caching turn on or not?


texts: Other customers address show on checkout - security bug in magento

texts:
We have an issue with magento checkout -

A customer logged into his account and in checkout page wrong address is shown and the interesting fact is that it is some other customer's address. The same address appears in order mail also.

The same thing happened for some other customers also.

Our customer just called and said that the problem appeared again and he is afraid that his data is not being handled safely.

I think it is some issue with session handling.

Additional Information

Magento version : 1.4.2.0
Checkout : Idev onepagecheckout
Stores : 2 websites for 2 languages

This issue needs to be fixed asap. Please help me.


texts:
I have to requirement that magento front end contain admin login at the footer. I have done template. I need to redirect the page to admin credential checks controller after submitting admin username and password.. is their any idea,

Thanks.


texts: Add custom column to the Order Grid for export

texts:
I want to add some custom field like sku to add in order grid to export along with the order.

I follow this link Add custom product attribute to Order Grid  to do this, but this didn't work in this Magento version.

How to achieve this?


texts:
I am trying to make use of the admin form field with type button.

$fieldset->addField('register', 'button', array(
    'label' => Mage::helper('module')->__('Button Caption'),
    'onclick' => 'test()'
));

however, I expected the label to be actually rendered as the button caption (ON the button) but it is rendered as label text (IN FRONT of the button). I tried, to put title, value, html, innerHTML, looked through the button.php but I cannot figure out how to actually but the button Caption so that Magento renders it like <button>Button Caption</button> there ought to be a way, cause otherwise the button type is pretty much useless.


texts: How to set up a layered navigation filter with swatches - but not use as a configurable product option

texts:
I would like to use an attribute set (with swatches) to feed into a filter on the layered navigation on category pages.

However I do not want this attribute set to be an option on the product detail page. I want this as a navigational feature, rather than a item customisation.

More details - I am using "Colour" as an item customisation feature, however this is an endless list with each swatch an individual photo.

For search, I would like a simplified version of the above, to create east navigation. For example, I might have lime, dark green, bottle green, shade 458 etc for products that are green. In the layered navigation I would like a standard green swatch, linked through to all the green items. I would have to manually fix a hidden standardised-colour attribute for this.

Any ideas on how to do what I want or a better solution?


texts: Magento2 TypeError: cart is not a function

texts:
I ran into a issue where i could add products to cart and i got success message too but the minicart is not updating with the added items.

I got below error in console, I have upgraded the magento to 2.1.0

  TypeError: cart is not a function in knockout.js

Did anyone came across this issue.


texts: Magento 2 cant override the minicart.html file using html

texts:
I am going to override the minicart.html file using knockout for my custom code as below at the default file location is :

/var/www/html/magento226/pub/static/frontend/Magento/luma/en_US/Magento_Checkout/template/minicart/item/default.html

code

Can anybody let me know how to solve this?

If anyone know, please let me help me out.

Thanks!


texts: How to remove `js/responsive.js` and `js/theme.js` from Magento 2

texts:
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
    <remove src="Magento_Theme::js/responsive.js " />
    <remove src="Magento_Theme::js/theme.js " />
</head>
</page>

I've tried the above but no luck. Also tried removing "Magento_Theme::" portion as well and it doesn't take effect.


texts:
I want to overwrite template file sales/order/invoice/create/items.phtml which is define in sales.xml like below :

<adminhtml_sales_order_invoice_new>
    <reference name="content">
        <block type="adminhtml/sales_order_invoice_create" name="sales_invoice_create">
            <block type="adminhtml/sales_order_invoice_create_form" name="form" template="sales/order/invoice/create/form.phtml">
                <block type="adminhtml/sales_order_view_info" name="order_info" template="sales/order/view/info.phtml"></block>
                <block type="adminhtml/sales_order_payment" name="order_payment"></block>
                <block type="adminhtml/sales_order_invoice_create_items" name="order_items" template="sales/order/invoice/create/items.phtml">
                 ---- Other Code ---------
</adminhtml_sales_order_invoice_new>

I do below code for that

mymodule.xml

<adminhtml_sales_order_invoice_new>
    <reference name="order_items">
           <block type="adminhtml/sales_order_invoice_create_items" name="mymodule" template="mymodule/order/invoice/create/items.phtml">
           </block>
    </reference>
</adminhtml_sales_order_invoice_new>

But still,Magento is using default items.phtml

Where I am wrong ?


texts: Adding a required unchecked check box for Terms and Conditions on new account registration

texts:
I'm trying to add a Checkbox to account registration for terms and conditions mainly due to GDPR.

I've looked at this question: magento 2 - Terms and conditions checkbox on register page

But the answer is fairly vague. Where in the register.phtml document must they go? I've tried several locations and it causes the register form to disappear or miss elements.

The checkbox needs to be a requirement for registration but must not already be checked.

I hope someone can help me.


texts: How to Change Qty Increment for Specific Categories?

texts:
How can i increase quantity 12 by 12 instead of 1 by 1 for specific categories?
Magento 1 had an option in product page but i couldnt find anything about it on Magento 2.
I can set minimum qty allowed in shopping cart, and also qty increments can be set in backend.
But when the customer clicks on the increase button it makes 12 to 13. I want it to become 24 in one click.


texts: How to Get core_config_data using Magento soap api?

texts: How to get value of core_config_data eg. general/region/state_required using Magento soap api?


texts: Custom field value is not getting in observer in Magento 2

texts:
I have created a custom field in advance inventory in magento 2 product edit but its value is not getting in observer my code is like

<fieldset name="stock_data">
               <container name="container_is_discontinued" component="Magento_Ui/js/form/components/group" sortOrder="4200">
                  <argument name="data" xsi:type="array">
                        <item name="config" xsi:type="array">
                            <item name="formElement" xsi:type="string">container</item>
                            <item name="label" xsi:type="string" translate="true">Is Discontinued</item>
                            <item name="dataScope" xsi:type="string">quantity_and_stock_status.container_is_discontinued</item>
                            <item name="scopeLabel" xsi:type="string">[GLOBAL]</item>
                            <item name="imports" xsi:type="array">
                                <item name="visible" xsi:type="string">${$.provider}:data.product.stock_data.manage_stock</item>
                            </item>
                        </item>
                    </argument>
                    <field name="is_discontinued" formElement="select">
                        <argument name="data" xsi:type="array">
                            <item name="config" xsi:type="array">
                                <item name="value" xsi:type="number">0</item>
                            </item>
                        </argument>
                        <settings>
                            <scopeLabel>[GLOBAL]</scopeLabel>
                            <label translate="true">Is Discontinued</label>
                            <dataScope>is_discontinued</dataScope>
                        </settings>
                        <formElements>
                            <select>
                                <settings>
                                    <options class="Magento\Config\Model\Config\Source\Yesno"/>
                                </settings>
                            </select>
                        </formElements>
                    </field>
                </container>
        </fieldset>


texts: To use or not to use Magento connect...that is the question

texts:
A new "difference in opinions" has started on twitter.
A a few high valued developers are starting to remove their extensions from Magento Connect on the reason that non-technical people should not install extensions.
Other developers don't agree with this reason.
I'm asking this because I consider both sides somehow valid.
Since 140 characters are far fewer than needed to explain the reasons, why not centralize them in here.
This way technical and non technical people can read them.
I know that the answers will be primarily opinion based, but I promise to close this question once some views are expressed.
Or, if a moderator considers this would be better suited on meta, this can be moved on meta.


texts: How to fetch all images under a folder in Magento 1.9

texts:
I want to make a image gallery (for this there are some free and paid version available) but to show them as per Month wise there is no such  free extension.

mainfolder

May

someimage.jpg
someimage.jpg

June

...

So i thought to create folder having name as month then fetch all images under them and using some jquery i can make a gallery.

I created the above idea on localhost in PHP but in magento i am new , no idea from where to start.

In some_custom.phtml

$mypath3 = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK).'media/mediamadd/';
$dirpass = scandir($mypath3);
print_r($dirpass);  // this gives nothing

Kindly suggest.


texts: how to add actions in magento ACL permissions in magento

texts: i wanted to add custom module actions like create, edit and delete need to be added in ACL permissions, can anyone help me how we do that, thanks in advance


texts: How can i catch customer_save_after_data_object after saving account information in frontend?


texts:
I'm trying to create a local development website on a WampServer installation.

I've imported the .SQL into PHPMyAdmin, and copied the files to D:\wamp\www\website, created a vhost.conf entry, and a hosts file entry.

When I load the website, I receive the following error:

  ( ! ) Fatal error: Call to a member function extend() on a non-object
  in D:\wamp\www\axis\lib\Varien\Simplexml\Config.php on line 600

From this Q&A, I might need to double check the permissions are set properly, but how do I do this in Windows 7 / WampServer?


texts: Magento CE 2.3.4 saving new product takes time

texts: Adding new products to saving new products takes time. It takes almost 5min to save a product.


texts: How to sync Database between live and test system, when scheme has changed (How to export orders)

texts:
I have upgraded Magento CE from 1.4.1.1 to 1.7.0.2. Between this versions the database scheme has changed.

This means, i can't easily export the database from the live system to the test system. And i had to change a lot of things in the cms and category settings of the test system. This data is stored in the database and I'd like to keep it.

Is there a possibility to export the orders from live and import them to the test system? This would probably solve my problems. I have consulted google extensively, but was not able to find a solution.


texts: I am planned to write magento1 certification . If they start magento2 certification then magento1 certification is not valid ?


texts: The correct way to configure an adminhtml module

texts:
I have started to try and learn how to create a module for the admin of magento and to do this i am using Magento's PHP developers guide. In it shows two ways of starting an admin module.

The first block of code I have added, the book says is the right way and the second the wrong way. It does give an explanation, but I don't understand it as it refers to a

  callback URL for an admin action

which is something I have never heard of and then goes on to talk about partial access to the admin section

Why is this considered the right way:

<admin>
    <routers>
        <adminhtml>
            <modules>
                <mdg_giftregistry before="Mage_Adminhtml">Mdg_Giftregistry_Adminhtml</mdg_giftregistry>
            </modules>
        </adminhtml>
    </routers>
</admin>

and this considered the wrong way:

<admin>
    <routers>
        <giftregistry>
            <use>admin</use>
            <args>
                <module>Mdg_Giftregistry_Adminhtml</module>
                <frontname>giftregistry</frontname>
            </args>
        </giftregistry>
    </routers>
</admin>


texts: Trying to understand EAV attributes and extension attributes in Magento 2

texts:
I'm trying to figure out how to achieve a simple task that in magento 1 was very simple, adding an attribute to an entity. In my case an attribute to customer_address, so in magento tutorial only appears how to add it to the form in checkout using extension attributes (which is not very clear). So far I have added the attribute by installData, using the config:

$MyAttribute->setData(
    'used_in_forms',
    ['adminhtml_customer_address', 'customer_address_edit', 'customer_register_address']
);

But it only appears in admin, and it works fine saving/editing address, it creates the linked attribute in customer_address_entity_varchar, but cannot figure out how to save the addresses created from checkout and from edit address in customer dashboard, also, if the user does not save the address to address book, it only gets saved in sales_order_address, and even there is not EAV use for attributes, so, how do you have to use the EAV attributes and extension attribute for this? An explanation would be very appreciated.


texts: How to display configurable product options in category list page

texts: How to check that Displaying configurable product options in category list page?


texts: Magento 2.3.5: The content security policy related notices in the browser console after Magento upgrade to 2.3.5

texts: Upgrading to 2.3.5 has lead to hundreds of notices in the front end as seen in the screenshot below. The devdoc explaining the CSP isn't detailed enough to find a solution to this. Can anyone show with an example by choosing one of the notices from the screenshot below how to whitelist it?


texts: i need to use  PostCSS with tailwindcss in my magento 2 store, but i can't @import files from node_modules and can't find information about that. i think it's impossible. maybe you can help me, i need to include css - library via npm in my magento2


texts:
I see something like the below in magento

<?php echo $this->__('* Required Fields') ?>

Why can't I simply use

<?php echo "Required Fields" ?>

The output seems to be the same in both cases.
What is the function of the $this->__ . I see this usage in a lot of places and would like to clear any misunderstanding I may be having.

Any help greatly appreciated.


texts: Customer Data vanished after editing an order

texts:
We only have quest sales in our shop.
Nevertheless the customer data (name, gender, email) is set in the order - not only in addresses. This data also shows in right top corner (account information) when looking on an order in backend.

When editing an order you get an form left in account information which on our shop only includes email and gender.
After saving the edited order the new order has looses the customer name in it's account information.

I am searching for the fieldlist which creates email and gender and only found Mage_Adminhtml_Block_Sales_Order_Create_Form_Account::_prepareForm().

Does anyone have to solve that issue too? How I could include other fields like firstname, lastname and so on.
How to prefill I know - I override the method getFormValues to preselect the gender dropdown.


texts: Magento 2 - Customers not receiving notifications for bad login/reset password

texts:
I believe the theme I'm using completely missed out implementing these things.

How can I do this properly myself?


texts: get options value of each options label of an attribute

texts:
I have an alphabetical sorted list of option label of an attribute, I want to get option value of each option labelthis is my code:
<?php
$om = \Magento\Framework\App\ObjectManager::getInstance();

/** @var \Magento\Catalog\Api\Data\ProductAttributeInterface $attribute */
$attribute = $om->get(\Magento\Catalog\Api\ProductAttributeRepositoryInterface::class)->get("manufacturer");
$image_source_files = [];
?>

<?php foreach ($attribute->getOptions() as $option) {

    $src =  $option->getLabel() ;
    $image_source_files[] = $src;

}
sort($image_source_files);

foreach ($image_source_files as $value) {
    $srca = $value ;
    $srcb = $this->getViewFileUrl("images/" . $srca . ".png");
?>

<a href="<?php echo $option->getValue()?>  ">

<?php echo $srca; ?>

<img src="<?php echo $srcb; ?>"  onerror="this.onerror=null; this.remove(); " style="padding: 10px 20px;"  width="200" height="200"/>

    <?php

}

?>


texts: Separating product pages for bundle or configurable products

texts:
I have a somewhat complicated task at hand and I am looking for guidance.

I need to either have:

A bundled product with the simple products that make it up on separate pages but then show as the bundle on checkout.

or

Have a way to have certain simple products come together at checkout and be segmented from others, which is preferred.

Basically, the website has one customizable product but the user interface needs to go like this:

Step 1 (page 1): Select the base part of the product from 2 options.

Step 2 (page 2): Select the 2nd base part of the product from 8 options.

Step 3 (page 3): Select from a large variety of components to add to the product. This page is already built on the front end and is a very custom drag and drop interface.

Step 4 (page 4): Go to cart and see 1 product or bundle of products making the end result.

Step 5: Still on page 4 have the option to either build another one or go to checkout.

This may seem like a job for a configurable product and I'm not opposed to that but still, I run into the issue of the UI. At that point, I would have to somehow separate the attributes (options) your selecting from into separate pages following the steps above. Also, we have some inventory issues with Configurable products since you can't track inventory of an attribute with Magento.

Any guidance is welcomed!!


texts: Magento 1.9.2.4 compatibility issue with Php 7

texts:
i am getting 2 problems with Php 7 in Magento 1.9.2.4

Problem 2 is the wrong calculation of Order Total Amount in checkout.

Please guide how i can implement PHP 7 with Magento 1.9.2.4

Further also please recommend, is it worthy to use PHP 7 with Magento 1.9.2.4??


texts: Changing price is not reflecting for configurable products

texts:
i am trying to change the price of associated products .

In the below image, you can see 2 tables, in first table you can see "option 3, option 4, option 5....etc" , next to that column there is a price column . if i edit price there, than its working fine.

There is Price column is 2nd table also. but when i change the Price there, its not reflecting in frontend. but quantity is reflecting from 2nd table.

Is Magento works like this only or is there any way so that if i edit price column in 2nd table than also it should work as like 1st table.


texts: Need to encrypt a database field and use the value in a link to get to a 3rd party site

texts:
Here's what we're trying to do:

We have a 3rd party website that we're trying to setup for single sign-on functionality. In order to do this, we need to embed the customer account number (we use the TAX/Vat Number field in "Account Information") in the URL going to the 3rd party site.
This number needs to be encrypted using 3DES
I would add this link somewhere on the customer account page. I do know how to add links to pages where I need them but this particular task is above my skill level.

The 3rd party documentation notes that: HTTP Post method is highly recommended (don't really know what this means)

My question is, how do I do this?

As I stated before, this is above my skill level and my company does not have the funds to source this out to someone else to take care of.

This is a time-sensitive implementation so I am having somewhat of a nervous breakdown under my desk about it.
Anyone who helps will be rewarded with +2 internets. Thank you in advance.


texts:
I am relatively new to magento. I would like to place customer account registration page in two columns. Preferably, left side with First Name, Last Name, Email and password. Right Side, Address Fields.

I could find below code from layout/customer.xml for RWD theme.

        Customer Account Registration Form

    <reference name="root">
        <action method="setTemplate"><template>page/1column.phtml</template></action>
    </reference>
    <reference name="content">
        <block type="customer/form_register" name="customer_form_register" template="customer/form/register.phtml">
            <block type="page/html_wrapper" name="customer.form.register.fields.before" as="form_fields_before" translate="label">
                <label>Form Fields Before</label>
            </block>
        </block>
    </reference>
</customer_account_create>

Is it possible to make changes to above code and split the forms into two columns?

Thank you


texts: Magento 2: Check quantity with custom data when create shipment

texts:
When creating shipment from the Admin I have to check the qty with the packed quantity from the custom table.
I have created a plugin and it's calling but after this, it creates shipment for all the quantities. I have to restrict shipment items and qty with the custom table data. For example, in my table, I have Item - 1 with 2 quantity and if an order is 3 then it should allow creating shipment only for 2 Qty.
<type name="Magento\Shipping\Controller\Adminhtml\Order\Shipment\Save">
    <plugin name="admin_order_shipment_save" type="Vendor \Order\Plugin\Controller\Adminhtml\Order\Shipment\SavePlugin"/>
</type>

<?php
use Magento\Shipping\Controller\Adminhtml\Order\Shipment\Save;
use Magento\Framework\Controller\ResultFactory;

Class SavePlugin
{
/**
 * @var \Magento\Framework\App\ResourceConnection
 */
protected $resourceConnection;

protected $messageManager;

protected $resultRedirectFactory;

public function __construct(
    \Magento\Framework\App\ResourceConnection $resourceConnection,
    \Magento\Framework\Controller\Result\RedirectFactory $resultRedirectFactory,
    \Magento\Framework\Message\ManagerInterface $messageManager
) {
    $this->resourceConnection = $resourceConnection;
    $this->resultRedirectFactory = $resultRedirectFactory;
    $this->messageManager = $messageManager;
}
public function beforeExecute(Save $subject)
{
    $data = $subject->getRequest()->getParam('shipment');
    $resultRedirect = $this->resultRedirectFactory->create();

    $extraShipItems = 0;
    foreach ($data['items'] as $shipmentItem => $qty) {
        if ($qty > 0 && $qty > $customQty) {
                $extraShipItems = 1;
        }
    }

    if($extraShipItems == 1){
        $this->messageManager->addErrorMessage(__('Please create shipment only for custom qty'));
        return $resultRedirect->setPath('sales/order/view', ['order_id' => $subject->getRequest()->getParam('order_id')]);
    }
}
}


texts: Messages on product view are not showing. For example: please specify product option(s)

texts:
If I want to add a configurable product to cart - without specifying the product options - it used to show up a message like "please specify product option(s)". But this doesn't happen on my site.

I checked, my view.phtml contains

<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>

Can anyone point me in the right direction what could cause the issue? Could it be disabled somewhere? I didn't find any "remove" tag in my layout.xml.

Thank you so much!


texts: How to create a shipping method in Magento 2

texts: I'm using the Magento website 2.2.5, I want to create new custom shipping method for my store, how can I create custom shipping method or any guide about this?


texts: How to add tooltip on magento 2 product page?

texts: How to add tooltip to custom option labels in the product page? For example, a tooltip next to text SIZE?


texts: Can't change customers groupId in observer

texts:
I try to change the customers group id in the observer sales_order_place_after but it seems to be impossible. I successfully managed to change the firstname of the customer just for test, but groupId ? No chance...

Can someone explain why it is not possible to change the groupId ?

This is my attempt:

class EaDesign_CustomerGroup_Model_SalesOrderPlaceAfterObserver
{
    ...

    public function changeCustomerGroup(Varien_Event_Observer $observer)
    {
        try
        {
            $customer = Mage::getSingleton('customer/session')->getCustomer();
            $newGroupId = '7';

            $customer->setGroupId($newGroupId);  // does not work
            //$customer->setData('group_id', $newGroupId);  // second attempt, not working too

                    $customer->setFirstname('hans');  // this works

                    $customer->save();
                    if ($customer->save())
                    {
                        Mage::Log('customer saved', 7, 'autochange_customer_group.log', true);  // this is logged
                    }

        } catch (Exception $e) {

            Mage::log('customer session moving ' . $e->getMessage());
        }
    }

But the customer group is still the same!

I made sure that the customer group id is correct by inspecting the HTML code in the backend:


texts: How can we update a product's name with sql for 3 different store view? We have used the functions of Magento but it is quite slow.


texts: Magento 2.4 - How to change description section one below other to accordion

texts:
By default magento 2.4 description like one below other how to change into accordion, any guide most welcome thanks.
How to apply Magento docs into my description section?


texts: Magento2: Best way to have a desktop and mobile template in a module

texts:
I am doing a module in magento 2 and I need to have separate phtml files for desktop and mobile respectively.

How can I do that? Do I need to create a mobile template, that override the module and use user agent rules in the admin ?

If it is the the best way, how can I override the module/view/frontend/template/mytemplate.phtml ?

I am a bit lost here and any help would be greatly appreciated.


texts: How to get the attribut option value text by the value id?

texts:
I have an attribute with the name "staerke" and a few option fields like 1mm, 2mm, 3mm and so on.

I know the attribute id of the attribute and i have the id of the option value.
In my case the attribute "staerke" has the attribut-id 267 and the value for "5mm" has the id 239.

How can i get the value text of 5mm in my code when i have the id 239.

This is my code to get the id 239 ($thicknessId)

$newProduct = Mage::getModel('catalog/product')->load($newProductId);
$thicknessId = $newProduct->getData('staerke');

My last problem is to get the value "5mm" back from this id.


texts: Magento2 Cron job for sending mail not working

texts:
I am trying to send an email to a address via cron job but there is no response I tried it using controller it sends the mail correctly.

  Vendor\Module\Cron\Mail.php

    <?php

namespace Vendor\Module\Cron;
use Magento\Framework\Mail\Template\TransportBuilder;
class Mail
{
        /**
    * @var \Psr\Log\LoggerInterface
    */
    private $logger;
    /**
    * @var TransportBuilder
    */
    private $transportBuilder;

    public function __construct(
        \Psr\Log\LoggerInterface $logger,
        TransportBuilder $transportBuilder
    )
    {
        $this->logger = $logger;
        $this->transportBuilder = $transportBuilder;
    }

    /**
    * Execute the cron
    *
    * @return void
    */
    public function execute()
    {
        try {
        $templateVars = [];
        $transport = $this->transportBuilder->setTemplateIdentifier('acme_dropshipment_email')
        ->setTemplateOptions( [ 'area' => \Magento\Framework\App\Area::AREA_FRONTEND, 'store' => 1 ] )
        ->setTemplateVars( $templateVars )
        ->setFrom( [ "name" => "rick", "email" => "emailaddress@gmail.com" ] )
        ->addTo('emailaddressofreceiver@gmail.com')
        ->setReplyTo('emailaddress@gmail.com')
        ->getTransport();
        $transport->sendMessage();
        $this->logger->info('Cron Works');
        return $this;
        } catch (Exception $e) {
            $this->logger->error($e);
        }
    }

}

  Vendor\Module\etc\crontab.xml

    <?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
    <group id="alert_group">
        <job instance="Vendor\Module\Cron\Mail" method="execute" name="vendor_module_cron">
            <schedule>* * * * *</schedule>
        </job>
    </group>
</config>

  Vendor\Module\etc\cron_group.xml

    <?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
    <group id="alert_group">
        <schedule_generate_every>1</schedule_generate_every>
        <schedule_ahead_for>4</schedule_ahead_for>
        <schedule_lifetime>2</schedule_lifetime>
        <history_cleanup_every>10</history_cleanup_every>
        <history_success_lifetime>60</history_success_lifetime>
        <history_failure_lifetime>600</history_failure_lifetime>
        <use_separate_process>1</use_separate_process>
    </group>
</config>

  Vendor\Module\etc\email_templates.xml

    <?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
    <template id="acme_dropshipment_email" label="DropShipment Email" file="dropshipment.html" type="html" module="Vendor_Module" area="frontend"/>
</config>

  dropshipment.html

    Hello world :D


texts: Add Layout Method addPriceBlockType in AJAX Call

texts:
I use an extension from FireGento that overrides price.html to show additional information like tax and delivery time below my magento price (German specific).
In some layout XML, the extension defines where the new price.html is output.
Example:
<!--
Adding custom product price block
-->
<catalog_category_default>
    <reference name="product_list">
        <action method="addPriceBlockType">
            <type>simple</type>
            <block>magesetup/catalog_product_price</block>
            <template>catalog/product/price.phtml</template>
        </action>
    </reference>
</catalog_category_default>

Everything works fine, but when I work with AJAX calls, my price is shown without the additional information.
Is it possible to update my layout XML for AJAX calls or it is achievable to set addPriceBlockType when I get my product collection?


texts:
Hi I want to add Custom tab in Sales order Shipment page in Backend. So which Block i need to override

I added in Sales Order View page in below code

<blocks>
      <delivery>
        <class>MPS_Delivery_Block</class>
      </delivery>
    <adminhtml>
        <rewrite>
            <sales_order_view_info>MPS_Delivery_Block_Sales_Order_View_Info</sales_order_view_info>
        </rewrite>
    </adminhtml>
    </blocks>

Can you please tell me which class i need to override to add custom tab in sales order shipement page

<adminhtml_sales_order_shipment_new>
      <reference name="content">
          <action method="setTemplate"><template>delivery/sales/order/shipment/create/items.phtml</template></action>
      </reference>
    </adminhtml_sales_order_shipment_new>

I got this error Fatal error: Call to a member function setData() on boolean in : app\code\core\Mage\Adminhtml\Block\Widget\Form\Container.php on line 129 when i click ship  button in order details page


texts: MANADev SEO Layered Nav Plus - Search Results URL Issue

texts:
I have the MANADev Layered Navigation Plus extension for Magento 1.9.  The support period has expired or I'd ask them, but hopefully someone else has this and knows what to do.

I have it working great for all navigation pages as well as search, but search seems to be acting a little odd.  When you first search using Magento's stock search it takes you to /catalogsearch/result?q=searchstring.  If you then pick a layered nav filter, Mana takes over and the URL becomes /search/[my-attribute]/[my-value]?q=searchstring.  Then, if I remove that filter, instead of being taken back to /catalogsearch/result I'm taken to /search?q=searchstring.  For some reason, this actually works live, which is great, but it gives a 404 on my test machine.

I'm sure this is a simple config issue, I just don't understand what it's doing.  Furthermore, I'd much prefer consistency in the URLs.  Even if it works, the fact that "/catalogsearch/result?q=searchstring" is the exact same content as "/search?q=searchstring" is not good for SEO purposes.  How can I make this play well together?


texts: I was wondering if there was a simple way to change the default cart icon? I have been looking through the documentation and haven't been able to find a clear answer.


texts: How to credit-memo and/or return-to-stock a "completed" $0 order?

texts:
Magento won't let you create a credit memo for $0. In the case of a $0 order, what is the correct way to reverse/close/cancel the order, and return the item to stock?

From looking at the core code, it looks like Magento has some reason for not allowing credit-memos for $0 orders, but I can't understand what it is (although that isn't what this question is about.)

The order's canCreditmemo() method returns false if the total minus the refunded is zero (which it always will be for a $0 order).

if (abs($this->getStore()->roundPrice($this->getTotalPaid()) - $this->getTotalRefunded()) < .0001) {
    return false;
}

In the credit memo controller, it requires that you enter a positive number, but for a $0 order, there is no actual money to refund or credit.

if (($creditmemo->getGrandTotal() <=0) && (!$creditmemo->getAllowZeroGrandTotal())) {
    Mage::throwException(
        $this->__('Credit memo\'s total must be positive.')
    );
}

You are probably wondering why on earth this is a use-case:

Our client was creating a manual order through the admin for someone. The order total was (intentionally) $0. Unfortunately, they "purchased" the wrong product, which throws off their inventory and their reports. We ended up setting the order to "Canceled" status manually by calling $order->setStatus('Canceled');, but to me this isn't a very ideal solution because it doesn't return the item to stock, nor does it save any history of what happened, such that a future user could understand that the product was/wasn't returned to stock.

As a Magento developer, what would you advise your client to do in this scenario?

Since this is Magento stack-exchange, "Use a real ERP and inventory management system" is not an answer.


texts: SKU is not working properly in searching

texts:
i have search product,
my product sku is "wim7960"
when i search wim many products are display, but when i search 7960, no result show,
only show "Your search returned no results."
in site not used any search related extension, working in magento 2.3 default search.


texts: Magento 2 - How to disable a specific area within a Magento 2 Module?

texts:
I have come through an interesting point while reading the Magento 2 official dev docs.

You can enable or disable an area within a module.

Below is the official link of devdocs article,

https://devdocs.magento.com/guides/v2.3/architecture/archi_perspectives/components/modules/mod_and_areas.html

There it's mentioned. Let's assume if we have adminhtml and frontend area within a module in Magento 2, then how could we disable a particular area?

Thanks


texts: Using Split Orders Extension but order confirmation mail is shooting for first order only instead of all

texts:
I'm using "order split" extension based on seller,means if there are 6 items in the cart having 3 different seller(have 2 item for each seller) then three orders(let's says order id as 500,501,502) are creating.

Then email is shooting only for order id 500(may be magento default function is calling to shoot only one  email) but i want to shoot email for each order.

It seems there is some problem in the extesnion.they have used an event and  which is not able to shoot email for each order but i'm getting all the order_id here.i tried to shoot email using this order id but it didn't work.

Extension is purchased but support team didn't support.

So please help me to resolve this issue as this issue is very urgent.


texts: How to get email template name in system configuration?

texts:
In module i have a custom email template.

my code in config.xml

<template>
            <email>
                <general_notification translate="label" module="example">
                    Notifications
                    <file>notification.html</file>
                    <type>html</type>
                </general_notification>

            </email>
        </template>

Using this code i will get template name in system config

system.xml

    <notification>
    Notification send to admin and customer
        <frontend_type>select</frontend_type>

        <source_model>example/email_notification</source_model>
            <sort_order>90</sort_order>
            <show_in_default>1</show_in_default>
            <show_in_website>1</show_in_website>
            <show_in_store>1</show_in_store>

    </notification>

In model

class NameSpace_Example_Model_Email_Notification
{
    protected $_options;

    public function toOptionArray(){
        return array(
            array('value' => '', 'label'=>Mage::helper('example')->__('Do not send')),
            array('value' => 'general_notification', 'label'=>Mage::helper('example')->__('New Notification(default template from locale)')),
        );
    }
}

Now In System > Transaction Email I m add New template and save that template So now i want this Email template name in system configuration how to get that please help me


texts:
Is there a way of doing something simple as in magento2?

call function like this in magento 2,

$model = Mage::getModel('cms/page');


texts: How to setup external SMTP emailing on a local Magento?

texts: I am trying to test some email sending from my localhost. I'd like to use an external SMTP server for this matter. I am using Windows 7/XAMPP. I tried configuring sendmail.ini with no luck. Where/how can I tell Magento to use specific settings for sending emails?


texts: Black and White Magento Visual Swatches displaying Hex instead of color swatch

texts:
We have swatches configured for our configurable products for users to select the color of the shirt from, everything seems to work fine except for the two black and white swatches, instead of displaying the color swatch like the rest of the colors do, they simply display the corresponding hex value (FFFFFF, 000000). Screenshot is below.

Has anybody else ran into this issue or know a fix for it?


texts:
when i try to export my data from system>import/export>export
when i select the product option and press on continue its start processing and after 120 sec it's show a error page that 500-internal server error
when i contact to my hosting provider they told me that its not there side error anyone can help me according this issue.it is a timeout problem but it start suddenly can anyone help me according to this problem that how to solve it.
advance thanks


texts: Magento - Downloadable product link empty

texts:
We have a problem with our Magento CE 1.7.0.2 Shop before going live, We do not exactly know when did this one happen. We want to offer digital goods (pictures) as download links from an external host.

Everything worked fine - we did not test the checkout for a month.

Now we have a problem, if a customer buys a digital good, his download link for his picture does not work. It is empty. The hash key in the DB seems ok. In Backend, the purchase was triggered. We suppose the connection between the hash key and the external URL is wrong.

We did 2 things since that but already applied a rollback. We installed SSL certificate and a delete old orders extension.

Can one of these things cause our problem?


texts: I was wondering how I would change the text / phtml on the home page. Specifically where it says "CMS homepage content goes here." For other blocks I am able to override the phtml, but this one I am having some trouble figuring it out.


texts: Magento- Multiple Website product prices

texts:
I am currently running a magento instance with a single website/store with around 3000 products, i need to create another website, with a different base currency.

So for product prices have set the scope of price to be website, but when i run my second website, the price of products comes same as the original one i.e

Website A
Product P-Price $100

Website B

Product P -Price Rs 100

Is there a way which will convert the price for the second website, taking conversion rates and base price as the first one, without doing it pragmatically.


texts: Magento 2, 2 websites, multiple docker containers-speed implications?

texts:
I currently have a powerful dedicated server hosting 2 websites, we are experiencing CPU overload & clashing on indexing & rewarming FPC, to solve this problem, I am considering breaking out each website into docker containers, with separate containers to handle mysql, cron & varnish...will this alleviate my CPU overload & clashing and will there be any significant reduction in speed on the production websites?
Thank you Bigfella59


texts: Diffirent Paypal payment methods in Magento 1.9

texts:
I am new to Magento. i need to test all Paypal payment methods in Magento. I want to know difference between all of these.

When i click learn more link it is giving 404 page on Paypal. How do i configure this? How do i create sandbox account for this? Can i test sandbox in my local machine? Please help me.
Thanks


texts: Would I always need Composer or just with Magento 2 beta?

texts:
I want to start with Magento 2. Unfortunately my VPS is running php 5.4 so i have to request an upgrade first, but when that is done, would i need composer always to install Magento 2 or is it just needed in beta?

Would i be better of waiting for the stable release to start my project?


texts:
I'm really hoping someone can help me here. I started with a brand new VPS for Magento2, downloaded it, installed, ran the installer, all was great, except the page took like 5 minutes to load (admin or storefont) and no css/js/images would show.  and I finally after about 20 hours, got it to work. What I did was reinstall magento from scratch (about 15 times) - and finally ran:

find . -type d -exec chmod 770 {} \; && find . -type f -exec chmod 660 {} \; && chmod u+x bin/magento

which broke everything, then I ran a permissions 755 on EVERYTHING. and finally I can view the store, and the admin. and seems to function somewhat ok.

Problem is, anything I do on the store, there's continual permissions issues going forward. Example, I upload a logo through the admin, and the logo is a 404 if you try to view it from a browser, until I go in and browse to the pub folder with the images, and change permissions on the logo .png file. (same goes for every product image, every everything)

Certainly there has to be some better way of solving this? so I guess the first part of the question is answered, but now a different issue. About ready to scrap magento, as this is just too time consuming. It should not be this difficult out of the box. I would LOVE any suggestions from anyone, thanks in advance!

Maybe it has something to do with the Magento file system owner stuff in the setup docs? is that something that can be changed after Magento is installed? and could this have anything to do with all these problems?


texts: How to set a method in route action_type in rest API (api2.xml)?

texts:
My route section in api2.xml

 <routes>
                <route_collection>
                    <route>/mymodule/user</route>
                    <action_type>collection</action_type>
                </route_collection>
                <route_create>
                    <route>/mymodule/user/create</route>
                    <action_type>create</action_type>
                </route_create>
                <route_update>
                    <route>/mymodule/user/update/:id</route>
                    <action_type>update</action_type>
                </route_update>
            </routes>

My model methods: mymodule/Model/Api2/User/Rest/Guest/V1.php

I extend Mage_Api2_Model_Resource

public function _retrieve() {
    return json_encode(array(0=>'retrieve Function Call done'));
}

//Collection
public function _retrieveCollection() {
      //Some codes
   return json_encode(array(0=>'retrieveCollection Function Call done'));
}

//Create
public function _retrieveCreate() {
     //Some codes
     return json_encode(array(0=>'retrieveCreate Function Call done'));
}

//Update
public function _retrieveUpdate) {
     //Some codes
     return json_encode(array(0=>'retrieveUpdate Function Call done'));
}

I get an error message on API call magento-host/api/rest/mymodule/user/create  "code": 405," message": "Resource method not implemented yet."

How can I resolve this?


texts: Unable to upgrade from Magento2.1.7 to 2.3.5-p1

texts:
I am upgrading magento 2.1.7 to Magento 2.3.5-p1.
But while running command "composer update" I get below message.
"Killed"
As showed some references, about increasing my php memory-limit, its already 2GB allocated into cPanel. My PHP version is: 7.0.


texts: Magento 2: How to set meta tags for dynamic pages custom module in Controller, Block or .phtml?

texts:
I have created a custom module with admin grid form where data is entered and saved in database then it I retrieve to display at frontend.
So as an e.g  I have followed for the frontend part this blog post toptal after success implementation I have individual pages like so: http://magento2.dev/blog/post/view/id/1, ../id/2, and so on...

All of the meta tags are being recorded in database and I need to be able to add this for example in my Controller:

public function execute()
{
    $post = $this->_post->create();
    $this->_coreRegistry->register(self::REGISTRY_KEY_STORE_ID, (int) $this->_request->getParam('id'));
    $resultPage = $this->_resultPageFactory->create();

    $resultPage->getConfig()->getTitle()->set($post->getMetaTitle());
    $resultPage->getConfig()->setDescription($post->getMetaDescription());
    $resultPage->getConfig()->setKeywords($post->getMetaKeywords());

    return $resultPage;
}

Where

  $post->getMetaTitle(), $post->getMetaDescription() and
  $post->getMetaKeywords()

are my functions from model Post that extends PostInterface.

But I had no luck when I var_dump($post->getMetaTitle()) I get NULL

Can anyone help me please?

Thank you.


texts:
Hello i just created new module i tryed to install but i got this after i deleted module but still this error....

Fatal error: Uncaught RuntimeException: Can't create directory /var/www/html/generated/code/Magento/Directory/Helper/Data/. in [Magento\Directory\Helper\Data\Proxy] in /var/www/html/vendor/magento/framework/Code/Generator.php:115 Stack trace: #0 /var/www/html/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass('Magento\Directo...') #1 [internal function]: Magento\Framework\Code\Generator\Autoloader->load('Magento\Directo...') #2 [internal function]: spl_autoload_call('Magento\Directo...') #3 /var/www/html/vendor/magento/framework/ObjectManager/Relations/Runtime.php(38): class_exists('Magento\Directo...') #4 /var/www/html/vendor/magento/framework/Interception/Config/Config.php(166): Magento\Framework\ObjectManager\Relations\Runtime->has('Magento\Directo...') #5 /var/www/html/vendor/magento/framework/Interception/Config/Config.php(160): Magento\Framework\Interception\Config\Config->_inheritInterception('Magento\Directo...') #6 /var/www/html/vendor/magento/framewo in /var/www/html/vendor/magento/framework/Code/Generator.php on line 115