texts: How to set Drop Down menu on mouse hover in TopMenu. Magento 2

texts:
How to set custom item in TopMenu to show DropDown menu on mouse hover I tried this code
app/code/StackExchange/Menu/etc/di.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Theme\Block\Html\Topmenu">
        <plugin name="stackexchange-menu" type="StackExchange\Menu\Plugin\Menu" /> <!-- declare your own plugin -->
    </type>
</config>

and in the Plugin code
app/code/StackExchange/Menu/Plugin/Menu.php

<?php
namespace StackExchange\Menu\Plugin;

use Magento\Framework\Data\Tree\NodeFactory;

class Menu
{
    /**
     * @var NodeFactory
     */
    protected $nodeFactory;

    public function __construct(
        NodeFactory $nodeFactory
    ) {
        $this->nodeFactory = $nodeFactory;
    }

    public function beforeGetHtml(
        \Magento\Theme\Block\Html\Topmenu $subject,
        $outermostClass = '',
        $childrenWrapClass = '',
        $limit = 0
    ) {
        $menu = $subject->getMenu();
        //here is how you can create a menu item.
        $node = $this->nodeFactory->create(
                [
                    'data' => [
                    'name' => __('Brands'),
                    'id' => 'some-unique-id-here',
                    'url' => 'http://www.example.com/',
                    'has_active' => false,
                    'is_active' => false // (expression to determine if menu item is selected or not)
                ],
                'idField' => 'id',
                'tree' => $menu->getTree()
            ]
        );
        $menu->addChild($node);

        //do the above as many times as you need.
        //if you want to add a sumbmenu item to a menu item, create a node called `$subNode` in the same way as above and instead of calling $menu->addChild($node); call $node->addChild($subNode);  where $node is the parnet node
    }
}

now its works perfectly but the issue is that is shows like

Now the issue is I want whenever I mouse hover on the Brands it shows me a dropdown and on dropdown shows a custom div. How can I set this?


texts: Magento 1.9.3.1 integration with odoo erp

texts: Hi guys I was looking into integrating my magento 1.9.3.1 with Odoo erp 8. Would this be possible ? And if so how would I go about achieving such feat?


texts: Add script in the controller execute function of custom controller

texts:
<script type="text/javascript">
                require(['jquery'],function($){
                $(document).ready(function(){
                   alert('ok');
                });
            });
//$("#popup-modal<?= $currentproduct_id; ?>").closeModal();</script>

I want to add this script in controller execute function but getting error

  Uncaught ReferenceError: require is not defined

Please do guide me something where am i wrong


texts: Magento 2 : Configurable product import issue with option group attribute value

texts:
I have added a product multiselect attribute with option group values programatically as follows

$eavSetup->addAttribute(
    \Magento\Catalog\Model\Product::ENTITY,
    'print_and_locations',
    [
        'group' => 'Custom Configurations',
        'type' => 'varchar',
        'backend' => 'Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend',
        'frontend' => '',
        'label' => 'Print options',
        'input' => 'multiselect',
        'note' => 'Print options',
        'class' => '',
        'source' => 'Custom\Attribute\Model\Config\Source\Options',
        'global' => 0,
        'visible' => true,
        'required' => false,
        'user_defined' => true,
        'default' => null,
        'searchable' => false,
        'filterable' => false,
        'comparable' => false,
        'visible_on_front' => true,
        'used_in_product_listing' => false,
        'apply_to' => 'configurable',
        'unique' => false,
        'option' => [
            'values' => [],
        ]
    ]
);

This attribute options values contains the option values of two simple dropdown product attribute (ie. print and location ) values.

I am using following code to get the options

<?php
/**
 * Copyright © Blackbeard, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Custom\Attribute\Model\Config\Source;

use Magento\Eav\Model\ResourceModel\Entity\Attribute\OptionFactory;
use Magento\Framework\DB\Ddl\Table;

class Options extends \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource
{

  /**
   * instance of eav attribute config.
   * @var \Magento\Eav\Model\Config
   */
    public $eavConfig;

    public function __construct(
        \Magento\Eav\Model\Config $eavConfig
    ) {
        $this->eavConfig = $eavConfig;
    }

    /**
     * Get all options based on print method an locations product attributes
     *
     * @return array
     */
    public function getAllOptions()
    {

        $finalOption = [];
        // get print attribute values
        $print_attribute = $this->eavConfig->getAttribute('catalog_product', 'print');
        $printOptions = $print_attribute->getSource()->getAllOptions(false);
        // get logo location options values
        $location_attribute = $this->eavConfig->getAttribute('catalog_product', 'location');
        $locationOptions = $location_attribute->getSource()->getAllOptions(false);

        if (!empty($printOptions)) {
            foreach ($printOptions as $key => $print) {
                $locationvalues=[];
                if (!empty($locationOptions)) {
                    foreach ($locationOptions as $key => $location) {
                        $locationvalues[] = [
                        'label'=>$location['label'],
                        'value'=>$print['value'].'|'.$location['value']
                        ];
                    }
                }

                $finalOption[] = [
                'label'=>$print['label'],
                'value'=>$locationvalues
                ];
            }
        }
        return $finalOption;
    }
}

This is working fine.

I am working on prouct import. I am unable to import this attribute ie. print_and_locations attribute. I am adding attribute value in following format

print_and_locations=Group 1/Left Chest|Group 1/Left Sleeve|Group 1/Right Chest|Group 1/Right Sleeve|Group 2/Left Chest|Group 2/Left Sleeve|Group 2/Right Chest|Group 2/Right Sleeve|Group 3/Left Chest|Group 3/Left Sleeve|Group 3/Right Chest|Group 3/Right Sleeve

but during import it shows error like mention below.

PS : row no 38 is configurable product row.

Any help would be appreciated.

Thanks.


texts: how to get button value after button clicked

texts:
I'm trying to get the value of a button when it is clicked, because I got multiple buttons depending on how much data I got. So I need to know which button did I click. I got the code for the button like below.

<button type="submit" data-multiship-item-update="" class="action split" data-role="split" data-flag="0" value ="<?php echo $index ?>" <?php if ($reduce >= (int)$item->getQty()):?> disabled="disabled" <?php endif; ?>><?php /* @escapeNotVerified */ echo __('Add item(s) to Address') ?></button>

So the question is, how can I get the value of the button when I click it?


texts: How to extract security patch files from sh file

texts: I need to install security patch "PATCH_SUPEE-7405_CE_1.9.2.2_v1-2016-01-20-04-35-33.sh" in magento ver 1.9.2.2 . Is there any way I can extract package of complete patch files from this file.


texts:
I'm looping through the items in cart and printing some values, but I cannot get the product's attribute values.

Here's how I'm doing it:

$cart = Mage::getModel('checkout/session')->getQuote();

foreach ($cart->getAllItems() as $item) {

    $_product= Mage::getModel('catalog/product')->load($item->getProductId());

    if ($item->getParentItemId()) {
        continue;
    }

    $size = $_product->getAttributeText('size');
    $color = $_product->getAttributeText('color');
    $prod_url = $_product->getProductUrl(); // Is printing ok
}

Both $size and $color don't have any value.
Any ideas why?


texts: Magento paypal is not working with not sported Currencies

texts:
I am using magento 1.9.2.4 and base currency of my website is SAR saudi riyal and I want to integrate paypal in my website but it shows this error PayPal gateway has rejected request.

