texts: Excluding new items from a discount in Catalog Price Rules

texts:
I work in a boutique and am adding new season merchandise to the site.

We have a sale running for all previous season items. When I am adding a new item [say a handbag], there is a Catalog Price Rule for 10% off handbags.

I want to exclude this new merchandise from the sale, but can't figure out how. I've tried a few different things, and nothing has worked. By category, some handbags need to be on sale but not all. Tried restricting by item number, no luck.

When managing the new product, I see on the tab settings there is a box for "Do not discount." That reads 0 by default. I've tried changing that too, but no luck.

Anyone have any advice out there?

Thanks-

rachel


texts: Magento2 : CRUD Module Add Button Not Showing

texts:
Starting with this sample, https://github.com/mageplaza/magento-2-sample-module, I'm trying to make a CRUD manager module.

I went through the sample and changed everything I could find that looked like it needed changing and now the Add button isn't showing:

There should be an orange button that says "Add New Vehicle"

Heres the file where I define the label:

/Block/Adminhtml/Post.php

<?php

namespace Ekko\FitmentManager\Block\Adminhtml;

class Post extends \Magento\Backend\Block\Widget\Grid\Container
{
    protected function _construct()
    {
        $this->_controller = 'adminhtml_post';
        $this->_blockGroup = 'Ekko_FitmentManager';
        $this->_headerText = __('Vehicles');
        $this->_addButtonLabel = __('Add New Vehicle');
        parent::_construct();
    }
}

Not sure what other files have to do with the button, but I'm pretty sure its not this one thats causing the problem.

For reference, this is what it should look like:


texts: One-Page-Checkout registration leads to an empty cart in CHROME (purchase and registration are successful)

texts:
Basically what it says in the title. If a guest chooses to register during the one-page checkout, when he clicks the final purchase button he gets redirected to an empty cart page instead of the success page ONLY when using Chrome. Everything works fine in Firefox and IE.

The purchase and the registration are still successful though, both the registration E-Mail and the purchase E-Mail are being sent.


texts:
My problem: when I add to compare product(or remove) messages not hides after I reload the page:

The product mytest has been added to comparison list.
The product marine diesel engine M2.02 has been added to comparison list.
The product marine diesel engine M4.17 has been added to comparison list.
The product marine diesel engine M2.02 has been removed from comparison list.
The comparison list was cleared.

I searching for that class, but don't find anything. Also I check is my Compare Module is default and it is.

Maybe someone had same problem, or know, what it could be? Thanks.


texts: How display "Only X left Threshold" when "Allow Qty Below 0 and Notify Customer" is selected?

texts: "Only X left Threshold" is display only if "No Backorders" is selected.


texts: customer_save_before is Not Called on External Script

texts:
I have an external script that adds a customer to Magento, and an observer for customer_save_before and adminhtml_customer_save_before, but it appears that they are not called using an external script:

<?php
require 'app/Mage.php';
umask(0);

Mage::init();

$x = Mage::getModel('customer/customer');
$x->setData('customer_firstname', 'FNAME');
$x->setData('customer_lastname', 'LNAME');
$x->setData('website_id', '1');
$x->setData('group_id', '1');
$x->setData('email', 'someemail@example.com');
//set password
//...
$x->save();

Do I need to dispatch the event manually? This works, however, if the customer is saved via admin.

Here's the event inside the global which works upon saving the customer via admin:

<global>
    <events>
        <customer_save_before>
            <observers>
                <company_module>
                    <type>model</type>
                    <class>Company_Module_Model_Observer</class>
                    <method>someMethod</method>
                </company_module>
            </observers>
        </customer_save_before>

        <!-- adminhtml_customer_save_before >
        </adminhtml_customer_save_before -->
    </events>
</global>


texts: URL Core Rewrite - more than one rewrite for one product

texts:
I would like to add more rewrites for a specific product.

For example I have
Product a - url: urlpath/product-original-path.html

I would like three rewerites

urlpath/product-old-path1.html
urlpath/product-old-path2.html
urlpath/product-old-path3.html

to http://website.com/product-original-path.html

I guess it isn't possible using core_url_rewrite. Any solutions? Extensions to solve that problem?


texts: How to use Javascript to display page messages

texts:
Is it possible to use JavaScript to display a page message?  I would like to display one when I receive an ajax response on a custom module I'm working on.

You can see an example of one of these messages after you save your user account info on the frontend.

I know I can build this markup with jQuery and add it to the page, but am wondering if Magento provides a better way of doing this.

I looked at Magento_Theme/js/view/messages and thought maybe I could include it as a dependency of my JavaScript module.  Setting the message in the jQuery cookieStorage API which Magento uses to retrieve the message info in Magento_Theme/js/view/messages.

define ([
    'jquery',
    'Magento_Theme/js/view/messages',
    'jquery/jquery-storageapi',
], function ($, messages) {
    'use strict';

    return function () {
        $.cookieStorage.set('mage-messages', [{type: "success", text: "custom message text"}]);
        messages();
    }
}

All though this approach did not work, even though I could see that the message info was retrieved in Magento_Theme/js/view/messages with

this.cookieMessages = _.unique($.cookieStorage.get('mage-messages'), 'text');

It was not displayed on the frontend.


texts:
I'm having this error when entering one certain category in frontend:

Exception #0 (Exception): Item (Magento\Review\Model\Review\Summary) with the same ID "519" already exists.

Any ideas what that could be about?


texts: magento 2.3.1 - How to sort product name, price in ascending order in search result page?

texts:
Below is my search result page sort by product name in result page.
Products are sorting by name by Z to A.

I want to show the products in A-Z order when user click Product Name sort By option.How can i do this?
in category page product sorting is working fine in A - Z.


texts: Error After Installing Website in magento 2 js

texts:
I just installed magento 2 and I come across a bug that won't let me get lost on my admin page

i use :
Nginx Php7.2 Varnish 4 and Percona Server on Debian 9

I believe the problem is in the version1577742505 / ... folder.

because it does not exist in my sftp


texts: In Products review, how do I set a hyperlink to a certain word? e.g. Click Here

texts:
How do I set a hyperlink to a customer's review for individual products to link to a external URL?
e.g. Click here to read more.
I want to add a hyperlink to "here".


texts: All tabs missing from Magento Admin Panel

texts: After installing the extension: magento-community/Beecoder_Beeshopy, and following the instructions, I no longer have any tabs in the Admin Panel.  I have checked the permissions on the js folder, they were correct however I still renamed the js folder and reinstalled it, but that didn't fix the problem. Magento 1.7.0.2.  Any ideas?


texts: Tracking E-commerce with google analytics isn't working

texts:
I try to track the sold products in Google Analytics. But none of the sales show up in the e-commerce overview in Analytics. But visits are tracked.

The code is added in configuration - > google api.  and e-commerce is enabled in analytics. For checkout we are using the iwd one page checkout module.

Anyone knows what could be the problem?


texts: How do I get the Meta Title from a category in Magento 2?

texts:
I would like certain categories to show a listing of subcategories above the products. My current template looks like this:

<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$category = $objectManager->get('Magento\Framework\Registry')->registry('current_category');//get current category
$subcats = $category->getChildrenCategories();
?>

    <?php foreach ($subcats as $subcat) : ?>
        <?php if ($subcat->getIsActive()) : ?>

                <a href="<?php echo $subcat->getUrl(); ?>" class="block-promo" title="<?php echo $subcat->getName() ?>"><?php echo $subcat->getName() ?>

        <?php endif ?>
    <?php endforeach ?>

I've tried replacing $subcat->getName() with $subcat->getMetaTitle(), hoping some hidden accessor would do its magic, but to no avail.

EDIT:

Following the answer provided, I created a new block:

use Magento\Framework\Registry;
use Magento\Framework\ObjectManagerInterface;
use Magento\Framework\View\Element\Template;
use Magento\Framework\View\Element\Template\Context;

class SubcategoryListing extends Template
{
    protected $_objectManager;
    protected $_registry;

    /**
    * @param Context $context
    * @param Registry $registry
    * @param ObjectManagerInterface $objectManager
    * @param array $data
    */
    public function __construct(
        Context $context,
        Registry $registry,
        ObjectManagerInterface $objectManager,
        array $data = []
    )
    {
        parent::__construct($context, $data);
        $this->_objectManager = $objectManager;
        $this->_registry = $registry;
    }

/**
    * Retrieve child store categories
    *
    */
    public function getSubcategoryListing()
    {
        $repo = $this->_objectManager->get('Magento\Catalog\Model\CategoryRepository');
        $category = $repo->get($this->_registry->registry('current_category')->getId());
        $subcategories = $category->getChildrenCategories();

        foreach ($subcategories as $subcategory) {
            yield $repo->get($subcategory->getId());
        }
    }
}

I then changed the template to:

<?php $subcats = $block->getSubcategoryListing(); ?>
<?php foreach ($subcats as $subcat) : ?>
    <?php if ($subcat->getIsActive()) : ?>
        <?php
            $_url = $subcat->getUrl();
            $_name = $subcat->getName();
            $_title = $subcat->getMetaTitle();
        ?>

                <a href="<?php echo $_url; ?>" title="<?php echo $_name ?>">
                    <?php echo $_title != '' ? $_title : $_name ?>

    <?php endif ?>
<?php endforeach ?>

This gave me the exact functionality I needed, plus it cleaned up the template quite a bit.


texts: Redirect customers to Home page/previous page after login/create account in magento 2 instead of Dashboard?

texts:
I am trying to redirect to user after login or creating account to either home page or previous page. My controller code is following it is not able to login or create an account.

<?php
/**
 *
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace PinkBlue\Redirect\Controller\Index;

use Magento\Customer\Model\Registration;
use Magento\Customer\Model\Session;
use Magento\Framework\View\Result\PageFactory;
use Magento\Framework\App\Action\Context;

class Redirect extends \Magento\Customer\Controller\AbstractAccount
{
    /** @var Registration */
    protected $registration;

    /**
     * @var Session
     */
    protected $session;

    /**
     * @var PageFactory
     */
    protected $resultPageFactory;

    /**
     * @param Context $context
     * @param Session $customerSession
     * @param PageFactory $resultPageFactory
     * @param Registration $registration
     */
    public function __construct(
        Context $context,
        Session $customerSession,
        PageFactory $resultPageFactory,
        Registration $registration
    ) {
        $this->session = $customerSession;
        $this->resultPageFactory = $resultPageFactory;
        $this->registration = $registration;
        parent::__construct($context);
    }

    /**
     * Customer register form page
     *
     * @return \Magento\Framework\Controller\Result\Redirect|\Magento\Framework\View\Result\Page
     */
    public function execute()
    {
        if ($this->session->isLoggedIn() || !$this->registration->isAllowed()) {
            /** @var \Magento\Framework\Controller\Result\Redirect $resultRedirect */
            $resultRedirect = $this->resultRedirectFactory->create();
            $resultRedirect->setPath('*/*');
            return $resultRedirect;
        }
        $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
        //$currentUrl = $objectManager->get('Magento\Framework\UrlInterface')->getCurrentUrl();
        $catalogSession = $objectManager->create('Magento\Catalog\Model\Session');
        $previousUrl = $this->_redirect->getRefererUrl();
        $catalogSession->setCustomerRedirectUrl($previousUrl);

        /** @var \Magento\Framework\View\Result\Page $resultPage */
        $resultPage = $this->resultPageFactory->create();
        return $resultPage;
    }
}


