texts: Magento 2 How to Remove product information tabs

texts:
Please suggest how can we remove the "More Information" tabs from product
details page

See : http://awesomescreenshot.com/0f765e4128


texts:
There is a default customer grid with 1 custom field. By default SQL query for this field contains LIKE function. I'd like to replace it with strict =.

There is a special method to apply Filter modifier.
\Magento\Ui\Component\Filters\Type\AbstractFilter::prepare

But I can not understand how to register my own modifier in magento and use it.

Any examples and explanation are appreciated!


texts: Not getting invoice id in after "sales_order_invoice_save_after" event magento2

texts:
I am trying to save invoice info in our custom table. So I tried "sales_order_invoice_save_after and sales_order_invoice_pay" events to get invoice data just after creation.

But Observer file didn't getting invoice data, i m using below code in our observer file -

namespace Customcode\Productserialno\Observer\Sales;
class InvoiceSaveAfter implements \Magento\Framework\Event\ObserverInterface
{

    protected $logger;
    protected $_objectManager;

    public function __construct(
        \Psr\Log\LoggerInterface $logger,
        \Magento\Framework\ObjectManagerInterface $objectManager
    ){
            $this->logger = $logger;
            $this->_objectManager = $objectManager;
    }

    public function execute(EventObserver $observer)
    {
        try{
            echo "Here in observer";
            $invoice = $observer->getEvent()->getInvoice();
            $order = $invoice->getOrder();
            echo "<pre>";
            print_r($invoice->getOrigData());
            echo $invoiceId = $observer->getEvent()->getInvoice()->getOrigData('entity_id');
            echo "<pre>"; echo "E";
            if($invoiceId == ''){
                echo "Not found";
            }

             die;
        } catch (\Exception $e) {
            echo $e->getMessage(); die;
            $this->logger->debug($e->getMessage());
        }
    }
}

But its not returing any invoice related data, even I checked database there is also not made any new invoice related entry.

Please let me know, what I am doing wrong? Is there is some other "event" I need to use ?


texts: Magento 2 event observer before order confirmation email trigger

texts:
I have an Observer that updates a custom column in table sales_order_item.
I have used this event checkout_onepage_controller_success_action
Observer:
<?php
namespace Siva\OrderNotes\Observer;

use Magento\Framework\Event\Observer as EventObserver;
use Magento\Framework\Event\ObserverInterface;

class SaveNotes implements ObserverInterface
{
    /**
     * @param EventObserver $observer
     * @return $this
     */
    private $quoteRepository;
    protected $orderItemRepo;
    protected $itemFactory;

    public function __construct(
        \Magento\Quote\Api\CartRepositoryInterface $quoteRepository,
        \Magento\Sales\Model\Order\ItemFactory $itemFactory,
        \Magento\Sales\Api\OrderItemRepositoryInterface $orderItem
    ) {
        $this->quoteRepository = $quoteRepository;
        $this->itemFactory = $itemFactory;
        $this->orderItemRepo = $orderItem;
    }
    public function execute(\Magento\Framework\Event\Observer $observer)
    {
        $order = $observer->getOrder();
        $orderId =  $order->getId();
        $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
        $writer = new \Zend\Log\Writer\Stream(BP . '/var/log/custom.log');
        $logger = new \Zend\Log\Logger();
        $logger->addWriter($writer);

        $quoteId = $order->getQuoteId();
        $quote = $this->quoteRepository->get($quoteId);
        if ($quote && $quote->getId()) {
            $items = $quote->getAllItems();
            foreach($items as $item){
                if($item->getOrderItemNote() !== null){
                   $item_id = $item->getId();
                   $order = $this->itemFactory->create()->getCollection()->addFieldToFilter('quote_item_id', $item_id);
                   foreach ($order as $items) {
                       $itemId =  $items->getItemId();
                       $logger->info(print_r($itemId, true));
                       $order_data = $this->orderItemRepo->get($itemId);
                       $order_data->setData('order_item_note',$item->getOrderItemNote());
                       $order_data->save();
                   }

                }
            }
        }

    }
}

I have added this field in the email template by getting the custom column data. But the field value is showing only when I click on send email in admin->sales->orders. It is not showing in auto-generated mail. I want to update the sales_order_item before the email is triggered. Which email I want to use.


texts:
I need to modify html output.
I'm using afterGetOutput method in plugin for Magento \ Framework \ View \ LayoutInterface.
But the method is calling only before FPC creating. But I need to change output for every specific user.
Is there another way to solve the issue without FPC disabling ?
Thanks and sorry for my English.
module/etc/di.xml :
...
<type name="Magento\Framework\View\LayoutInterface">
        <plugin name="webp_replace_tags" type="Vendor\Module\Framework\View\LayoutInterface\Plugin"/>
</type>
...

module/Framework/View/LayoutInterface/Plugin.php :

    ...

    public function afterGetOutput(LayoutInterface $layout, string $output)
    {
            $currentStore = $this->_storeManager->getStore();
            $mediaUrl = 'Placeholder';
            $re = '/(' .  addcslashes($mediaUrl, '/') . '[^\"]*).(jpg|png|jpeg|ico)/m';
            $output = preg_replace($re, '${1}.webp',$output);
        return $output;
    }

    ...
}


texts:
I can't figure out why, buy products alerts aren't showing.
here's my config;

Would anyone have any suggestions?


texts: Magento 2 default invoice not rendering css properly

texts:
I've setup multiple magento 2 website store, but this time i have problem with invoice email template, the problem is the email template seems not rendering css because from the look of it, it shows very messy html being generated, in sales email configuration i already make sure it set to default email template, here's the email that has been sent:

i need to make it normal like this:


texts: shipping price not updated in first time?

texts:
I am using magento 1.9.2.4.
I was added a product to cart. Select country and click on get quite button.
it's provide me table rate shipping charges according to my zone. I clicked on update total button. but shipping price not added in cart value.And when I refresh the page, it's added in cart.
Here is my product link
 Please guide me. I am in magento.


texts:
Huge error as soon as I try to view any page on my magento site now displays:

  Notice: Trying to get property of non-object in  /httpdocs/app/code/core/Mage/Core/Model/Config.php on line 1227
  app/code/core/Mage/Core/Model/Config.php on line 1239
  Fatal error: Call to a member function getIdFieldName() on a non-object in    /app/code/core/Mage/Core/Model/Abstract.php on line 151

If anyone knows what is causing this you will be saving my life.


texts: Unable to add product to cart through api in customer's cart. How to do that?

texts:
$appEmulation = Mage::getSingleton("core/app_emulation");
$initialEnvironmentInfo =   $appEmulation->startEnvironmentEmulation($storeId);
$customer = Mage::getModel("customer/customer")->load($customerId)->setStoreId($storeId);
Mage::getSingleton("customer/session")->setCustomer($customer);
$cart = Mage::getSingleton("checkout/cart");

//params can have any value from following

$params = array("related_product" => null, "links" => $links, "options" => $paramOption, "qty" => $qty, "product" => $productId);
OR
$params = array("related_product" => null, "super_group" => $super_group, "product" => $productId);
        OR
$params = array("related_product" => null, "super_attribute" => $super_attribute, "options" => $paramOption, "qty" => $qty, "product" => $productId);
        OR
$params = array("related_product" => null, "bundle_option" => $bundle_option, "bundle_option_qty" => $bundle_option_qty, "options" => $paramOption, "qty" => $qty, "product" => $productId);
        OR
$params = array("related_product" => null, "options" => $paramOption, "qty" => $qty, "product" => $productId);

$cart->addProduct($product, $params);
$cart->save();
Mage::getSingleton("checkout/session")
$appEmulation->stopEnvironmentEmulation($initialEnvironmentInfo);

i tried this code but it isn't seems to work, there is something else that have to be set in checkout session before adding product to cart.

Please Help.


texts: Relay Response URL Issue (Authorize.net)

texts: I am having an issue where the checkout process on my store is not leading customers to a success page. Authorize.net advised me to add a relay response url to my account. Where can I find the relay response page? Is this anywhere in my theme files? Please help. I am on Magento 2.1


texts: Magento 2 get Custom Customer attribute in phtml

texts:
I manage to get a custom customer attribute data from order in a phtml file using this:

{{var mtVar.getData('customer').getData('my_custom_attribute')}}

I also have an Observer file for getting the data:

    <?php

namespace Magetrend\EmailCustom\Observer;

use Magento\Framework\Event\Observer;
use Magento\Framework\Exception\NoSuchEntityException;

class Customer implements \Magento\Framework\Event\ObserverInterface
{
    private $customerRepository;
    private $guestAttributesRepository;

    public function __construct(
        \Magento\Customer\Model\CustomerFactory $customerRepository,
        \Amasty\CustomerAttributes\Model\Customer\GuestAttributesFactory $guestAttributesRepository
    ) {
        $this->customerRepository = $customerRepository;
        $this->guestAttributesRepository = $guestAttributesRepository;
    }

    public function execute(Observer $observer)
    {
        $vars = $observer->getVars();
        if (!isset($vars['order'])) {
            return;
        }

        $order = $vars['order'];

        if ($order->getCustomerIsGuest()) {

            /* load guest customer attributes by order id */
            $guestAttributes = $this->guestAttributesRepository->create()->loadByOrderId($order->getId());

            /* getting attribute values from model*/
            $registerAs = $guestAttributes->getData('register_as');

            /* Setting the variables to AdditionalVars() */
            $observer->getAdditionalVars()->setRegisterAs($registerAs);

        } else {
            $customerId = $order->getCustomerId();

            try {
                $customer = $this->customerRepository->create()->load($customerId);
            } catch (NoSuchEntityException $e) {
                return;
            }

            $observer->getAdditionalVars()->setCustomer($customer);

            /* getting Dropdown Values */
            $registerAs = $customer->getResource()->getAttribute('register_as')->getFrontend()->getValue($customer);
            $howFind = $customer->getResource()->getAttribute('how_find')->getFrontend()->getValue($customer);
            $invoice = $customer->getResource()->getAttribute('invoice')->getFrontend()->getValue($customer);

            /* Setting the variables to AdditionalVars() */
            $observer->getAdditionalVars()->setRegisterAs($registerAs);
            $observer->getAdditionalVars()->setHowFind($howFind);
            $observer->getAdditionalVars()->setInvoice($invoice);
        }
    }
}

But I get data from registered customers. When order is placed with guest because I can't get the value of the attribute. I only get the id of the value

I have an

  If statement in Observer for guests