Currency is not supported (#10605: Transaction refused because of an invalid argument. See additional error messages for details).

I am using this extension >> https://github.com/Meabed/Paypal-Multi-Currency-Magento but after installing this extension also I'm getting the same issue can you please help me out with this issue.

Thanks!


texts: Ignore Notices from log file in magento?

texts:
How to ignore to write notices in exception and system log file, only real time critical errors should be write..

Your inputs is really appreciable.


texts: Magento 2 - Success/Fail Messages Not Dislpaying

texts:
None of my success/fail messages showing up.  I see in the debugger that the PHP code is setting the object just fine, it just isn't showing up on the web site.  No login failures.  No item added to cart.  Nothing.

I see that messages.phtml is being loaded in through the dev tools in Chrome. (Network/XHR)  It just doesn't seem that it is getting included in the template.

What might I be missing, or have mistakenly omitted in our custom theme?

Here is some experts from the source:

Template:

<?php
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
?>

Layout:

<referenceContainer name="columns.top">
    <block class="Magento\Theme\Block\Html\Title" name="page.main.title" template="html/title.phtml"/>
    <container name="page.messages" htmlTag="div" htmlClass="page messages">
        <block class="Magento\Framework\View\Element\Template" name="ajax.message.placeholder" template="Magento_Theme::messages.phtml"/>
        <block class="Magento\Framework\View\Element\Messages" name="messages" as="messages" template="Magento_Theme::messages.phtml"/>
    </container>
</referenceContainer>


texts: PHP CodeSniffer Config installed_paths set to ../../elasticsearch,../../codeception,../../ Magento 2

texts:
I am going to install Magento using the composer.
I ran this command,

  composer create-project --repository-url=https://repo.magento.com/
  magento/project-community-edition

There is showing me an error white installing the package. Please check below screenshot for further information.

Note: I have installed elastic search package on my server. But i don't think this error is related to the elasticsearch. Can you guys help me?

Thanks,


texts: How to associated products to configurable product programmatically?

texts: How can I associate simple products to a configurable product programmatically?


texts: Magento 2.1.7 how to not display out of stock products in reorder admin panel

texts:
How to not display out of stock products when we place reorder admin panel(Back-end)
Please help me out.


texts:
I want to change the background color to black on luma theme page-header. i am using luma as my default template - what is the best way to go about? -
I am using github version fresh Magento 2 install, the templates are store in frontend/Magento/Luma - firebug directs me to {.page-header} pub/static/frontend/Magento/luma/en_US/css/styles-l.css


texts: Reindexing issue after upgrading to magento 2.3

texts:
Preconditions (*)

Install Magento 2.2.x
Make custom multi-select product attribute with the source model

Steps to reproduce (*)

Upgrade above magento2.2.x to magento2.3.1
Reindex Data

Expected result (*)

Successful reindexing should happen for all indexers.

Actual result (*)

Got an error while reindexing Product EAV(catalog_product_attribute). The error which I got is:

  Warning: Illegal offset type in
  vendor/magento/module-catalog/Model/ResourceModel/Product/Indexer/Eav/Source.php
  line 351


texts: EaDesgin/Magento2-City-Dropdown extension extraxt file path not clear

texts:
https://github.com/EaDesgin/Magento2-City-Dropdown

I need to know, where should I extract the files of this plugin.(paths need app/code/ .... / ...)
Also need proper steps for installation.


texts: How to link categories between storeviews - Magento

texts:
This is a copy of my question in StackOverflow: https://stackoverflow.com/questions/31006884/how-to-link-categories-between-storeviews-magento. I thought it would be more appropriate in the magento section.

I have created a multistore website with the following structure:

-website
--store1.nl
---store1-view
--store2.nl
---store2-view
--store3.nl
---store3-view

On the store1 homepage (CMS-page) I'd like to add a category-link to store2, store2-view. I have put the suggested widget link (see below), with a link to the desired category in store2.nl, but it doesn't link to the category store2.nl, it stays on store1.nl.
The URL even says store1.nl<someurlcode>__store1-view instead of store2.nl<someurlcode>__store2-view

{{widget type="catalog/category_widget_link" anchor_text="Displayed Text" title="Title attribute text" template="catalog/category/widget/link/link_block.phtml" id_path="category/22"}}

I'd rather not hardcode the category-links.


texts:
I am changing the table for a grouped product.
I have overridden the grouped.phtml file to make changes.

But I need to override the function:

getAssociatedProducts($product) // Grouped.php

Because some attributes are not available. Only a few are added by

->addAttrubuteToSelect(...) // Grouped.php

I need more attributes to be visible in the table.

Files can be found in:

Magento\GroupedProduct\Model\Product\Type\Grouped.php (where to override?)

and

module-grouped-product\view\frontend\templates\product\view\type\grouped.phtml (overridden in custom theme)

Or do I need to override a XML file to store the new attribute? Which one?


texts: How to implement SSL and cdn SETup in magento


texts: How can I make widgets show properly in tinymce in magento 2.3?

texts:
I'm trying to add the tinymce wysiwyg editor in a custom field and make it look like in CMS pages however the widgets that I insert appear with an error image
X

Any idea how to fix this issue?

I used the following code to retrieve the tinymce config settings

<?php

 Class MyClass
    /**
     * @var \Magento\Cms\Model\Wysiwyg\Config
     */
    protected $_wysiwygConfig;

       .....
        $config = $this->_wysiwygConfig->getConfig();
        $config = json_encode($config->getData());
?>

And in my js file I'm requiring mage/adminhtml/wysiwyg/tiny_mce/setup
and using the config data I created in my PHP class like this

        config.tinymce4.toolbar += " | code";

        var newAreaID = $newId;

        var editor = new wysiwygSetup(
            newAreaID,
            config
        );

        editorFormValidationHandler1 = editor.onFormValidation.bind(editor);

        varienGlobalEvents.attachEventHandler("formSubmit", editorFormValidationHandler1);
        varienGlobalEvents.clearEventHandlers("open_browser_callback");
        varienGlobalEvents.attachEventHandler("open_browser_callback", editor.openFileBrowser);

        console.log(editor);
        editor.wysiwygInstance.turnOn();
        jQuery('#' + newAreaID).addClass('wysiwyg-editor').data('wysiwygEditor', editor);

The widgets are completely usable and I can insert/delete/edit them but I have no clue which one is which because of how they're rendered.

I haven't been able to find something by searching. Any help is appreciated.


texts: Magento 2.3.2 Why Advance Reporting in coupon code and customer id weird

texts:
i have showing default magento advance reporting in
orders tab and customer tab in customer id and coupon code looks weired?

I want to correct data here
How can do this?

Any help would be appreciated.

Thanks.


texts: How can I create custom store url in Magento

texts:
Let my website url is like example.com and there are 3 stores and i want to access my store like this example.com/ch for china and example.com/ru for
Russia so how can i achieved this in magento.


texts: Checkout Order Total summary went on refresh of checkout page Magento 2.0

texts: I have rearrange the checkout summary block after the cart items and whenever i tried to refresh the page or i add a new address or switch between multiple addresses Order Total Summary block removed from page and i cant able to see any totals.


texts: Why does my local.xml load javascript repeatedly using addItem

texts:
I am attempting to load a javascript file in my custom skin using the following code in local.xml.

<?xml version="1.0"?>
<layout>
   <default>
        <!-- remove some things that NKI doesn't use -->
        <reference name="head">
                <action method="addItem"><type>skin_js</type><script>js/nki.js</script></action>

        </reference>
   </default>
</layout>

Why does it first attempt to look in the base theme skin directory, then my directory?

I see it's attempting to load

https://dev.nursingknowledge.org/skin/frontend/base/default/js/nki.js (404)
https://dev.nursingknowledge.org/skin/frontend/base/default/js/nki.js
(404 - yes, twice)
https://dev.nursingknowledge.org/skin/frontend/NKI/NKI/js/nki.js (actual location)

The file exists in /var/www/skin/frontend/NKI/NKI/js/nki.js

I am a little confused. Maybe my method for loading using local.xml is outdated.  Any suggestions?  Maybe I have a setting wrong in admin?

EDIT: added local.xml location

  app/design/frontend/NKI/default/layout/local.xml


texts: Magento 2.1.2 - PHP Parse Error in Bootstrap.php when trying to execute bin/magento commands

texts:
Can't seem to find a fix for this issue. I'm running Magento 2.1.2 with PHP 7.0.16, however there are different versions of PHP installed on different websites on the same VPS.

When trying to execute magento/bin commands, it seems to throw the same error with any - however the most recent I've tried is:

 php bin/magento setup:static-content:deploy

It throws the following errors:

PHP Warning: Cannot open '/usr/lib64/php/modules/php_browscap.ini' for reading in Unknown on line 0
PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in ***/httpdocs/vendor/magento/framework/App/Bootstrap.php on line 411

The function which includes line 411 is as follows, with the problem line surrounded by **:

public function isDeveloperMode()
{
    $mode = 'default';
    if (isset($this->server[State::PARAM_MODE])) {
        $mode = $this->server[State::PARAM_MODE];
    } else {
     ** $deploymentConfig = $this->getObjectManager()->get(DeploymentConfig::class); **
        $configMode = $deploymentConfig->get(State::PARAM_MODE);
        if ($configMode) {
            $mode = $configMode;
        }
    }

    return $mode == State::MODE_DEVELOPER;
}

The only details I can find online relate to there being an incompatible installation of PHP, but that shouldn't be an issue as I'm running 7.0.16?


texts: Validating a textbox based on AJAX response before Save in Magento 2

texts:
In Admin Config, I have a textbox where i will enter a value.
When hitting on Save Config button.
The value from the Textbox is sent over through an AJAX call.
If the response is positive, it should save successfully.
Else, it should throw an error and should not save.

EDIT: I tried with the code:

system.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Config/etc/system_file.xsd">
    <system>
        <tab id="Vendor" translate="label" sortOrder="10">
            Vendor
        </tab>

            Vendor Module
            <tab>Vendor</tab>
            <resource>Vendor_Module::Vendor_Module</resource>
            <group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
                Settings
                <field id="enable" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    Enable Vendor Integration
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="public_api_key" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                    Public Vendor API Key
                    <backend_model>Vendor\Module\Model\Config\ApiKeyValue</backend_model>
                </field>
            </group>

    </system>
</config>

ApiKeyValue.php

<?php
 namespace <Vendor>\<Module>\Model\Config;

class ApiKeyValue extends \Magento\Framework\App\Config\Value {

   protected function _beforeSave() {
     $value = $this->getPublicApiKey();
    //Throw exception $msg = __('Please check the error.');
    throw new \Magento\Framework\Exception\LocalizedException($msg);
   }
}

The Blank page when go to STORES > Configuration


texts: Magento2: How to translate text from html file

texts:
We have file: web/template/checkout/order-comment-block.html

in this file I see code:

                        <span class="chars-label">
                        <!-- ko i18n: 'remaining characters'--><!-- /ko -->
                        </span>

I created new folder i18n and here I add translate text:

"Leave A Comment","Wiadomość do zamówienia"
"Enter your comment...","Zostaw swój komentarz..."

After cache clean still text are not translated. Any solution how to translate this text?


texts: HOW TO ADD COLUMN TO 'Order Total Report' GRID and display custom customer data to new column in magento 2?

texts: There are so many post discussing how to add column to sales order grid, but no one discussed about HOW TO ADD COLUMN TO Order Total Report GRID (REPORTS > Customers > Order Total) and display custom customer data to new column in magento2? Can someone tell me how to do that?


texts: Too many arguments, expected arguments "command"

texts:
Hi, can anyone help to identify how to fix this? I am installing from a Magento 2.4 Script onto ubuntu 20.04.
Thanks


texts: Admin Design configuration does not save in Magento 2.1.0

texts:
I have installed fresh magento 2.1.0 in my wamp server 3.0 I have done with all changes required to install magento 2.1.0 in wamp and it's work fine.

Now I have created my theme on below path :
D:\wamp\www\magento2.1\app\design\frontend\Ecommerce\m2-theme

In my theme I have copied whole D:\wamp\www\magento2.1\vendor\magento\theme-frontend-luma folder and change 3 important files theme.xml , registration.xml and composer.json.

Now I go to admin > content > design > configuration and my theme is showing there for Globle , Main website and main website store but when I assign my theme and do save it's show me an error that

  Cannot read contents from file "D:/wamp/www/magento2.1/" Warning!file_get_contents(D:/wamp/www/magento2.1/): failed to open stream: No such file or directory

After getting this error I googled for my issue and I find this and this links but no luck.

So can anyone tell me what is the issue and how can I solve this issue?


texts: Magento 2 : what is use of _replica table in Magento_Catalog module?

texts:
As Magento releases 2.X version, I found _replica tables, particularly in the Magento_Catalog module may be for indexing the catalog data.

I also notice that _replica is nothing but the duplicate structure of the respective table in database nature but it means a lot for Magento 2 framework for read and write operational activities I guess.

I want to know that which operations Magento 2 application will consider for _replica tables for Magento_Catalog, CatalogRule and CatalogInventory module.

Thanks


texts: How to get the current page Identifier ( URL key ) in Magento 2?

texts: How can I retrieve the Identifier ( URL key ) of current  page in Magento 2?


texts:
I set Magento up using Cloudways, and now I'm trying to move it to my local Ubuntu VM.
I used the official

  .gitignore from Magento

cloned the project locally, ran composer install, made sure that I had my env.php and config.php files downloaded and in the right place.

I changed the entire www directory and all its sub dirs to 777

I updated core_config_data url's to be the same as the one's I set in sites-available

  I ran setup:upgrade

setup:di:compile

indexer:reindex

cache:clean

cache:flush

setup:static -content:deploy -f

I tried the above in any number of orders. I tried deleting and re-cloning the repo.

I sometimes get the white screen of death, and sometimes I see the folder structure, but with no styles applied.

I'm using the Porto theme, and had removed the child theme because it hadn't been set up properly.

Everything works on my live site, but not locally.

I have the most recent database on my local MySQL.

Any help would be appreciated. Thank you
My logs are full of "broken reference" warnings


texts: Can anyone help me to find the file from where i rename product QTY

texts:
How to find the file name and location in Magento 2?
I want to rename the Quantity to Qty as you can see in the picture


texts: How to check if an external process may be causing slowness while going through placing an order?

texts:
Magento 1.9.1
Porto theme

We had perfomance problems with the hosting company. They migrated us to their best VPS machine/node and now things seem to run rather fast except for when going through the order from one page to another - it takes way too long. In other words - the front page seems to load fast but clicking something like Add to Cart or Proceed just seems to take many seconds. I tried searching the Internet for possible reasons and I now suspect that it could actually be some external process that is being contacted that the site has to wait for. We have Paypal (Paypal Payments Pro and the Paypal Express Checkout), I also inserted the Google Analytics Code in different places, we still have a Shopgate extension installed which we are no longer using, a sticker on the top of the page which says: Our site is Shopper Approved (we have the Shopper Approved extension), and we also have 2 calendar extensions (one by Amasty and another by BSS Commerce).

Is there an easy way to figure out if any/which one of these things maybe causing our slowness issue? Anything else I could check? I already cleared the log files. If I turn Paypal off to test, will I have to reset it up all again? (it's a rather involved process it seems).


texts: When ever I send an email to the customer from the backend, for instance "Send Email" button from orders or from invoices, everywhere it behaves the same. When I click the button, it waits and waits and waits, just like when a page takes very long time to load, and after a minute it is done ok. I've checked the emails and they have all arrived, but the behaviour gives me a very bad feeling.


texts: Magento 2 : After upgrade to Magento 2.3.3 version

texts:
Uncaught TypeError: Argument 1 passed to Magento\Catalog\Model\ResourceModel\Product\Collection::addIsSaleableAttributeToFilter()

Does anyone have an idea about it ??


texts:
I try to limit the new products on the homepage with the following code:

        <block type="catalog/product_new" template="catalog/product/homepage-new-products.phtml">
            <action method="setProductsCount"><count>2</count></action>
        </block>

Unfortunately this does not work, the setProductsCount is ignored.


texts: How to unset cms block programmatically?

texts:
My code:
<?php

$blockObj= $block->getLayout()->createBlock('Zero\DescBlock\Block\ActiveFilter');

$final_value = 'filter_block_'.$blockObj->getActiveFilter();

$check=array('NULL', '', 'filter_block_');

if(!in_array( $final_value, $check ))

{

    echo $this->getLayout()
    ->createBlock('Magento\Cms\Block\Block')
    ->setBlockId($final_value)
    ->toHtml();
}
else{

    echo $this->getLayout()
    ->createBlock('Magento\Cms\Block\Block')
    ->setBlockId('category_desc_block')
    ->toHtml();
}
?>

How to unset block in else conditions?


texts:
I have some basic knowledge of magento 1 and magento 2 as well. I want to be exceptionallly good in magento 2. I have also decided to have magento certification when it will be available for magento 2 (which is not yet). From here I just want core concept which i MUST master so I can do work in magento 2.

Steps I am following:

Theme developement first. (I am aware about extending and do some customization with xml and phtml files.)
Overriding block etc.


texts: Add a description to "manufacturer" attribute

texts:
I want to display a description of the manucfacturer of a product, so that the customer can read more about the product's brand while viewing the product itself.

The most logical place to put this description is along with the actual Manucfacturer name as we have multiple products belonging to multiple brands. In my case the Manucfacturer are held within the "Attributes" section of the Magento backend. However, I have no facility there to add a description. I also don't know how to add a "description" field to this specific product attribute.

How can I add a field to the "Manucfacturer" attribute in Magento?


texts: How to get all transaction_email ,transaction status from sql query Magento 2

texts:
I am trying to get all
transactions,transactions_id,transaction_email,transaction status  by SQL query.
I found the table where all transactions are stored sales_payment_transaction, sales_order_payment and sales_order

So I can easily get all transactions and 'transactions_id'
but how can I get transaction_email,transaction status

  SQL query

SELECT spt.transaction_id, spt.txn_id, spt.is_closed, so.customer_email
FROM sales_payment_transaction spt
INNER JOIN sales_order so on spt.order_id = so.entity_id;

Is that right?


texts: Blank page after searching for keywords,productname for products magento 2

texts:
When I search product in searchbar it shows blank page

Find below error

  LAYOUT_frontend_STORE2_46f1b068ec7ccf4878f9284dd1137afd1 and handles
  catalog_product_prices: Please correct the XML data and try again.


texts: Magento 2: Product stock status is not automatically updated from Out of Stock to In Stock

texts:
I have facing issue in update admin product stock status Out of Stock to In Stock in Magento 2.3.1

I have updated product quantity 0 and save the product that time automatically updated stock status In Stock to Out of Stock. But after adding quantity more than 0 and save the product, but stock status can't getting updated Out of Stock to In Stock.

Any help will appreciate. Thanks.


texts: Wrong redirection of the Magento login is 1.9.3, if the process of placing an order is started

texts:
Found a redirection error in the Magento 1.9.3. If you add the product to the shopping cart and begin the process of placing the order, but do not log in to the store, then go to the normal login page and enter any credentials, which leads to a one-page order. It does not matter from which page you came to the login, always redirects to a one-page order. If you delete the item from the shopping cart, it will be redirected once to an empty shopping cart. I see this problem when installing a clean Magento out of the box.

Can someone come across and solve a similar problem?


texts: Magento 2: How can I check all modules installed using admin panel?

texts:
There is a method to check my modules installed and enabled or disabled using just the admin panel?

Thanks


texts: main.CRITICAL: Invalid template file on override file: Solved

texts:
I want to override this file:

  /app/design/frontend/Smartwave/porto/Magento_Contact/templates/form.phtml

with this file:

  /app/design/frontend/Smartwave/foroutdoors/Magento_Contact/templates/form.phtml

This works fine on my staging server but on my live server the following message is displayed in /var/log/system.log:

  main.CRITICAL: Invalid template file: '/var/view_preprocessed/pub/static/app/design/frontend/Smartwave/foroutdoors/Magento_Contact/templates/form.phtml' in module: 'Magento_Contact' block's name: 'contactForm'

This error message is displayed even if I put an unmodified version of form.phtml into the override folder.

What should I be looking at to correct this?


texts: How to get Product Review based on Product id in magento 2

texts:
Here I want a Product Review based on Product id.

An object containing something like:

review_id
product_image
date
author
price
product_id
rating
product_name
comment


texts: Is it possible to use update handle XML in a theme, used in multiple modules layout XML?

texts:
Within a Magento 2 theme, given an XML layout file such as the following, named for example, remove_header.xml:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
         <referenceContainer name="header-wrapper" remove="true" />
    </body>
</page>

How can I use <update handle="remove_header"/> in any module layout XML files in the theme?

The goal is to be able have the following layout XML:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
         <update handle="remove_header" />
    </body>
</page>

in both theme-stackoverflow/Magento_Catalog/layout/catalog_product_view.xml and theme-stackoverflow/Magento_Cms/layout/cms_index_index.xml

Without being able to that, I'd have to place remove_header.xml in theme-stackoverflow/Magento_Catalog/layout/ and theme-stackoverflow/Magento_Cms/layout/ which basically negates the point of having the update in a seperate XML file referenced via <update />

There's not an option to have a directory such as theme-stackoverflow/frontend/layout/ or similar that I've seen. I tried placing the referred to XML file in Magento_Theme so at theme-stackoverflow/Magento_Theme/layout/remove_header.xml and using <update /> exactly as shown above. It doesn't work.

So is this even possible or in this case, would you have to duplicate the layout XML?


texts: Magento 2 buy x and y get free sku product

texts:
I would like to know how to set cart price rule as
Buy X and Y get free sku product
for example,
if buy x qty = 1 , y qty = 1 then it should get 1 free product
if buy x qty = 2 , y qty = 2 then it should get 2 free product
it look like buy set product item (x and y)


texts: Where is the .phtml to modify category page filters?

texts:
Good afternoon,
I have a question, where is the .phtml to modify category page filters (frontend)?

I don´t find the file and I need this to modify the words Filter by.
Thank you so much!!


texts: Create store url in cms page with URL Key

texts:
I created a Magento page with an URL Key condicoes-gerais. I'm trying to create an hyperlink to that page in a phtml file. I'm using the following command:

<a href="<?= $this->getUrl('', array('_direct'=>'condicoes-gerais'))?>"> (Ler condições)

When i click the link MAgento redirect page to 404 Not found error. What is the best option to create the hyperlink?


texts:
I have problem to update tablerates.csv in a webshop, I have a tablerates.csv like:

NOR,*,*,1000.0000,210.0000
NOR,*,*,3000.0000,462.5000
NOR,*,*,15000.0000,312.5000
NOR,*,*,20000.0000,350.0000
NOR,*,*,25000.0000,375.0000

It ignores all prices between 1000 to 3000 and take 210 as the shipping price. so I to change it to :

NOR,*,*,1000.0000,210.0000
NOR,*,*,15000.0000,312.5000
NOR,*,*,20000.0000,350.0000
NOR,*,*,25000.0000,375.0000
NOR,*,*,3000.0000,462.5000

and import the csv file, no error appear. But the rate didn't change, and I export the cvs file again, it showed me the same cvs file as beginning. (I don't have problem to change any amount in it.)


texts: save new tab data in separate table when save cms >> page data

texts:
I am developing a module in magento. I added a new Tab in CMS >> Page core module through my custom module. I want to save new tab data in separate table which one created by custom module. My problem is that I don't know how can I save new tab data in my new table when  core page's save/edit functionality works?

Thanks in advance.


texts:
I came across a permission problem and need to find out what is the default user for magento filesystem.

How do i figure out which user is the owner of magento filesystem? How can i do it from the command line?

Any help appreciated


texts: Where is located "bundle.changeSelection" from "select.phtml"?

texts:
I'm looking for a file containing the javascript function called in the following file from Magento 1.4.1.1. I would like to add custom codes.

var\www\app\design\frontend\interface_lpf_fr\theme_lpf\template\bundle\catalog\product\view\type\bundle\option\select.phtml

...
    <select onchange="bundle.changeSelection(this)" id="bundle-option-<?php echo $_option->getId() ?>" name="bundle_option[<?php echo $_option->getId() ?>]" class="bundle-option-<?php echo $_option->getId() ?><?php if ($_option->getRequired()) echo ' required-entry' ?> bundle-option-select">
        <option value=""><?php echo $this->__('Choose a selection...') ?></option>
        <?php $i=0; ?>
        <?php foreach($_selections as $_selection): ?>
            <option value="<?php echo $_selection->getSelectionId() ?>"<?php echo ($_selection->getIsDefault() && $_selection->isSaleable())?' selected="selected" ':'' ?><?php echo !$_selection->isSaleable()?' disabled="disabled" ':'' ?>><?php echo $this->getSelectionTitlePrice($_selection, false) ?></option>
        <?php endforeach;?>
    </select>
...


texts: magento 1.9.2 community - admin usps missing from carrier dropdown

texts: I've never been able to get USPS to show up in the drop-down box. Could someone please point me in the right direction?


texts:
I have add a custom.js file under my_child theme folder web/js/custom.js

here is code

define([
  "jquery"
],
function($) {
        "use strict";

        $('#shipping').find('.step-title').click(function(){

          //Expand or collapse this panel
          $(this).next().slideToggle('fast');

          //Hide the other panels
          $(".step-content").not($(this).next()).slideUp('fast');

        });

        console.log('My log');
});

I have create requirejs-config.js

var config = {
  deps: [
    "js/custom"
  ]
};

'My log' is print on console but jquery accordion does not works. If i copy and past custom.js function on browser console it works fine

website is in developer mode
how can i debug?


texts:
How to define js Library in Magento 2

if I use below method only js is calling

var config = {

  deps: [
    "js/main",
    "js/jquery.min",
    "js/bootstrap.min"
  ],
  paths: {
    'jquery' : 'js/jquery.min',
    'bootstrap': 'js/bootstrap.min'
  }

};

after that my console has some core file have the issue

**

Uncaught Error: Bootstrap's JavaScript requires jQuery
Uncaught Error: Script error for: jquery/jquery.mobile.custom
Uncaught Error: Script error for: jquery/jquery.cookie
Uncaught Error: Script error for: jquery/jquery-migrate
Uncaught Error: Script error for: jquery/jquery.metadata
Uncaught Error: Script error for: jquery/jquery-ui-timepicker-addon

**


texts: REST API: One Magento refuses to accept tokens

texts:
I have a weird problem- I am trying to use the REST API in Magento 2. I am using exactly the same method with two other Magento installations successfully, and I was looking for some help debugging the one Magento install that doesn't work.

Here is an example request:

GET http://magento.xxxxx.co.uk/magento/rest/default/V1/orders?searchCriteria[filter_groups][0][filters][0][field]=status&searchCriteria[filter_groups][0][filters][0][value]=processing&searchCriteria[filter_groups][0][filters][0][condition_type]=eq HTTP/1.1
Accept: application/json
Authorization: bearer XXXXXXXX
Host: magento.xxxxx.co.uk

On my working Magento server I get back

HTTP/1.1 200 OK
Date: Tue, 03 Jul 2018 21:31:32 GMT
Server: Apache/2.4.33 (Fedora)
X-Powered-By: PHP/7.1.19
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
X-Frame-Options: SAMEORIGIN
Set-Cookie: PHPSESSID=a0bei0u4otg7122a918lsh3aje; expires=Tue, 03-Jul-2018 22:31:32 GMT; Max-Age=3600; path=/magento; domain=magento.xxxxxx.co.uk; HttpOnly
X-UA-Compatible: IE=edge
Content-Type: application/json; charset=utf-8
Content-Length: 124926

{"items":[{"applied_rule_ids":"1","base_currency_code":"GBP","base_discount_amount":0,"base_discount_invoiced":0,"base_grand_total":36.39,"base_discount_tax_compensation_amount":0,"base_discount_tax_compensation_invoiced":0,"base_shipping_amount":5,"base_shipping_discount_amount":0,"base_shipping_incl_tax":5,"base_shipping_invoiced":5,"base_shipping_tax_amount":0,"base_subtotal":29,"base_subtotal_incl_tax":31.39,"base_subtotal_invoiced":29,"base_tax_amount":2.39,"base_tax_invoiced":2.39,"base_total_due":0,"base_total_invoiced":36.39,"base_total_invoiced_cost":0,"base_total_paid":36.39,"base_to_global_rate":1,"base_to_order_rate":1,"billing_address_id":2,"created_at":"2018-02-20 23:04:14","customer_dob":"1973-12-15 00:00:00","customer_email":"roni_cost@example.com","customer_firstname":"Veronica","customer_gender":2,"customer_group_id":1,"customer_id":1,"customer_is_guest":0,"customer_lastname":"Costello","customer_note_notify":1,"discount_amount":0,"discount_invoiced":0,"entity_id":1,"global_currency_code":"GBP","grand_total":36.39,"discount_tax_compensation_amount":0,"discount_tax_compensation_invoiced":0,"increment_id":"000000001","is_virtual":0,"order_currency_code":"GBP","protect_code":"91b4183927c7674b70700c4a49f6d6d7","quote_id":1,"shipping_amount":5,"shipping_description":"Flat Rate - Fixed","shipping_discount_amount":0,"shipping_discount_tax_compensation_amount":0,"shipping_incl_tax":5,"shipping_invoiced":5,"shipping_tax_amount":0,"state":"processing","status":"processing","store_currency_code":"GBP","store_id":1,"store_name":"Main Website\nMain Website
....

but on my not working Magento server I get back:

HTTP/1.1 401 Unauthorized
Server: nginx
Date: Tue, 03 Jul 2018 21:38:53 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: PHPSESSID=nthuqggk44m3lfbe2us7juhkj1; expires=Tue, 03-Jul-2018 22:38:53 GMT; Max-Age=3600; path=/draft;
domain=dedicated.qqqqq.co.uk; HttpOnly
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Length: 111

{"message":"Consumer is not authorized to access %resources","parameters":
{"resources":"Magento_Sales::sales"}}

The tokens are coming from the API access token created from the integration menu. Interestingly I can use the admin username and password on the "broken" server to get an admin token, but that doesn't work either with the same result. Has anyone got any idea how I can debug this?


texts: How to edit "Notify me when this product is in stock" text on product page

texts:
when i enable "Allow Alert When Product Comes Back in Stock" on magneto admin backend and it shows "Notify me when this product is in stock" on product page.
I want to edit the product alert text on front but how? i have no idea, please help!


texts: Magento one page checkout with iwd credit card infor gets deleted on update

texts:
I am using magento onepage checkout iwd extension.(http://www.magentocommerce.com/magento-connect/one-page-checkout.html)
My issue is after filling all info regarding credit card etc..if user changes anything from shipping form like zipcode ,state etc..page updates and credit card information are not there.

Any help will be appreciated.


texts: HOW I CAN CHANGE MFP GALLERY PRODUCT VIEW ERROW POSITION, i am using magento 2 ninth theme


texts: Magento not executing my module install script

texts:
I am trying to create a local module. Here regarding this there are lot of question. I have almost all of them followed. But it is never working.

Atlast I followed this: http://devdocs.magento.com/guides/m1x/magefordev/mage-for-dev-6.html

But this is als not working. Here is my structure:

app/code/local/Mycompany/Hello/Model/Resource/Setup.php

<?php
class Mycompany_Hello_Model_Resource_Setup extends Mage_Core_Model_Resource_Setup {

}

in app/code/local/Mycompany/Hello/sql/mycompany_hello_setup/install-0.1.0.php

<?php
    echo 'Running This test: '.get_class($this)."\n <br /> \n";
    die("Exit for now");

app/code/local/Mycompany/Hello/etc/config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Mycompany_Hello>
            <version>0.1.0</version>
        </Mycompany_Hello>
    </modules>
    <frontend>
        <routers>
            <hello>
                <use>standard</use>
                <args>
                    <module>Mycompany_Hello</module>
                    <frontName>hello</frontName>
                </args>
            </hello>
        </routers>
    </frontend>
    <global>
        <resources>
            <Mycompany_Hello_setup>
                <setup>
                    <module>Mycompany_Hello</module>
                    <class>Mycompany_Hello_Model_Resource_Setup</class>
                </setup>
            </Mycomapny_Hello_setup>
    </resources>
</global>

Here the only issue I am facing is it never executes install script.
My approches till now:

Renamed app/code/local/Mycompany/Hello/sql/mycompany_hello_setup/install-0.1.0.php to following names on each attempt app/code/local/Mycompany/Hello/sql/hello_setup/install-0.1.0.php,
app/code/local/Mycompany/Hello/sql/hello_setup/mysql4-install-0.1.0.php, app/code/local/Mycompany/Hello/sql/mycompany_hello_setup/install-0.1.0.php,
app/code/local/Mycompany/Hello/sql/Mycompany_hello_setup/mysql4-install-0.1.0.php

During every attempt I flush cache and delete the entry from core_resources table.

All my file permisson is 777 (for debugging purpose, later I will change it to 755). Actaully I placed a debugging code in install. Once it executed, I will replace this with my actual installer script.

But it seems something, I am missing something, as a result it is not working.

Please help. Thank you in advance.


texts: Change location of breadcrumb in magento 2?

texts:
How to Change the location of breadcrumb in Magento 2?

Which files create and how to do?


texts: Magento 2 Discount Amount is not showing on checkout cart summary?

texts:
Discount Amount is not showing on the checkout cart summary
The discount is applied fine but not showing
I changed the theme to luma but still not showing.


texts:
I want to use Angular for a feature in Magento2 E-commerce website.

For Ex : - I want to create a page(MoodBoard) where customer can create a look using drag drop.

I have created a new module for it.

Now I need to implement Angular in this module.

How do I do that?


texts: create a customer programmatically magento 2

texts:
How to create a new customer programmatically? i want to set new custom attributes and set the group id according to some condition but i don't know what to put here : setFirstname($POST['name_input_firstname'])??? and same for last name?.
Here is my simple code not all :

class CreateCustomer  extends \Magento\Framework\App\Action\Action
{
    /**
     * @var \Magento\Store\Model\StoreManagerInterface
     */
    protected $storeManager;
    private $customerRepository;

    /**
     * @var \Magento\Customer\Model\CustomerFactory
     */
    protected $customerFactory;

    /**
     * @param \Magento\Framework\App\Action\Context $context
     * @param \Magento\Store\Model\StoreManagerInterface $storeManager
     * @param \Magento\Customer\Model\CustomerFactory $customerFactory
     */

    public function __construct(
        \Magento\Framework\App\Action\Context $context,
        \Magento\Store\Model\StoreManagerInterface $storeManager,
        CustomerRepositoryInterface $customerRepository,
        \Magento\Customer\Model\CustomerFactory $customerFactory
    )
    {
        $this->storeManager = $storeManager;
        $this->customerFactory = $customerFactory;

        parent::__construct($context);
    }

    public function execute()
    {
        {
            // Get Website ID
            $websiteId = $this->storeManager->getWebsite()->getWebsiteId();

            // Instantiate object (this is the most important part)
            $customer = $this->customerFactory->create();
            $customer->setWebsiteId($websiteId);
            if (isset($_POST['contact_person'])) {
                $customer->setGroupId(4);

                // Preparing data for new customer
                $customer->setEmail($_POST['email']);
                $customer->setFirstname($_POST['???']);
                $customer->setLastname(???);
                $customer->setPassword(??);
                $customer->.....

            }
            // Save data
            $customer->save();
            //$customer->sendNewAccountEmail();
        }
    }
}

so how to do that and thanks in advance


texts: magento 2 add itemprop tag in title and meta description

texts:
i want to add itemprop in my title and description on category pages only , i can not find any option for same please guide me for it

<title itemprop="name">title here </title>
<meta itemprop="description" name="description" content="Description here "/>


texts: Magento 2 have Tier price reduce Special price?

texts:
Is it possible in Magento 2 to have the Tier Price for a product also reduce the Special Price?

For example, if we had a product with tier pricing setup that when you order 3 or more it applies a discount of 10% we then added a special price of say $1, could the tier price be applied on top of this?

e.g.

Type            Quantity    Price
Normal Price    1           2.50
Normal Price    3+          2.25
Special Price   1           1
Special Price   3+          0.9


texts: Magento 2.0 - Remove Cancel Button On Admin Order Info Page

texts:
I need to disable the cancellation of orders that "meet" a certain criteria.
Basically ,i need to check if the order id exists in a custom table, and if it does, cancellation from the order form is wont be allowed but it can still be canceled programmatically.

Can any of you tell me how this could be done?


texts:
Magento has released Magento-2.2.5 version on June 27, 2018

This release includes :

1. Multiple enhancements to product security plus bug fixes and enhancements.

2. Check out the many community-contributed fixes.

3. Although this release includes these enhancements, no confirmed attacks related to these issues have occurred to date.

4. However, certain vulnerabilities can potentially be exploited to access customer information or take over administrator sessions.

So, Magento is recommending to upgrade our Magento software to the latest version as soon as possible.

What are the Possible Issues with this release?


texts: magento 2 cart page rules for free shipping not working

texts: I have two customer groups one is general another is wholesaler for this groups I need to enable free shipping for some specific price. For example if general customer subtotal is 100 means it will show free shipping. For whole sale the subtotal is 500 means it need to show free shipping please tell me how can I do it I tried below methods but still no luck.please help me how can I achieve this?


texts: Magento 2.0 get product attributes through product id

texts: I need to get all product attributes through product id. How can i get this ?


texts: Fatal error: Class 'Locale' not found magento 2.0.2

texts:
when I run this command

static-content:deploy

then I got the below error

  "PHP Fatal error:  Class 'Locale' not found in /opt/lampp/htdocs/magento/magento2_1/vendor/magento/framework/Locale/Bundle/DataBundle.php".

can you please help me how to resolve the issue ?


texts: Magento Paypal issues with base currency AED

texts:
I am using magento 1.9.0.1 CE version. If i am using base currency is USD paypal appear on the Checkout page.BUt If i am using base currency is AED payapl does not appear on the Checkout page.

Is there any way in Magento where I can integrate Paypal with base currency AED


texts: Integrity constraint violation: 1052 Column 'increment_id' in where clause is ambiguous after SUPEE 6788

texts:
I am not trying to do anything fancy, or change anything, but this is the issue.

I just updated site with SUPEE 6788, and now when I try and filter the orders by the order id, I get Magento error.

  Integrity constraint violation: 1052 Column 'increment_id' in where clause is ambiguous.

I updated on test site first, and I have checked and this error didn't happen on the test site.

I last filtered on the live site a few days ago, before I ran the patch and it worked. Now it doesn't.

I have compared the grid.php files and they are the same as the ones on the test site. I also compared the files that were in the Magento error log, and they seem to be the same too.

I have already tried adding to adminhtml/block/sales/orders/grid.php 'filter_index'=>'main_table.increment_id' and it worked.

But I don't like to edit a core file, and I don't understand why my test site is not showing the same behaviour. The only thing different it has is an older database.

Paul


texts: Looking to hide the prices of every shipping method on the onepage checkout. Where is this content dynamically loaded? I've looked in and edited app/design/frontend/theme/default/template/checkout/cart/shipping.phtml but to no avail. Any Ideas?


texts: Need Show configurable product Swatches in Home page

texts:
I need to show the Configurable Product Swatches in Home page by CMS block.

Tried using -:

https://github.com/zaibi099/Magento/tree/master/Pakgentors/Swatches

Its working fine with XML layout, but not showing swatches when I try to call it from CMS block.


texts: Products not appearing in the catalog - Reindex not adding records

texts:
When I add products to a category through the admin pages, the product is not showing up on the relevant category page.

Ive have searched for an answer for this extensively and carried out all the necassary checks:

product enabled
is in stock
has a positive quantity
is assigned to a store view
etc..

I have done this many times but now it has all stopped working.

This includes creating new products to add to categories and also adding existing products to other categories.

the product does not appear. This is after reindexing and clearing cache etc..

After looking in the database, i found the the Category ID - Product ID pair does not appear in the table catalog_category_product_index_store1.

After adding the necassary records to this table manually and then performing a reindex, the products have appeared in their categories.

I have a lot more products to add and this is not an ideal solution in the long term as i shouldnt be manually adding records to the database like this.

does anyone know what could cause this issue and if it is a known issue and if there is a possible patch to it?


texts: Issue with to Force www. and SSL Mutlistore

texts:
Myself and my developer are having issues trying to force Magento to use https for all links and add the www. before our website domain.

Currently, if you go to www. thepoultryhatchery .com it will automatically drop the www. we Want the www., how do we fix that? We also have an SSL certificate, which gives us the "green bar".

If you use the https:// in front of the domain above, it messes up the sites layout.

If you just go to thepoultryhatchery .com and click the login button in the top upper right hand corner, you will see it will force http on the login screen but errors still happen.

Godaddy does not support Magento, so he gave me this url called whynopadlock .com/  and when you copy and past the login url:

https://thepoultryhatchery.com/storpickup/index.php/customer/account/login/

it tells you whats wrong but we cant seem to fix this issue.

We've previously tried to go into system --> configuration --> Web --> (see attached screenshot).

When we tried to change the url to www. and add the https we got a 404 error and couldnt access the website period. We had to go in the database and change from 1 to 0 or something of that such to regain access.

How do we properly force https for all pages, both stores, front end and backend. and make sure all links display www. in front of the domain. so all urls should look like https:// www. ThePoultryHatchery .com

please provide as many details, new o magento.

Any help would be greatly appreciated! Ps. We are on Magento Community ver. 1.9.0.1

Thanks so much!


texts: magento 2 remove the product from cart redirection

texts: In magento 2 Added the products to cart,i have to remove the product from cart page it is redirected to home page,how to debug this issue?


texts: Custom Sort order for magento product collection (Sort collection by an array values)

texts:
I have product collection as below,

Array
(
    [0] => Array
        (
            [entity_id] => 1995
            [type_id] => configurable
            [sku] => WSH06
            [has_options] => 1
            [created_at] => 2016-05-04 11:23:45
            [updated_at] => 2016-05-04 11:23:45
            [cat_index_position] => 3
            [price] => 42.0000
            [tax_class_id] => 2
        )

    [1] => Array
        (
            [entity_id] => 2002
            [type_id] => configurable
            [sku] => WSH07
            [has_options] => 1
            [created_at] => 2016-05-04 11:23:45
            [updated_at] => 2016-05-04 11:23:45
            [cat_index_position] => 1
            [price] => 24.0000
            [tax_class_id] => 2
        )

    [2] => Array
        (
            [entity_id] => 2008
            [type_id] => configurable
            [sku] => WSH08
            [has_options] => 1
            [created_at] => 2016-05-04 11:23:45
            [updated_at] => 2016-05-04 11:23:45
            [cat_index_position] => 2
            [price] => 44.0000
            [tax_class_id] => 2
        )
)

Now i want to sort this collection based on one array which is having SKUs in it

Array
(
    [0] => WSH07
    [1] => WSH08
    [2] => WSH06
)

So that Collection should sort as below

Array
(

    [0] => Array
        (
            [entity_id] => 2002
            [type_id] => configurable
            [sku] => WSH07
            [has_options] => 1
            [created_at] => 2016-05-04 11:23:45
            [updated_at] => 2016-05-04 11:23:45
            [cat_index_position] => 1
            [price] => 24.0000
            [tax_class_id] => 2
        )

    [1] => Array
        (
            [entity_id] => 2008
            [type_id] => configurable
            [sku] => WSH08
            [has_options] => 1
            [created_at] => 2016-05-04 11:23:45
            [updated_at] => 2016-05-04 11:23:45
            [cat_index_position] => 2
            [price] => 44.0000
            [tax_class_id] => 2
        )

    [2] => Array
        (
            [entity_id] => 1995
            [type_id] => configurable
            [sku] => WSH06
            [has_options] => 1
            [created_at] => 2016-05-04 11:23:45
            [updated_at] => 2016-05-04 11:23:45
            [cat_index_position] => 3
            [price] => 42.0000
            [tax_class_id] => 2
        )
)

I have disabled the magento default sort order, How i can achieve above sort order. Any help will be aprrecited,
Thanks!!!


texts:
I'm having an issue with my Magento 2 , was working fine at the beggining , I've installed a few modules, and now, when I try to enable a module from Admin - System - Web Setup Wizard, I get this error:

  PHP Version Check

  Your PHP version is . The required PHP version is . Show detail

My php version is 5.6 so it should be good, also I have my cron jobs set up. It seems like there is an issue with the core of Magento and/or a specific module that I've installed, which affects the readiness check and due to that reason it fails.


texts:
I was working with the layout xml for the top links. My code is in my custom module default.xml:

<?xml version="1.0"?>

<body>
    <referenceBlock name="header.links">
        <block class="Magento\Framework\View\Element\Html\Link\Current" name="storelocator-link">
            <arguments>
                <argument name="label" xsi:type="string" translate="true">Title Link</argument>
                <argument name="path" xsi:type="string">link-uri</argument>
            </arguments>
        </block>
    </referenceBlock>
</body>

Now I can get my link in top.links area. But it shows at the beginning. I like to move it at the end... But I can't able to move it.
Can anyone help me to fix its position to the end..


texts: How to call function from another function using magento knockout js?

texts:
I need quick help regarding calling a function within a function using Magento knockout js, I have tried this

define([
    'ko',
    'uiComponent'
], function (ko, Component) {
    'use strict';

    return Component.extend({
        initialize: function () {
            //initialize parent Component
            this._super();
        },

        testfunctionout: function() {
        var self = this;
            console.log(' in testfunctionout');
        self.testfunctionin();
        },

        testfunctionin: function() {
            console.log(' in testfunctionin');
        }

    });
});

Can anyone help me out? Thanks in advance.


texts:
I installed grunt and run command grunt exec:my theme but it shows me

    [Magento\Framework\Exception\FileSystemException]
      Cannot create a symlink for "C:/xampp/htdocs/packt/vendor/magento/theme-frontend-blank/web/css/source/_reset.l
      ess" and place it to "C:/xampp/htdocs/packt/pub/static/frontend/gog/gogparent/en_US/css/source/_reset.less" Wa
      rning!symlink(): Cannot create symlink, error code(1314)

( gog is my custom theme )
I checked di.xml in app/etc folder and in virtualTypename="developerMaterialization" section ,content is

  Magento\Framework\App\View\Asset\MaterializationStrategy\Copy

then I clean cache and Delete the files under pub/static,but error still showing when I run command.what can I do with this problem?


texts: How to get all children blocks in controller Magento 2?

texts:
I have to get all children block in controller using parent block name or layout Magento 2.

Thanks in advanced.


texts: how to use simple product price in configurable product

texts: how to use price of simple associated product in configurable product and show change price when selecting option on product view page magento 1


texts: Still Show Added Product under Related Products after adding to cart in Magento

texts:
Is anyone familiar with this. I have noticed that after I add a product to cart, it disappears in my list of related products. What I want is to still show that specific product even if I already added it to cart.

I think it's a default Magento feature that after adding an item to cart, it disappears under the related products of a specific product.

Can I do this easily via Magento admin? Or do I need to modify a core code or template file? I hope some Magento expert can guide me to the right direction. O_O


texts: Magento Add translation file to custom theme

texts:
i've added a custom translation to my Magento theme like below :

i've add translation.csv in :

app/design/frontend/themename/default/local/ar_SA

and in

app/design/frontend/themename/default/local/ar_US

the format of translation.csv like below:

"Add To Cart","Buy"
"Add To Compare","Compare"

And from the admin i've choose the local Options for specific language from :

System->Configuration->General->Local Options

But the translation doesn't working !! any suggetions about that ?


texts: Magento 2 Purchase Order per Customer Group not Available Anymore?

texts:
I believe limit PO to customer group such as wholesale was a standard Magento 1 feature, whereas in Magento 2 it seems not available?

Can someone confirm this, please?


texts:
How I can call a module that I created from a phtml ?.

It can be called as a static block, but I have no idea how it can call its own module from a .phtml


texts: How to include a store variable in the definition of a custom variable

texts:
I am trying to customize an email template ( new password ) and for this I have defined a custom variable 'footer-email' like this :

<p> Thank you for shopping at {{config path="general/store_information/name"}} </p>

I include the variable in the email template with :

{{customVar code=footer-email}}

The problem is that the store name does not appear in the resulting email . However, if I include {{config path="general/store_information/name"}} directly in the template ( instead of the custom variable) , it displays properly.

Is it a scope issue? Is it possible to use 'variable within variables' ?

Note that I run CE 1.9 and have only one store.

Thanks in advance for the help.


texts: magento 2 set shipping amount for each item

texts:
How I can set shipping amount for each order items.
In my cart, I set for each cart item one shipment but I don't know how I can save it and which model or table saved it?


texts: Product Attribute issue with attribute set using installer script

texts:
I am facing a problem regarding creating attribute and attribute set using installer script.attribute set and attribute is created but the problem is attributes are assigned to all attribute set instead of only custom one creating with installer script.

following is my installer script:

<?php
$installer = $this;
$installer->startSetup();
try{
$sNewSetName = 'Product Bundler Package';
$iCatalogProductEntityTypeId = (int) $installer->getEntityTypeId('catalog_product');

$oAttributeset = Mage::getModel('eav/entity_attribute_set')
    ->setEntityTypeId($iCatalogProductEntityTypeId)
    ->setAttributeSetName($sNewSetName);

if ($oAttributeset->validate()) {
    $oAttributeset
        ->save()
        ->initFromSkeleton($installer->getAttributeSetId('catalog_product', 'Default'))
        ->save();
}
else {
    Mage::log('Attributeset with name ' . $sNewSetName . ' already exists.');
    }
}
catch(Exception $ex){
Mage::log('Attributeset with name ' . $sNewSetName . ' already exists.');

}

    $installer->addAttributeGroup('catalog_product', 'Product Bundler Package', 'Bundled Package Data', 1000);

    $data1= array (
        'attribute_set' =>  'Product Bundler Package',
        'group' => 'Bundled Package Data',
        'label'    => 'Preset1 name',
        'visible'     => true,
        'type'     => 'varchar',
        'input'    => 'text',
        'system'   => true,
        'required' => false,
        'user_defined' => 1,
    );

    $installer->addAttribute('catalog_product','bundle_preset1_name',$data1);

      $data2= array (
        'attribute_set' =>  'Product Bundler Package',
        'group'    => 'Bundled Package Data',
        'label'    => 'Preset2 name',
        'visible'  => true,
        'type'     => 'varchar',
        'input'    => 'text',
        'system'   => true,
        'required' => false,
        'user_defined' => 1,
    );
    $installer->addAttribute('catalog_product','bundle_preset2_name',$data2);

    $data3= array (
        'attribute_set' =>  'Product Bundler Package',
        'group' => 'Bundled Package Data',
        'label'    => 'Preset3 name',
        'visible'     => true,
        'type'     => 'varchar',
        'input'    => 'text',
        'system'   => true,
        'required' => false,
        'user_defined' => 1,
    );
    $installer->addAttribute('catalog_product','bundle_preset3_name',$data3);

    $data4 = array (
        'attribute_set' =>  'Product Bundler Package',
        'group' => 'Bundled Package Data',
        'label'    => 'Preset4 name',
        'visible'     => true,
        'type'     => 'varchar',
        'input'    => 'text',
        'system'   => true,
        'required' => false,
        'user_defined' => 1,
    );
   $attribute =  $installer->addAttribute('catalog_product','bundle_preset4_name',$data4);

$installer->endSetup();
?>

I want to create custom attributes with attribute set name "Product Bundler Package" and assign all attribute to that attribute set only.

Kindly help me to resolve it.


texts: Error while setting up sample data in Magento 2.4.1

texts:
I have installed Magento 2.4.1 via composer and got the store and admin panel without any error but when I try to set sample data am getting the below error.
Unable to apply data patch Magento\CatalogRuleSampleData\Setup\Patch\Data\InstallCatalogRuleSampleData for module Magento_CatalogRuleSampleData. Original exception message: Rolled back transaction has not been completed correctly.
I have used the below commands to set the sample data.
php bin/magento sampledata:deploy
php bin/magento module:enable --all
php bin/magento setup:upgrade
Also, I have enabled the developer mode and ran the above command still am getting the same error.


texts: I have some subdomain from the old site like 123.abc.com and I want to redirect them to abc.com/123. I have installed magento 2.3.2 and nginx as webserver.


texts: How can i share Magento Wishlist on Facebook

texts:
This question has been asked before over Here but no answers were given. I have got the same task and am bit stuck on sharing.

Basically, i have to share the wishlist on Facebook. Just sharing link isn't enough as the wishlist can't be access without customer login.

I also tried sharing the wishlist using share URL which i retrieved using below code. But it is not working:

<?php echo Mage::getUrl('*/shared/index', array('code' => $this->getWishlistInstance()->getSharingCode())) ?>

Can anyone give an idea regarding how this can be achieved or clue from where should i start.


texts: How to lock particular customer account in Magento 2

texts: I want to lock particular customer account in magento store. Any options to lock or blacklisted customer account using admin panel


texts: Product load event - regardless of context

texts:
Is there a single event that I can create an observer for that gets fired when a product is loaded either using getModel or through a collection?

The exact use case i have is that i have a custom product attribute, but in order to return the correct result, further logic needs to be done which is based on other factors?  I am then planning to compute this logic after load and store it in another member.  If someone has an alternative i would be also grateful for this advice.


texts: magento 2 installation on windows 10 problem

texts:
I tried to install Magento 2 on windows10, wampserver, and xampp. both experiments got a successfully installed page.  But the localhost homepage does not work fine: homepage like the picture show. Create Account link does not work, localhost/magento2/admin does not work either.

Both wampserver and xampp have the same result. Did I miss something?


texts: How do I transfer my guest cart to a customer in Magento 2 REST API

texts:
Luckily I am able to add items to guest a cart, but upon placing an order I want to guest to become a user and I am kind of confuse on how to transfer the former guest cart to the logged in user. I am using the Magento 2 rest API

Thanks in Advance.


texts: How to combine two attributes in Adminhtml Grid view

texts: I am looking to learn how to combine both name and size attributes in the app/code/local/Mage/Adminhtml/Block/Catalog/Product/Grid.php file (yes, we will make a local) so that when I view products these two will appear together separated by a space. We have separated size as an attribute and we need it to appear in the name column of the grid. What we would see now might be something like "Fruit Drink Grape" and I wish to see "Fruit Drink Grape 8 fl. oz."


texts:
I have a default theme folder with all my templates which is inside

mysite/app/code/template/frontend/rwd/default.

I have another folder named tree(not inside default theme). I have phtml file inside tree. How do i call that file from controller? right now the path would be

mysite/tree/myfile.phtml.

My controller is inside

app/code/local/ness/so/indexcontroller.php


texts: Magento 2 Editing phtml files in Production Mode

texts:
I have a Magento 2 store in "production mode"

  My question is, If I want to change a phtml file, do I need to change to developer mode or is it enough to execute setup:static-content:deploy -f?


texts: how i can set In the sort by options, instead of “Position” please make this say “Best Selling” in magento?

texts: hello friend i want to set sort by options, instead of “Position” please make this say “Best Selling” in product page of magento how this is possible ? please guide me


texts: Available Qty is 0 but stock availability status is showingthe item instock

texts: I have set the "Qty for item's status to become out of stock" to 0 and the available Qty has become 0 but the item is still shown as in-stock.


texts: Product price attribute is not showing up on details page

texts:
The prices of my products are showing up in the grid results, but when I open them up as a detail page, there is no price. I found out when I save the product (without changing anything) it's fixing it.

I have done this already: programmatically-trigger-admin-save-action-on-product

But it does not work this way. I have to explicitly save them via the admin panel. Has anyone a clue how I can fix this without saving all my products 1 by 1. I tried bulk saving them too via the admin panel, but it only works 1 by 1.

Thanks in advance.

ps: Database wise I diffed it with 2 sql files and saw some change and additions in a lot of tables. I need to trigger this programmatically, because creating a query takes ages (random id's for all kinds of stuff)


texts: Change colour of discount code dropdown on cart page in Luma - Magento 2

texts:
On the cart page in the Luma theme there is a dropdown that when clicked expands to allow you to enter a discount code.

What is the less variable to change this colour please?

This is the CSS that is generated:

.paypal-review-discount .block > .title strong, .cart-discount .block > .title strong {
    color: #1979c3;
    font-weight: 400;
}

and this is overriding the standard .block .title strong styles which is the correct colour.

Can anyone help with this please? I don't want to do override this with CSS.


texts: how to customize top menu in magento using rwd template?

texts:
I am using rwd template in magento 1.9.1
I wants to add my own customize menu in top menu bar so it would be drop down in mobile view.so how can i add new menu in top menu bar?

Is there any changes need in xml files or php file?


texts: How to show custom popup when customer click sign out button(want to show this popup for the customer once in a day) in magento 2

texts:
I have displayed a custom message in a popup for the logged out customer in Magento 2.

For example what I have done so far.

Once they click the "sign out" button, I have shown the popup to them.
But Once they close the popup, I just need to allow the customer to proceed with the sign out button.
And I don't want them to show the popup again to the same customer on the same day.
But the next day, I need to show the popup to the customer.

Actually my requirement is don't want to show the popup again and again to the same customer on the same day.

Thanks in advance


texts: Merge guest quote items to customer quote(if customer log in) by magento 2 rest API

texts:
If any one is add products in cart by guest and after that login then how it will merge guest cart to customer login cart items by Rest API. if anyone found this solutions, please help me.

I have already try below code but it's not working:

Method - PUT
{URL}/rest/V1/guest-carts/{guest-card-id}
Param - {
"customerId": 3,
"storeId": 1
}
Authorization -"Bearer {user-token}"

Not found any solution yet. if anyone know about this then please help me.


texts: How to add a saveAndContinueEdit type button in admin view order?

texts:
I have created a module to implement a new product option type.
This product option can be configured from the admin view order page :

and for each product that has this option, I have a radio button form :

    …
<FORM id="file_state_sel" method="post">
        <INPUT type= "radio" name="<?php echo $_label;?>" value="Checking" <?php echo $_checked_verif;?>> Being verified
        <INPUT type= "radio" name="<?php echo $_label;?>" value="Files_OK" <?php echo $_checked_ok;?>> Files OK
        <INPUT type= "radio" name="<?php echo $_label;?>" value="Files_not_OK" <?php echo $_checked_notok;?>> Files not OK
</FORM>

I added in the view order page a Save Order button :

module config.xml

    <blocks>
        <custoptiontype>
            <class>Mine_Custoptiontype_Block</class>
        </custoptiontype>
        <adminhtml>
...
            <rewrite>
                <sales_order_view>Mine_Custoptiontype_Block_Adminhtml_Sales_Order_View</sales_order_view>
            </rewrite>
        </adminhtml>
    </blocks>

and the class

class Mine_Custoptiontype_Block_Adminhtml_Sales_Order_View extends Mage_Adminhtml_Block_Sales_Order_View {

    public function  __construct() {
        $this->_addButton('updatebutton', array(
            'label'     => Mage::helper('Sales')->__('SAVE ORDER'),
            'onclick'   =>
            'class'     => 'scalable save'
        ), 0, 100, 'header', 'header');

        parent::__construct();

    }}

As you can see, the 'onclick' parameter stays a mystery to me… I tried hundreds of things, but none of them worked…

The goal is to make a a saveAndContinueEdit type function :
- get the radio button configuration
- update the options values
- save the order
- reload the order view page

I tried making a module controller, with no success :

in the config.xml

<admin>
    <routers>
        <adminhtml>
            <args>
                <modules>
                    <mine_custoptiontype after="Mage_Adminhtml">Mine_Custoptiontype_Adminhtml</mine_custoptiontype>
                </modules>
            </args>
        </adminhtml>
    </routers>
</admin>

with

<?php
class Mine_Custoptiontype_Adminhtml_FilesstateController extends Mage_Adminhtml_Controller_Action
{
    public function updateAction()
    {
        echo "ca va updater!";
    }
}
?>

but I do not manage to call it properly…

I you could help me please, I am getting mad…

Thanks very much,

Alex


texts: Please help me to find a way to add new php library to Magneto2. In Magetno1 I add it to lib folder and then I could use it in my custom modules... But in Magento2 I am trying to do the same but no go... Anybody already try to do that or?


texts: Magento2 : Show summery total on checkout page

texts: How to display summery total on checkout page on sidebar above cart items list?


texts: Indexers are not updated even when Cron is running

texts:
I am sure my Magento 2 cron is running.  It runs for every 15 minutes.  It is not throwing any error.

Below is the cron that is running for every 15 minutes

php -c /opt/alt/php55/etc /home/xxx/public_html/bin/magento cron:run

Every time when it runs it gives the below output.

Ran jobs by schedule.

However the indexers are not building.

When I login at backend It Says

One or more indexers are invalid. Make sure your Magento cron job is running.

I know that the CLI command can be used.  My question is why the indexers are not rebuilding when the Cron is running.

Update:

Following is my configuration for index and default

Generate Schedules Every - 15
Schedule Ahead for - 16
Missed if Not Run Within - 60
History Cleanup Every - 20
Success History Lifetime - 120
Failure History Lifetime - 120
Use Separate Process - Yes

Following are the schedules I see in my cron_schedule table

captcha_delete_old_attempts
captcha_delete_expired_images
magento_newrelicreporting_cron
sales_grid_order_async_insert
sales_grid_order_invoice_async_insert
sales_grid_order_shipment_async_insert
sales_grid_order_creditmemo_async_insert
sales_send_order_emails
sales_send_order_invoice_emails
sales_send_order_shipment_emails
sales_send_order_creditmemo_emails
newsletter_send_all


texts: How to get text values of dropdown attributes for product?

texts:
I need to display on product page 30 attributes which have dropdown values.
Is it possible to load them in couple queries instead of individual query for every attribute?


texts: Upgrade to Magento 2.0.1 Using System Upgrade Fails Readiness Check

texts:
Using php 5.6.17-1+deb.sury.org~wily+2 on Ubuntu 15.10 with Apache2 and MariaDB.
Fully Functional Magento CE 2.0.0,
But now with this Release of CE 2.0.1 I went to upgrade using the Admin backend System Upgrade.
I get all the way to Readiness Check Everything passes But always_populate_raw_post_data = 0.

knowingly that this error should not occur because all 3 php.ini files have it set to =-1 which was done before installing Magento CE 2.0.0.

After looking at Google Chromes Inspect/Network elements this is the displayed error.

{responseType: "error", data: {always_populate_raw_post_data: {,…}}}
data: {always_populate_raw_post_data: {,…}}
always_populate_raw_post_data: {,…}
error: true
helpUrl: "http://php.net/manual/en/ini.core.php#ini.always-populate-    settings-data"
message: "Your PHP Version is 5.6.17-1+deb.sury.org~wily+2, but always_populate_raw_post_data = 0.↵             $HTTP_RAW_POST_DATA is deprecated from PHP 5.6 onwards and will be removed in PHP 7.0.↵             This will stop the installer from running.↵         Please open your php.ini file and set always_populate_raw_post_data to -1.↵             If you need more help please call your hosting provider."
responseType: "error"

Because i see the {,…} and not the = 0 which means I did not change my ini tells me that something isnt right. And I don't see anyone else having this issue so I believe the problem is on my end some where i did something wrong but It installing perfectly.

Maybe my crontab is affecting the information being pulled correctly?
here is my ROOT user Crontab.

*/1 * * * * php -c /etc/php5/fpm /var/www/html/magento2/bin/magento cron:run
*/1 * * * * php -c /etc/php5/fpm /var/www/html/magento2/update/cron.php
*/1 * * * * php -c /etc/php5/fpm /var/www/html/magento2/bin/magento setup:cron:run
*/1 * * * * php -c /etc/php5/fpm /var/www/html/magento2/bin/magento indexer:reindex

I have also tried

*/1 * * * * php /var/www/html/magento2/bin/magento cron:run
*/1 * * * * php /var/www/html/magento2/update/cron.php
*/1 * * * * php /var/www/html/magento2/bin/magento setup:cron:run
*/1 * * * * php /var/www/html/magento2/bin/magento indexer:reindex

I have also tried adding php flags in the .htaccess files with no luck.

Some one please help? what am i forgetting.


texts: Hide/show admin form field on toggle value using UiComponent in Magento 2

texts:
I want Hide/show admin form field on toggle value using UiComponent.

when enable the toggle fields should be visible and on disable the toggle fields should not be visible.

Example:
[When enable the toggle][1]
[When Disable the toggle][2]


texts: Remove parent category URL for a given storeId but not all other storeId

texts:
On a multi-site setup, I need to remove the parent category path from the child category URLs, but to do it for only 1 of the storeIDs.

The solution by Anshu Mishra linked below works, but it removes the paths from every store. I require it to only remove the paths from 1 store.

Remove parent categories from subcategory URLs

Is this possible?


texts:
I am looking for help in fixing a problem we have been having with our Magento for a while now

This is what has been happening:
A customer will come to the website and use a coupon code during checkout. When they are paying they can choose between Paypal or Credit card. Both options are going through Paypal anyways using “Website Payments Pro”. Right before the customer confirms the payment they see an error like this “PayPal gateway has rejected request. A successful transaction has already been completed for this token (#10415: Transaction refused because of an invalid argument. See additional error messages for details).”

Then once that happens they are STILL getting charged through Paypal/Credit card. But an order is not being generated in Magento for our records and the customer is not receiving an order confirmation. If they keep clicking on Confirm Order then they will see this error each time while their card is getting billed each time.

Since there was no response to the question here http://www.magentocommerce.com/boards/c../viewthread/291770/ I copied it over to stackoverflow.


texts: How can I create custom Magento 2 and Akeneo connector to perform both import and export of products?


texts: error comming while add to cart using textarea in magento 2.3.5

texts:
I am facing this kind of error while creating module for custom add to cart in magento 2.3.5.
So can anyone have idea then please share with me.
Thank you in advance.


texts: Change the background color of the catalog product view page?

texts: Which file should I edit in my custom theme to change the background color and any other CSS of the catalog product view page?


texts: Magento 1.9.0.1 admin not working after SUPEE-8788

texts:
I am using Magento 1.9.0.1. When i applied SUPEE-8788 from command line then it was throwing error ERROR: Patch can't be applied/reverted successfully.

Then I cleaned cache and try to login in admin but it is not logging and showing below error.

The example.com page isn’t working

example.com is currently unable to handle this request.

HTTP ERROR 500

Can anyone help me how to solve this ?


texts: Deduct tax from shipping in review order?

texts:
I have applied GSt tax for Australia, every thing works fine but during checkout in review order it shows shipping amount by deducting the gst tax from it.
and add that deducted tax of shipping in total tax of product.

Please see the attachment.
I want the selected shipping method value should be show without any tax deduction in review order


texts: How to display status of associated product in configurable products

texts:
When going to edit a configurable product, it would be nice to see the status (enabled/disabled) of each of the simple products when going to Associated products tab. I'm not using the stock options but instead managing products by their status manually so this is the only way to see if the associated products are in use or not. Any idea how to achieve this?

I found out one way it could be done is by adding something like the following in /app/core/code/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid.php

        $this->addColumn('status', array(
        'header'    => Mage::helper('catalog')->__('Status'),
        'renderer'  => 'adminhtml/catalog_product_edit_tab_super_config_grid_renderer_status',
        'filter'    => 'adminhtml/catalog_product_edit_tab_super_config_grid_filter_status',
        'index'     => 'status'
    ));

The above code snippet is a copy of the way in which the SKU is added to the grid. My problem is I cannot find where e.g. "adminhtml/catalog_product_edit_tab_super_config_grid_renderer_sku" or "adminhtml/catalog_product_edit_tab_super_config_grid_sku" are defined so I could clone the functionality.

Any tips where to look would be welcome...might not be a good idea to edit the core files anyways so tip of how to do this with an extension would be appreciated :)


texts: magento 2.1 change address structure hierarchy

texts:
I want to show state, province, postcode in line like below
india-dehli 185235
how can i change the hierarchy of address structure?


texts: How To get Visual Swatch attribute image path in magento2

texts:
I created one attribute with type Visual Swatch

now i need to get image path of specific option value or product  then how to get it ?


texts:
i have imported my local magento database to live one with phpmyadmin. but when im trying to access my web site i get this error log.

a:4:{i:0;s:63:"Item (Mage_Core_Model_Store) with the same id "0" already exist";i:1;s:891:"#0 /public_html/lib/Varien/Data/Collection/Db.php(576): Varien_Data_Collection->addItem(Object(Mage_Core_Model_Store))
#1 public_html/app/code/core/Mage/Core/Model/Resource/Store/Collection.php(174): Varien_Data_Collection_Db->load(false, false)
#2 /public_html/lib/Varien/Data/Collection.php(752): Mage_Core_Model_Resource_Store_Collection->load()
#3 /public_html/app/code/core/Mage/Core/Model/App.php(624): Varien_Data_Collection->count()
#4 /public_html/app/code/core/Mage/Core/Model/App.php(466): Mage_Core_Model_App->_initStores()
#5 /public_html/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Model_App->_initCurrentStore('', 'store')
#6 /public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#7 /public_html/index.php(87): Mage::run('', 'store')
#8 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";}


texts:
Context: we have a project which uses M2E so our client can sell on eBay. For easy reference, we've added custom columns to the product grid in the admin panel so that the eBay item ID is displayed next to the other product details.

The above all works fine, no problems.

The problem is that occasionally eBay issues a new item ID for an item for some reason or another, and then we have two eBay item IDs for the same product. This has just been flagged as an issue because when we use joinField to add the item ID to the product collection, it's grabbing the first ID it finds, not the latest one.

So what we want to do is grab the newest eBay item ID instead of the first one found but I'm struggling to find a way to make this work within Magento. Straight SQL would be no problem, but I'm a little less skilled with Magento DB queries.

This is the code we're using to join the eBay item ID table at present:

$collection->joinField('ebay_item_id', 'm2epro_ebay_item', 'item_id', 'product_id=entity_id', null, 'left');

This is what we tried adding to make it work (no luck):

$collection->addAttributeToSort('m2epro_ebay_item.update_date', 'DESC');

These are the relevant column headings in the table we're joining:

id (row ID)
item_id (eBay item ID)
product_id (Magento product ID)
update_date (last updated)
create_date (creation date)

It could be sorted by any of ID, update_date, or create_date, but I can't get my head around how to get it to do it within the Magento architecture.

So any help or pointers would be appreciated.

Edited to add:

class Digitalsix_CustomGrid_Model_Adminhtml_Observer {

    public function onBlockHtmlBefore(Varien_Event_Observer $observer) {
        $block = $observer->getBlock();
        if (!isset($block)) {
            return;
        }

        switch ($block->getType()) {
            case 'adminhtml/catalog_product_grid':
                $block->addColumn('ebay_item_id', array(
                    'header' => Mage::helper('catalog')->__('Ebay ID'),
                    'width' => '80px',
                    'index' => 'ebay_item_id',
                    'filter' => false,
                ));
                break;
        }
    }

    public function onEavLoadBefore(Varien_Event_Observer $observer) {
        $collection = $observer->getCollection();
        if (!isset($collection)) {
            return;
        }

        if (is_a($collection, 'Mage_Catalog_Model_Resource_Product_Collection')) {
            $collection->getSelect()->group('e.entity_id');

            if (!$collection->fieldAlreadyJoined("ebay_item_id")) {
                $collection->joinField('ebay_item_id', 'm2epro_ebay_item', 'item_id', 'product_id=entity_id', null, 'left');
            }
        }
    }

}


texts: How to add a custom collection as "Category Chooser” in Magento 2 Backend

texts:
I want to add a category selector for my custom collection. I checked some articles related to this. Followed this article but haven't got any solution.

Please advice a good solution.


texts: Magento 2 enter price inc tax doesn't work

texts:
Under Stores>Configuration>Sales>Tax : I set Catalog Price to Including Tax.
But when I enter 18.50€ as price for a (new) product It still adds 21% Tax (i configured a 21% tax rule)?


texts: How 'Add Design Change' with magento shell script?

texts: I want add new theme with magento shell script. I think it's possible with direct access to MySQL 'design_change' table. But I don't know how to do it. Any ideas?


texts: How to add dynamic image url in comment in system.xml Magento

texts:
I am working on the payment gateway. but I have a problem I did google research but couldn't find any solution I hope I'll get solution here so I am posting here

following my system.xml code block

<title translate="label">
    Title
    <comment><![CDATA[]]></comment>
    <frontend_type>text</frontend_type>
    <sort_order>3</sort_order>
    <show_in_default>1</show_in_default>
    <show_in_website>1</show_in_website>
    <show_in_store>1</show_in_store>
</title>

in this block problem is in comment tag right now here i put static link /media/billmate/images/billmate_bank_s.png please anybody suggest me how to make it dynamic


texts: Get quantity attribute in products list page

texts:
I'm using magento 2.
I want to get this attribute in products list page. Does anyone show me how ?
Thanks !


texts: Missing HTTP flag and Secure flag on form_key and mage-messages

texts: As per my security checking and testing in Magento 2.1, I see that secure cookie or HTTP only flag not set on form_key and mage-messages.For the security reason, we need the cookie to be secure. Can someone please help me on this.


texts: Is Recurring profile create a new order on every billing Cycle?

texts:
If i will  create an order  with recurrent profile and it is

Billing Period Unit  is daily
Billing Frequency  is 1
Auto Bill on Next Cycle make Yes

I have studied on this link

http://www.magentocommerce.com/knowledge-base/entry/working-with-recurring-profiles

Recurring Profiles - How do they work?

But i am confuse about the thing:

1. for each billing cycle ,is  recurring profile create new order?

2. If not then ,is magento from second billing cycle this then this payment is not included on sales  price total

Please help  on this issue  .I  am too confused on this.


texts: How we can select multiple sizes of configurable product from product details page? Also, Can we add configurable product different size prices simultaneously in Cart?


texts: Magento2.2.2 - After installing fresh instance with sample data product page returns 404

texts:
I have installed fresh magento 2.2.2 instance with sample data. After hitting all required commands as a guest I can not see any single product on category listing page and product page returns 404.But after login as a customer I can see product listing on category page and able to access product page.

Please suggest what is the issue.


texts: Magento 1.9 : Product importing not working

texts:
I have tried both Import/Export and the Dataflow method for importing the products in Magento 1.9.
In both cases, it's giving a success message. But the product not importing to the backend.
Can you please what is exactly happening here? I am adding the screenshots.

Thanks in advance.


texts: how to customize display of very long drop down list in magento

texts:
I have many subcategories to be displayed in home page, but it is vertically too long,, i want to make it scroll on hover. what changes need to be done in css or other files, please guide me script which is responsive

reference:https://css-tricks.com/examples/LongDropdowns/
i want scolling of list as in referred website mentioned above


texts: Upgrade 1.9.0.1 to 1.9.2 - ./mage conflicts and other issues

texts:
I tried for an hours, but i can't find the solution. Some of the file upgrade show's error. Please suggest me.

  CONNECT ERROR: Package community/Cm_RedisSession 1.9.2.2 conflicts with: community/Mage_All_Latest 1.9.0.1
  Package community/Lib_Credis 1.9.2.2 conflicts with: community/Cm_RedisSession 1.8.0.0, community/Lib_Cm 1.8.0.0, community/Mage_Core_Modules 1.9.0.1


texts: Changing the Search Results page to use 1 column layout in Magento2

texts:
As far as I can tell Magento2 is not working as expected here.

In /Magento_CatalogSearch/layout/ I have 4 XML files:

catalogsearch_advanced_index.xml
catalogsearch_advanced_results.xml
catalogsearch_result_index.xml
default.xml

In the top of each of these files I have the following line:

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

Notice it says layout="1column". I have cleared caches, I have re-indexed.

Despite all of this my search results page is still using 2columns-left.

My search results page is using 2columns-left as its template file. How do I change this so my search results page is using 1column?

Here is the full contents of catalogsearch_result_index.xml:

<?xml version="1.0"?>
<!--
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <attribute name="class" value="page-products"/>
        <referenceContainer name="content">
            <block class="Magento\CatalogSearch\Block\Result" name="search.result" template="result.phtml" cacheable="false">
                <block class="Magento\CatalogSearch\Block\SearchResult\ListProduct" name="search_result_list" template="product/list.phtml" cacheable="false">
                    <arguments>
                        <!-- If argument's position depends on image size changeable in VDE:
                        positions:list-secondary,grid-secondary,list-actions,grid-actions,list-primary,grid-primary
                    -->
                        <argument name="positioned" xsi:type="string">positions:list-secondary</argument>
                    </arguments>
                    <block class="Magento\Catalog\Block\Product\ProductList\Toolbar" name="product_list_toolbar" template="product/list/toolbar.phtml" cacheable="false">
                        <block class="Magento\Theme\Block\Html\Pager" name="product_list_toolbar_pager" cacheable="false"/>
                    </block>
                    <action method="setToolbarBlockName">
                        <argument name="name" xsi:type="string">product_list_toolbar</argument>
                    </action>
                    <block class="Magento\Framework\View\Element\RendererList" name="category.product.type.details.renderers" as="details.renderers">
                        <block class="Magento\Framework\View\Element\Template" as="default"/>
                    </block>
                </block>
                <action method="setListOrders"/>
                <action method="setListModes"/>
                <action method="setListCollection"/>
            </block>
        </referenceContainer>
    </body>
</page>