texts: Magento 2 customer login check code not working

texts:
I was using magento 2.1.6 previously and there I used

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$customerSession = $objectManager->get('Magento\Customer\Model\Session');
if($customerSession->isLoggedIn()) {
   // customer login action
}

Which worked perfectly there and when I upgrade to Magento 2.1.9, the code  is not working anymore.


texts: How to show Size Swatch Option in Reverse Order in magento2

texts:
Swatch option coming in asc order but i want to show in reverse order!

  Is any way for that?


texts: Magento 2 Running on Plesk 12.5 and Older versions of PHP

texts:
I am currently trying to install Magento 2 on a server running php 5.4 and Plesk 12.5.  My hosting company advises against upgrading the php version to support Magento 2 since it could potentially break Plesk. Instead they recommended to use Plesk's native support for multiple versions of PHP.

With Plesk I setup and installed PHP 5.6.14 to support Magento 2. I ran a test and the 5.6.14 is running fine on the domain I selected.  However, running composer install still detects the older version of php since it is the server default.

Does anyone have any experience getting around this issue? All of the PHP files detect and run the updated version of PHP but composer install script and even just running php -v detects the outdated version of PHP.

How could I get Magento 2 up and running on this server?

Thanks


texts:
After migration From Magento1 to Magento2 Group Product Price Missing

I have followed below step Not solve this issue plz help me

Step 1 Run query in M1 DB and download resule csv file (without coloumn name)
sql:

SELECT cpe.`entity_id`, cq.`qty`,cpgp.`website_id`, cpgp.`all_groups`,cpgp.`customer_group_id`,cpgp.`value` FROM `catalog_product_entity` as cpe RIGHT JOIN `catalog_product_entity_group_price` as cpgp ON cpgp.`entity_id` = cpe.`entity_id` LEFT JOIN `cataloginventory_stock_item` as cq on cq.`product_id` = cpe.`entity_id` WHERE cpe.`entity_id` IS NOT NULL

Step 2 import this csv file in M2 db with specific coloumn order (entity_id,qty,website_id,all_groups,customer_group_id,value)


texts: Display the product image in shipment email template in magento2

texts:
I need to display the  the product image in shipment email template.

$_item = $block->getItem();
$productId = $_item->getProductId();
$objectManagerHere = \Magento\Framework\App\ObjectManager::getInstance();
$product = $objectManagerHere->get('Magento\Catalog\Model\Product')->load($productId);
$productImage = $this->helper('Magento\Catalog\Helper\Image')->init($product, 'category_page_list', array('height' => '150' , 'width'=> '150'))->getUrl();
<img width="65" src="<?= $productImage ?>"
            alt="<?= $block->escapeHtml($_item->getName()) ?>"/>

But i gets only placeholder image url.....How to get the image url


texts:
I can't figure out why Items ordered is not shown in my orders. I'm running Magento 2.4. I can see them in my invoice. Basically everywhere but in my order.
I see that it does count the number of items, due to the number of  on inspection.

Does anyone have a clue as to why this is ?
Thanks in advance.


texts: Call to a member function getWsdlContent() on a non-object SOAP V2

texts:
I'm working on a site on Magento 1.9.2.0. I can connect to the SOAP API but I cannot connect to SOAP V2. When I try and access it, I get the following error:

Fatal error: Call to a member function getWsdlContent() on a non-object in /chroot/home/examplesite/examplesite.com/html/app/code/core/Mage/Api/Model/Server/V2/Adapter/Soap.php on line 67

I have a fresh test install on our local server and the code is exactly the same, so I'm not sure exactly where this is failing or how to fix it. The end result is the infamous "Cannot load external entity" error.

The server is using PHP 5.4.45 based on another StackOverflow's suggestion that the latest version of PHP would resolve the issue.

I need to be able to access SOAP V2 in order to integrate with our marketing company. Our server company is Nexcess and they are not willing to assist because they state it's an application error; any help is appreciated!


texts: Add product to wishlist programatically in Magento 2

texts: When we create a new product at the same time I want that product to add into wishlist. How can this be done in Magento 2? Can somebody help me?


texts: Considering using NGINX to serve magento- I'm not concerned about implementation details, but want to know if anyone has good (or bad) things to say about it. Also of particular interest is using NGINX to load balance magento.


texts: I want to remove the top menu from header and include into left panel. How to I do that?. And also is there a way to do that without xml?


texts: Generate invoice automatically when I create shipment?

texts:
I want to generate invoice automatically when I create the shipment for the order manually.
How can I create a system like this. Does anyone know how to do this?
Any assistance will be helpful.


texts: How to copy the customer entity's taxvat value to the customer address entity's vat id

texts:
How can I copy the value in customer entity's taxvat field to the same customer's customer address entity's VAT ID field? It has to take into account that customer can have many addresses, and I want the same taxvat to be copied to all of the addresses.
I guess there are several ways to do this. With MySQL, with export-import functionality and with code.


texts: Is there a way of pulling off a report from M2 that shows stock against each SKU - specifically those with catalog view

texts:
I would like to pull off a report to show which SKU's are in stock on Magento - specifically the main SKU's not by size.
Is this possible?


texts: Magento 2 - Compare & Wishlist hide when inactive

texts: Is there a way to hide the Compare and Wishlist blocks on the front-end (in the navigation) when they are not in use?


texts: add price of each item to customer transaction email

texts:
Thank you in advance for any help!

I am wondering how to show the price of each item in the customer thank you for your order email.
Right now it displays like this
Item name then the sku number then the qty then the subtotal

Using the variable
{{layout area="frontend" handle="sales_email_order_invoice_items" invoice=$invoice order=$order}}

I need to display individual price of each item not just sub total of the entire order.

Any ideas?

Thanks


texts: Adding flat rate to UPS shipping in Magento 2.3.5

texts:
We've just upgraded to Magento 2.3.5 and we want to offer flat rate shipping. Is there a way to setup that under the UPS configurations? We ship everything through UPS. Not sure we can use the out-of-the-box Flat Rate that comes with Magento as (Magento) connects to SAP (our POS) via Mulesoft.
Any suggestions?
Thanks!


texts: Changing position of the attributes of Configurable Product

texts:
I have three configurable options and when I change their position in catalog_product_super_attribute they get reverted to 0 when any change is made to the product they are for in the Magento admin.

Please advise on how to make this position change permanent.


texts:
Suddenly yesterday when I navigated to my home page, the menu bar does not drop down subcategories, the cart is not dropping down nor the compare function. The slideshow has dissapeared also and the currency switcher. The product slider and images are not loading either. They are shown as a broken image and only the tile, review and price are shown along with add to compare and wishlist buttons.

All other categories and product pages with the above functionality are working but it's only cms pages and the home page.

The below are the errors in the console:

Uncaught ReferenceError: Catalog is not defined www.xxxxxx.com/:2041

Uncaught ReferenceError: Catalog is not defined (index):2

I have restored the website from two restore points and have gave me the same issues?

As I said the site was fine just a day ago and suddenly these problems.

Can anyone point me to a workaround or possibly an indication why this has happened?

I have only been adding products and that is it, nothing else.


texts: Magento shows 404 error page on a product on one PC

texts:
This is a weird problem. We have an item on the test server showing a 404 error page when you put in the URL key after the root URL (eg. www.mystore.com/url_key), however on our local machines they don't do this. I've even restored my local database so it's identical to the test server and it's not getting a 404.

The URL rewrites are identical, both my local machine and the test server has full page cache on.

Now, we could fix it by reindexing but we want to know the cause as to why the test server is showing a 404 while a local WAMP server doesn't.


texts:
I am joining core_store_group with my custom table called foundation and I am Getting values also. My custom table contain 3 fields
ID, STORE_ID, EMAIL
Where ID is primary key and store_id is references to group_id of core_store_group table.

$collection = Mage::getModel('core/store_group')->getCollection()
                ->addFilter('website_id', 2);
        $collection->getSelect()->join(
            array('foundation' => $collection->getTable('foundation/foundation')),
            'main_table.group_id = foundation.store_id');
        $this->setCollection($collection);
        parent::_prepareCollection();
        return $this;

But whenever I foundation table contains records with same store_id
example

id  store_id    member_email
1   2        man@gmail.com
2   11       man@gmail.com
3   2        man@gmail.com

I am getting error

  Item (Mage_Core_Model_Store_Group) with the same id "2" already exist.

How can I get the records without error and I need to fetch the count of email id's present in the same store.


texts: Time attribute in custom product attributes

texts:
I'm adding a time attribute like this

 $installer->addAttribute('catalog_product', 'valid_start_time', array(
    'type'                       => 'time',  // not correct
    'label'                      => 'Start Time ',
    'input'                      => 'time',
    'required'                   => false,
    'visible'                    => true,
    'searchable'                 => false,
    'filterable'                 => false,
    'comparable'                 => false,
    'used_for_sort_by'           => false,
    'is_configurable'            => false,
    'visible_on_front'           => false,
    'visible_in_advanced_search' => false,
    'used_in_product_listing'    => false,
    'global'          => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
    'note'            => '',
    'group'            => 'Valid'

    ));

Unfortunately,  while there is a nice input for 'time', there is no correcponding type. Replacing time type with 'text' or 'datetime' does not help either. What should be used there, or is some more complex solution required?