if ($order->getCustomerIsGuest()) {

            /* load guest customer attributes by order id */
            $guestAttributes = $this->guestAttributesRepository->create()->loadByOrderId($order->getId());

            /* getting attribute values from model*/
            $registerAs = $guestAttributes->getData('register_as');

            /* Setting the variables to AdditionalVars() */
            $observer->getAdditionalVars()->setRegisterAs($registerAs);

This give me for attribute with code register_as the id of value and not the value

What I do wrong please?


texts: the correct syntax for CSV Customer IMPORT? (from 1.3.1 to 1.9.1)

texts:
I've spent so many days trying to figure this out...

I EXPORTED customers on a Magento 1.3.1 version, got the CSV file but when I try to IMPORT it into a 1.9.1. version - it gives the following Error:

  Can not find required columns: email, _website
          Please fix errors and re-upload file

The file has a website column and an Email column as far as I can see. I've tried adding the _website column and fill it all in with "base" but it does not seem to help. Also tried to rename the "website" parametr to "_website" but it makes no difference. I have base setup as the code for the main store. I appreciate any suggestions very much!


texts: install security patches for magento 1.9.0 version

texts:
We need to install all security patches that required for community edition [ 1.9.0 ]

In this link https://www.magentocommerce.com/download

I found that the following security patches are necessary:

SUPEE-6482, SUPEE-6237 ,SUPEE-5994 , SUPEE-5344,SUPEE-4829, SUPEE-1533 , SUPEE-4291/4334

which security do we need?


texts: Why SUPEE-10888 is requested on magento 1.9.4?

texts:
I scan my website on magentary.com, it says "SUPEE-10888: Vulnerable, immediate attention required. Patch not detected." but the version is 1.9.4.
Anyone knows why?


texts: Inserting NEW argument to block constructor via layout and get it in template

texts:
Can someone provide working example how to it?

I've heard that also it is good way to replace completely block class in layout for custom one extending from replaced one and then just add to custom block's constructor. Example of its would be also nice.


texts:
By default, the AW blog extension shows a toolbar/sort bar at the top and bottom of the main blog page.

I want to remove this, and have tried editing the aw_blog.xml deleting the following lines for example:

<block type="blog/product_toolbar" name="aw_blog_list_toolbar" template="catalog/product/list/toolbar.phtml">

... wherever it shows up. However, doing that kills the page and it doesn't load anymore.

So - does anyone know how to remove the toolbar from this extension?

(obviously, this is a little niche/specfic - but I think many folks know this extension, so maybe i'll get lucky!)

Thanks!


texts:
I tried installing a Magento extension manually but failed miserably, now I receive this error message:

  File "/i18n/en_US.csv" does not exist.

How can I fix this?


texts: Paypal Express option not appearing in checkout

texts:
I can't seem to make the paypal option appear for my magento installation. My setup is in the following

MySQL 5.7
Apache 2.4
PHP 7.0
Ubuntu 18.04
Vanilla Magento 2.2.4 (No extensions installed)
Vanilla Magento 2.1.12 (No extensions installed)

It is stated in 2.2.4's release notes that this was already fixed

  PayPal Express Checkout now appears as a payment option on the
  Checkout page when the PayPal buttons are available on the shopping
  cart page. Previously, PayPal did not appear as a payment method on
  the Checkout page when the billing agreement was disabled, although
  the PayPal buttons were still available on the shopping cart page.

but after my testing it seems the problem still exists.

I've already tried the following to fix this problem by following the instructions on the links below:

https://github.com/magento/magento2/issues/10499#issuecomment-326604994
https://github.com/magento/magento2/issues/10499#issuecomment-326976322
https://github.com/magento/magento2/issues/10499#issuecomment-359028140
https://github.com/magento/magento2/issues/10499#issuecomment-364390234
https://github.com/magento/magento2/issues/12878#issue-284458104
https://github.com/magento/magento2/issues/10499#issuecomment-326604994
https://github.com/magento/magento2/issues/10499#issuecomment-326929588

It'd be great if anyone can help out. I've already wasted a lot of time in this issue.


texts: How can i show a pdf invoice when someone clicks print invoice

texts:
When a customer clicks print invoice in their account now it shows the (crappy styled) invoice on screen and a print dialog

I would prefer to not use this and instead when a user clicks the print invoice button, that a pdf is shown which can be saved or printed.

Is that possible?


texts: How to remove email validation magento newsletter registration form to add phone number?

texts:
How to remove default newsletter registration form email validation magento to add phone number?
In resume, to replace e-mail by phone number.
Magento 1.9.0.0

Thanks!


texts: Unable to create duplicate product in Magento 1.9

texts:
I have tried to create a product using the duplicate product in Magento  1.9.3.1.
It gives an error as follow


texts: Data migration tool hanging with no error. What can I do?

texts:
I am trying to migrate a database from 1.9.3.1 ce to 2.2.2 ee using the data migration tool. I have done this before and had to deal with errors but I am not getting any errors. When it gets to this step-

[INFO][mode: data][stage: data migration][step: Map Step]: started 13%

it stalls. It happened yesterday so I restored the database and started over and it happened at exactly 13% again. I let it run for 12 hours to make sure it had enough time. Our store has about 5k customers, 25k items, and 15k orders so I don't think it is too big. Any ideas?


texts: When I am sending the form detail It work.but do not receive the Email.I set the email like sale@example.uk when I set it like sale@example.com it work. I think problem is .uk and .com domain name.can any one tell me how to solve .


texts: Which Magento Cron Jobs are required for good practice?

texts:
Are there any cron jobs that are recommended to run for a Magento store?  I read somewhere about running one that clears the cache (or something, I'm not sure now).

I just wondered whether people had a recommended set of cron jobs set up for their own stores?


texts: How to increase M2 Product Upsert Performance?

texts:
I upsert products like this:

try {
    $newProduct = $this->productRepository->get($productData['sku']);
} catch (\Magento\Framework\Exception\NoSuchEntityException $e) {
    $newProduct = $this->productInterfaceFactory->create();
}
$newProduct->setAttributeSetId($this->getAttributeSetIdFromLabel($productData['attribute_set']));

foreach ($straightAttributes as $attribute) {
    if (isset($productData[$attribute])) {
        $newProduct->setData($attribute, $productData[$attribute]);
    }
}
$savedProduct = $this->productRepository->save($newProduct);

This works, but is not performance enough. It takes me more than 8 seconds for each product in my local environment. This is too slow for my requirements: I need it for integrations, and would expect it to take less than a second in my local, and be even faster in an appropriately sized environment.

Are there simple ways to increase the performance, without switching to queues? Maybe I just do it the wrong way...?

Update: I've got a suggestion, now, open for feedback!

If I update only one attribute of a product, then the saveAttribute method of the product resource (~ 0.02s) is significantly faster than the save method of the product repository (~ 8s):

$newProduct = $this->productRepository->get($productData['sku']);
$myAttribute = 'ean13';
$newProduct->setData($myAttribute, '1234567890123');
/**
 * @var \Magento\Catalog\Model\ResourceModel\Product
 */
$productResource->saveAttribute($newProduct, $myAttribute);

This is great so far, but unfortunately, that saveAttribute method can handle only one attribute per call. If I want to update 30 attributes, that method has to be called 30 times. Not too difficult to implement with a loop, one could say. But the dark side of this workaround are the resulting 30 sql requests, which might sum up in a larger installation with some thousands of products to be updated.

I could reduce the number of SQL requests by checking the difference between $newProduct->get...() and the new value to be written. If I use the saveAttribute method only in cases where the two values differ, I can probably save a lot of time (depending on the number of values changed).

Still, that solution is not perfect yet: Some field values cannot be updated via the saveAttribute method. One example is the sku (see https://github.com/magento/magento2/issues/7247); I also had issues with the attribute set. And then, there are the more complex "attributes". It gets fancy, where the assignment of products to websites is required to be changed dynamically: While this can be done easily via the save method ...

$myProduct->setWebsiteIds($websiteIds);
$savedProduct = $this->productRepository->save($myProduct);

... the saveAttribute method horribly fails. It is meant to fail, because it is not much more than a wrapper for some upsert queries in the product attribute tables, - and that's not where the assignment of products to websites is stored.

Can one still make use of the significant performance advantages of the saveAttribute method for a product integration?

I would assume that one can check all conditions first, and go for the saveAttribute path only, if all changes on the product can be handled by the saveAttribute method:

if (!storeAssignmentHasChanged() && !complexProductAttributesHaveChanged()) {
  // saveAttribute
} else {
  setData...
  save...
}

All this seems, however, a bit too much for a simple product upsert task. Are there ideas to simplify it?

Update:

My colleague suggested to create a product with very "required attributes only", and then use the attribute update methods for all changes.

I've tried that out in a gist https://gist.github.com/kmddevdani/fd0c068e9bb36fec905ce259b44b13f5. It does create products, but still, the save is quite slow (around 22 seconds in my local environment).


texts: Add custom CSV export to Admin Orders Grid

texts:
I'm trying to override the Export button of the Admin Orders Grid, to add another custom CSV export with fixed columns

The goal for the custom option is to always export the same columns, without changing the default behavior of CSV and Excel XML filtered columns. Something to do with the dataProvider I guess

Code:

../view/adminhtml/ui_component/sales_order_grid.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">

    <listingToolbar name="listing_top">
        <exportButton class="Magento\Ui\Component\ExportButton" name="export_button">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="selectProvider" xsi:type="string">sales_order_grid.sales_order_grid.sales_order_columns.ids</item>

                    <item name="options" xsi:type="array">
                        <item name="cvs_test" xsi:type="array">
                            <item name="value" xsi:type="string">csv_custom</item>
                            <item name="label" xsi:type="string" translate="true">CSV_CUSTOM</item>
                            <item name="url" xsi:type="string">mui/export/gridToCsv</item>
                        </item>
                    </item>
                </item>

            </argument>
        </exportButton>
    </listingToolbar>
</listing>


texts: Magento 2 : Foreign key constraint is incorrectly formed, ALTER TABLE customer_group

texts:
After upgrade from magento 2.1.7 to 2.2.3 and am stuck. I have tried everything.

  In Pdo.php line 235:
      SQLSTATE[HY000]: General error: 1025 Error on rename of './zwwnzwzjhe/#sql-1bd1_25f9' to './zwwnzwzjhe/customer_group' (errno:
  150 - Foreign key constraint is incorrectly formed), query was: ALTER
  TABLE customer_group MODIFY COLUMN customer_group_id int(10)
  UNSIGNED NOT NULL  AUTO_INCREMENT

  In Pdo.php line 228:    SQLSTATE[HY000]: General error: 1025 Error on rename of './zwwnzwzjhe/#sql-1bd1_25f9' to
  './zwwnzwzjhe/customer_group' (errno: 150 - Foreign key constraint is
  incorrectly formed)

I am unable to delete this table or make any changes to this table ...please help.

Thank you


texts: If the current category ID exists in this array of IDs, then show something

texts:
I'm new to Magento, and I would like to know how to add a condition like my title above.

If the current category page is 3, or 4, or 5, or 6, then I need to show something.

Provided that _category is equal to $this->getCurrentCategory, all I can think of is this:

<?php if($_category->getId()==array(3,4,5,6): ?>
// Stuff to show if the current cat is 3 or 4 or 5 or 6
<?php else: ?>
//Stuff to show for other categories
<?php endif; ?>

But it doesn't work. I assume that my usage of array is wrong or I missed something. I hope I Magento/PHP expert can enlighten me. :D

Thanks in advance.


texts: getting error in Magento theme integration

texts: I'm working on theme integration. I have download one theme and follow its documentation step that replaces AAP and pub folder and then runs this command php bin/magento setup:upgrade. But when I tried it then getting error as attached in image. please help me to resolve it.


texts: Datepicker not working on registration form in magento 2.3

texts:
This is my code for DOB on the registration form and its not working. It just displays a text box and not date picker.

 <?php $_dob = $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Dob') ?>
    <?php if ($_dob->isEnabled()): ?>
        <?php echo $_dob->setDate($block->getFormData()->getDob())->toHtml() ?>
    <?php endif ?>

What can be the issue?


texts: How to add multiple section in admin form magento2

texts:
I have created custom form in magento2 admin panel.

  Now I want to add one more section same as Tab, let say 'Tab1'.

This is my general.php file.

  Namespace/Modulename/Block/Adminhtml/Custom/Edit/Tab/General.php

<?php
namespace Bls\Stdprofile\Block\Adminhtml\Custom\Edit\Tab;
class Tab extends \Magento\Backend\Block\Widget\Form\Generic implements \Magento\Backend\Block\Widget\Tab\TabInterface
{
    /**
     * @var \Magento\Store\Model\System\Store
     */
    protected $_systemStore;

    /**
     * @param \Magento\Backend\Block\Template\Context $context
     * @param \Magento\Framework\Registry $registry
     * @param \Magento\Framework\Data\FormFactory $formFactory
     * @param \Magento\Store\Model\System\Store $systemStore
     * @param array $data
     */
    public function __construct(
        \Magento\Backend\Block\Template\Context $context,
        \Magento\Framework\Registry $registry,
        \Magento\Framework\Data\FormFactory $formFactory,
        \Magento\Store\Model\System\Store $systemStore,
        array $data = array()
    ) {
        $this->_systemStore = $systemStore;
        parent::__construct($context, $registry, $formFactory, $data);
    }

    /**
     * Prepare form
     *
     * @return $this
     */
    protected function _prepareForm()
    {
      /* @var $model \Magento\Cms\Model\Page */
      $model = $this->_coreRegistry->registry('stdprofile_custom');
      $isElementDisabled = false;
      /** @var \Magento\Framework\Data\Form $form */
      $form = $this->_formFactory->create();

      $form->setHtmlIdPrefix('page_');

      $fieldset = $form->addFieldset('base_fieldset', array('legend' => __('Tab')));

      if ($model->getId()) {
        $fieldset->addField('id', 'hidden', array('name' => 'id'));
    }

    $fieldset->addField(
        'col1',
        'text',
        array(
            'name' => 'col1',
            'label' => __('Company Name:'),
            'title' => __('Company Name:'),
            /*'required' => true,*/
        )
    );
    $fieldset->addField(
        'col2',
        'text',
        array(
            'name' => 'col2',
            'label' => __('Address:'),
            'title' => __('Address:'),
            /*'required' => true,*/
        )
    );

    if (!$model->getId()) {
        $model->setData('status', $isElementDisabled ? '2' : '1');
    }

    $form->setValues($model->getData());
    $this->setForm($form);

    return parent::_prepareForm();
}

    /**
     * Prepare label for tab
     *
     * @return string
     */
    public function getTabLabel()
    {
        return __('Tab');
    }

    /**
     * Prepare title for tab
     *
     * @return string
     */
    public function getTabTitle()
    {
        return __('Tab');
    }

    /**
     * {@inheritdoc}
     */
    public function canShowTab()
    {
        return true;
    }

    /**
     * {@inheritdoc}
     */
    public function isHidden()
    {
        return false;
    }

    /**
     * Check permission for passed action
     *
     * @param string $resourceId
     * @return bool
     */
    protected function _isAllowedAction($resourceId)
    {
        return $this->_authorization->isAllowed($resourceId);
    }
}


texts: Magento 2 : Not set custom attributes value when create product programmatically

texts:
When I create product programmatically I want to set custom attributes value. try to below code but it displays

  Uncaught Error: Call to a member function setCustomAttribute()

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$product = $objectManager->create('\Magento\Catalog\Model\Product');
$product->setSku('sku');
$product->setName('Sample Product');
$product->setAttributeSetId(4);
$product->setStatus(1);
$product->setWeight(10);
$product->setVisibility(4);
$product->setTaxClassId(0);
$product->setTypeId('simple');
$product->setPrice(100);
$product->setStockData(
                        array(
                            'use_config_manage_stock' => 0,
                            'manage_stock' => 1,
                            'is_in_stock' => 1,
                            'qty' => 999999999
                        )
                    );
$product->setCustomAttribute('custom_attribute','Attributevalue');
$product->save();


texts: I need to create mixin of checkout-data-resolver.js file?

texts:
I need to create a mixin of checkout-data-resolver.js file which is located in vendor/magento/module-checkout/view/frontend/web/js/model/checkout-data-resolver.js and have to make some changes in applyBillingAddress: function () {} function.
var config = {
    config: {
        mixins: {
            'Magento_Checkout/js/model/checkout-data-resolver': {
                'Magento_Checkout/js/model/checkout-data-resolver-mixin': true
            }
        }
    }
};

 define([
    'Magento_Customer/js/model/address-list',
    'Magento_Checkout/js/model/quote',
    'Magento_Checkout/js/checkout-data',
    'Magento_Checkout/js/action/create-shipping-address',
    'Magento_Checkout/js/action/select-shipping-address',
    'Magento_Checkout/js/action/select-shipping-method',
    'Magento_Checkout/js/model/payment-service',
    'Magento_Checkout/js/action/select-payment-method',
    'Magento_Checkout/js/model/address-converter',
    'Magento_Checkout/js/action/select-billing-address',
    'Magento_Checkout/js/action/create-billing-address',
    'underscore'
], function (
    addressList,
    quote,
    checkoutData,
    createShippingAddress,
    selectShippingAddress,
    selectShippingMethodAction,
    paymentService,
    selectPaymentMethodAction,
    addressConverter,
    selectBillingAddress,
    createBillingAddress,
    _
) {
    'use strict';

    return function (Component) {
        return Component.extend({
            applyBillingAddress: function () {
                var shippingAddress,
                    isBillingAddressInitialized;

                if (quote.billingAddress()) {
                    selectBillingAddress(quote.billingAddress());

                    return;
                }

                if (quote.isVirtual() || !quote.billingAddress()) {
                    isBillingAddressInitialized = addressList.some(function (addrs) {
                        if (addrs.isDefaultBilling()) {
                            selectBillingAddress(addrs);

                            return true;
                        }

                        return false;
                    });
                }

                shippingAddress = quote.shippingAddress();

                if (!isBillingAddressInitialized &&
                    shippingAddress &&
                    shippingAddress.canUseForBilling() &&
                    (shippingAddress.isDefaultShipping() || !quote.isVirtual())
                ) {
                    //set billing address same as shipping by default if it is not empty
                    selectBillingAddress(quote.shippingAddress());
                }
            }
        });
    };
});

I don't know what I am doing wrong it is not working.
can anyone please help ?


texts: How to handle multiple shipping origins and their tax calculations in magento 1.9?

texts:
I'm facing an issue related to Magento 1.9.

Let me talk a bit about the context, we are part of a franchising business and each franchise works like an independent business.

In Magento, we can create a website -> store -> store-view per each franchise and manage them individually but found a problem related to taxes and shipping.

Magento only allows for one shipping origin but in our case, we have one shipping origin per franchise/website since each franchise will ship its goods like an independent business.

What plugin/service/workflow would you recommend to handle multiple shipping origins keeping in mind that we have to calculate taxes based on this multiple shipping origins? (this are USA taxes).

Many thanks for the help!


texts:
In our store we only use category URLs, i.e.

YES:  my-site.com/socks/the-ballers
NO:  my-size.com/the-ballers

I believe I have set the SEO settings correctly for this:

Use Categories Path for Product URLs -> Yes
Create Permanent Redirect for URLs if URL Key Changed -> Yes
Use Canonical Link Meta Tag For Categories -> Yes
Use Canonical Link Meta Tag For Products -> No

Also, our products only appear in one category.

We would like to go one step further and make sure that product URLs are actually not accessible and get rewritten to the category URLs so that they are not accessible, i.e.

REWRITE my-site.com/the-ballers ---> my-site.com/socks/the-ballers

How can I go about doing this such that it happens automatically when I reindex the URL Rewrites?


texts: Magento 2.3.0 - Migrated from 1.9.3.4 - Some attributes not updating on product save

texts:
Having some weird trouble with a migrated M2 website. I've seen some resources on here, but they all don't seem to be showing the same symptoms.

Migrated a site using the Magento tool - all went well apart from an odd issue with the select attributes not functioning as expected.

If I update a migrated attribute (Say Attribute Value "A" to Value "B"), it will revert to "A" on save.

However, If I create a new product (non migrated) and do the same thing on the same attribute it updates as expected.

I've read that it may be an issue in the eav_attribute table.

For reference, this is one of the troublesome attributes (which were also migrated):

*************************** 1. row ***************************
   attribute_id: 595
 entity_type_id: 4
 attribute_code: type
attribute_model: NULL
  backend_model: NULL
   backend_type: int
  backend_table: NULL
 frontend_model: NULL
 frontend_input: select
 frontend_label: Type
 frontend_class: NULL
   source_model: Magento\Eav\Model\Entity\Attribute\Source\Table
    is_required: 0
is_user_defined: 1
  default_value:
      is_unique: 0
           note: NULL

Compare that to a test attribute I created after migration:

*************************** 1. row ***************************
   attribute_id: 1212
 entity_type_id: 4
 attribute_code: test_select_attribute
attribute_model: NULL
  backend_model: NULL
   backend_type: int
  backend_table: NULL
 frontend_model: NULL
 frontend_input: select
 frontend_label: Test Select Attribute
 frontend_class: NULL
   source_model: Magento\Eav\Model\Entity\Attribute\Source\Table
    is_required: 0
is_user_defined: 1
  default_value:
      is_unique: 0
           note: NULL

There's no difference in the set up, so the backend_model issues I've read about don't seem to apply here.

Other issues I've noticed:

In debug.log, there's a bunch of these errors:

main.WARNING: Attempt to load value of nonexistent EAV attribute '575'
                        for entity type 'Magento\Catalog\Api\Data\CategoryInterface'. [] []

Also, I can't for the life of me get these attributes to load in layered navigation. I would assume it's related to the above issues.

Anyone out there who's able to help at all?

Cheers

** EDIT ***

It appears that if that test product (which was saved successfully) appears in the category, Layered Navigation works as expected, so it has to be something to do with the attribute values and not the attribute itself.

* EDIT 2 *

Using Firebear Import/Export, I mapped the problematic attributes and exported them against the SKU. It only returned the SKU column, suggesting that the attribute values just don't exist at all. Either that, or there's no association between product and option.


texts: Shopping Cart Price Rule for 2 items from one category

texts:
I need to create a price rule that will apply a discount when 2 items from one specific category are added to the shopping cart.

At the moment I have a rule that specifies the category, and specifies "Total Items Quantity IS 2", but this is wrong, I found in testing. As long as one of the items is from the correct category, then when there are 2 items in the cart, the discount gets applied to the cart. If customer adds 2 items from that category, and another item from a different category, then no discount is applied (logically!).

What I need to allow is a customer to buy any number of items from any category, but when their cart contains 2 items from this specific category, to discount those two items (only those two items, not the entire cart) by 5%.

Here's the current settings:

Conditions:
If ALL  of these conditions are TRUE :

If an item is FOUND  in the cart with ALL  of these conditions true:
    Category  is  1176

Total Items Quantity  is  2

Actions:
Apply Percent of Product Price Discount (5%)

If ALL  of these conditions are TRUE :

Category  is  1176

Can someone please help me figure out how I should apply this rule.
I am running Magento 1.6.2.

Cheers!


texts:
CE 1.8 inherits from EE 1.13 and lists as a change:
“The cryptographic methods used to store passwords were improved to enhance security”

As far as I know, earlier versions used APR1 which is a 1000 iteration loop of MD5 with a 32-bit salt, then encodes the 128-bit result in 6-bit chunks to a text readable format using a fixed 64 entry array of printable characters.

How has this changed in the new versions? There does not seem to be any documentation with any details.


texts:
I want to show the custom page while running the Magento commands like (upgrade, di: compile, deploy).

How to do that.

Thanks.


texts: How do I turn on template and block hints programmatically?

texts:
I know how to do it via system->configuration->Developer and on other sites people have mentioned doing it by setting template_path_hints to 1 in the config files.

I would have tried to copy the method used in the admin section but this wasn't so easy to follow.


texts: Prevent Magento to send email to a specific coustomer group

texts:
I need a way to prevent Magento sending any email to a specific user group.

For example I have a user group called "NoMail"

If a customer is created in that group i wold like Magento to NOT SEND any of the emails (creation, order, coment, credit memo, shipping).

Is there a file where i can set a contdition like

if UserGroup = (NoMail):
     break
 else if
    send email code......

David


texts: Change customer group id for guest inside onepage

texts:
I need to dynamically change customer group id inside onestepcheckout page. I tried to insert

Mage::getSingleton('checkout/session')->getQuote()->setCustomerGroupId(3)->save()

just before $this->getOnepage()->saveBilling, but it doesn't work.

I guess the problem is inside _validateCustomerData() inside Mage_Checkout_Model_Type_Onepage  where there are lines:

    if ($quote->getCheckoutMethod() == self::METHOD_REGISTER) {
        // set customer password
        $customer->setPassword($customerRequest->getParam('customer_password'));
        $customer->setConfirmation($customerRequest->getParam('confirm_password'));
    } else {
        // spoof customer password for guest
        $password = $customer->generatePassword();
        $customer->setPassword($password);
        $customer->setConfirmation($password);
        // set NOT LOGGED IN group id explicitly,
        // otherwise copyFieldset('customer_account', 'to_quote') will fill it with default group id value
        $customer->setGroupId(Mage_Customer_Model_Group::NOT_LOGGED_IN_ID);
    }

One option would be to change function _validateCustomerData and change line

$customer->setGroupId(Mage_Customer_Model_Group::NOT_LOGGED_IN_ID);

where I would pass and write desired groupId. I am not sure if there is any better way. Thanks for any suggestion!


texts:
I'm trying to set up a coupon where if "You purchase $350 or more, enter coupon, receive $50 off".

I've created the coupon "Holiday50"

The condition I entered:

"Subtotal equals or greater than 350"

The actions I entered:

 Apply: "Fixed amount discount"
 Discount Amount: "50"

When I tested the coupon, it's discounting the items 100%. The order would come to $0.00 and I only want it to discount $50. I don't have any other rules set up so nothing should be interfering with that.
Is this a common issue and how would I fixed it??

Thanks!

[Edit] - So I noticed that whenever the qty > 1, this will not work but if qty = 1 then it works.


texts:
Upon testing default email templates built into magento, I am getting an error in the email that is received.  I have not modified any of the templates yet as I wanted to run a test to make sure the default templates worked first.  The email has an error at the top and the bottom and it also appears the css isn't styling the template.

Located at the top of the email:

{Error in template processing} {{inlinecss file="email-inline.css"}}

Located at the bottom of the email:

{Error in template processing}

I am grasping at straws trying to figure out what is going on here.  Is the email-inline.css file supposed to be in a folder somewhere?  Is that what is missing?  I cannot seem to find the file within the skin folder.  I just cannot seem to find the root of this issue.  I am new to magento and need a little assistance.  I am using 1.9.0.1 Magento FYI.

Please help


texts: Technical Review Failed on: deploy:mode:set production

texts:
I recently submitted a module to the Magento Marketplace for Technical review; it got rejected with the following error:

  Command returned non-zero exit code: php -f /var/www/html/bin/magento
  setup:di:compile-multi-tenant 2>&1

When I run the above command on my test store, I get the following error:

  PHP Fatal error: Allowed memory size of 52428800 bytes exhausted
  (tried to allocate 73728 bytes) in
  /opt/bitnami/apps/magento/htdocs/vendor/composer/ClassLoader.php on
  line 94

Obviously as this is being done by the Technical Review I can't use the -dmemory_limit=6G parameter that has been suggested on a few Magento Stack answers.

I've tried adding ini_set('memory_limit' ,'50M') to the php files but it still seems to be getting the same error.

What are generally the causes for this in a module? And any potential solutions for the module that could prevent this from happening?

Thanks!


texts: magento 2.3.2 with elasticsearch 6.8.2 returns results only present in mysql search_query table

texts:
Prerequisites:
installing and configuring Elasticsearch 6.8.2 in a magento 2.3.2 installation as per devdocs (reindexing and cache:clean ok)

Step to reproduce:
inserting a term in magento frontend search bar

Expected behaviour:
have back suggestions from elastic docs

Actual result:
we see that the autocomplete suggestions (returned via ajax) in the magento search-bar still return terms present in mysql search_query table (popular search terms inserted by previous visitors).
These terms are not present in elastic (checked via Kibana Dev Tools).

So far we didn't dig in the inner of the core Magento 2.3 elastic module but this points us to the conclusion that the search results are still coming from mysql and not from elastic.

that leads us to 2 questions:

is that a bug? is the magento2.3 elaticsearch module still querying the mysql search_query table?
the second, more generic and perhaps due to the fact we are not seasoned ekl stack users: is there a simple way to know if search results come from mysql or from elastic? are we supposed to use xdebug or does elastic come with tools that help us understand if a GET call has been made (perhaps using Kibana)?

elastic error logs does not show errors, elasticsearch_access.log is empty.

thanks,
romeo

Magento 2.3.2
Elasticserch 6.8.2
Kibana
php7.2

kibana query that returns empty result:
"query": {
    "bool": {
      "must": [
        {
          "query_string": {
            "query": "mySearchedTerm",
            "analyze_wildcard": true,
            "default_field": "*"
          }
        }
      ],
      "filter": [],
      "should": [],
      "must_not": []
    }
  },


texts: Block Shipping method getting executed in Cart page

texts: Is it possible to disable shipping method from getting executed in the cart page. We only want it to call it in the checkout process.


texts:
I am trying to add a special shopping cart price rule where a product is assigned to multiple categories and i want define a discount on a particular category
the scenario is : There are two categories

Category 1 , Category 2
A Product is assigned to both categories
If a product is comes in the cart from category 1 there should be discount on cart and if product is also on Category 2 no-discount should be applied.

What i have done for now is attached in the image below.

Any idea how this can be achieve ?

Thanks


texts: Search results getting concatenated by a word I put somewhere. How did I manage that and how to revert it?

texts:
This may sound stupid (it really is) but I recently noticed the word "test" is being concatenated to all product names on the catalog search page. I'm almost certain this was my doing (I like to tamper with stuff so I know what they're for), but I have no clue as to what I acutally changed to make this happen, which makes the process of reverting it a pain in the butt.

I tried looking into the files, but the word (like I capitalized it) is not present in the app/design directory. I guess I might have messed with the admin panel settings or the database itself, but don't know where to start looking.

Does anyone have any idea as to where I might want to look?


texts: How to create a block with random products and style grid?

texts: I'm starting to play with magento 2 and wanted to create a list of 10 random products that I can place anywhere (e.g. home) with a grid style. May I know, How I can get 10 random products, but I don't know, how I can display them with grid style (I only have product information)


texts: State/Province ("Region") Required field shipping checkout! MAGENTO2

texts: i want to checkout shipping adress, State/Province ("Region") be Required.


texts:
I am trying to get the Sass fallbacks to work with Magento 1.9. I have created my own theme as skin/frontend/rwd/mytheme.

I have followed the instructions here: http://www.magentocommerce.com/knowledge-base/entry/ee114-ce19-rwd-dev-guide#sass-fallback-structure by using the following code in the rwd/default/scss/config.rb file:

add_import_path "../../../rwd/default/scss"

To find the original Sass files. I have deleted all except layout/_footer.scss from my theme. When I try to compile with CodeKit I get this error:

Clearly it's not finding the fallbacks. I have also tried putting the add_import_path code into my theme's config.rb file and the root config.rb file but nothing seems to work. Does anybody have any ideas?


texts: Image upload resulting in empty $_FILES array in magento 2

texts:
In my custom module I'm trying to upload an image via my save controller, I added the form in my block with this code:

protected function _prepareForm()
{
    $model  = $this->_coreRegistry->registry('homepagecontent_blocks');
    $form   = $this->_formFactory->create();
    $form->setHtmlIdPrefix('content_');
    $form->setFieldNameSuffix('content');

    $fieldset = $form->addFieldset(
        'base_fieldset',
        ['legend' => __('General')]
    );

    $fieldset->addField(
        'image',
        'image',
        array(
            'name' => 'image',
            'label' => __('Image'),
            'title' => __('Image')
        )
    );

When I var_dump my $_POST value, this is displayed:

array (size=3)
'form_key' => string 'ri7aWhZX3L56e10f' (length=16)
'content' =>
array (size=7)
  'css_grid_column_from' => string '1' (length=1)
  'css_grid_column_to' => string '2' (length=1)
  'css_grid_row_from' => string '4' (length=1)
  'css_grid_row_to' => string '1' (length=1)
  'status' => string '1' (length=1)
  'link' => string 'asfasf' (length=6)
  'text' => string 'hdghgf' (length=6)
'image' => string 'imagename.jpeg' (length=15)

However my $_FILES variable is empty. Any idea what's wrong?


texts: Editing custom options for a custom layout template

texts:
Hopefully someone can help or offer some advice. I want to change the layout of one product page. I have created the custom view.phtml and within design of the product inserted the new template, all fine.

Now I need to change the layout of the custom options, but only for this page, not across all products. I also may need to add custom classes for styling etc etc.

I have noticed the container1 container2 and how they are linked to the wrapper and wrapper.bottom in the catalog.xml but if I change anything here all products will be changed.

Is there anyway to pull in the custom options for that simple product just for my custom view.phtml template without using container 1 and 2. Maybe reference a new container? As I said i don't want all products being affected by the change.

Hopefully someone can help, thanks in advance.


texts:
For the past two months my site has been working well, but suddenly it does the following.

When I click the continue button in the checkout, the next page billing information appears and the if I try to enter the details it is redirected to shopping cart page.

My website can be found at http://callofthehorizon.com/


texts: Dynamic create block in magento 2 and send as ajax call response?

texts:
I want replacement of following in magento 2.x

$block = $this->getLayout()->createBlock('customer/form_login')->setTemplate('persistent/customer/form/login.phtml');

$this->getResponse()->setBody($block->toHtml());


texts: How to hide price for guest user with plugin functionality in product pages and category pages?


texts: Get current URL of page outisde AJAX request?

texts:
I'm loading parts of the page via AJAX whose content includes a customer login link:
Mage::helper('customer')->getLoginUrl()

Clicking the link gets the user to the login page and returns back to the HTTP referrer. Now that's the problem. Since the link is inside the content of an AJAX request the return/referer URL will be http://www.domain.com/ajaxhelper/ajax/custom_ajax/

How do I get the current URL outside the AJAX content? So when I load http://www.domain.com/ajaxhelper/ajax/custom_ajax/ via AJAX from http://www.domain.com/category-a.html I'd like to return http://www.domain.com/category-a.html instead of http://www.domain.com/ajaxhelper/ajax/custom_ajax/

Already tried this:

$session = Mage::getSingleton('customer/session');
$session->setBeforeAuthUrl(Mage::helper('core/url')->getCurrentUrl());
Mage::helper('customer')->getLoginUrl();

but as said Mage::helper('core/url')->getCurrentUrl() returns the url of the AJAX helper instead of the page invoking the AJAX request.


texts: GetStreet() endup into an error Array to string conversion?

texts:
I am trying to call all the customer info after placing an order and insert all these info into a database. All the parameters are passing ok beside getStreet() which ends up as array into database, Just the word array is inserted into database.

Here is my code:

$client = new SoapClient('http://xxxxxxxxxx', array("connection_timeout"=>120));

$aWebOrder->CustomerAddress = new CustomerAddress;
$aWebOrder->CustomerAddress->Email              = $order->getCustomerEmail();
$aWebOrder->CustomerAddress->Address1           = $order->getBillingAddress()->getStreet();
$aWebOrder->CustomerAddress->City               = $order->getBillingAddress()->getCity();
$aWebOrder->CustomerAddress->State              = $order->getBillingAddress()->getRegion();
$aWebOrder->CustomerAddress->PostalCode         = $order->getBillingAddress()->getPostcode();
$aWebOrder->CustomerAddress->CountryID          = $order->getBillingAddress()->getCountry();

    $params = array(
    'OrderWebAPILogin' => array("login" => 'xxx', "password"=> 'xxx'),
    'DbVersion' => 16,
    'Order' => $aWebOrder,
    'RequestOptions' => NULL
    );

  $result = $client->addOrder($params);

The error i get into the log file is :

Array to string conversion  in C:\xampp\htdocs\xxx\app\code\local\InsertOrder\OrderExport\Model\Export.php on line 215

The line 215 is this line:

 $result = $client->addOrder($params);


texts: admin/catalog_category/index very slow, large catalog of 20,000 skus

texts:
We currently have an issue on a site where certain admin requests are taking upwards of 40 seconds to complete. It has a large amount of SKUs (22,000), 1 store and also a number of custom modules.

The front end of the site is nice and responsive, as is most of the admin panel. The problem is that any requests that require catalog related lookups show a very long response time. For example the following action:

admin/catalog_category/index = 40+ secs

I understand that the catalog size means expensive SQL joins. Server hardware doesn't seem to be a bottleneck with CPU and memory usage looking reasonable.

SQL query caching is showing a high hit rate.

My question is:

Is there anything that can be done to work around this kind of problem short of rewriting Magento's catalog DB schema? How do other really large sites address this kind of issue? Is this just something that needs to be put up with given the catalog size?


texts:
When trying to upgrade from Magento 2.2.5 to 2.2.6 I've noticed some strange behavior blocking the upgrade. The first commands I did without problem are:

composer require magento/product-community-edition 2.2.6 --no-update
composer update
rm -rf var/di var/generation

Following this I normally clear the cache (php bin/magento cache:flush) but I get the following error:

[Symfony\Component\Console\Exception\CommandNotFoundException]
  There are no commands defined in the "cache" namespace.

Are the cache commands removed/changed in 2.2.6 or is this a problem straight away?

I tried to continue without that (using command: php bin/magento setup:upgrade) but I get a different error:

[Magento\Framework\Exception\LocalizedException]
  Init vector must be a string of 32 bytes.

Things I have tried so far:

Roll back changes and use same update process without first specifying version 2.2.6. This updated several modules including 3rd party ones. Cache command was working fine and the whole thing went smoothly. Following that I tried updating to 2.2.6 again but got the same errors as above.
Double checked the file system ownership was set correctly using commands I previously have used.

Any ideas?


texts:
Magento2 How to show categories of product when product is opened from search bar?
i want to load all parent categories id of product that i want to open from direct search bar not from menu.


texts: How to add link from zip code Waring message in magneto 2 using i18n csv file

texts: How to add link from zip code Waring message in magneto 2 using an i18n CSV file.


texts: Error 404 : The requested page do not exist

texts:
My target URL is: http://mylocalhost/devis/customer/printPdf
But it triggers a 404 and I can't find why
I have my frontend router
app/code/FT/Devis/etc/frontend/routex.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
    <router id="standard">
        <route id="devis" frontName="devis">
            <module name="FT_Devis" />
        </route>
    </router>
</config>

And I have my Controller
app/code/FT/Devis/Controller/Customer/PrintPdf.php
And of course, this class extends the action to have his own construct and execute method.
Can't figure out why this routes is not working.
Moreover, it was something who worked before I think.


texts: Magento 2: How to remove Tooltips from checkout page?

texts:
I tried to remove tooltip in several ways but anything worked.
What's the XML code needed to do this and in which xml file do i have to make the change?

Here is one of my attempts

    <referenceBlock name="checkout.root">
        <arguments>
            <argument name="jsLayout" xsi:type="array">
                <item name="components" xsi:type="array">
                    <item name="checkout" xsi:type="array">
                        <item name="children" xsi:type="array">
                            <item name="steps" xsi:type="array">
                                <item name="children" xsi:type="array">
                                    <item name="shipping-step" xsi:type="array">
                                        <item name="children" xsi:type="array">
                                            <item name="shippingAddress" xsi:type="array">
                                                <item name="children" xsi:type="array">
                                                    <item name="telephone" xsi:type="array">
                                                        <!--Remove item-->
                                                        <item name="tooltip" xsi:type="array">
                                                               <item name="componentDisabled" xsi:type="boolean">true</item>
                                                        </item>
                                                    </item>
                                                </item>
                                            </item>
                                        </item>
                                    </item>
                                </item>
                            </item>
                        </item>
                    </item>
                </item>
            </argument>
        </arguments>
    </referenceBlock>


texts:
Can't open admin panel of magento, I've installed local-de language and an extension for Wordpress, can any one help on this please.

There has been an error processing your request

Unable to Connect to tcp://magento.hz-gn.com:80. Error #110: Connection timed out

Trace:

#0 /home/applivecalc/public_html/smykkebazar/magento/lib/Zend/Http/Client.php(1065): Zend_Http_Client_Adapter_Socket->connect('magento.hz-gn.c...', 80, false)
#1 /home/applivecalc/public_html/smykkebazar/magento/app/code/local/Hzgn/All/Model/Feed/Extensions.php(88): Zend_Http_Client->request('HEAD')
#2 /home/applivecalc/public_html/smykkebazar/magento/app/code/core/Mage/Core/Model/App.php(1357): Hzgn_All_Model_Feed_Extensions->checkExtensions(Object(Varien_Event_Observer))
#3 /home/applivecalc/public_html/smykkebazar/magento/app/code/core/Mage/Core/Model/App.php(1336): Mage_Core_Model_App->_callObserverMethod(Object(Hzgn_All_Model_Feed_Extensions), 'checkExtensions', Object(Varien_Event_Observer))
#4 /home/applivecalc/public_html/smykkebazar/magento/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#5 /home/applivecalc/public_html/smykkebazar/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(527): Mage::dispatchEvent('controller_acti...', Array)
#6 /home/applivecalc/public_html/smykkebazar/magento/app/code/core/Mage/Adminhtml/Controller/Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch()
#7 /home/applivecalc/public_html/smykkebazar/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(407): Mage_Adminhtml_Controller_Action->preDispatch()
#8 /home/applivecalc/public_html/smykkebazar/magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#9 /home/applivecalc/public_html/smykkebazar/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#10 /home/applivecalc/public_html/smykkebazar/magento/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#11 /home/applivecalc/public_html/smykkebazar/magento/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#12 /home/applivecalc/public_html/smykkebazar/magento/index.php(83): Mage::run('', 'store')
#13 {main}


texts:
I want to upgrade Magento from Magento 2.2.8 to Magento 2.3.3, I have updated Magento's composer.json using following command :

  composer require magento/product-community-edition 2.3.3 --no-update

Composer json updated successfully, but when I tried to update composer json using composer update command then it's return following error.

Problem 1
        - magento/product-community-edition 2.3.3 requires zendframework/zend-stdlib ^3.2.1 -> satisfiable by zendframework/zend-stdlib[3.2.1].
        - magento/product-community-edition 2.3.3 requires zendframework/zend-stdlib ^3.2.1 -> satisfiable by zendframework/zend-stdlib[3.2.1].
        - Conclusion: don't install zendframework/zend-stdlib 3.2.1
        - Installation request for magento/product-community-edition 2.3.3 -> satisfiable by magento/product-community-edition[2.3.3].

What I need to do for solve this error?

Thanks in advance.


texts: Category Flat Data problem: description is missing in flat table without indexing error

texts:
I'm working on M1 CE 1.7.0.2.

I've enabled Use Flat Catalog Category from backend (catalog/frontend/flat_catalog_category = 1).

Then I reindex php shell/indexer.php --reindexall without any error.
When I check indexes in backend: all lines are green.

When I check my categories on frontend: description and category image are not showing.

If I disable the Flat Catalog Category all goes fine back again.

Generally an exception is thrown during reindex of catalog_category_flat but here, nothing.

Is anyone had facing this issue?
How can I debugging indexer to ensure he catch all category parameters before saving into catalog_category_flat_store_x db table?

Thank you in advance for your help!

After a deep analysis, I've found the code responsible of this situation.

The method in cause is responsible of retrieving attributes values when index process is saving data to flat table:

Mage_Catalog_Model_Resource_Category_Flat::_getAttributeTypeValues().

protected function _getAttributeTypeValues($type, $entityIds, $sid)
{
    $select = $this->_getWriteAdapter()->select()
        ->from(
            array('def' => $this->getTable(array('catalog/category', $type))),
            array('entity_id', 'attribute_id')
        )
        ->joinLeft(
            array('store' => $this->getTable(array('catalog/category', $type))),
            'store.entity_id = def.entity_id AND store.attribute_id = def.attribute_id AND store.store_id = '.$sid,
            array('value' => $this->_getWriteAdapter()->getCheckSql('store.value_id > 0',
                $this->_getWriteAdapter()->quoteIdentifier('store.value'),
                $this->_getWriteAdapter()->quoteIdentifier('def.value'))
            )
        )
        ->where('def.entity_id IN (?)', $entityIds)
        ->where('def.store_id = ?', Mage_Catalog_Model_Abstract::DEFAULT_STORE_ID);
    return $this->_getWriteAdapter()->fetchAll($select);
}

The problem is at line 829:

  where('def.store_id = ?',
  Mage_Catalog_Model_Abstract::DEFAULT_STORE_ID);

This is a $select output example analyzed during my debug:

  SELECT def.entity_id, def.attribute_id, IF(store.value_id > 0,
  store.value, def.value) AS value FROM
  catalog_category_entity_text AS def LEFT JOIN
  catalog_category_entity_text AS store ON store.entity_id =
  def.entity_id AND store.attribute_id = def.attribute_id AND
  store.store_id = 43 WHERE (def.entity_id IN ('1', '164')) AND
  (def.store_id = 0)

Look at the end: def.store_id = 0

This condition exclude the description that are saved at store view level.
It means category description is indexed only if description is save on default scope.

My categories get no description value at default scope, then receive a value only at store view level.

If I comment the line 829 then reindex, it works like a charm.

Then I thought maybe it was updated in a newer release of Magento CE.
I've checked the 1.9.1 and this method hasn't changed.

Is this situation normal?
I think it's not.

I hope a Magento Guru will get through here to give his advice.

Cheers.


texts: Magento2 Newsletter grid custom column filter not working

texts:
I have added some custom columns in newsletter grid but unfortunately filter is not working for my custom columns in grid, can anyone let me know what could be issue or something i am missing to add? when i filter with custom column, nothing filters.

Here is the code i have done so far,this is code of newsletter_subscriber_block.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="adminhtml.newslettrer.subscriber.grid.columnSet">
            <block class="Magento\Backend\Block\Widget\Grid\Column">
                <arguments>
                    <argument name="header" xsi:type="string" translate="true">Urgency</argument>
                    <argument name="index" xsi:type="string">urgency</argument>
                    <argument name="type" xsi:type="string">options</argument>
                    <argument name="options" xsi:type="array">
                        <item name="withinweek" xsi:type="array">
                            <item name="value" xsi:type="string">1</item>
                            <item name="label" xsi:type="string" translate="true">With in 3 Weeks</item>
                        </item>
                        <item name="afterweek" xsi:type="array">
                            <item name="value" xsi:type="string">0</item>
                            <item name="label" xsi:type="string" translate="true">After 3 Weeks</item>
                        </item>
                    </argument>
                    <argument name="header_css_class" xsi:type="string">col-urgency</argument>
                    <argument name="column_css_class" xsi:type="string">col-urgency</argument>
                </arguments>
            </block>
        </referenceBlock>
    </body>
</page>

I have override existing newsletter grid layout xml and put custom column code like above code explained.


texts: Magento EE and Magento ECE both are same

texts:
I'm planning to purchase Magento 2 Enterprise Cloud Edition.

I have one doubt

Is Magento 2 Enterprise Edition(EE) and Magento 2 Enterprise Cloud Edition(ECE) both are same?

The Reason:

If Magento ECE support Magento EE code

It took some months to completed the project so I think first we need to completed the project locally in Magento EE then purchase Magento ECE and move on our changes.

If Magento ECE does not support Magento EE code

I need to purchase now and start project from the scratch.

please advice me


texts: Magento2 which css to modify for navigation menu

texts:
Hi I'm trying modify the top navigation in the frontpage.
Closer inspection shows that it belongs to this class,

.rd-navbar-static .rd-navbar-nav
li.rd-navbar--has-dropdown:before, .rd-navbar-static .rd-navbar-nav li.rd-navbar--has-megamenu>a:before {content: "";
  display: inline-block;
  font-family: "Material Icons";
  font-weight: 400;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translate(0, 0); }

however after grepping my system I find a list of files that contains the keyword I need.

/var/www/html/app/design/frontend/TM/Spice/web/fonts/material-icons/MaterialIcons-Regular.eot
/var/www/html/app/design/frontend/TM/Spice/web/css/source/_variables.scss
/var/www/html/app/design/frontend/TM/Spice/web/css/source/.sass-cache/36ebafa5c6a78e91d6c5a10f3c7799a46af04876/_variables.scssc
/var/www/html/app/design/frontend/TM/Spice/web/css/style.css
/var/www/html/app/design/frontend/TM/Spice/web/css/modules.css
/var/www/html/app/design/frontend/TM/Spice/web/css/material-icons.css
/var/www/html/pub/static/frontend/TM/Spice/en_US/fonts/material-icons/MaterialIcons-Regular.eot
/var/www/html/pub/static/frontend/TM/Spice/en_US/css/source/_variables.scss
/var/www/html/pub/static/frontend/TM/Spice/en_US/css/modules.min.css
/var/www/html/pub/static/frontend/TM/Spice/en_US/css/style.min.css
/var/www/html/pub/static/frontend/TM/Spice/en_US/css/material-icons.min.css
/var/www/html/var/view_preprocessed/source/frontend/TM/Spice/en_US/css/modules.min.css
/var/www/html/var/view_preprocessed/source/frontend/TM/Spice/en_US/css/style.min.css
/var/www/html/var/view_preprocessed/source/frontend/TM/Spice/en_US/css/material-icons.min.css

the questions is which of these files is the one I need to modify? For example say I want to change the font to Arial.  thank you.


texts: What's the function of $imageId parameter in Image Helper(Magento\Catalog\Helper\Image)

texts:
What's the function of $imageId parameter in Magento2 Image Helper?

What is the value I should assign to it if I create a new module for new purpose?

$_imagehelper = $this->helper('Magento\Catalog\Helper\Image');
$_imagehelper->init($_product, $imageId)->keepAspectRatio(true)->resize('400', '400');


texts: Free gift based on subtotal through coding? Which event dispatch?

texts:
On every 25€ I wish to offer a product as a gift. With every 25 it increases another gift is added. So for instance, 102,50 will give 4 gifts.

I've allready got this working through cart.phtml. I know it actually should be done in code/local, but I'm having problems finding the proper dispatch event.
There are events for adding a product, deleting etc. However, I need to make a definition on every action done in the cart.

I'm looking for an event which triggers as soon as the cart is called. This avoids a lot of hassle.

I've got the basic script working, I only need the direction to where and how I could insert this script.


texts: Get custom command line parameter during module install() process

texts:
Is there a way to access command line parameters from inside the magento installer routines?  I'm attempting to set up a few custom variables representing our current environment (dev / test / prod) etc.  I was hoping to pass this in to the command line.

Like this...

public function install(
            \Magento\Framework\Setup\ModuleDataSetupInterface $setup,
            \Magento\Framework\Setup\ModuleContextInterface $context,
            \SOMETHING\INJECTED\FOR\COMMAND\LINE $cmdLine)
        {

            $setup->startSetup();
            // DO MY STUFF
            if ($cmdLine->getEnv() == "DEV") {

.... like that

I'm going back to search. Google is not cooperating right now ;)


texts:
app/code/namespace/module/view/adminhtml/ui-component/product_form.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * Copyright 2013-2017 Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <argument name="data" xsi:type="array">
        <item name="template" xsi:type="string">templates/collapsible2</item>
    </argument>
</form>

Does not render app/code/namespace/module/view/adminhtml/ui-component/templates/collapsible2.xhtml

But if I copy vendor/magento/module-catalog/view/adminhtml/ui_component/product_form.xml and modify the template line and make that app/code/namespace/module/view/adminhtml/ui-component/product_form.xml, and then move or delete vendor/magento/module-catalog/view/adminhtml/ui_component/product_form.xml it works.  If I don't move or delete the core file I can't override the template :((((


texts: Magento 2.0 extensions/plugins compatibility

texts:
We are planning to upgrade one of the Magento store to version 2.0, and during the first phase, were checking the compatibility of version 2.0 with following extensions/plugin which store is using. Can anyone please tell me if these are compatible? or if there is any alternate way of using them in Magento 2.0

AOE Scheduler --- Not Found

Brainvire - OrderComment --- Not Found

PRESELECT COLORS PLUS SWATCHES - 3.5.4 --- Not Found

Cm_RedisSession --- Not Found

Creare_Exportdownloads --- Not Found

Dotdigitalgroup_Email --- Not Found

Dotdigitalgroup_Mailcheck --- Not Found

Dotsquares_Taxrate --- Not Found

Fix_FixBlockCacheInvalidated --- Not Found

Flagbit_ChangeAttributeSet --- Not Found

Mass 301 Redirects - Optimise Web --- Not Found

OrganicInternet_SimpleConfigurableProducts  ---  Not Found

Payserv_GoogleFinance  ---  Not Found

Phoenix_Moneybookers  ---  Not Found

Phoenix_VarnishCache  ---  Not Found

Spranks_RefreshBlockHtmlCache  ---  Not Found

ThinkEgyptian_Gridthumbs  ---  Not Found

Wee_Base  ---  Not Found

Grid Actions  ---  Not Found

XtCore  ---  Not Found

Thanks,
Farmi


texts: After buy a giftcard I got blank screen in success page

texts:
If I add 'Gift Card' in cart I get empty/blank page on success page without footer.

It happens only if I add gift card and there is no errors in logs.

How can I fix this?


texts:
How can i get the checkout link for orders created but stil waiting payment ?
So i can send an email to the customer with the link of the checkout with the gateway option of payment.
Is there any way to to this with custom module ?   Or are there any existing extesion for this in the market ?
Magento 2.3.5


texts:
Whenever I change less files in my current theme I get logged out from the backend.

I'm using server-side compilation
I'm using grunt with livereload.
I'm in developer mode.

Both of them seem to work fine in themselves apart from the part where I get logged out.

Any ideas why this might be happening every single time?


texts: Magento 2.2 - Simple Product price incl tax decimal point custom logic

texts:
Want to show a simple product price in the following way on the product list and detail page.

Magento price: 5623.50 With TAX( 10% ) it’s displayed in the front end
as : 5623.50 + 562.35 = 6185.85
we will take the decimal value part (0.85)
Then 1 minus the decimal part 1 - 0.85 = 0.15
Price including TAX + 0.15 = 6185.85 + 0.15 = 6186.00
Customer will pay 6186.00

Till now used afterGetPrice plugin method.

namespace Pr\Ro\Plugin;

use Magento\Catalog\Api\Data\ProductInterface;

class Product
{

    public function afterGetPrice( ProductInterface $subject, $result ) {
        return calculateLogiceMagentoPrice($result);
        //return $result;
    }

    public function calculateLogiceMagentoPrice( $price )
    {
        $whole = floor($price);
        $fraction = $price - $whole;
        $minus_decimal = 1 - $fraction;
        $finalPrice = $price + $minus_decimal;
        return $finalPrice;
    }

}

tried with "Magento_Catalog/js/price-utils" and 'PriceModifiers' also


texts: Magento 1: Terms and Conditions sort order if more than one

texts: I have 3 Terms and Conditions for checkout process. All 3 T&C are just checkboxes because I did some changes in template hiding the content box. By default Magento is listing the terms one after other based on their ID's. Did anyone change the module inserting in checkout_agreement table a new field called position and let Magento sorting by it?


texts: Set Color Attribute for Simple Product Programmatically

texts:
I'm going to set an attribute value to simple product programmatically. I have used below code:

$configurableAttributes = json_decode($simpleProduct['configurable_attribute'], true);
// array('color' => 4);
foreach ($configurableAttributes as $key => $value) {
        //Color Attribute
        $attr = $product->getResource()->getAttribute($key);
        // Black
        $attributeOption = $attr->getSource()->getOptionText($value);

        $product->setData($key,$attributeOption);
        $product->save();
     }

I have also tried:

$product->setCustomAttribute($key,$attributeOption);

But when check in grid in Catalog. It show that the product have not attribute "Color" value. I'm wondering where I was wrong? Someone please  help!


texts:
For some reason when I access Login page I get on browser title "Payments".
I searched everywhere for word "Payments" in my code and in Magento admin and remove it completely. The word "Payments" has gone from everywhere except from Login page title.

What I would like to do now is go into login.phtml or anywhere else and say:

if ($url = 'login') { setTitle('login')}

But, I have failed. No matter what I do "Payments" stays. I belive if I deleted the all Internet the word "Payments" will still remain.

Can someone help me force the title change on that login page?


texts: "Be the first to review this product" is not working for me

texts:
I'm using Magento 2. Product review button is not working for me. When I click on it re-directs to the same page.

Anyone can help me to resolve this problem?


texts: How can i apply extra fees for selected products

texts: I need to apply some percentage off fees for selected products, how can I do that?


texts: magento 2 store manager always returns default store id

texts:
I'm implementing module which have to store different data for all stores, so i need get current store id and set id to db with new records. I'm trying get store id this way

$storeId = $this->_storeManager->getStore()->getId();

But when i change scope to another store (which has id "2") then $storeId still has value "1" (default store). I see that last param in my url has changed
store/2/
but in code has returned default store id. Any idea what causing that problem?

My sourcecode

<?php

namespace Sample\Module\Block\Adminhtml\Category\Tree;
use Magento\Catalog\Model\ResourceModel\Category\Collection;
use Magento\Framework\Data\Tree\Node;
use \Magento\Store\Model\StoreManagerInterface;

/**
 * Category container block
 */
class Supplier extends \Magento\Framework\View\Element\Template
{

    /**
     * Category Map collection
     *
     * @var \Sample\Module\Model\Resource\CategoryMap\CollectionFactory
     */
    protected $_categoryMapCollectionFactory;

    /**
     * @var StoreManagerInterface
     */
    protected $_storeManager;

    /**
     * @param \Magento\Backend\Block\Template\Context $context
     * @param \Sample\Module\Model\Resource\CategoryMap\CollectionFactory $categoryMapCollectionFactory
     * @param StoreManagerInterface $storeManager
     * @param array $data
     */
    public function __construct(
        \Magento\Backend\Block\Template\Context $context,
        \Sample\Module\Model\Resource\CategoryMap\CollectionFactory $categoryMapCollectionFactory,
        StoreManagerInterface $storeManager,
        array $data = []
    ) {
        $this->_categoryMapCollectionFactory = $categoryMapCollectionFactory;
        $this->_storeManager = $storeManager;
        parent::__construct($context, $data);
    }

    /**
     * @param int $categoryId
     *
     * @return \Sample\Module\Model\Resource\CategoryMap\Collection
     */
    protected function getMapsForCategory($categoryId)
    {
        $categoryMapCollection = $this->_categoryMapCollectionFactory->create();

        $storeId = $this->_storeManager->getStore()->getId();

        $categoryMapCollection
            ->addFilter('integrastore_category_id', $categoryId)
            ->addFilter('shop_id', $storeId)
            ->load();

        return $categoryMapCollection;
    }

}


texts: Unable to get Product custom image role in magento 2

texts:
i have created new image role name "tiles_images", i product listing page i want to show tile_image only , for this i have done below code but that seems not working

i am using below code in my Magento_Catalog/templates/product/list.phtml

$customIcon = $_product->getResource()->getAttribute('tiles_images')->getFrontend()->getValue($_product);
print_r($customIcon);

but it seems not working please help what i am missing


texts: Why I can't delete my default stock and source in the MSI?

texts: I've tried to remove the default stock and source, why I'm not allowed to do it?


texts: Transferring website from server to localhost using WAMP

texts:
I'm trying to transfer live website to me localhost.

Steps I did:
 1. Made folder in wamp/www
 2. Copied FTP files there
 3. Imported database
 4. Changed core_config_data for unsucure/base url and sucure/base url to http://localhost/FolderImade
 5. Deleted everything in var folder
 6. Updated database host, name and password in etc/local.xml

This is the result I'm getting with console feed:
http://imgur.com/a/ThOYY

So far I have tried suggestions I've found in different threads for example:

UPDATE cms_block SET cms_block.content = REPLACE (cms_block.content, 'sitename.com', 'sitename.dev');
UPDATE cms_page SET cms_page.content = REPLACE (cms_page.content, 'sitename.com','sitename.dev');

And

TRUNCATE dataflow_batch_export ;
TRUNCATE dataflow_batch_import ;
TRUNCATE log_customer ;
TRUNCATE log_quote ;
TRUNCATE log_summary ;
TRUNCATE log_summary_type ;
TRUNCATE log_url ;
TRUNCATE log_url_info ;
TRUNCATE log_visitor ;
TRUNCATE log_visitor_info ;
TRUNCATE log_visitor_online ;
TRUNCATE report_event ;

And

ALTER TABLE `log_visitor_info` CHANGE `visitor_id` `visitor_id` BIGINT(20) UNSIGNED NOT NULL COMMENT 'Visitor ID';

And

If you are using apache rewrites and not storing your site in the root web directory (i.e. you are storing it at localhost/foo, make sure you have the line RewriteBase /foo/ present and uncommented in .htaccess

Also I've tried some other stuff I found in various threads.For additional info I'm using windows 7. Magento ver. 1.8.1.0    Does anyone have any idea how to fix this ?


texts: fatal error Call to a member function getReadConnection() pn boolean on my localhost

texts:
I AM GETTING THIS on going to my backend or front end on magento 1.9.2.2

  Fatal error: Call to a member function getReadConnection() on boolean
  in C:\xampp\htdocs\shokart\includes\src__default.php on line 32629

I dont know what to do as i am new to magento


texts:
I am having trouble getting a custom .phtml file to output in the footer.

Here is the path to the file:

beckin/themesettings/socialaccounts.phtml

I created an xml file called beckin_themesettings.xml

Here is what I have inside of the xml file:

<?xml version="1.0"?>

<layout version="0.1.0">

           <reference name="footer">
                 <block type="core/template" name="socialAccounts" template="beckin/themesettings/socialaccounts.phtml"/>
           </reference>

</layout>

Here is how I am calling it in my footer:
<?php echo $this->getChildHtml('socialAccounts') ?>

But it is not rendering the file.

However, if I move the info to the page.xml file it will work. What am I doing wrong?

Here is the relevant part of the page.xml file:

        <block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
            <block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label">
                <label>Page Footer</label>
                <action method="setElementClass"><value>bottom-container</value></action>
            </block>
/*** If I enter my block here it will work??? ***/
            <block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml"/>
            <block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>
            <block type="beckintwitter/twitter" name="twitter_feeds" as="twitter_feeds" template="twitter/twitter.phtml"/>
        </block>

Here is my config.xml file

<?xml version="1.0"?>
<config>
    <modules>
        <Beckin_ThemeSettings>
            <version>1.0.0</version>
        </Beckin_ThemeSettings>
    </modules>
    <frontend>
        <layout>
            <updates>
                <themesettings>
                    <file>beckin_themesettings.xml</file>
                </themesettings>
            </updates>
        </layout>
    </frontend>
    <global>
        <helpers>
            <themesettings>
                <class>Beckin_ThemeSettings_Helper</class>
            </themesettings>
        </helpers>
    </global>
    <default>

    </default>
</config>


texts: Magento 2 - all custom routing suddenly broken

texts:
I have a local Magento 2 site, not much changed recently. But all of a sudden, all custom routing, no matter what module it is from, is broken. In admin and frontend, I get 404s (from Magento, not a default php 404) for all routes that are not Magento core.
I downloaded everything from the working live site, just in case I'm missing anything, rolled back the code several months just to see if it fixes it, synced the database, reinstalled composer, compiled and upgrade and cleared cache a million times.
I disabled all third party modules except one that has custom routes, then swapped it for another one. Same result. All 404s.
I'm at a total loss - how can I debug this?


texts: Why configurable attributes cannot be system attributes?

texts:
Yesterday I run into an issue while creating configurable products with our custom import task. It seems that Magento requires configurable attributes to be user_defined. So, what happens with attributes created programmatically defined as system attributes to avoid the admin users to edit them?

Is this just a bug or there is a reason behind it?

class Magento\ConfigurableProduct\Model\Product\Type\Configurable

    /**
     * Check attribute availability for super product creation
     *
     * @param  \Magento\Catalog\Model\ResourceModel\Eav\Attribute $attribute
     * @return bool
     */
    public function canUseAttribute(\Magento\Catalog\Model\ResourceModel\Eav\Attribute $attribute)
    {
        return $attribute->getIsGlobal() == \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_GLOBAL &&
            $attribute->getIsVisible() &&
            $attribute->usesSource() &&
            $attribute->getIsUserDefined();
    }


texts:
I can't seem to find which Mage model calculates the tax for an admin order.

I found the one that calculates it for a user order but not the one in the admin order create screen.

Anyone know which Model calculates the tax for this?


texts: Magento 2.2 how to change header link create an account text to icon

texts:
I want to change create an account text to icon.

I can find the layout file under

  var\www\html\vendor\magento\module-customer\view\frontend\layout\default.xml

 <block class="Magento\Customer\Block\Account\RegisterLink" name="register-link">
        <arguments>
            <argument name="label" xsi:type="string" translate="true">Create an Account</argument>
        </arguments>
</block>

How to change create an account text to icon


texts: Custom product attribute doesn't display on cart and confirm mail

texts:
I need some help because I don't know how to fix this problem.

On my product, I have 3 attributes (classe, dimension, color) and I choose with a select the value.

But when I go to the cart page, the value does not display, same issue on confirm mail.

Someone have an idea to fix ?

Thanks


texts: admin block grid filter is reloading page issue in tab view

texts: Need to avoid reloading entire page when searching field...


texts: Added duplicate td for existing table using jQuery

texts:
I am trying to add a td for existing table using jQuery. But it's adding duplicate. How to validate exactly to add the td.

I have tried below code:

    head1
    head2
    head3
    head4

            a1
            a2
            a3

            c1
            c2
            c3

jQuery code

I want to add a td where exactly match the class="test" is, but it's adding both class="test test2" and class="test".

How can I do this?


texts: Building business marketplace for local business using Magento

texts:
I'm new to Magento. I learnt about features of Magento2. I'm planning to develop business marketplace for local businesses where any business(Groceries) can register. After register business could create stores(multiple location). Each store could have online store as well as offline POS. Each store would have it's own Inventory, Catalog, Vendor, Shipping, Payment, and so on.

Can anyone suggest me how should I start processing? Any extensions that can be implement for above business model? This might be vague question. :)


texts: Category tree in "Manage Categories" page - not showing subcategories

texts:
In my magento's "Manage Categories" page, clicking the + sign for a particular category, makes the plus sign disappears and no subcategories are displayed.

If I access category tree, by selecting Catalog > Manage Products > (select product) > Categories tab, the category tree works ok.

1) There are no javascript errors on Manage Categories page
2) I checked the catalog_category_entity table. The category's path, level and children_count seem correct to me:

entity_id: 7
parent_id: 2
path: 1/2/7
position: 1
level: 2
children_count: 22252

Any suggestions about this issue?


texts: Have your default store attributes run parallel with a second store when you update in admin

texts: I have a standard default store 0 and i have a new store with an id of 13. When description or long description is updated in the main store i want it to update in my storeId 13 too. Almost any attribute that gets updated in my main store I would like to run parallel with my store 13. The only attributes i do not want to be updated together is "status, quantity, visibility and price". Is this possible through admin or will i have custom code to write?


texts: Bundle products search/reset filter redirects to dashboard

texts:
SOLUTION BELOW

I have a problem when i'm trying to select some products for my bundle product. In the interface as seen below, i didn't get any products. After some Googling, i found out that i should click on "Reset filter" to get all products.

When i click on the "Reset filter" button, it redirected me to the dashboard. In my console there is a error.

"POST http://website.com/index.php/admin/bundle_selection/grid/index/0/key/f7390d1774b3bacf07841adce6c49fef/filter//?ajax=true&isAjax=true 503 (Service Unavailable)" in prototype.js:1530.

I've checked the version of prototype.js (1.7) and i have tried to update it to version 1.7.2. This has no effect. I'm using Magento 1.9.0.1.

I hope that anyone could help me with this problem ;)
Thanks in advance!

SOLUTION:
I found the solution, in my var/report file was an error involving the Currency. It used an Array, not my currency (EUR). I didn't select an currency in the configuration properly. Thnx!


texts: Change Header Minicart container effect from dropdown to slide(right to left) in magento2

texts:
After added any product to cart we can see that item in minicart header. So when we click on minicart then it's show product with dropdown effect. I want to change this dropdown effect to slider from right to left.

I have attached image and effect showing in image is dropdown.

And one more thing is this minicart dropdown effect work using Knockout.js I have found  .js file that is responsible for dropdown effect but now I want to change this effect to slide from right to left.

Below is part of minicart.phtml file.

        <?php echo $block->getChildHtml('minicart.addons'); ?>

In above code if we show I'm sure  data-role="dropdownDialog" and data-mage-init='{"dropdownDialog":{}} coming from knockout.Js.

So I go to app/design/frontend/package_name/theme_name/Magento_Checkout/web/js/view/minicart.js file and I found below code.

miniCart.on('dropdowndialogopen', function () {
    initSidebar();
});

closeSidebar: function () {
        var minicart = $('[data-block="minicart"]');
        minicart.on('click', '[data-action="close"]', function (event) {
            event.stopPropagation();
            minicart.find('[data-role="dropdownDialog"]').dropdownDialog('close');
        });

        return true;
    }

SO I thought if I'll change dropdownDialog to SlideRight/SlideLeft then my issue will solve but after done this minicart dropdown stop working.

So can anyone help me to change minicart dropdown effect to sliderRight to Left? How can I do this?


texts:
I am able to login in admin section, but the problem I am facing is that it logs out after some time.

The admin remains logged in for different time periods.

This is what I have done :

Installed a magento 2.1.2 without sample data.
Installed some of my modules and I started facing this issues.

I have a lot of modules. So what could possibly be wrong in my modules. How can I track a problem ?

I would like to know possible reasons for this problem. Thanks !


texts: How to use Magento 2 with MariaDB Data-at-Rest Encryption for HIPAA compliance

texts:
As one of the requirements for HIPAA compliance is to store all Protected Health Information (PHI) encrypted at rest, and since customers, quotes, orders will be considered as PHI, I thought that MariaDB Data-at-Rest Encryption might be a good solution to this.
However before investigating this option any further, wanted to check with wider community if anyone had experience using encrypted database with Magento 2 and what are the steps to set it up (is it possible OTB, or some dev adjustments required, etc.)
Thanks in advance


texts: How to filter product by specific attribute in Magento 2?

texts: I want to filter a collection of products by product (brand) attribute, thanks


texts:
After an upgrade from 2.1.9 to 2.2.2, I am getting an error with the use of a Logger class in a custom module.  The error is:

  PHP Fatal error:  Uncaught TypeError: Argument 3 passed to
  Biztech\Auspost\Model\Carrier\Auspost::__construct() must be an
  instance of Biztech\Auspost\Logger\Logger, instance of
  Magento\Framework\Logger\Monolog given, called in
  /var/www/html/magento-2.2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 111 and defined in
  /var/www/html/magento-2.2/app/code/Biztech/Auspost/Model/Carrier/Auspost.php:55\nStack
  trace:\n#0
  /var/www/html/magento-2.2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111):
  Biztech\Auspost\Model\Carrier\Auspost->__construct(Object(Magento\Framework\App\Config\Interceptor),
  Object(Magento\Quote\Model\Quote\Address\RateResult\ErrorFactory),
  Object(Magento\Framework\Logger\Monolog),
  Object(Magento\Shipping\Model\Rate\ResultFactory),
  Object(Magento\Quote\Model\Quote\Address\RateResult\MethodFactory),
  Object(Magento\Framework\App\ObjectManager),
  Object(Biztech\Auspost\Helper\Data),
  Object(Magento\Checkout\Model\Cart\Interceptor),
  Object(Magento\Checkout\Model\Session\I in
  /var/www/html/magento-2.2/app/code/Biztech/Auspost/Model/Carrier/Auspost.php
  on line 55

I am definitely passing an instance of Biztech\Auspost\Logger\Logger, so I am not sure why Magento thinks it is an instance of Magento\Framework\Logger\Monolog

The Logger class is defined as:

<?php

namespace Biztech\Auspost\Logger;

class Logger extends \Monolog\Logger {

}

And is called with this constructor:

<?php
namespace Biztech\Auspost\Model\Carrier;

...
use Biztech\Auspost\Logger\Logger;

protected $_logger;

class Auspost extends AbstractCarrier implements CarrierInterface
{

  ...

public function __construct(
    ScopeConfigInterface $scopeConfig,
    ErrorFactory $rateErrorFactory,
    \Biztech\Auspost\Logger\Logger $logger
    ....
{
    $this->_logger = $logger;

I also have a di.xml file as:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd">
    <type name="Biztech\Auspost\Logger\Handler">
        <arguments>
            <argument name="filesystem" xsi:type="object">Magento\Framework\Filesystem\Driver\File</argument>
        </arguments>
    </type>
    <type name="Biztech\Auspost\Logger\Logger">
        <arguments>
            <argument name="name" xsi:type="string">auspost</argument>
            <argument name="handlers"  xsi:type="array">
                <item name="system" xsi:type="object">Biztech\Auspost\Logger\Handler</item>
            </argument>
        </arguments>
    </type>
</config>


texts:
I've installed the data migration tool (https://devdocs.magento.com/guides/v2.4/migration/migration-tool-configure.html).
Followed the steps to configure it by creating a separate module and everything works fine.
but from the looks of it, I need to keep the credentials to the magento 1 and magento 2 databases in the configuration file that I've cloned and modified from the tool code base.
This does not look like a valid approach if I want to version my config file. I rather not have the credentials available in a repo.
Is there an out of the box way of moving the credentials outside the config file?


texts: Static blocks are displayed in the wrong store views when caching is turned on

texts:
We have a store with multiple store-views, NL, BE & EN.

When we have the "Blocks HTML output" cache activated we have the same footer in every storeview.
So we have a Dutch footer in a English shop or a English footer in our Dutch shop.

However, it’s not only one footer block but all the footer blocks. If we clear the cache its again random which language we get on every storeview. The same issue happens sometimes with slides.
When the Blocks HTML output cache is disabled, everything runs fine. We do not use any other caching extensions and we run Magento 1.9.1.