texts:
i have setp up magento 2.2 on apache server , my static files url are like :

<script  type="text/javascript"  src="http://example.com/pub/static/frontend/Magento/luma/en_US/requirejs/require.js"></script>
<script  type="text/javascript"  src="http://example.com/pub/static/frontend/Magento/luma/en_US/mage/requirejs/mixins.js"></script>
<script  type="text/javascript"  src="http://example.com/pub/static/frontend/Magento/luma/en_US/requirejs-config.js"></script>

and clicking  on those (static files ) it shows "Whoops, our bad..."

Now when i remove  code from both  .htaccess files (outside and inside pub folder ) it started working fine , i want to know why this line is causing issue .

<Files *>
        <IfVersion < 2.4>
            order allow,deny
            deny from all
        </IfVersion>
        <IfVersion >= 2.4>
            Require all denied
        </IfVersion>
    </Files>


texts: conditionally change layout template for catalogsearch

texts:
What I need to do is, if a person search for a product then if products found the layout need to be page/2columns-left.phtml with layered navigation but if there were no results then its layout should be page/1column.phtml and it will display new products, popular products.

One of the solution I came around is to override the CatalogSearch/ResultController's indexAction() where I can get whether $query->getNumResults() is 0 or not. On that basis how could I load layout differently?

If there's another better approach to this, that would be helpful too.


texts: Magento 2, how to change the the word `IN STOCK` in product description?

texts: Using Magento 2.2, Front-end, Product-Calalog. I want to rename the word IN STOCK to other word.


texts: Translating address label issue in Magento 1

texts:
This is my string, which I would love to translate:

<input type="text" placeholder="<?php echo $this->__('Street Address %s', $_i); ?>" title="<?php echo $this->quoteEscape($this->__('Street Address %s', $_i)) ?>" name="billing[street][]" id="billing:street<?php echo $_i ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet($_i)) ?>" class="input-text <?php echo $_streetValidationClass ?>" />

These are my tries from my theme csv file:

"Mage_Customer::Street Address 1","RUE"
"Mage_Customer::Street Address 2","Numéro"
"Mage_Customer::Street Address 3","Boîte"
"Mage_Customer::Street Address 4","Addition"
"Mage_Checkout::Street Address","RUE"
"Mage_Checkout::Street Address 2","Numéro"
"Mage_Checkout::Street Address 3","Boîte"
"Mage_Checkout::Street Address 4","Addition"
"Street Address","RUE"
"Street Address 2","Numéro"
"Street Address 3","Boîte"
"Street Address 4","Addition"

"Street Address %s","RUE"

Interesting about using the last one. It translates me all of the address labels into RUE. Inline translations were not used. The core_translate table is empty. Any other idea how should I translate my strings ?
Thank you


texts: problem in retrieving custom customer attribute

texts:
I created a custom attribute for customer module using below install script:

<?php
$installer = $this;

$installer->startSetup();

$setup = new Mage_Eav_Model_Entity_Setup('core_setup');

$entityTypeId     = $setup->getEntityTypeId('customer');
$attributeSetId   = $setup->getDefaultAttributeSetId($entityTypeId);
$attributeGroupId = $setup->getDefaultAttributeGroupId($entityTypeId, $attributeSetId);

$installer->addAttribute("customer", "mobile",  array(
    "type"     => "varchar",
    "backend"  => "",
    "label"    => "Mobile Number",
    "input"    => "text",
    "source"   => "",
    "visible"  => true,
    "required" => false,
    "default" => "",
    "frontend" => "",
    "unique"     => false,
    "note"       => "Mobile Number"

        ));

        $attribute = Mage::getSingleton("eav/config")->getAttribute("customer", "mobile");

$setup->addAttributeToGroup(
    $entityTypeId,
    $attributeSetId,
    $attributeGroupId,
    'mobile',
    '999'  //sort_order
);

$used_in_forms=array();

$used_in_forms[]="adminhtml_customer";
$used_in_forms[]="checkout_register";
$used_in_forms[]="customer_account_create";
$used_in_forms[]="customer_account_edit";
//$used_in_forms[]="adminhtml_checkout";
        $attribute->setData("used_in_forms", $used_in_forms)
                ->setData("is_used_for_customer_segment", true)
                ->setData("is_system", 0)
                ->setData("is_user_defined", 1)
                ->setData("is_visible", 1)
                ->setData("sort_order", 100)
                ;
        $attribute->save();
$installer->endSetup();

new mobile attribute created in eav_attribute table. But while retrieving in customer edit form using below, mobile attribute is missing there.

<?php
     Mage::log(print_r($this->getCustomer()->getData(), true), null, 'customer.log');
?>

Below is the output I got:

(
            [entity_id] => 23
            [entity_type_id] => 1
            [attribute_set_id] => 0
            [website_id] => 1
            [email] => pop@pop.com
            [group_id] => 1
            [increment_id] =>
            [store_id] => 1
            [created_at] => 2015-10-18T11:56:26+04:00
            [updated_at] => 2015-10-18 11:56:26
            [is_active] => 1
            [disable_auto_group_change] => 0
            [created_in] => Default Store View
            [firstname] => Anto
            [lastname] => Jaskaran
            [password_hash] => 7bda12fd6b2ecea227d55f088f5b653e:FBVp10XN6FZWBXZ8v0waWazWAw5KYreX
        )


texts: Why don't bound params work in an IN statement?

texts:
In my custom resource model, I'm trying to use fetchAssoc to get some data from a table. I'm trying to quote an array into an IN statement, and I've noticed that it doesn't work (returns an empty array) when using named bindings. However, using the second argument of $select->where() to quote the values in works fine.

I'm just curious why this doesn't work...

$bind = array(
    'expert_id' => $expert_id,
    'product_id' => $adapter->quote($product_id),
);

//Debug:  Array ( [expert_id] => 1, [product_id] => '3032', '3091', '3132' )

$select = $adapter->select()
    ->from($this->getTable('namespace_module/table'), '*')
    ->where('product_id IN(:product_id)')
    ->where('expert_id = :expert_id');

// Debug: SELECT `namespace_module_table`.* FROM `namespace_module_table` WHERE (product_id IN('3032', '3091', '3132')) AND (expert_id = :expert_id)

but this does?

$bind = array(
    'expert_id' => $expert_id,
);

//Debug: Array(  [expert_id] => 1 )

$select = $adapter->select()
    ->from($this->getTable('namespace_module/table'), '*')
    ->where('product_id IN(?)', $product_id)
    ->where('expert_id = :expert_id');

// Debug: SELECT `namespace_module_table`.* FROM `namespace_module_table` WHERE (product_id IN(:product_id)) AND (expert_id = :expert_id)

Is it a general rule that you can't use bound params in an IN statement? I've seen this and this, but I thought Magento's $adapter->quote method was supposed to take care of turning the array into a list.


texts:
I've spent a few hours now trying to find this here on Magento StackOverflow.
By default in the RWD theme, the Details tab below the short product description is hidden and in an <h2> tag.

The hidden part is in the CSS and I don't mind it being hidden, but I do mind it being an <h2>. As SEO teaches us, a layout/design item shouldn't be a heading of any kind.

Now I searched my behind off to find the item both in the template files or the css, but I cannot find where it gets <h2> appointed and how to change it to <span> like all the other tabs in that space.

Product page: https://www.medicinalewietolie.com/cbd-olie-raw-5-naturel-10ml-medihemp.html

Code snippet here: https://imgur.com/a/BaT3bQB


texts: Move recently viewed product or completely remove it

texts:
Magento has a great feature to show recently viewed product, but now I need to move this element (recently viewed product)  to exactly on the top of footer.

I have no clue about how to show/hide or move this recently viewed product to the another area on the page?

Any help would be very appreciated.


texts: Magento 2 - Move the afterMethods item (Discount) before Place Order Button

texts:
I would like to move the afterMethods xml item which contains the Discount Code and Gift Card code under the billing-step in the module-checkout/view/frontend/web/checkout_index_index.xml, so that it is displayed before the Place Order Button on checkout page.

Basically I want to have the Place order Button as the last component on the page.


texts: Child product are being displayed on search even its visibility is set to "NOT VISIBLE INDIVIDUALLY"

texts: I have some configurable products on our site which is developed on Magento. For parent customers, we have set the visibility to catalog search , while for child products we have set it to Not searched individually. But the issue is that Child products are still being searched . Basically only Parent product should have been displayed on search. We are using elastic search.


texts: Why is size of a collection greater than the number of products in that collection?

texts:
In toolbar.phtml there is $block->getCollection()->getSize() which returns 67.

However if I do count($block->getCollection()->getData()) the result is 12.

The layered navigation is also using the larger number.
The issue is on a page with a few bundle products on, so that may be a contributing factor.

Then when you go to the second page there are no results.

I am using the Wyomind_Elasticsearch and Wyomind_Core mode as the indexer for product.

Why is this happening?


texts: checking if a coupon has already been applied to a product

texts:
I have a plugin in which once the user shares the page using facebook share button, i need to remove the fb button and display a message that the ' message is already shared', but how do I implement this functionality server side?

user shares the product page.
the page removes the fb button and shows ' page already  shared '
but this only need to be done for that particular product and not all the products, hence disabling the fb button on server side is not an option.


texts: What does the search function in Magento actually search for?

texts:
When I do a search for 999 I get 11 items, 10 of which does not have 999 in their name, at first I thought maybe the search also looks at their descriptions but there is no 999 in the other 10's descriptions either.

So I was wondering what other attributes the search function in magento actually looks at to bring up the results.

I should also note that all these items are configurable products and the simple products associated with them have roughly the exact same data but have different SKUs and their names also have their size in them (though none of the sizes are 999)


texts:
SOLUTION : user this code
what is the best solution : for that is this correct or is there any other solution


texts: How to override some specific product function?

texts:
Is it possible to override one specific product function? I need to write a custom function for the getImage function.

Is there a way to do that in Magento 2?


texts: Magento2 new grid system and why exists old style GRIG

texts:
Magento2 has new grid system throught ui component example:

  app/code/Magento/Catalog/view/adminhtml/ui_component/product_listing.xml

And why exists old style for grid like:

  app/code/Magento/Catalog/Block/Adminhtml/Product/Grid.php

Guys any fresh ideas?


texts: Changes to files takes 10-20 minutes to register

texts:
When I make changes to and .php or .phtml files in my Magento directory it is taking at least 10 minutes for these changes to take affect (making development difficult).

I have cleared /var/cache and /var/session which does not help, I have disabled the compiling which has not helped, and I have cleared my apc cache, all to no avail.

I assume there is more caching somewhere, any idea on what?


texts: Magento 2x web rest api: Anyone can tell me about endpoint to get order status from store configuration?

texts: I wonder if there is endpoint to get orderstatus by using api in magento 2x. As I check there is issue that created since 2016 but closed because report in github link


texts:
I am trying to install a French pack for my store and I am on Magento 1.8. The default language for my store is English.

And this is link of the French pack that I found,

http://www.magentocommerce.com/magento-connect/magento-community-modules-french-france-language-pack.html

But it does not work on my store.

Does this pack compatible with Magento 1.8?

What can I do to have a French version for my store if this pack does not work?


texts: What are the open source tools to load test magento application. If I want to carry out an investigation on load testing issues in magento applications what are the Principles and methodology that I should Follow. Does the Load testing technique differ from other application products?


texts:
I'm having this below error continuously on the system.log

  [2019-05-07 11:31:30] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:30] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:32] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:33] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:35] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:37] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:39] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:41] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:42] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:43] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:44] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:46] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:47] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:48] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:49] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:49] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:52] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:53] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:55] main.CRITICAL: Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1412" already exists. [] []
  [2019-05-07 11:31:56] main.INFO: Reference to undeclared plugin with name 'products_grid_collection'. [] []

If i delete that category ID. The same error is coming with another category ID.

Please Anyone help me to clear this issue.


texts: something is wrong in the code. theows an error->getNodeChildrenData() must be an instance of Varien_Data_Tree_Node,on line 18

texts:
<?php
class Ab_CategoryObserver_Model_Observer{
  public function updateTopMenuJson(Varien_Event_Observer $observer){
      $_helper = Mage::helper('catalog/category');
      $_categories = $_helper->getStoreCategories();
      $recursionLevel = '';
      $storeId = '';
      $node = '';
      $categoryTreeData = $this->getCategoryTree($recursionLevel, $storeId);
      $categoryData = $this->getNodeChildrenData($node);

      $arr = json_encode(getCategoryTree(3));
      echo "<pre>";print_r($arr);
      echo("<script>console.log('PHP: ".$arr."');</script>");
      file_put_contents("cat_node.json", $arr);
    }

    protected function getCategoryTree($recursionLevel, $storeId = 1)
    {
        $parent = Mage::app()->getStore()->getRootCategoryId();
        $tree = Mage::getResourceModel('catalog/category_tree');
        /* @var $tree Mage_Catalog_Model_Resource_Category_Tree */

        $nodes = $tree->loadNode($parent)
            ->loadChildren($recursionLevel)
            ->getChildren();
        $tree->addCollectionData(null, false, $parent);

        $categoryTreeData = array();
        foreach ($nodes as $node) {
            $categoryTreeData[$node->getData('entity_id')] = $this->getNodeChildrenData($node);
        }

        return $categoryTreeData;
    }

    protected function getNodeChildrenData(Varien_Data_Tree_Node $node)
    {
        $categoryData = array(
          'title' => $node->getData('name'),
          'url'   => $node->getData('url_key'),
          'id'    => $node->getId(),
          // 'mega_menu1'=> $node->getData('mega_menu')
          'mega_menu'=> 'false'
        );

        foreach ($node->getChildren() as $childNode) {
          if (!array_key_exists('children', $categoryData)) {
              $categoryData['mega_menu'] = 'true';
              $categoryData['children'] = array();
          }

            $categoryData['children'][$childNode->getData('entity_id')] = $this->getNodeChildrenData($childNode);
        }
        return $categoryData;
    }
} // End of Class
?>


texts: When I include InsertListing in a form in admin fieldset, I get a vertical scrollbar

texts: When I include insert listing in a fieldset in an admin form, I always get a vertical scrollbar like in the image. I think it's a problem with the width of the container, but I don't know how to fix this problem.


texts: AJAX call to admin controller not working error code 302 found magento 2

texts:
here is my code response is 302 no found but when i check this controller directly by url it is working fine

jQuery(document).ready(function() {
            var customurl = "<?php echo $baseUrl.'admin/pricingoption/option/editfieldphtml'?>";
            jQuery.ajax({
                url: customurl,
                type: 'POST',
                dataType: 'json',
                data: { },
            complete: function(response) {
                // console.log(response);
                console.log('bxhgjkhgfdsfghjkhgfd');
                },
                error: function (xhr, status, errorThrown) {
                    console.log('Error happens. Try again.');
                }
            });
        });

ADDITIONAL INFO:
I am getting this error because of POST call i dont know why it is behaving like such on admin side so i have to change my ajax call to GET and it works fine


texts: Extract feature of custom tab form Porto theme: Magento 2

texts: Basically I want to add a custom tab feature which already exists in Porto theme to my custom module in Magento 2.


texts:
Regarding Customize Category Url like :

storename.com\category_id+category_name+category_attribute

  I read before :  "If you have a small amount of customization
  necessary, the URL rewrite functionality can be a consideration.Beyond
  that, any custom URL structure will need a custom router. Magento 2
  makes it very easy to configure a custom router for your application"
  JOSEPH MAXWELL

So I should use Router Or Url Rewrite in this case ?


texts: Add custom product's attributes to products grid in magento 2

texts:
I have added custom attributes for products and used the following code to show them in the products grid.

/Namespace/Module/view/adminhtml/ui_component/product_listing.xml
<?xml version="1.0" encoding="utf-8"?>
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<columns name="product_columns" class="Magento\Catalog\Ui\Component\Listing\Columns">
    <column name="plenty_item_id" sortOrder="11">
        <settings>
            <filter>textRange</filter>
            Plenty Item Id
            <sortable>false</sortable>
        </settings>
    </column>
    <column name="plenty_item_variation_id" sortOrder="12">
        <settings>
            <filter>textRange</filter>
            Plenty Variation Id
            <sortable>false</sortable>
        </settings>
    </column>
</columns>

Fields are showing in the grid but now I need to add values. I followed some tutorials like the below one.

https://inchoo.net/magento-2/add-custom-columns-magento-2-products-grid/

After going through the tutorial I think there can  be other way as I have added a custom field to orders grid by following this link

https://magento.stackexchange.com/questions/134754/magento-2-how-to-add-a-new-column-to-orders-grid

So I was thinking If I can add the values to products grid using the method I used for order or do I need to follow the same link that I have provided. Someone can advise the right way of doing it or any link that I can follow to achieve this.


texts: Can't reindex Catalog Category/Product Index via admin

texts: I have a Magento Enterprise 1.13 installation that won't allow me to trigger reindexing the Catalog Category/Product Index and other indexes through the admin.  The "Reindex Data" Action is not available even though it is set to Update on Save. It does seem to be automatically reindexing on save but does not on import


texts: Magento 2 A customer with the same email already exists in an associated website error

texts:
I'm stuck in a weird problem.

Everytime I try to create an account and add an address to that account programmatically I get an error called

A customer with the same email already exists in an associated website

This is my code for adding shipping and billing address to customer.

$customer->save();
        $customer->sendNewAccountEmail();
        //$customerId = $customer->getId();
        //Address info

         $customerAddress = $this->customerFactory->create()->setWebsiteId($websiteId)->loadByEmail($customer_email);
         $customerId = $customerAddress->getId();

         $address = $this->addressDataFactory->create();
         $address->setFirstname($parameters["first-name"])
            ->setLastname($parameters["last-name"])
            ->setCountryId("US")
            //->setRegionId("1")
            //->setRegion("")
            ->setCity('n/a')
            ->setPostcode($parameters["zip"])
            ->setCompany('n/a')
            ->setCustomerId($customerId)
            ->setStreet(['n/a'])
            ->setTelephone($parameters["phone"])
            >setIsDefaultBilling(1)
            ->setIsDefaultShipping(1);

        $this->addressRepository->save($address);

Of course I'm adding differnt emails everytime I run this controller, but for some reason it keeps telling me that the email is already associated with another customer.

Please help


texts: How to add span tag in wysiwyg editor magento 2.3.x

texts:
I just wanted to see is it possible to do add a custom text format as SPAN tag in Magento wysiwyg editor.
The current options we get is paragraph/ heading 1-6 I want to add span there.
Could anyone help me or give me some guide to achieve this.


texts: How to get Custom HTTP header in Magento2 controller?

texts:
I'm accessing my controller via postman tool (Postman)

I've passed custom header as shown in image and trying to access it in controller through this code:

$this->_response->getHeader('APP_ID');

but it returns no data. Please Help.


texts:
I have installed magento2 in fedora 23.

 Your Store Address:
      http://magento2xxxxxxxx.com/
 Magento Admin Address:
      http://magento2xxxxxxxx.com/admin/

After install I load this URL Browser says Domain not found Problem both front end and admin page.

I give a permission:

chmod -R 777 /var/www/html/magento2/
chown -R apache:apache /var/www/html/magento2/

Suggest me How to solve this problem.


texts: Magento 2 V1/Shipment API getParentItem on null

texts:
I am using postman the rest api to create shipping:

http://myMagento/rest/default/V1/shipment

POST:

{
  "entity": {
    "order_id": 5873,
    "shipment_status": 1,
    "store_id": 1,
    "total_qty": 3,
    "items": [
      {
        "parent_id": 5873,
        "price": 4.99,
        "product_id": 3964,
        "row_total": 3.49,
        "sku": "2457-0000",
        "weight": 1.25,
        "order_item_id": 3964,
        "qty": 3
      }
    ],
    "tracks": [
      {
        "order_id": 5873,
        "weight": 1.25,
        "qty": 3,
        "description": "Tracking Updated",
        "track_number": "123456",
        "title": "DHL",
        "carrier_code": "DHL"
      }
    ],
    "comments": [
      {
        "is_customer_notified": 1,
        "comment": "Order Completed",
        "is_visible_on_front": 1
      }
    ]
  }
}

Can someone help with the above it creates the shipping fine but when click action view the error shows:
Is this something to do with parent_id inside items ? what would be the parent_id here?

Fatal error: Uncaught Error: Call to a member function getParentItem()
on null in
.../vendor/magento/module-shipping/view/adminhtml/templates/view/items.phtml:19


texts:
Magento has a pretty serious bug via soap, and they have a patch for it.

When I run the patch via SSH, I get an error

Here is the patch I'm referring to:
http://www.magentocommerce.com/knowledge-base/entry/ce19-later-release-notes#ce19-patches-soap

When I run the patch

SH patch-file.sh

I get the following error:

patch: **** malformed patch at line 258:

Line 258 is this:

+<?php

Anyone have a solution for this?


texts:
I want text in
 tag to match page title, but without store prefix.

I'm getting page title like so:

    <?php echo $this->getLayout()->getBlock('head')->getTitle(); ?>

How can I get page title without store prefix, or how can I retrieve store prefix option?

Thank you!


texts: Guest customer is redirected to login page after add product to cart

texts:
I want to enable guest checkout Yes. So if customer is not logged in then also he can redirected to cart page.

For this I tried to change value of Allow Guest Checkout to Yes at System > Configuration > Sales section > Checkout > Checkout Options

But there is not effect.

I am using magento 1.9.0.1


texts: how can i show group attribute name in product page?

texts:
i am using magento 1.9.1.1
i am showing attributes in product page but that list without showing attribute's group name
how can i show Group attribute name with that attributes ?


texts: Magento 2: admin ui-component tab view from issue

texts:
In admin ui-component in a custom module, when I use page layout admin-2columns-left and

    <layout>
        <navContainerName>left</navContainerName>
        <type>tabs</type>
    </layout>

in ui component form and commenting as

<!-- <item name="template" xsi:type="string">templates/form/collapsible</item>-->

I got no data in edit mode. But when do reverse with using a single-column page layout, everything is fine.
Where I am doing wrong? Is it related to the field source issue? Because I use in form source as

<item name="source" xsi:type="string">custom</item>

for all field.


texts:
Every once in a while this strange bug occurs. After all the desired products are added to the cart, on the checkout page the calculations don't make sense at all (see attached screenshot).

The tax amount and subtotal both seem to be doubled, resulting in way too high of a Grand total!

When ordering the same combination of products another time, suddenly the right calculation is used and everything seems to be working fine.

I'm using Magento 1.7.0.2 and try to avoid updating to 1.8.1 during high season, so do you have any thoughts on how to fix this strange bug? No further price rules or discounts are set into place...

All support is highly appreciated!

Thanks in advance


texts: Magento2 stop emails when order status is 'pending payment'

texts: I have a scenerio where emails are getting fired when order is in 'pending payment' status, how can I stop them?


texts:
We keep getting search terms relating to an SQL Injection. It is definitely a bot because it is the exact same keywords week on week.

Is there anyway to maybe see the IP where these bots are coming from and block them? I keep deleting the terms from the backend but it is becoming tedious.

An example search term is something line: bed jcb 1=1 or beNCHMaRK(MD5,5555555555)

Our website is fully patched and we have restricted the amount of letters which can be entered in our search.

Thanks you.

Our magento version is 1.8.1.0


texts:
in my store magento 1.9.1 if buy a product not send email, but normal contact form function , i have follow this guide New order email confirmation not being sent

and after this have solved for email confirm order

i changed the line

if ($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue) {

with this:

if (false /\*$this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue\*/) {

after this have also test change :

if ($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue) {

with:

if (!($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue)) {

in every cicostance with this code solved my problem

but after changed this my cotact form not function , if click send compare new white page with this error:

Parse error: syntax error, unexpected '*', expecting identifier (T_STRING) in /home/lecolartga/www/app/code/core/Mage/Core/Model/Email/Template.php on line 407

how solve this ??


texts: How to call .phtml file for email template?

texts:
I'm designing template from

  "Magento_Sales/templates/email/order_update/statusinfo_guest.phtml"

{{template config_path="design/email/header_template"}}

{{trans "%order_status" order_status=$order.getFrontendStatusLabel() |raw}}

{{template config_path="design/email/footer_template"}}

and i called in backend like

 {{block class='Magento\\Framework\\View\\Element\\Template' area='frontend' template='Magento_Sales::email/order_update/statusinfo_guest.phtml'  order=$order}}

When i change sales order status i'm getting email  like

What i do wrong? Please let me know


texts:
I'm a little bit confusing the Difference between Magento v2.3.3 and Magento v2.3.3-p1?

Can someone help me on this?


texts: How to add a green border if validation is completed when submitting the form

texts:
Magento 2 has basic validation if the field is not valid.

How to add custom validation to the checkout page which will add a green border and an inscription that notifies the user of a successful validation.


texts:
I'm trying to find where I change the text of the mobile menu. I want to change the Home/Account section to Home/Accounts & info.

Any suggestions of where I should be looking to edit the file?


texts: Country of Manufacturer system attribute how do I export the ISO code in a dataflow export?

texts:
With the system attribute country_of_manufacture i'm told that the actual data that is there is the 2 char ISO code but when I come to export a product the actual data that comes out is the full country name.

What I'm wanting to do is when I export it outputs the 2 char ISO country code

The reason for this is that I'm going to be using linnworks for multi channel selling and Amazon use the ISO code so it would be easier for me when i import into linnworks that I can set that as one of the attributes.

I've tried setting a new attribute (called country_of_manufacture_iso) and have set the Admin field as (for example) CL and the English to Chile which does work BUT it means that CL is what is shown in admin (whereas I would want it to say Chile)


texts: Magento 2 WYSIWYG Media image directive using admin url

texts:
Why is magento 2 creating directives for media images using the admin url?

for example when i add an image on category page WYSIWYG it adds

but then magento parses it for frontend and is like this

because its linking to admin the only way it will load on browser is if you are logged in to the admin. This also poses a security issue because it is disclosing the admin path on frontend.

I looked in vendor/magento/module-cms/Helper//Wysiwyg/images.php and looks like the function getImageHtmlDeclaration() generates this

   public function getImageHtmlDeclaration($filename, $renderAsTag = false)
    {
        $fileurl = $this->getCurrentUrl() . $filename;
        $mediaUrl = $this->_storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA);
        $mediaPath = str_replace($mediaUrl, '', $fileurl);
        $directive = sprintf('{{media url="%s"}}', $mediaPath);
        if ($renderAsTag) {
            $html = sprintf('', $this->isUsingStaticUrlsAllowed() ? $fileurl : $directive);
        } else {
            if ($this->isUsingStaticUrlsAllowed()) {
                $html = $fileurl; // $mediaPath;
            } else {
                $directive = $this->urlEncoder->encode($directive);
                $html = $this->_backendData->getUrl('cms/wysiwyg/directive', ['___directive' => $directive]);
            }
        }
        return $html;
    }

I tried to use static urls for media but still no use so the only work around I can think of is to edit this function to use frontend url instead of backend/admin

any help on this would be very much appreciated :)


texts:
I'm getting this error when I hit the front end. Couldn't able to find any solution regarding this.

  1 exception(s): Exception #0
  (Magento\Framework\Config\Dom\ValidationException): Element 'block',
  attribute 'remove': The attribute 'remove' is not allowed. Line: 745

Thanks for any help in advance


texts:
I disabled Magento cache before I began to work on this.

I can see my module is visible in "System/Configuration/Advance/Disable Modules Output" listing.

But if I call this module as http://localhost/mag/index.php/mymodule/index I get 404 Not Found error.

Can you please point out where I'm doing wrong here? I need to understand why.

Thanks in advance

Here are my codes

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

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <modules>
        <Mycompany_Mymodule>
            <version>0.1.0</version>
        </Mycompany_Mymodule>
    </modules>
    <frontend>
        <routers>
            <mymodule>
                <use>standard</use>
                <args>
                    <module>Mycompnay_Mymodule</module>
                    <frontName>mymodule</frontName>
                </args>
            </mymodule>
        </routers>
    </frontend>
</config>

app/etc/modules/Mycompany_Mymodule.xml

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <modules>
        <Mycompany_Mymodule>
            <active>true</active>
            <codepool>local</codepool>
        </Mycompany_Mymodule>
    </modules>
</config>

app/code/local/Mycompany/Mymodule/controllers/IndexController.php

class Mycompany_Mymodule_IndexController extends Mage_Core_Controller_Front_Action
{
    public function indexAction()
    {
        echo 'hello World!';
    }
}


texts: Adding custom data to order endpoint - no setter?

texts:
I'm trying to add custom data to an order using the REST API.

I have added code which GETS the data from the database, but i'm now looking at how to set this using the REST API.

I have written code, which have relevant getters / setters in OrderExtension, and the name of the field is appearing in the swagger -

However, when I try to use this I get this error back -

Is it possible to update this part of an order once it has been placed? Would I need to create my own endpoint to do this? Or would I need to add it to quote, and then order?


texts: Magento 2. Add custom button on product grid using the layout handle

texts:
In Magento 1 one could add a custom button on the product grid using the layout handle.

One would add the following to local.xml

<layout version="0.1.0">
    <!-- ... -->
    <adminhtml_catalog_product_index>
        <reference name="products_list">
            <action method="addButton">
                <id>my_button_identifier</id>
                <data>
                    <label>My button</label>
                    <class>some-class</class>
                    <onclick>some_click_action_here</onclick>
                </data>
            </action>
        </reference>
    </adminhtml_catalog_product_index>
    <!-- ... -->
</layout>

Is this possible in Magento 2? If so how?

I've tried with no luck:

Vendor/Module/view/adminhtml/layout/catalog_product_index.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>
        <referenceBlock name="products_list">
            <action method="addButton">
                <argument name="buttonId" xsi:type="string">button_id</argument>
                <argument name="data" xsi:type="array">
                    <item name="label" xsi:type="string">Button Label</item>
                    <item name="class" xsi:type="string">primary</item>
                    <item name="url" xsi:type="string">frontname/controller/controller</item>
                    <item name="class_name" xsi:type="string">Magento\Backend\Block\Widget\Button</item> <!-- Tried without this node as well -->
                </argument>
            </action>
        </referenceBlock>
    </body>
</page>

EDIT

I can confirm that the addButton Method is called for my input, yet the button still is not displayed in frontend


texts: My new home page(after multistore setup) is loading without template config

texts:
I just setup(magento 1.7.0.2) my installation to work with another store(subdomain from main store)
I think that almost all configs are ok because when a type my new store2 link on the brownser the new home page is showed but it's "naked", can't load style/template.
Can averyone tell me what I am doing wrong please?

Thanks in advance ;)
Carlos


texts:
I want to check if attribute value already exists programatically.

i created a unique attribute in magento say regnum , now i want to see if for any regnum value if there already exists product or not ,

can u please guide me how to do this ? i am bit new and can not figure out how to do it


texts: how to setup multiple language in magento single store view

texts:
Now I try to setup multiple language in magento single store view. So, Is it possible in Single Store view?

Because I have created Multiple Store views For Every Vendor. So, Now can I have multiple languages for magento single store view?


texts:
I have created a new attribute for customers. Whenever customer will do an order at the event when he clicks on the 'Place Order' button, I'm saving some value for this attribute.
But when I try to retrieve that attribute value in admin panel, it's NULL. Even the attribute is not showing when I try to get all attributes of that customer. How to resolve this? I want to access that attribute value in admin panel.

My Observer.php contains following code snippet to save that attribute.

$customer = Mage::getSingleton('customer/session')->getCustomer();
$newAdminIds = 4;
$customer->setSubAdminIds($newAdminIds)->save();

And the admin panel when I try to retrieve it.

$collection = Mage::getResourceModel('customer/customer_collection')
            ->addNameToSelect()
            ->addAttributeToSelect('email')
            ->addAttributeToSelect('created_at')
            ->addAttributeToSelect('group_id')
            ->addAttributeToSelect('sub_admin_id')
            ->addAttributeToFilter('sub_admin_ids', array('notnull' => true));

Above collection returns empty.


texts: Retrieve Admin product grid columns from an helper

texts:
I would like to get all the columns infos of the product grid columns from my own helper.

I tried (among others) with the following code :

Mage::getDesign()->setArea(Mage_Core_Model_App_Area::AREA_ADMINHTML);
$gridBlock = Mage::app()->getLayout()->createBlock('adminhtml/catalog_product_grid');

If I log then $gridBlock->debug(), I obtain

Array
(
    [row_click_callback] => openGridRow
    [id] => productGrid
    [use_ajax] => 1
    [type] => adminhtml/catalog_product_grid
)

but the return of $gridBlock->getColumns() is an empty array.

In other words, I'm trying to simulate the creation of the product grid in order to get its columns informations.

Any ideas on how to do it ?


texts: how to show old prices with red cut lines of products ? magento2

texts:
Hi i want to set new discount price for my products like the image given below , with red cross lines old prices should be cut also new price in below .

How can i do this in magento2 store ? is there any builtin functionality available for this ? or if u have recommendation i would like to purchase any extension who can do the same thing for my store.


texts:
I'm new to the whole Magento thing...
I'm trying to show products on the front page. I registered a custom template and my home cms page uses it to load. In my template file, here is the code.

$category = Mage::getModel('catalog/category')->load(41);
$_productCollection = Mage::getResourceModel('catalog/product_collection')
    ->addCategoryFilter($category)->addAttributeToSelect('*');
$_productCollection->getSelect()->order('rand()');
foreach($_productCollection as $_product) {

No mather what I do or try, the $_productCollection contains an object and therefore, doesn't work with the foreach, giving me nothing in $_product. Where am I wrong?

Thank You!


texts: magento 2 how to generate invoice with specific amount

texts: I want to generate invoice with specific amount, anyone have idea how can we generate invoice with specific amount ?


texts: Magento 2 - How to use grunt or gulp for speed up development?

texts:
I have heard that using grunt/gulp can speed up development by automatically cleaning the static content directories and compiling and generating new css.

How can we configure these and achieve this. Any help is much appreciated!

Thanks


texts: Magento 1 Variable to check if customer is subscribed to newletter

texts: Is there a variable I can include in the transactional emails to show whether the customer has subscribed to the Newsletter or not?


texts: email logs SMTP - Base table or view not found

texts:
I have installed extension SMTP from Mageplaza https://www.mageplaza.com/magento-2-smtp/

In the "logs" panel I should have all messages sent as in the screenshot below.

But in my magento I have error:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'b2b_style.mageplaza_smtp_log' doesn't exist, query was: SELECT COUNT(*) FROM `mageplaza_smtp_log` AS `main_table`

Anyone know how to solve it?


texts: Get Quote Item's Selected Custom Options

texts:
I'm trying to modify the weight of a product depending which custom options are selected. At the moment, I have a Plugin for Magento\Quote\Model\Quote\Weight with this function:

public function beforeSetProduct(\Magento\Quote\Model\Quote\Item $subject, $product)
    {}

..In which I can get/set the product weight successfully. At this point, though, I need to grab the weight from the selected customizable option and am at loss on how to do that. Any thoughts/ideas would be appreciated.


texts: Paypal Hosted Solution Pro (Iframe) - Many wrong order created

texts:
I'm using paypal Hosted Solution PRO as payment method on my store.

The integration is using API and Iframe.

The issue is that even if the customer doesn't finalize the purchase, an order is generate ( just when the iframe appears )

Any why to change this behavior ?


texts:
I have a tabbed edit screen for my module. Inside one of the tabs, I launch a modal view which is another, related, form. However, I'm unsure how to render the layout without the header/footer, but retaining the styles.

Is there a way to do this?

/**
 * Runs the procedure for rendering a modal view to the screen
 *
 * @param Company_Module_Block_* block
 * @return void
 * @author Dan Hanly
 **/
public function renderModal($block)
{
    $this->loadLayout();
    $this->_addContent($block);
    $this->renderLayout();
}

To clarify; within my Modal form, I wish to render a layout with a title and form, but without the adminhtml main menu, header or footer. Just the layout by itself. I obviously want to retain styles so that my form's styling matches others.


texts:
several times a day my pages come in written lines, clearing the cache helps, what goes wrong
magento 2.2.5


texts: Css and js not loaded in Magento ver. 1.9.2.3


texts: Magento-2.2.7 "JQMIGRATE: jQuery.attrFn is deprecated" error in console

texts: This error occurs in browser console once in every 6-8 times and jQuery doesn't work a all on the page. when I reload the page everything works fine.


texts: How to save billing info of guest user or auto register on checkout one page when user click on billing info continue buttion?

texts:
I want to save guest user info before placing order.
for example - if any user submitted billing info and click on continue button that time i have to save that info as user or in any other table.

purpose is that I want to see who was attempt to fill checkout form but its cancelled.


texts: problem with 'ABSOLUTE_MIN_PASSWORD_LENGTH' - Magento 1.9.4.3

texts:
After upgrading Magento to 1.9.4, I have this issue when logging in the website (as a customer).

  Fatal error: Undefined class constant 'ABSOLUTE_MIN_PASSWORD_LENGTH'
  in
  /home/..../public_html/app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Passwordlength.php
  on line 44

any ideas?


texts: Delta migration error on "Url Rewrite Step"

texts:
I am trying to do a second delta migration.
The first one was successful, but the latter gives me an error in the "Url Rewrite Step" step. This is the mistake:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'magnum/champagne-436/champagne-serge-mathieu-cuvee-prestige-brut' for key 'URL_REWRITE_REQUEST_PATH_STORE_ID'

How can I solve the problem?
I am migrating from magento 1.9.2.4 to 2.3.4.


texts: Add state/province to product page in magento 2

texts:
I'm new in magento 2. How can I add state/province to product page? I did this instructions, it works on contact page but on product page this error appears:

My block is:

    <?php
namespace Ilho\Region\Block;
use Magento\Framework\View\Element\Template;
use Magento\Framework\ObjectManager;
class ProductView extends \Magento\Catalog\Block\Product\View
{
    public function __construct(
        \Magento\Catalog\Block\Product\Context $context,
        \Magento\Framework\Url\EncoderInterface $urlEncoder,
        \Magento\Framework\Json\EncoderInterface $jsonEncoder,
        \Magento\Framework\Stdlib\StringUtils $string,
        \Magento\Catalog\Helper\Product $productHelper,
        \Magento\Catalog\Model\ProductTypes\ConfigInterface $productTypeConfig,
        \Magento\Framework\Locale\FormatInterface $localeFormat,
        \Magento\Customer\Model\Session $customerSession,
        ProductRepositoryInterface $productRepository,
        \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency,
        \Magento\Directory\Block\Data $directoryBlock,
        array $data = []
    ) {
        $this->_productHelper = $productHelper;
        $this->urlEncoder = $urlEncoder;
        $this->_jsonEncoder = $jsonEncoder;
        $this->productTypeConfig = $productTypeConfig;
        $this->string = $string;
        $this->_localeFormat = $localeFormat;
        $this->customerSession = $customerSession;
        $this->productRepository = $productRepository;
        $this->priceCurrency = $priceCurrency;
        $this->directoryBlock = $directoryBlock;
        parent::__construct(
            $context,
            $data
        );
    }

    public function getCountries()
    {
        $country = $this->directoryBlock->getCountryHtmlSelect();
        return $country;
    }
    public function getRegion()
    {
        $region = $this->directoryBlock->getRegionHtmlSelect();
        return $region;
    }
}


texts: Is there a way to make frequent changes to a Magento site without sacrificing caching/indexing performance?

texts:
Running Magento Enterprise 1.14.

My client makes very frequent changes to the content of their store. Things like new products, changing product details, prices, inventory, stock, images, etc. etc. Naturally, this means that the Magento cache and/or indexes have to frequently be refreshed.

This, in turn, has a knock-on effect on performance, because if the cache is being purged ten times a day, there's zero chance for any meaningful amount of cached data or cached full pages to accumulate.

Customers unlucky enough to view a page at the exact moment of a heavy reindex might also see some "funny" looking pages.

Is there a setup which would allow me to maintain a steady level of caching and indexing while still allowing users to make frequent changes?

Some notes:

I'm aware performance should not rely on the cache. That's not what this question is about.
I do use a FPC pre-warmer/crawler but to little effect.
I've considered deploying a staging server where changes could be made and then fully cached, then simply doing a bulk insert/update between the two Magento databases - stupid or potentially workable?


texts: Custom Placeholderimage resize issue in magento 2

texts:
I have added custom placeholder image in backend. But it is not resized as thumbnail image while editing the product.

expected result

In the place of default placeholder, my custom image should be displayed with same size of default placeholder image

But Actual result what i get

Please provide me a solution

1)Why my custom placeholder image not as resized like default placeholder image.

2)Then, In what size am I need to upload the custom placeholder image.


texts: Magento 2 API add item to Cart ignore price

texts:
if i add a item to cart via api it set Magento 2 default price of the item instead price set via API

1st i create a cart for a customer:

  index.php/rest/default/V1/customers/631/carts

via POST

  index.php/rest/default/V1/carts/{cartid}/items

via POST

json:

  { "cartItem": { "quote_id": "cart_id_from_1st_response", "sku":
  "test_sku", "qty": 1, "price": "11" } }

the response is like that:

stdClass Object
    (
        [item_id] => 186
        [sku] => test_sku
        [qty] => 1
        [name] => Testarticle
        [price] => 15
        [product_type] => simple
        [quote_id] => 287
    )

the price should be 11 as in the post, but the API response the prie of 15


texts:
When I'm running "grunt uncss" I have the following error :

Fatal error: PhantomJS: Cannot open about:blank

Here is my Gruntfile.js :

uncss: {
          dist: {
            files: {
                'css/styles.min.css': ['../../../../app/design/frontend/package/theme/template/*']
            }
          }
        }


texts: 404 Errors after turning on SEO URL and Secure URLs

texts:
Initial Setting:

HTTP only
SEO Url Turned off

What was changed:

Turned on SEO Url to remove index.php from Url
Turned on SSL for Admin and Frontend.

Issue:

404 Error messages
Unable to login to magento admin

Resolution Attempt:

I tried to reverse the changes that i made, as i was unable to access admin. I did it through database, phpmyadmin.

Restored the Base URL settings in core_config_data
set: web/secure/base_url to http://www.domain.com/
web/unsecure/base_url   http://www.domain.com/
Turned off URL Rewrites from database:
set value for web/seo/use_rewrites  to "0"
Turned off SSL for frontend and admin
web/secure/use_in_adminhtml     0
web/secure/use_in_frontend  0
web/secure/offloader_header SSL_OFFLOADED [this is as originally]
Cleared var/cache and var/session removed the contents of both these folders.
Reindexded the Catalog urls by running php -f indexer.php -- -reindex catalog_url

Current State:

Homepage loads fine.
Product URLs do not have index.php in them. causing 404. When i add index.php in the url the product loads fine.
Some menu items on homepage have index.php vs some don't.
Admin: goes forcefully to https
Admin:404 message. the url forces to https.
htaccess file remains unchanged, i have checked with a diff of htaccess backup.
Htaccess rule for enable rewrite is as "Options +FollowSymLinks RewriteEngine on"

Will appreciate help to have this fixed.


texts: Magento 2.1 overriding base product images

texts:
What I am wanting to do is override the Magento default image when a product does not have an image (the faint 'M' logo).

When I set the placeholder, it does not replace the image in product details.

So what I am doing now is seeking to override the defaults. They are located
module_catalog/view/base/web/images/product/placeholder/image.jpg

How do I correctly override them? I have tried including my own images in my theme structure with the same name, so far has not worked.


texts: Magento 2: I want to change "MOSTVIEWED" to laptop category products in home page layout

texts:
"MOSTVIEWED" to "Laptop category" how can i do that ??

I tried to create block and insert it into

  app/design/frontend/mytheme/Magento_Theme/layout

  app/design/frontend/mytheme/Plazathemes_Layout/layout

still I can not get


texts: magento 2 how to add phtml file after after_body_start

texts:
In magento1 we use this reference to add block after body tag.

<reference name="after_body_start">
</reference>

same also use in magento 1

 <reference name="before_body_end"></reference>

what is replacement of this code in magento 2?


texts: Quick questions for marketplace magento2

texts:
I have few questions related to posting extension to marketplace. I have listed all the questions below:

How can we submit two extension together in one folder as we do have support extension with our main extension?
Why extension taking so much time in technical review?
Why extension get reject by telling like "Business Review" fail.
What will be the reason?

We just wanted to know about process of the submitting marketplace.

Thank you


texts: Order state and status programmatically defined

texts:
In Magento 2, we can see that there are default order statuses that are assigned to "groups", which are order states.  For example, the "pending" order status is part of the "new" order state group.

Technically speaking or business wise - for and order created programmatically - could it be an issue to assign the order to a sate and status that are not linked by default?

For example would it be an issue to create an order with state "new" and status "processing"?

Thanks a lot for your answers.


texts: By providing $product->getPrice() the result which I get is 29.0000. How can I fetch the price in correct format along with currency i.e $29. Please help.


texts: EcomDev PHPUnit: How to get product price including tax?

texts:
I'm trying to get product price both excluding and including tax in EcomDev_PHPUnit.

I have a fixture based on the one provided in official manual. I've put the following between scope and eav:

config:
  default/catalog/price/scope: 1 # Set price scope to website
  default/tax/calculation/algorithm: UNIT_BASE_CACLULATION
  default/tax/calculation/based_on: origin
  default/tax/calculation/apply_tax_on: 0
  default/tax/calculation/price_includes_tax: 0
  default/tax/calculation/apply_after_discount: 1
  default/tax/defaults/country: DE
  default/tax/defaults/region: 0
  default/tax/defaults/postcode: *
  default/tax/display/type: 2
  default/tax/sales_display/price: 1
tables:
  tax/tax_class:
    - class_id: 3
      class_name: Retail Customer
      class_type: CUSTOMER
  tax/tax_calculation_rate:
    - tax_calculation_rate_id: 3
      tax_country_id: DE
      tax_region_id: 12
      tax_postcode: *
      code: VAT
      rate: 19
  tax/tax_calculation_rule:
    - tax_calculation_rule_id: 1
      code: Retail Customer-VAT
      priority: 1
      position: 1
      calculate_subtotal: 0
  tax/tax_calculation:
    - tax_calculation_id: 3
      tax_calculation_rule_id: 1
      tax_calculation_rate_id: 3
      customer_tax_class_id: 3
      product_tax_class_id: 3
  customer/customer_group:
    - customer_group_id: 1
      customer_group_code: General
      tax_class_id: 3

The failing part of the test is:

$finalPriceInclTax = Mage::helper('tax')->getPrice($product, $product->getFinalPrice(), true);
$finalPriceExclTax = Mage::helper('tax')->getPrice($product, $product->getFinalPrice(), false);

// Check that prices including and excluding tax are different
$this->assertNotEquals(
    $finalPriceInclTax,
    $finalPriceExclTax
);

In both $finalPriceInclTax and $finalPriceExclTax I'm getting the price excluding tax.

Could you please help me with this fixture? I'm obviously missing something here.

Notes:

I would very much prefer using a fixture to setting up tax in the test itself
I need to get both prices on the catalog level (not checkout)


texts: how to create store view column in upgrade schema in magento 2

texts:
I created an admin module for that I need Store View multiselect option. I created upgrade schema and checked it but still selected language is not selected after saving the page.In database table I am getting the column value as 0 (which means All Store Views).

My code is like this in upgrade schema.

if (version_compare($context->getVersion(), '1.0.2') < 0) {

    // Get module table
    $tableName = $setup->getTable('adminsharan_adminsample');

    // Check if the table already exists
    if ($setup->getConnection()->isTableExists($tableName) == true) {
        // Declare data
        $columns = [
            'store_id' => [
                'type' => \Magento\Framework\DB\Ddl\Table::TYPE_SMALLINT,
                'nullable' => false,
                'primary' => false,
                'comment' => 'store id',
            ],
        ];
        $connection = $setup->getConnection();
        foreach ($columns as $name => $definition) {
            $connection->addColumn($tableName, $name, $definition);
        }

    }
}


texts: After changed theme, magento 2 still output static files from old theme

texts:
I've change the website and store view to a new theme at content->Design Configuration. But when i visit frontend, all the static files are keeping at http://domain.com/pub/static/version1530690579/frontend/Oldvendorname/oldthemename/en_US/css/styles-l.css,

it should be
http://domain.com/pub/static/version1530690579/frontend/Newvendorname/newthemename/en_US/css/styles-l.css


texts: Extending session / cookie lifetime for customers (Amazon-style)

texts:
When visiting Amazon, I've noticed that I always get greeted by name:

However, when I try click onto my account, it forces me to log-in again. I'm not 100% sure about the logic here, but I'm assuming they're identifying me by cookie.

This is really useful because it allows you to target specific products to specific customers based on their order history, like this:

How is it possible to identify customers who aren't logged in by cookie? Is it possible to set up a similar behaviour to Amazon?

Do I just need to extend the cookie lifetime? I'm not very familiar with this aspect of Magento.


texts: How can we display SKU in URL structure? e.g domain/Product name kws/industry/SKU-product type. I'm also using SKU auto generator to generate SKU's.


texts: Do I need to override the Magento Core Files in order to create a new Admin Theme with a responsive design?

texts: If I want to create a new theme for Magento 1.9.1 admin panel (with responsiveness), will I need to override core files?


texts: Show inventory count instead of product count on Layered Navigation

texts:
I would like to show the inventory count instead of product count on Layered Navigation.

For example: Tees has 12 product and its shows the count 12 after the Tees category in the filter. Consider each product in tees category having 10 items in-stock, so the total stock of tees 120 should be displayed after the category name in the filter.
Need to apply same for the attributes in the filter.
kindly let me know the possibilities and standared way to achieve this.
Thanks in advance!


texts: Magento2 : Customer login not working properly

texts:
I have created multiwebsite magento site, and captcha is enabled on all forms.
But on the frontend customer login is not working properly.

Customer login form return Incorrect Captcha sometime even entering correct captcha and sometime it is working in first attempt.

Sometime it is returning error maximum execution time exceeded. And sometime customer logged-in successfully.

I'm stuck, where should I check for this error?


texts: SQL Errror after adding a new category attribute SQLSTATE[42S22]

texts:
I've tried adding a new attribute to the Magento Categories which I can configure from the Admin Panel Category -> Manage Categories.  The attribute is called custom_attribute.

I created a module similar to these tutorials which I followed, Atwix & ashsmith.

After completing the tutorials I can see my custom attribute on the back end from the admin panel.

But I get the below error when I try to save the category.

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'custom_attribute' in 'field list'

Also I can't access the attribute from a template file with <?php $_category->getCustomAttribute() ?>, it just returns null in the debugger.

Here is my modules config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Creed_CustomAttribute>
            <version>0.1.0</version>
        </Creed_CustomAttribute>
    </modules>
    <global>
        <blocks>
            <page>
                <rewrite>
                    <html_topmenu>Creed_CustomAttribute_Block_Page_Html_Topmenu</html_topmenu>
                </rewrite>
            </page>
        </blocks>
        <resources>
            <customattribute_setup>
                <setup>
                    <module>Creed_CustomAttribute</module>
                    <class>Mage_Eav_Model_Entity_Setup</class>
                </setup>
                <connection>
                    <use>default_setup</use>
                </connection>
            </customattribute_setup>
            <customattribute_setup_write>
                <connection>
                    <use>core_write</use>
                </connection>
            </customattribute_setup_write>
            <customattribute_setup_read>
                <connection>
                    <use>core_read</use>
                </connection>
            </customattribute_setup_read>
        </resources>
    </global>
</config>

And here is my mysql4-install-0.1.0.php

<?php
/**
 */
$installer = $this;

$installer->startSetup();

$installer->addAttribute('catalog_category', 'custom_attribute', array(
    'group'             => 'General Information',
    'type'              => 'int',//can be int, varchar, decimal, text, datetime
    'backend'           => '',
    'frontend_input'    => '',
    'frontend'          => '',
    'label'             => 'Custom Attribute Label',
    'input'             => 'select', //text, textarea, select, file, image, multilselect
    'default'           => 0,  //  Set to False
    'class'             => '',
    'source'            => 'eav/entity_attribute_source_boolean',//this is necessary for select and multilelect, for the rest leave it blank
    'global'            => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,//scope can be SCOPE_STORE or SCOPE_GLOBAL or SCOPE_WEBSITE
    'visible'           => true,
    'frontend_class'    => '',
    'required'          => false,//or true
    'user_defined'      => true,
    'position'          => 110,//any number will do
));

$installer->endSetup();


texts: moving magento 2X from local server (My mac) to new domain and server (with control panel)

texts:
Im having trouble moving my existing site from my computer to a server,
I tried moving all the files to the public_html folder in the new server, changed the info on the server on the file env.php and the directory in phpadmin (On my original DB i dont have the design/head/includes option) to the new domain but nothing comes up when i enter new domain in the browser. I also deleted all the files in the var/cache folder.
No errors or anything, its like nothing really happened.
Is there anything additional i need to do to setup the account?


texts: Magento2 - How to remove the side navigation bar only in my account page?

texts:
I need to remove the side bar only in My Account page.

I had removed the side bar in Magento_Customer > Layout > customer_account.xml but it removes from all the pages like (my address page,view orders page).

Code:

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" label="Customer My Account (All Pages)" design_abstraction="custom">
<head>
    <title>My Accounts</title>
</head>
<body>
    <referenceBlock name="sidebar.main.account_nav" remove="true"/>
</body>

Thanks in advance.


texts: Magento 2. Access Place Order Request Payload On The Server Side (PHP)

texts:
When placing and order via storefront a request is made towards /rest/default/V1/carts/mime/payment-information.
Inspecting the request in the browser I can see a Request Payload. (see atached).
How do I access this on the server side?
It's not on the request object, I can't find it in any of the Super Globals, in fact I can't find it anywhere.

EDIT:
I found a way using plain php json_decode(file_get_contents('php://input'),true);. Still doesn't Magento need/use/store this information somewhere?


texts: Magento's modal-popup's don't scroll on Safari

texts:
I have discovered that Magento's modal-popup's do not scroll on safari.

You can see this is you log into a Magento 2 demo store with a user which has a saved shipping address. Go to the checkout and click on the New Address button.

You will notice that eventhough the .modal-popup has a CSS rule for overflow-y: auto it does not scroll.

I've search online and this seems to be a common issue on Safari, but none of the solutions I have read of work for Magetno.


texts:
I Am developing custom module but cant get solution how to add tab title in browser.

i have added custom_module.xml as bellow

<module_index_index>
        <reference name="content">
            <block type="module/list" name="module_list" template="module/list.phtml" />
        </reference>

</module_index_index>

i cant understand how to get it.


texts: How to change Submit Order button on Magento 2

texts:
How can I change the "Submit Order" button on new order view?
I tried changing

  Magento_Sales::order/create/totals.phtml

Text get changes, but the page does not refresh on adding or deleting a product.


texts: Magento Install security patches PATCH XAMPP Windows using Git Shell But Showing Alert after successfully Install

texts:
Step01. I Download the patch AS Magento-1.9 Version
    Open PATCH.sh file Line no 67

# 5. File pathes
    #CURRENT_DIR=`$PWD_BIN`/ Change to
    CURRENT_DIR=/d/xampp/htdocs/Magento/

Step 02. Open Git Shell

CMD> cd ..
CMD> cd cd xampp\htdocs\magento
CMD>pwd

Path Change as CURRENT_DIR step01

D:\xampp\htdocs\magento

CMD> sh PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh

Massage:
Checking if patch can be applied/reverted successfully...
Patch was applied/reverted successfully.

But Showing Alert "Critical Reminder: Download and install Magento security patches. Download now."


texts: For search queries can I force all search to use AND instead of OR?

texts: when I search for "bird food" the results that shows up would display all products with the keyword bird OR food so that "fish food" as well as "bird food" would also show up.  My question is: is there anyway to force the search to use AND instead of OR?  for example someone searching bird food would only display bird food and nothing else.  thanks!


texts: Im trying to install Magento via composer can't insert password

texts:
composer create-project --repository-url=https://repo.magento.com/ magento/project-enterprise-edition
    Authentication required (repo.magento.com):
      Username: d89125c***********************
      Password:

when it comes to password I can't type or paste the password:

I'm new in magento am i missing anything ?


texts:
I am trying to list and item to Ebay but it showing error. Please find the below screenshot.

thanks


texts: What is the event that will fire after assigning customer to group in Magento?

texts:
I have to fire an observer method when the admin assign customer(s) to group on adminhtml. Can you help me which event is it?

I tried adminhtml_customer_save_after but it didn't worked.

Edit:
My config.xml

    <adminhtml>
        <events>
            <adminhtml_customer_save_after>
                <observers>
                    <vendorname_packagename_customerconfigobserve>
                        <type>singleton</type>
                        <class>Vendor_Package_Model_Observer</class>
                        <method>observeCustomerConfig</method>
                    </vendorname_packagename_customerconfigobserve>
                </observers>
            </adminhtml_customer_save_after>
        </events>
    </adminhtml>


texts: I want to display my products in my own template

texts:
First, I am new to Magento 2. My aim is to achieve when products added in the backend I want it to show in my custom template.

Can anyone suggest some methods to do it?


texts:
Here is the list of some default URL.

/customer/account/login
/checkout/cart
/customer/account

Is it possible to change these URL's or rewrite this URL's?
I've tried default URL rewrite methods in Magento but it doesn't helped.
Please suggest if there some proper methods to do this.


texts: Magento accordion tabs in quickview close function

texts:
I have Amasty Quickview extension on my site which opens a product in a frame.

There, my tabs are all closed. When a tab is clicked, it opens and displays the panel content. However you can't close the tab. The only way it closes is by opening another one.

Is there a way to assign a display:none; style to the panel, when the tab is clicked again? I know the issue might be that it is using the same CSS for when you are on the product page, and one tab is always displayed.

If the solution is too large and complicated I can just leave it as is and learn to deal with it.


texts: Bulk updating Magento special to & from date as well as special price using SQL (Magento 1.7)

texts:
I'm looking for a way to bulk update product special price, special to date & special from date.
I prefer to use an SQL statement but are open for other suggestions

Looking forward for an answer

A. Mikkelsen


texts: How can I restrict SPECIFIC CMS pages from being seen by non logged in customers?

texts:
I found solutions for redirecting non logged in users to the login page for all CMS pages, but I only want to restrict a few CMS pages. How can I specify which pages to restrict?
My code right now:
...\etc\frontend\events.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="controller_action_predispatch_cms_page_view">
        <observer name="add_login_checker" instance="<vendor>\<plugin>\Observer\RestrictCmsPage"/>
    </event>
</config>

...\observer\RestrictCmsPage.php

<?php

namespace <vendor>\<plugin>\Observer;

use Magento\Customer\Model\Session as CustomerSession;
use Magento\Framework\Event\Observer;
use Magento\Framework\Event\ObserverInterface;

class RestrictCmsPage implements ObserverInterface
{
    /**
     * @var \Magento\Framework\App\ActionFlag
     */
    protected $_actionFlag;
    /**
     * @var \Magento\Customer\Model\Session
     */

    public function __construct(
        CustomerSession $customerSession,
        \Magento\Framework\App\ActionFlag $actionFlag,
        \Magento\Framework\App\Response\RedirectInterface $redirect
    ) {
        $this->customerSession = $customerSession;
        $this->_actionFlag = $actionFlag;
        $this->redirect = $redirect;
    }
    public function execute(Observer $observer)
    {
        if (!$this->customerSession->authenticate()) {
            $this->_actionFlag->set('', \Magento\Framework\App\Action\Action::FLAG_NO_DISPATCH, true);
            if (!$this->customerSession->getBeforeUrl()) {
                $this->customerSession->setBeforeUrl($this->redirect->getRefererUrl());
            }
        }
        return  $this;
    }
}


texts:
I want to add customer DOB field in billing address on checkout page, for this I have added below code :

    *<?php echo $this->__('Date Of Birth') ?>

        <input type="test" name="billing[dob]" id="billing:dob" value="<?php echo $this->escapeHtml($this->getAddress()->getDob()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Date Of Birth')) ?>" class="date-pick input-text validate-date required-entry" data-date-format="dd-mm-yyyy" />

On place order billing address saved in customer but not DOB.

Am I doing something wrong? Is there any other way to do so?


texts: How to add class if a product have Customizable Options in Product Details Page in magento 2

texts:
I have two types of products in my site
Type 1 :products with Customizable Options
Type 2 :products without Customizable Options

I wish to add one custom class(for css purpose) to the products which has Customizable Options, i mean I need a css class for Type 1 products.
Please provide me a solution


texts:
We're considering migrating a site to Magento 1.9x and they have a page that lists variants of the same product on the page - OS Explorer Map 172 and I was wondering how to replicate this on Magento. Configurable product won't work as that just gives you a dropdown of the variants. Thinking maybe of using the list.phtml and filtering somehow. Anyone got a more elegant approach?

An alternative would be to present the product like they do on Ordnance Survey