texts: Magento2 Override Resource Model does not Work

texts:
I am trying to override a resource model class Magento\Catalog\Model\ResourceModel\Product\Attribute\Backend\TierPrice to select new columns that I have created in the catalog_product_entity_tier_price table.
However, the new columns are not selected and the model is not getting overridden.

  namespace [vendor][module]\Model\ResourceModel\Product\Attribute\Backend;

class TierPrice extends \Magento\Catalog\Model\ResourceModel\Product\Attribute\Backend\TierPrice
{

    /**
     * Add qty column
     *
     * @param array $columns
     * @return array
     */
    protected function _loadPriceDataColumns($columns)
    {
        $columns = parent::_loadPriceDataColumns($columns);
        //$columns['price_qty'] = 'qty';
        //new columns
        $columns['created_by']='created_by';
        $columns['price_effective_from']='price_effective_from';
        $columns['price_effective_to']='price_effective_to';
        $columns['deletion_flag']='deletion_flag';
        return $columns;

    }
}

di.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLcation="urn:magento:framework:ObjectManager/etc/config.xsd">
   <preference for="Magento\Catalog\Model\ResourceModel\Product\Attribute\Backend\TierPrice" type="[vendor]\[module]\Model\ResourceModel\Product\Attribute\Backend\TierPrice" />
</config>

script.php

 $p=$productRepo->get('s1');
    echo $p->getName();
    $tier=$p->getTierPrices();
    foreach($tier as $t)
    {
     print_r($t->getData());
    }

  returns error Notice: Undefined index: created_by

How to override this class to add additional columns of the tier price table.

Note
I have implemented interface for the new columns. So if I directly edit the core resource model, it works.


texts: When my "grand total" is zero, the checkout button gets disabled

texts:
I've created a promotion for of a fixed amount of X on whole shopping cart. The promotion code works fine in general. But when the subtotal is less than the promotion amount, then the "Grand Total" becomes zero (which is ok) but the "Checkout" button get's disabled.

Cart Screenshot
PS: I've enabled "Zero Subtotal Checkout" with no luck.!


texts: Magento 2: Not able to duplicate the product from admin

texts:
I am using Magento 2.3.2 and I am trying to duplicate one of existing SKU from admin I clicked on save and edit and I am getting the following issue.

The value specified in the URL Key field would generate a URL that already exists.
To resolve this conflict, you can either change the value of the URL Key field (located in the Search Engine Optimization section) to a unique value or change the Request Path fields in all locations listed below:

- all-items/chip-dip-14-3-4.html

- colorwave-serving-pieces/chip-dip-14-3-4.html

- entertain-with-colorwave/chip-dip-14-3-4.html


texts: Grouping customers under a parent account in Magento 2?

texts: I am looking for a solution that will allow me to create a parent account(B2B Unit) and be able to create customer's accounts associated with the parent. It is required that the customers use the parent's billing and shipping address during the checkout process. Any recommendations for either how to implement it or which plugin to use? TIA


texts: Magento 2 item data is gone after update custom option value

texts:
i have an additional data in my item cart which can be seen with $item->getData():

[item_id] => 319
[quote_id] => 122
[created_at] => 2017-09-29 02:35:42
[updated_at] => 0000-00-00 00:00:00
[product_id] => 9
[store_id] => 4
......
[test] => 4

The problem is when i update my custom option value programmatically like this:

$buyRequest = $item->getBuyRequest();
$currentOptions = $buyRequest->getOptions();

if ($currentOptions) {
    foreach ($currentOptions as $currentOptionId => $currentOptionValue) {
        if (empty($currentOptionValue)) continue;
            switch ($currentOptionId) {
                case $commentOptionId:
                    $newOptions[$currentOptionId] = ($updateComment)
                    ? $info[$item->getId()]['comment'] : $currentOptionValue;
                    break;
                case $requestshippingdateOptionId:
                    $newOptions[$currentOptionId] = ($updateRequestshippingdate)
                    ? $convertedDate : $currentOptionValue;
                    break;
                default:
                    $newOptions[$currentOptionId] = $currentOptionValue;
                    break;
            }
    }
}
$quote->updateItem($item->getId(), $buyRequest);

When i print the $item->getData() again, the item id is different and my additional data is gone.

[item_id] => 322
[quote_id] => 122
[created_at] => 2017-09-29 02:38:45
[updated_at] => 0000-00-00 00:00:00
[product_id] => 9
[store_id] => 4
...
[test] =>


texts:
This is driving me crazy - I've used different CMS and eCommerce platforms in the past and they seemed so much easier to deal with.

So, my website (Magento 1.8) is setup with products and I offer two delivery options to all products: Next Day Delivery (£4.00) and Free Delivery (3-5 working days). I've set that up which is working great as it allows the customer to choose the delivery method.

I now have a product which I need to charge £3.00 for delivery and exclude them from the two shipping methods mentioned above, but I can't seem to be able to find a way to do this. I can't find a way to add new Shipping methods for example which I've done previously with other platforms.

Any ideas?

Kind regards
Liam


texts: cart shipping & tax automatic estimation - one country

texts:
we are plan to ship only to one default country - so the question is, how to change
Magento CE 1.8 cart Estimate Shipping and Tax block - to automatically show (calculate) all shipping methods. By default Magento requires to fill post code - but we will ship only with one country - so the price for any post code is the same.

Any hints how to force Magento to show automatically estimation without filling post code ?

Thank You


texts: I have a site i.e. nutriment.com, I want to show https and www both in the URL but the problem is that https is appearing but www not appearing the URL and https show only on the Home Page, not in the inner pages. I want to show https and www both in the URL of the site. You can check the problem on my site also my site is nutrient.com


texts:
I try to set special prices for some customers / products. The new prices are calculated in a module. But how can I display these prices in list and view mode?

In 1.9. I could use an Observer. Tried the same in 2.1., but without success:

event name="prepare_catalog_product_collection_prices"

Observer:

use Magento\Framework\Event\ObserverInterface;
use Magento\Catalog\Model\Product;
use Magento\Customer\Model\Session as CustomerModelSession;
use Magento\Framework\Event\Observer as EventObserver;

class Discount implements ObserverInterface
{
    /**
     * @var CustomerModelSession
     */
    protected $customerSession;

    public function __construct(
        CustomerModelSession $customerSession
    ) {
        $this->customerSession = $customerSession;
    }

   public function execute(\Magento\Framework\Event\Observer $observer)
    {
        if ($this->customerSession->isLoggedIn()) {
            $collection = $observer->getEvent()->getCollection();
            $cId = $this->customerSession->getCustomerId();

            foreach ($collection as $product) {
                $finalPrice = min($product->getData('final_price'), $this->getmyPrice( $product,$cId));
$_product->setMinimalPrice($finalPrice)
                  ->setPrice($finalPrice)
                  ->setFinalPrice($finalPrice);
                }

            return $this;
        }

        return $this;
    }
    public function getmyPrice($product,$cid)
    {

        $price=2;

        return price;

    }
}

Any help / hint very welcome!!


texts: Performance: Add Inventory Stock Levels on product listings list.phtml of all product types

texts:
TL;DR, The requirement is having a stock level of inventory be displayed on the category product listing page with as little additional queries/memory with performance in mind that adheres to Magento's framework.

After reading Vinai Kopp's article on preloading for scalability.

What is the best way to include the inventory stock levels on the category product listing pages (list.phtml) with as few additional queries/loads for performance sakes?

I am aware of a few approaches:

afterLoad() seems to work well with media_gallery inclusion without additional queries, however I've not been successful implementing the same approach with inventory.

$attributes = $_product->getTypeInstance(true)->getSetAttributes($_product);
$media_gallery = $attributes['media_gallery'];
$backend = $media_gallery->getBackend();
$backend->afterLoad($_product);

Direct SQL to gather the required data in parallel to the collection with a product_id key for instance.  But looking for more of a means through the framework.

Currently I am simply loading the stock_item object via:

$_product->load('stock_item')->getTotalQty(); Which works, but I notice the addition of more queries to get the inventory stock totals of all products in the collection.

...

__EAV_LOAD_MODEL__ (Mage_Catalog_Model_Product, id: stock_item, attributes: NULL)
__EAV_LOAD_MODEL__ (Mage_Catalog_Model_Product, id: stock_item, attributes: NULL)
__EAV_LOAD_MODEL__ (Mage_Catalog_Model_Product, id: stock_item, attributes: NULL)

...

  strangely, this works. The magic happens in Mage_Eav_Model_Entity_Abstract->load($object, $entityId, $attributes). If $attributes is empty it will call loadAllAttribute($object). So $product->load('blah') will load all missing attributes, including 'media_gallery' –  William Tran Nov 19 '14 at 4:45

https://stackoverflow.com/questions/7890616/get-product-media-gallery-images-from-a-product-collection-in-magento#comment42546135_23804663

Add needed values to the already loaded collection.

The obvious simple approach of adding the needed data to the top level production collection in the layer/filter, would seem to be the best approach.

I did notice an observer addInventoryDataToCollection() in Mage_CatalogInventory_Model_Observer that sounds like it would achieve such, but adding the method to a custom modules observer doesn't seem to be compatible.

<events>
    <catalog_product_collection_load_after>
        <observers>
            <inventory>
                <class>cataloginventory/observer</class>
                <method>addInventoryDataToCollection</method>
            </inventory>
        </observers>
    </catalog_product_collection_load_after>
</events>

Which results in:

  Warning: Invalid argument supplied for foreach()  in
  /app/code/core/Mage/CatalogInventory/Model/Resource/Stock/Item/Collection.php
  on line 71


texts: Shipping method that changes shipping address magento

texts:
I am trying to make a shipping method for free shipping that changes the shipping address when selected. this is what i have done so far but doesn't work where am i going wrong.

I have written this custom shipping method, its has both free and default shipping so which ever the user picks will excuse but the free shipping doesn't change the address what do i do?

<?php

class Cue_Customshippingmethod_Model_Demo
extends Mage_Shipping_Model_Carrier_Abstract
implements Mage_Shipping_Model_Carrier_Interface
{

 protected $_code = 'cue_customshippingmethod';

  public function collectRates(Mage_Shipping_Model_Rate_Request $request)
  {
        $result = Mage::getModel('shipping/rate_result');
        /* @var $result Mage_Shipping_Model_Rate_Result */

        $result->append($this->_getDefaultRate());

        if ($request->getFreeShipping()) {
            /**
             *  If the request has the free shipping flag,
             *  append a free shipping rate to the result.
             */

       $quote = Mage::getSingleton('checkout/session')->getQuote();
        $shippingAddress = $quote->getShippingAddress();
       $shippingAddress->setStreet(array('123 Main Street'))
               ->setCity('Los Angeles')
               ->setRegionId(12)
               ->setPostcode('90034')
               ->save();

            $result->append($this->_getFreeShippingRate());
        }

    return $result;
  }

  public function getAllowedMethods()
  {
    return array(
        'free_shipping' => 'Free Shipping',
        'cue_customshippingmethod' => $this->getConfigData('name'),
    );
  }

  protected function _getFreeShippingRate()
  {
    $rate = Mage::getModel('shipping/rate_result_method');

    $rate->setCarrier($this->_code);
    $rate->setCarrierTitle($this->getConfigData('title'));
    $rate->setMethod('free_shipping');
    //$rate->setMethodTitle('Free Shipping (3 - 5 days)');
    $rate->setMethodTitle($this->getConfigData('name'));
    $rate->setPrice(0);
    $rate->setCost(0);

    return $rate;
  }
   protected function _getDefaultRate() {
        $rate = Mage::getModel('shipping/rate_result_method');
        /* @var $rate Mage_Shipping_Model_Rate_Result_Method */

        $rate->setCarrier($this->_code);
        /**
         * getConfigData(config_key) returns the configuration value for the
         * carriers/[carrier_code]/[config_key]
         */
        $rate->setCarrierTitle($this->getConfigData('title'));

        $rate->setMethod('standand');
        $rate->setMethodTitle('Standard');

        $rate->setPrice($this->getConfigData('price'));
        $rate->setCost(0);

        return $rate;
    }
}


texts: How to override order.php vendor/magento/module-sales/Model/Order.php in custom module magento 2?

texts:
In Order.php i am trying to override getShippingMethod and getShippingDescription method but it is not loading the page and in logs

  Order.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Vendor\Module\Model;

use Magento\Sales\Api\Data\OrderInterface;
use Magento\Framework\App\ObjectManager;
class Order extends \Magento\Sales\Model\Order
{
    private $_objectManager;

   public function __construct(
        \Magento\Framework\Model\Context $context,
        \Magento\Framework\App\ObjectManager $objectManager
    ) {

      $this->_objectManager = $objectManager;
        parent::__construct(
            $context
        );
    }

    public function getShippingDescription()
    {
        $helper_factory = $this->_objectManager->get('Vendor\PickupAtStore\Helper\Data');
        ObjectManager::getInstance()->get(ResolverInterface::class)
        if($this->getShippingMethod() == "pickupatstore_pickupatstore_1"){
            //return $this->getData(OrderInterface::SHIPPING_DESCRIPTION);
            return "Shop – collect from 11am on your preferred day.(".$helper_factory->formatDatetime($order->getPickupDatetime()).")";
            }
            else
            {
                return $this->getData(OrderInterface::SHIPPING_DESCRIPTION);
        }

    }

   public function getShippingMethod($asObject = false)
    {
        $shippingMethod = parent::getShippingMethod();
        if (!$asObject) {
            return $shippingMethod;
        } else {
            list($carrierCode, $method) = explode('_', $shippingMethod, 2);
            return new \Magento\Framework\DataObject(['carrier_code' => $carrierCode, 'method' => $method]);
        }
    }
    /**
     * @return string
     */

    //@codeCoverageIgnoreEnd
}

  di.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">

    <preference for="Magento\Sales\Model\Order" type="Vendor\Module\Model\Order" />

</config>


texts:
when I login into the checkout page after login checkout page not loading only loader loads.
in console Getting this error:
Uncaught Error: Syntax error, unrecognized expression: a[href=#shipping]


texts: Magento 2 - Values required set to no , still get You must choose options for your item

texts:
I set to No the Values required and Visible for the size and color from Product Attributes and when I try to add an item to cart , I get this error : You must choose options for your item.

What should i do? Sorry , but it's my first project with Magento.
I will have a bookshop and I don't need color and size to be there , just the quantity .


texts: Why isn't tiered pricing being applied to configurable products?

texts:
I'm new to Magento here and I'm trying to understand why tiered pricing is applied to simple products but not the configurable product that they're associated with. I've done a ton of googling on the topic and I've found a couple of extensions that claim to do what I need done but they're old and it's not clear if they're compatible with Magento 1.8. Also, all of the forum topics I find about this seem to be dated 2008/2009 so I'm not finding anything current on this topic. It's frustrating.

Simply put, how can I apply the tiered prices for simple items to the configurable item that they're associated with?


texts: Magento2.3.2: Class ShipperHQ\Shipper\Model\Customer\Attribute\Source\AddressType does not exist

texts:
I am working on Magento2.3.2.

When I tried to access the customers from the admin panel, I am getting the following error.

  Class ShipperHQ\Shipper\Model\Customer\Attribute\Source\AddressType
  does not exist

I have already removed the Shipper module from my website.
I ran the compile and re-index and cache commands also.

But still getting the error.


texts:
I'm looking for a way to load a template (.phtml) per group. In this case i want to show all options to a logged in user for a bundle product. Other users should be able to see the options but they can not order.

At this moment i am using this code to detect the user group. A user with groupId == 2 will be shown the normal template. But how do i replace the 'Get a different template' text with an actual template? At this moment i am just showing text instead off a template.

    <?php
            $login = Mage::getSingleton( 'customer/session' )->isLoggedIn(); //Check if User is Logged In
            if($login)
            {
                $groupId = Mage::getSingleton('customer/session')->getCustomerGroupId(); //Get Customers Group ID
                if($groupId == 2) //2
                {
                echo $this->getChildHtml('', true, true);
                }

            }
            else {
                echo ('Get a different template with name options-new.phtml');
            }
            ?>

FYI: I placed this code in the wrapper.phtml and i am trying to show bundled options.


texts: Magento 2 - Set 2 prices on product view

texts:
I am trying to work with 2 prices in the product view page.
I need the regular price and another price with a percentage discount.
The idea is show to customer how much he will pay when choosing a specific payment method. For example:
Regular price: 280.00 - Pay on delivery: 275.50
I've created the module where we can set on dashboard how much will be the discount. but, I can't find out how to load both.


texts: Magento 1 vs Magento 2 comparison on subscription purchases (recurring profile)

texts:
Do you have any experience using Magento on a subscription model (simple: make a purchase and receive the product/service in a regular basis with also regular automatic payments). We have been doing this with PayPal and/or third-party payment gateways, but somebody spread the rumor in my company (no way to know why is he telling that) that Magento 2 was “better optimized” for subscriptions models.

So, what do you think? Any hint that may point us in the right direction? Do you think is there a solid base on that statement?

Thank you.


texts: How the combine new customers/ new order process works and which file should refer for customer save here

texts: I need some changes to add when we are creating combine new customer/new order from Magento 2 admin. Can someone share with me how the customer gets created and the files I need to look for making the changes happen


texts: Problem With Recursion (categories and subcategories)

texts:
I'm testing a code from the answer by @digitalsteez on this question:

  Get Categories and Its Sub Categories

I've tested it onto two Magento instance, one has no problems but on the other I'm facing a problem with recursion:

"children" => getChildCategories($child)

and

renderCategoriesTree($level, $child);

output me an

  "Invalid argument supplied for foreach()"

How can I solve this?

Thank You in advice.


texts: Is there a way to inject an extra hidden parameter to the customer login/register forms?

texts:
Is there a way to add an extra parameter to the customer login/register forms with out modifying the design templates directly ?

I have a local module, Is it possible to add the parameter from this module ?


texts: Add Video or some custom block below media on product detail page

texts:
I want to add Video or some custom tabs on product detail page , how can i do it via my module

see screenshot :

I got one tutorial link : http://www.atwix.com/magento/insert-blocks/

but what to wirte to show it below media view more on product detail page


texts:
I use the tool of Magento for migration data from Magento 1 to Magento 2. After run command lines:

php -dmemory_limit=3G bin/magento migrate:settings vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml -r

php -dmemory_limit=3G bin/magento migrate:settings vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml

php -dmemory_limit=3G bin/magento migrate:data -a vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml

Then I try login load Admin page and it show a bug: Expecting a string, got NULL

I migarion data from Magento 1.9.2.4 to Magento 2.3.3.

Log file:

  {"0":"Expecting a string, got NULL","1":"#1
  Zend\Uri\Uri->parse(NULL) called at
  [vendor/magento/module-backend/App/Area/FrontNameResolver.php:140]\n#2
  Magento\Backend\App\Area\FrontNameResolver->getHostWithPort(NULL)
  called at
  [vendor/magento/module-backend/App/Area/FrontNameResolver.php:129]\n#3
  Magento\Backend\App\Area\FrontNameResolver->isHostBackend() called
  at
  [vendor/magento/module-backend/App/Area/FrontNameResolver.php:106]\n#4
  Magento\Backend\App\Area\FrontNameResolver->getFrontName(true)
  called at [vendor/magento/framework/App/AreaList.php:73]\n#5
  Magento\Framework\App\AreaList->getCodeByFrontName('admin') called
  at [vendor/magento/framework/App/Http.php:132]\n#6
  Magento\Framework\App\Http->launch() called at
  [vendor/magento/framework/App/Bootstrap.php:261]\n#7
  Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#00000000105de3ff000000006232b19b#)
  called at
  [index.php:41]\n</pre>","url":"/admin/admin/index/index/key/e6618748e3cbb6430e0c0b54585a0d1938b8fb4c3636584e5f82a21286ef06a1/","script_name":"/index.php"}

Any help would be appreciated!


texts: Contact from on CMS page, trouble getting error/success to show

texts:
we have a contact form on a CMS page an inserted this through cms block in backend (reason is: we can show some faq info and other above the form).

The first problem was when we submit we are sent to another page. This was solved by adding $this->_redirectReferer(); in case of error to controller.

Only problem we see now: onError submission the customer is redirected to the current page

but all form fields are blank: can we pre populate thema again?
The error global message will not show anywhere (we are a contacts form on a CMS page - I am finding it hard to really add the error information)

Help appreciated


texts: Magento isLoggedIn() always return false while customer is logged in

texts:
I am new in Magento. Using Magento 1.9.2 version i create test.php file in Magento root i which write the code

include 'app/Mage.php';
Mage::app('default');
$customerName = Mage::helper('customer')->isLoggedIn();
var_dump($customerName);exit;

It always returning me false while i have logged in one customer in new tab. I just want to get data current logged in customer. It giving me null please help me sort out that problem.


texts: Magento 2.2.6 bin/magento catalog:image:resize taking so much time

texts:
After upgrading to Magento 2.2.6 the images are missing. According to devdocs i need to:

  The catalog:image:resize command execution time has been reduced by up to 90% in the release. However, this improvement necessitates these additional steps after upgrading your Magento instance to 2.2.6:

  Remove pub/media/catalog/product/cache . (Removing this folder frees
  up space.)

  Run bin/magento catalog:image:resize to generate a new image cache.
  (This step is necessary because we’ve changed the path to cached
  images and must remove the previously cached images.)

The problem is I have more than 120K images and running the command takes so much time, and that is problematic if I want to do it on production.

Any workaround to do it faster?


texts: Should you add a product to just the subcategory or the subcategory and the main category?

texts: Say I have a Main Category called Boots with a subcategory called Boots with Fur. When I selected the categories in the product, should I just select the subcategory Boots with Fur or should I select both Boots with Fur AND Boots?


texts: Community extensions usage in enterprise magento

texts:
I'm very interested in trying out the Advanced Content Manager. But they only have a community edition for sale. Does this mean I can't install it on an enterprise Magento?

Also if anyone has experience with this Content manager I'd love to hear your thoughts on it.


texts: Magento2.2.5 show original price when configurable product is part of catalog price rule

texts:
I have a catalog price rule that setup so I can do a x% off site wide sale.
Now when i view any category my simple products show the original price crossed out and then show the new discounted price next to it.

However configurable products are showing only the discount price and not the original price? All of the simple products which are inside the configurable product have the same price.

What file do I need to edit and how so that the configurable products will show the original price?

I saw one post about editing

vendor/magento/module-configurable-product/view/base/templates/product/price/final_price.phtml

However I don't want to edit a core magento file for obvious reasons.

Suggestions??


texts:
my magento 1.9 www.hafeezpk.com is not show SSL pad lock how to fix this issue please tell complete solution because SSL certificate already install in my website you can check below of this screenshot attachments my hosting company reply message read below also.

Hello,

Thank you for contacting support!

I was able to resolve the issue with your website redirecting by renaming the Magento cache at var/cache to var/cache.old to allow the cache to be regenerated. However, forcing https beyond this would require the assistance of a Magento developer. You may want to also consider posting a question on a forum like https://magento.stackexchange.com for further assistance with this.

Please let us know if you have any further questions; we are more than happy to help.

Best Regards,
Lain V.

InMotion Hosting

if you need i am provide my admin and c-panel access detail but private.

]2


texts: How to edit transactional e-mail (order_new) to add my module specific layout handle

texts:
I'd like to edit order_new.html template to include layout handle to my own module layout. I'm new to magento, so I'd be pleased to get accurate instructions which files I have to create/edit. In order_new.html I have a line:

{{layout handle="gc_referer_admin_email"}}

My module is in located in app/code/local/GC/Referer

I tried many solutions from Internet for hours, but maybe I'm doing something wrong :(


texts: How to Add New Customer or Customer Group in Magento 2?

texts: I am facing an issue with adding a new customer group from Backend at Magento 2.3 Could you please help me on adding a new customer group page from the backend, Thanks


texts: how to translate options value and xml fields?

texts:
I want to translate some words in my project but I can't see why they didn't get translated, even if i added them to the folder "i18n" some words was translated but those not

here is some word they can't get translated :

$fieldsetCustomer = $form->addFieldset(
            'person_info',
            ['legend' => __('Age: ')]
        );

 $this->options = [
            ['label' => '-', 'value' => ''],
            ['label' => 'Male', 'value' => 'male'],
            ['label' => 'Female', 'value' => 'Female'],

        ];

Can someone tell why they can't get translated please ?


texts: Redeclare UI form component in Magento 2

texts:
I've faced with a problem. I have to render price input type in the customer edit form on the backend. I have found that the price component has been declared in the definition.xml like this:

<price class="Magento\Ui\Component\Form\Element\DataType\Price"/>

So, I have created own definition.xml file in the view/base/ui_component/etc/definition.xml:

<?xml version="1.0" encoding="UTF-8"?>
<components xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_definition.xsd">
    <!-- Price elements -->
    <price class="Magento\Ui\Component\Form\Element\DataType\Price">
        <argument name="data" xsi:type="array">
            <item name="js_config" xsi:type="array">
                <item name="component" xsi:type="string">Magento_Ui/js/form/element/abstract</item>
                <item name="config" xsi:type="array">
                    <item name="template" xsi:type="string">ui/form/field</item>
                    <item name="elementTmpl" xsi:type="string">ui/form/element/price</item>
                </item>
            </item>
        </argument>
    </price>
</components>

Unfortunately, XSD validation avoid this change from appling and I have got the following issue:

  Element 'components': Missing child element(s). Expected is one of ( tab, dataSource, paging, massaction, listing, form, fieldset, field, filters, columns ).
  Line: 2

I have read the magento 2 developer guid ( http://devdocs.magento.com/guides/v2.0/ui-components/ui-component.html ) :

  Any module can introduce its own set of custom components or modify initial configuration for existing components in a common to Magento way

Well, I have used "the common way", haven't I?

I would glad to read your ideas about this issue and ways in which we can reconfigurate the ui component via xml declaration.


texts:
This is not a technical question but a question that i have myself.
We updated to magento2 some months ago, but we have a lots of our business concurrent reversed to magento 1.9.
After a check on Mage Scan website https://magescan.com/stats we see only around 4% of magento users uses the Magento 2.x.x. I would like to know the reason why Magento 2 isn't used more than that?
Thanks.


texts:
When i submit Contact Us form on frontend i get:
Unable to send mail: Unknown error
and error in exception and debug logs:
main.ERROR: DOMXPath::query(): Invalid expression in selector >> .homeadv .ah-block:nth-child(3n+1) << in /var/www/html/vendor/pelago/emogrifier/src/Emogrifier.php on line 530 {"exception":"[object] (InvalidArgumentException(code: 1509279985): DOMXPath::query(): Invalid expression in selector >> .homeadv .ah-block:nth-child(3n+1) << in /var/www/html/vendor/pelago/emogrifier/src/Emogrifier.php on line 530 at /var/www/html/vendor/pelago/emogrifier/src/Emogrifier.php:2022)"} []

When i send email from orders page i get:
You sent the order email.
but not receiving any email
I am not sure when it stopped working, but it did worked before.
All latest updates, Ubuntu 18.4, PHP 7.2.33, Magento 2.3.5-p2, hosted on DigitalOcean.


texts:
I want to know when we should use model rewrites ? What's the down-sides of it ?

I mean when we rewrite a core model class, we should know that no extension can rewrite the core class from now on, so we should rewrite only once or we need to write a local extension to solve rewrite conflicts which is really annoying.

So What's the alternative way ?

i.e In my new module, I want to add a very simple function to Mage_Catalog_Model_Category, so how can I do that without rewriting it ? What do you suggest other than rewriting ? Is rewriting Evil ?


texts: Magento 2 : Catalog access by customer group

texts:
I want to restrict product by customer group.

For mapping, we added an attribute to product called group_ids where admin can select multiple customer groups

I want to restrict customer to access this product if their customer group is not assigned to the product.

I want to restrict product access from upsell,crosssell,related,wishlist,product page,category page, home page every where.

So i was looking for function where magento filter product by website.
i want to override it add my custom logic to filter but not able to find out that function

So if anyone knows about it then please provide me information of that function or if there any other way to do it


texts: Add a product type condition to a shopping cart rule

texts:
We have a cart rule that is applied based on total product quantity in cart. It seems however that configurable products are counted as double quantity.

I would like to filter out configurable products from the rule therefore. Is this possible?


texts:
I use Magento 2.2.6 with a theme on shared hosting. This query is about how to create Product attribute?

When I started exploring and creating a test configurable product, I found Color attribute by default in Default Attribute set. Color attribute is available only when we click on create configuration button during new product creation.

I created Volume attribute with 3 values and Potency with 7 values. I face following issue.

  1- Both the values are visible when creating normal products and gets
  assigned when it is not required. Adding unnecessary values to
  products.

  2- Why My attributes are visible in normal configuration but color is
  only available when we click on create configuration.

  3- Do I need to create a separate attribute set with required
  attributes?


texts: Magento 1.9.0.1 - Can only access admin panel using htttp://domain.com/index.php/admin

texts:
I am struggling to find a solution to this problem the site in question http://vvspris.no can only grants access to the admin panel if i use "index.php" between the url and admin panel name i.e vvspris.no/index.php/vsadmin.

I have turned on pretty urls and cleared the cache, reindexed and compiled but no change. Tried multiple browsers with the same result.

The Error get when accessing WITHOUT index.php is:

Not Found
The requested URL /vsadmin was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


texts: Need help with deleting second header so I am left with one. Magento 1.9 rwd theme

texts:
If you look at the image within header.phtml there is a white block and a blue block. I want to completely delete the blue block so I am left with one header containing all of my header elements, that I can change to any colour I wish.

How would I go about doing this?

Thanks


texts: Product url with root-catalog and default-category

texts:
Guys I am stuck with this issue, getting error like

  https://www.acom.pk/root-catalog/default-category/adata-hd710a-2tb.html ,

I don't want this root-catalog and default-category in my product url.


texts: How to MANUALLY call static block from another static block in magento?

texts:
How can I call a static block from another static block manually because i have a customized theme.

I also set block from Magento admin panel, it's working but I dont need this admin method

I think I have to put some static block code in the WYSIWYG editor of the static block admin pannel but which code is it?


texts:
After reading the complete translation documentation (here), I still have some questions / problems. The end goal is to create translations for my magento2 installation.

I run the following command to create a translation dictionary:

  php bin/magento i18n:collect-phrases -o "translations.csv" -m
  c:\xampp\htdocs\magento2\

Where magento2 is the root path of my magento installation. Please note the -m that is required to build a translation pack. If I ommit this parameter, the generated output is 400kb+ (but it contains only 2 columns). If I add the parameter, I only get a 4kb file (it contains the correct 3 columns format). Am I missing something here?

Pastebin (with -m): http://pastebin.com/ssCMaKGw

Pastebin (without -m): http://pastebin.com/cfJGT2tS

Then for a theme translation, I can ommit the -m parameter and after I made the translations for the default luma theme, it's not replacing anything. I've changed my locale in administration to the correct one and also flush cache, rebuilt indexes.

  php bin/magento i18n:collect-phrases
  -o "app/design/frontend/Magento/luma/i18n/nl_NL.csv" app/design/frontend/Magento/luma


texts: is it possible to use same database for 2 different sites

texts:
we have a magento site. we are planning to make this site as marketplace so sellers can sell their products in our site

as like http://www.amazon.in/

in the above site , they are using below sub domain for sellers to register and upload their products

https://sellercentral.amazon.in

can we do something like this using magento, if so is we have to create 2 sites as

abc.com and seller.abc.com and use the same database for both ?

please guide me about this


texts: How to get customer session on category pages in Magento 2

texts:
Customer details are available only on customer page and checkout page. It must be a duplicate task but can someone tell how can we retrieve customer session on category pages.

$context = $om->get('Magento\Framework\App\Http\Context');
$isLoggedIn = $context->getValue(\Magento\Customer\Model\Context::CONTEXT_AUTH);

we can check is logged or not but not getting any other detail for logged in user.


texts: Magento 1.9.1.1 PayPal XPath Invalid Expression

texts:
There seems to be a bug in the new Magento 1.9.1.1

Found this in /var/log/system.log

2015-06-17T15:11:29+00:00 ERR (3): Warning: SimpleXMLElement::xpath(): xmlXPathEval: evaluation failed  in app/code/core/Mage/Paypal/Model/Observer.php on line 132

The XPath causing the issue is

$paymentsConfigs = $paymentGroups->xpath('paypal_payments/*/backend_config/' . $countryCode);

Can anyone see an obvious problem here?


texts: Discard Subsequent Rules Not Working As Intended

texts:
Scenario is I'm running 2 sales this weekend.

Sale 1 is 15% Off Sitewide w/ coupon code
Sale 2 is BOGO 50% Off Certain Items (These items are living in a
category which is how it is defining them) No coupon code.

Something is wrong in that right now if the user adds 2 from that category, it is working as intended using the Percent discount: each 2-d rule. However, if a user only wants to buy 1, I still want them to be able to use the 15% off coupon code. I have both enabled to Discard Subsequent Rules.

If I try to use my 15% off coupon right now on just one item, it tells me the coupon is not valid.  It's only doing this on products in that category. If I turn off Disable Subsequent Rules on either cart rule, it works as intended, but then stacks the offers if the user were to buy 2. On my 15% coupon, I don't have any conditions at all set, so it should be taking the 15% off. Is this a bug, or am I missing a setting?

Magento 2.2.6


texts: how to get visitor's UTC time not relying on store view time zone?

texts:
It is required to convert customer's (or guest visitor time zone) into UTC 0 to properly store in in database in timestamp column. In magento this often doing by relying on certain store view timezone.

Is there any builtin magento functions to get visitors time in UTC 0, or to get timezone to convert it into proper format ?

If you have other solution than to get timezone over JS and convert it manually on the backend, would much helpful as I just dont wont to reinvent the wheel.


texts: Magento site generation error - products not added to sitemap

texts:
I have this weird issue where products are not being added to the sitemap. We run a multi-store with 12 stores, so also 12 sitemaps.

Sitemaps setup correctly and cron working properly.

All sitemaps are working correctly except the last 2 sitemaps. In the last two stores the products aren't added to the sitemap. The categories and cms pages are all added, but no products.

When I use the generate sitemap button in catalog/google sitemap, the sitemaps are correct again. But as you can imagine, I want the sitemaps to be correctly generated by the cron.

I've enabled reporting. And found the following error in sitemap_generate.log:

[23-Sep-2016 21:10:04 UTC] PHP Warning:  simplexml_load_string(): Entity: line 53: parser error : Comment not terminated
<!--
    <reference name="header">
        <ac in /data/web/public/app/code/core/Mage/Core/Model/Layout/Update.php on line 450
[23-Sep-2016 21:10:04 UTC] PHP Warning:  simplexml_load_string():         <!-- This block is inside of the header block on mage EE, so it could in /data/web/public/app/code/core/Mage/Core/Model/Layout/Update.php on line 450

[23-Sep-2016 21:10:04 UTC] PHP Warning:  simplexml_load_string():           ^ in /data/web/public/app/code/core/Mage/Core/Model/Layout/Update.php on line 450

I don't know what it means and that it is relevant to the problem. I run magento 1.9.1.0 with all the latest security updates.

So what could be wrong? Please note, that the sitemap.xml files are generated correctly and cron is setup correctly etc. Cron.php runs every 5 minutes.

If you need any more information please ask.


texts:
I am getting following error in my authorize.net. Is this of  HTTPS problem or something else?

please check the error below:

  The reporting of this
  transaction to the Merchant has timed out. An e-mail has been sent to
  the merchant informing them of the error. The following is the result
  of the attempt to charge your credit card.
        This transaction has been
  approved.It is advisable for you to contact the merchant to
  verify that you will receive the product or
  service.


texts: Why does Magento Setup:Upgrade fail when ConfigurableSampleData module is updating?

texts:
I have attempted installing Magento in several ways.  With and without sample data.  This last time I have installed primarily using the CLI method however when I attempt to install sample data and I run php bin/magento setup:upgrade I have the following error.  What could be wrong?  I also have the WebInstaller stall at 66% when it arrives at the ConfigurableSampleData section.

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true."}],"type":"illegal_argument_exception","reason":"Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true."},"status":400}

Error message in terminal: https://i.stack.imgur.com/UIpk5.jpg


texts: Magento 2 - Data Migration needs to ignore a custom table

texts:
Need to ignore a table from data migration, the table name is "store" where its a default table in Magento 2.

Even updated the map.xml to ignore the store table by below code under document_rules block but it's unsuccessful and store table still migrated.

<ignore>
   <document>store*</document>
</ignore>

The below command I use for the data migration.

  bin/magento migrate:data -a
  vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.0.1/config.xml

Is there any solution to avoid adding during the data migration?


texts: How to use custom html element in admin form field?

texts:
$fieldset->addField('rating', 'label', array(
        'name'      => 'rating',
        'label'     => Mage::helper('sellerreview')->__('Rating'),
        'title'     => Mage::helper('sellerreview')->__('Rating'),
        'renderer'  => 'sellerreview/adminhtml_review_renderer_image',

    ));

this is my image.php file

 public function render(Varien_Object $row) {

    $fullRating = $row->getRating();
    $html = '';

        $html = $html.'<input id="input-21d" name="rating" value='. $fullRating .' type="number" class="rating" min=0 max=5 step=0.5 data-size="sm" data-disabled="true">';

    return $html;
}

Is this right method to use renderer in addfield form? How to use renderer in addfield form


texts: Add js to module via requirejs doesn't work?

texts:
Does someone knows why it doesn't work ?

app/code/Vendor/Module/view/frontend/requirejs-config.js

var config = {
    map: {
        '*': {
            module: 'Vendor_module/js/go',
        }
    }
};
console.log('foo'); // i get well "foo" in console

app/code/Vendor/Module/view/frontend/web/js/go.js

define(['jquery'], function($){
   "use strict";
       return function hello()
       {
           alert('hello from function');
       }
});

app/code/Vendor/Module/view/frontend/templates/file.phtml

<script type="text/javascript">
    require(['jquery', 'module'], function($, hello) {
        hello();
    });
</script>


texts: getChildHtml function overwrites languages translations

texts:
I've a great problem with languages translations of many words of my multilanguages site in Magento 1.9.
I noticed that getChildHtml function overwrites many languages transations contained in translate.csv.
E.g.:

<fieldset class="product-options" id="product-options-wrapper">
    <?php echo $this->getChildHtml('', true, true);?>
</fieldset>

With this phtml string

"size guide", "tailles"

is overwritten.

How can I modify the code to have correct translations?
Can you help me, please?


texts: Magento shipping_method progress block template override

texts:
How to override shipping_mehtod.phtml file in custom module
I override it but after shipping method selection in progress block data comes from base theme file not from my custom module file.

Below my code:

<reference name="shippingmethod.progress">
        <action method="setTemplate">
            <template>module/checkout/onepage/progress/shipping_method.phtml</template>
        </action>
    </reference>

Thankyou


texts: How do you use created_at attribute in a promo rule?

texts:
I would like to use the created_at attribute of products in a promo rule. I need this attribute to appear in the conditions tab, so I can set e.g. if it is younger than 2 months, it shall apply for a discount.

I already set is_used_for_promo_rules=1 for the correct attribute (there are two, one for customers, one for products) in catalog_eav_attribute and reindexed everything. But still, it does not show up. How can this be solved?


texts: Issue on editing "Manage Label / Options" on version 1.14.3.0

texts:
Is there any body having issues when editing attributes labels in a multi store installation?

I believe that  method call array_fill in: \Mage_Adminhtml_Catalog_Product_AttributeController::_filterPostData
is messing around with array keys and as consequence the translations get swapped after saving.

Checking release notes I can see in Other Fixes:

  The configuration setting Allow HTML Tags on Frontend is honored.

This make me think that "honoring the setting" introduced this weird behavior.

Btw reverting the offending line to previous version fix the issue.


texts: How to filter attribute by its option value in magento2.2.5?

texts:
I want to filter attribute by its option value in Magento2.2.5.
I have tried with this:
$collection->addAttributeToFilter('collections', 258);

But it doesn't seem to work.

Any help would be appreciated.


texts: how to solve Dirty COW Linux OS Vulnerability Dirty COW (CVE-2016-5195)?

texts:
There's a serious vulnerability that affects most Linux Operating Systems, CVE-2016-5195, also known as DIRTY COW (yes, the name sounds silly but the problem is serious!).
for more .. https://dirtycow.ninja/

Dirty COW (CVE-2016-5195) is a privilege escalation vulnerability in the Linux Kernel that can allow a local user (like a web hosting account) to gain root access to the server. This can also be a huge problem if your Magento store is compromised and the attacker has the ability to upload files to your server or hosting account.

The vulnerability is present in all major Linux Operating Systems and security researchers have detected in the wild (ITW) attacks even before security patches were released by the various operating systems

https://magento.com/security/vulnerabilities/new-linux-operating-system-vulnerability


texts: Need to access Magento 1.9.x website by way of IP

texts:
We recently moved away from Magento but still have access to it on our private server by way of its internal IP address. How do I access the pages and admin panel referencing just the IP address.
When I access it using x.x.x.x/index.php/our_dashboard, it forwards to the new website (website.com/index.php/our_dashboard), which I don't want.
Thank you all in advance for your help.


texts: Notice: Trying to access array offset on value of type bool PHP 7.4

texts:
I am trying to test magento 2.4 with PHP7.4.
I have a custom module with this code:
//checking for absolute weight
$res = $this->_objectManager->get('Magento\Framework\App\ResourceConnection');
$con = $res->getConnection('read');
$row = $con->fetchRow("select `absolute_weight`, `absolute_sku`, `sku_order` from {$res->getTableName('dynamicproductoptions_options')} where `product_id`={$product->getId()} and (`store_id`={$product->getStoreId()} or `store_id`=0) order by `store_id` desc");
$isAbsoluteWeight = (int) $row['absolute_weight'];
$isAbsoluteSku = (int) $row['absolute_sku'];

But this line:
$isAbsoluteWeight = (int) $row['absolute_weight'];

return error when I try to add a product in cart:

Notice: Trying to access array offset on value of type bool in my
file.php

How can I fix it the right way please?


texts: It can't load css js file when I change theme in magento2


texts: Magento 2.2 - Mage-Report Exposed Magento 2 API

texts:
Magento 2.2.3
I have scan the website in Mage Report, How to solve Exposed Api issue. What magento2 patch for this instead to upgrade version.


texts: error version in custom module magento2 2.0.0-rc?

texts:
i created module in magento2 2.0.00-rc but get error

 Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.
The following modules are outdated:
Namespace_Modulename data: current version - none, required version - 2.0.0

i running code php -f bin/magento setup:upgrade after get issues same. Any suggestion? thank :].
code xml module

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="Namespace_Modulename" setup_version="2.0.0" >
        <sequence>
            <module name="Magento_Backend"/>
        </sequence>
    </module>
</config>


texts: After syncing media images from S3, my magento site got blundered

texts:
I am syncing my media folder from S3 cloud front, I changed the path in Base URL for User Media Files and gave proper path, but after that my site layout is not proper, it got blundered even though images are properly coming from S3, i checked the path through inspecting. you can see my staging site https://staging.ihouzit.com and get an idea what it has become.
Remember its just media files imported on S3 and not static files


texts: Magento sort Categories & subcategory by Name when Display on Site

texts:
I have below code it will fetch the category as well as subcategory from Magento.

The Problem is that I have around more then 300 category and subcategory. So I can not change the manually in Magento Category Management.

I need to a sort category based on Name.

For Example I have attach the Image


texts:
Hey guys I'm new to the Magento platform and just installed CED CsMarketplace multi vendor module. I'd like to edit the "I am a Vendor" button so that it says something else because it sounds just terrible.  I can't for the life of me find where to edit that navigation button though.  I know where to find the others, but not that one..

Bonus question, how can I make it only appear if a user is logged in?


texts: Magento 2 : Implement update functionality of new customer billing address on place order button in checkout page

texts:
I want to remove the "update" button under the customer billing address section and implement the update functionality on the "place order" button in checkout page.

Successfully completed a half portion by combining billing-address.js with default.js and billing-address.html with checkout.html files.

File paths:

  _vendor/magento/module-checkout/view/frontend/web/js/view/billing-address.js
  _vendor/magento/module-checkout/view/frontend/web/js/view/payment/default.js
  _vendor/magento/module-checkout/view/frontend/web/template/billing-address.html
  _vendor/magento/module-offline-payments/view/frontend/web/template/payment/checkmo.html

The scenario i followed:

First, rewrite the  placeOrder databind code for multiple bindings on click event in checkout.html. Copy all code from billing-address.html and pasted into the checkout.html page where the place order button is placed. Erase the update & cancel button code and wrote the placeOrder button code instead of that.

Then wrote the update function in default.js and copy all the codes need to work this from billing-address.js.

Result:

When unchecked the box, a drop-down shows all the current addresses along with a new address option. Now, we can choose any of the address from the list and place the order. The address will be updated.

But when i choose the new address option from the drop-down list it didn't shows the address form.


texts: Catalog search goes blank showing nothing

texts:
There was an Error in a search page. It was showing blank no scripting, while searching anything.

  2015-06-25T07:10:46+00:00 ERR (3): Warning:
  require_once(/home/patelman/public_html/..app/code/core/Mage/CatalogSearch/controllers/ResultController.php):
  failed to open stream: No such file or directory  in
  /home/patelman/public_html/../app/code/local/themename/Ajaxcatalog/controllers/CatalogSearch/ResultController.php
  on line 5

I got this error in system log file.


texts: I am new in Magento framework, i'm using a href for another website url but here it's redirect with base url, for example i need to redirect with this url  www.example.com but it's redirect to www.product.com/www.example.com


texts: Magento 2 plugin for catching order creating in frontend and in admin panel

texts:
I want to catch the moment of creating order - both in frontend by client and in administration panel by user. I've got a plugin for it:

class Plugin
{

    public function afterSave(
        $subject,
        $order, $additional = []
    )
    {
        exit('aftersave');
    }

    public function afterPlace(
        $subject,
        $order, $additional = []
    )
    {
        $order_id = $order->getEntityId(); // this is null
        exit('afterPlace');
    }

}

The afterSave method is not executed when creating order. The second - afterPlace method is executed, but I cat't get the entity id.

How to do it? What method should I listen to or how to get the order id?


texts: Catalog page product not showing in magento 2.1.3

texts:
After running the code "

  php bin/magento indexer:reindex

" my catalog products are not showing in front end also i have get an error like this in command prompt "

  PHP Fatal error:  Uncaught Error: Class 'Locale' not found in
  /var/www/html/m2/v
  endor/magento/framework/Locale/Bundle/DataBundle.php:64"


texts: How to Integrate Custom Shipping method in magento2

texts:
I need to integrate Aramex Shipping method in magento 2, I have php sample code form Aramex.

    <?php
        $params = array(
            'ClientInfo'            => array(
                                        'AccountCountryCode'    => 'JO',
                                        'AccountEntity'         => 'AMM',
                                        'AccountNumber'         => '00000',
                                        'AccountPin'            => '000000',
                                        'UserName'              => 'user@company.com',
                                        'Password'              => '000000000',
                                        'Version'               => 'v1.0'
                                    ),

            'Transaction'           => array(
                                        'Reference1'            => '001'
                                    ),

            'OriginAddress'         => array(
                                        'City'                  => 'Amman',
                                        'CountryCode'               => 'JO'
                                    ),

            'DestinationAddress'    => array(
                                        'City'                  => 'Dubai',
                                        'CountryCode'           => 'AE'
                                    ),
            'ShipmentDetails'       => array(
                                        'PaymentType'            => 'P',
                                        'ProductGroup'           => 'EXP',
                                        'ProductType'            => 'PPX',
                                        'ActualWeight'           => array('Value' => 5, 'Unit' => 'KG'),
                                        'ChargeableWeight'       => array('Value' => 5, 'Unit' => 'KG'),
                                        'NumberOfPieces'         => 5
                                    )
        );

        $soapClient = new SoapClient('http://url/to/wsdl.wsdl', array('trace' => 1));
        $results = $soapClient->CalculateRate($params);

        echo '<pre>';
        print_r($results);
        die();
    ?>

I have all details, expect Soap Client Url, How to create wsdl file and What is the format of this Url in magento 2.

  $soapClient = new SoapClient('http://url/to/wsdl.wsdl', array('trace' => 1));

Suggest me, How To Call Custom Api via magento 2.


texts:
I need to programmatically set a config based on the Magento instances' base_url. I cannot seem to access the base_url from my install/setup script:

$installer = $this;
$installer->startSetup();
var_dump(Mage::getStoreConfig('web/unsecure/base_url'));
var_dump(Mage::getBaseUrl());
var_dump(Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB));
die();

This prints out:

null
string 'index.php/' (length=10)
string '/' (length=1)

I think it is possible that the configs are not initialised at this point and perhaps I need to initialise it. Or it seems more likely that Magento does not know which store the script is referring to. What are your suggestions?


texts:
Fatal error: Undefined class constant 'CACHE_TAG' in
  C:\xampp\htdocs\proj\app\code\local\Web\Customization\Block\product.php
  on  line 19

class Web_Customization_Block_product extends Mage_Core_Block_Template
{
  public $_productCollection;

  public function _getStore(){
        return Mage::app()->getStore()->getId();
  }

  protected function _construct(){

        $collection = Mage::getModel('customization/product')->getCollection()
                      ->addFieldToFilter('store_id' , array ( array( 'finset' => $this->_getStore()) , array( 'eq' => 0)));
        $collection->getSelect()->order('sort_order ASC');
        $this->_productCollection = $collection->getData();

        $this->addData(array(
            'cache_lifetime' => false,
            'cache_tags' => array(Web_Customization_Model_Product::CACHE_TAG)
        ));
  }
   public function getProductSteps(){
        return $this->_productCollection;
    }

}


texts: is there a way to add custom variables to product description (using the editor) in magento 2?

texts:
I am using magento 2.2.2 and I want to add custom variables to the products description.

for now, I can do that with the pages but not for the products (in the page editor there's a button called "insert variable" and it will insert a variable, (e.g: {{customVar code=variable_here}})

but if I tried that in a product description, it doesn't work.

any suggestions?

Thanks,


texts:
Magento 2: How to disable or remove Product SKU field in the admin panel
see image below for more clarification.


texts: After I approve a review how do I save it onto my website?

texts: I have had my first sale and the customer purchased 5 products , then wrote a review about each item. I approved them in admin but it's not showing up on my website when you click on that particular item. Is there a way for me to decide what review can show up for each items? All new to me.......


texts:
Why do we call in the list.phtml template
<?php echo $block->getChildBlock('addto')?> if it is already defined in the Layout. Will not it be rendered only because we have already specified it in the layout. Why also in the template to call it?

<block class="Magento\Catalog\Block\Product\ListProduct" name="category.products.list" as="product_list" template="Magento_Catalog::product/list.phtml">
        ...
       <block class="Magento\Catalog\Block\Product\ProductList\Item\Container"
       name="category.product.addto" as="addto">
        ...
       </block>
       ...
    </block>


texts:
Magento has a cron job for the deletion of expired quotes which hasn't changed since the first version I got in touch with, i.e. 1.6.

The cron job is located in Mage_Sales_Model_Observer::cleanExpiredQuotes() in Magento 1 and Magento\Sales\Cron\CleanExpiredQuotes in Magento 2.

The intention is clear: We have to do some housekeeping in the system and delete quotes we don't need anymore. In the understanding of Magento that are quotes which haven't been updated for more than X days (with X is configured value of quote lifetime for the store) and which are incative.

In what situation do we have incative quotes? A quote is inactivated after it has been converted to an order. The quote_id of the incative quote is stored in the order table.

And here is the first ilogic aspect of Magento's approach to delete inactive quotes:

When a quote older than X days will be deleted, the corresponding order has a "dead" link to non-existant quote. Most of the quote data is copied to corresponding sales_* tables and is not needed later. But at least at one point the order needs the quote: If you have an order item with a custom option of the type file. In this case the data of the uploaded file (i.e. the filename) comes from quote_item_option table and the download controller accesses directly \Magento\Quote\Model\Quote\Item\Option objects - this will obviously not work after the deletion of the quote although the file is still in the filesystem.

Another strange thing in the logic of quote housekeeping is the fact that quotes for guest users who don't by within the creation session will be kept forever in the database since they are active but with no customer_id.

My questions:

Did some of you already face the a problem with missing quotes for a placed order (for example not working download of custom option file) and how did you handle it?
Shouldn't the logic be rather: "delete active quotes with no customer_id and older than X days"?

For two earlier Magento 1 implementation I have overwritten Magento's cron but I'm not sure if I missing something in Magento's rationale to do things as they do.

Update: Some details about the custom options and the download controller, because it was asked in a comment:

The controller file is (Magento 2): vendor/magento/module-sales/Controller/Download/DownloadCustomOption.php

The uploaded files are stored in a subdirectory of pub/media/custom_options/quote, the filename and a secret_key are stored in a serialized json object in the value field in quote_item_option.

The download URL is like this: http://yourmagentosite/sales/download/downloadCustomOption/id/[quote_item_option.option_id]/key/[secret_key]/

When the quote of an order is deleted, the above link returns a 404 error because there is no corresponding entry in quote_item_option.


texts: Magento 2 how to set permission in production mode

texts:
I have successfully completed all issues in developer mode,
and now I moved to production mode, every thing is working fine
but when I am try to cache clear from admin panel , frontend permission are missing.


texts: Drop primary key programatically in magento 1

texts:
This is my code, which creates my table:

$table = $this->getConnection()
    ->newTable($this->getTable('namespace_reviewcache/review_store'))
    ->addColumn('review_id', Varien_Db_Ddl_Table::TYPE_SMALLINT, null, [
        'nullable'  => false,
        'primary'   => true
    ], 'Review ID')
    ->addColumn('store_id', Varien_Db_Ddl_Table::TYPE_SMALLINT, null, [
        'unsigned'  => true,
        'nullable'  => false,
        'primary'   => true
    ], 'Store ID')
    ->addIndex($this->getIdxName('namespace_reviewcache/review_store', ['store_id']), ['store_id'])
    ->addForeignKey(
        $this->getFkName('namespace_reviewcache/review_store', 'review_id', 'namespace_reviewcache/review', 'entity_id'),
        'review_id',
        $this->getTable('namespace_reviewcache/review'),
        'entity_id',
        Varien_Db_Ddl_Table::ACTION_CASCADE,
        Varien_Db_Ddl_Table::ACTION_CASCADE
    )
    ->addForeignKey(
        $this->getFkName('namespace_reviewcache/review_store', 'store_id', 'core/store', 'store_id'),
        'store_id',
        $this->getTable('core/store'),
        'store_id',
        Varien_Db_Ddl_Table::ACTION_CASCADE,
        Varien_Db_Ddl_Table::ACTION_CASCADE
    )
    ->setComment('Reviews To Store Linkage Table');

Im trying with an upgrade to drop the primary key store_id. This is my try:

$installer = $this;
$installer->startSetup();
$installer->getConnection()->dropKey(
    $this->getTable('namespace_reviewcache/review_store'),'store_id'
);

I get no errors and store_id is still primary after this. Any idea ? how can i fix that ?


texts: See which user created a customer in backend

texts: Is there anyway to track which user creates customer accounts in the magento backend? I'm unfortunately running into a he-said/she-said situation, where customer accounts are being setup incomplete and I need to know who the culprit is.


texts: How to use Paypal's exchange rates instead of webservicex?

texts:
We use a variety of currencies on our store. Payments are processed only in our base currency. Unfortunately paypal uses their own rates which differ quiet a bit
from webservicex's rates.
Is there a way that our store can pull paypals rates in order to display the same price that paypal would use for their conversion?


texts: Magento2 - Collection result not getting in foreach

texts:
I have a cron job to execute some tasks over new orders.
The cron job is executing perfectly. But facing an issue with the below code snippet.
Below logs are printing in system.log except the log statement in foreach.
Getting query results when I am executing the MySQL statement from getSelect().
Then why its not looping through foreach ?
class ProcessPendingorders
{
        protected $_logger;
        protected $_orderCollectionFactory;
        protected $_date;

        public function __construct(

                \Psr\Log\LoggerInterface $logger,
                \Magento\Sales\Model\ResourceModel\Order\CollectionFactory $orderCollectionFactory,
                \Magento\Framework\Stdlib\DateTime\TimezoneInterface $date

        ) {

                $this->_logger                          = $logger;
                $this->_orderCollectionFactory          = $orderCollectionFactory;
                $this->_date                            = $date;
        }

        public function execute()
        {

                $this->_logger->info("Orders Start - ");

                $current_date   = $this->_date->date()->format('Y-m-d H:i:s');

                $start_date     = strtotime($current_date) - 10000;
                $start_date  = date("Y-m-d H:i:s",$start_date);

                $orders = $this->_orderCollectionFactory->create()->addAttributeToSelect('*')
                           ->addAttributeToFilter('state', ['in' => 'new'])
                           ->addAttributeToFilter('created_at', ['gteq'=>$start_date])
                           ;

                $this->_logger->info($orders->getSelect());

                foreach($orders as $_order)
                 $this->_logger->info($_order->getId());

        }
}


texts: Magento changing sort order on filtered navigation

texts:
I am using a custom theme based on RWD and when I select an element in the layered navigation (or multiple elements) the order of the product listing is changed from asc to desc. Can anyone suggest why this may be or a fix?

Do I need to do an XML update in every category page to keep the asc order? I already have local.xml telling the category to sort in asc order.


texts: Magento 2 Importer not importing Custom Options from CSV

texts:
I am importing a CSV file in Mag2 but it's not importing custom options not even related skus. Only the product, price and description..
Note: It has worked once before, but I had to correct the prices and re-update the products and can't import the custom options (mentioned above)
Btw, I have 3 stored views: default, en, es and custom options are applied to all views.
https://drive.google.com/file/d/1DxnHnUuAhmdkd7e93PloRPpU_POaGFXI/view?usp=sharing
Since it has worked before (but didn't translate), what can be wrong?
Thank you.


texts: Estimating the amount of space products take up in the database

texts: I currently have 10,263 items in my database. All of the products contain the same amount of information. Is there a way I can estimate the size of my database if I added another 70,000 products?


texts:
This question has been somewhat unanswered for me for a while now, and I'd like to get a definitive answer from somebody about how it works.

Scenario:

Running Magento 1.14.2.1, I have set all my indexers to run on schedule, and I run the Magento cron which runs enterprise_refresh_index whenever anything needs to be partially (or fully?) indexed.

Before the upgrade to this version, I was running 1.13.1 and was not using the cron. I had indexers set to be on save, and whenever I needed to force any of the indexers to run I'd do it either via shell/indexer.php or using the following code example:

// Example of indexers passed in:
$indexers = ['catalog_product_flat', 'catalog_category_flat'];

foreach ($indexers as $code) {
    $process = Mage::getSingleton('index/indexer')
                   ->getProcessByCode($code)
                   ->reindexEverything();
}

Previously...

This worked fine previously in terms of having the indexers running immediately when I want them to, and having the various changes required propagate relatively quickly to the frontend, etc.

Obviously we ran into deadlock/table lock issues and indexers conflicting with each-other when we had multiple admin users saving products etc at the same time, hence our move to the new "best practice" of using the Magento cron to handle it all on schedule.

My questions:

How do you replace the old style of forcing a product flat reindex (php shell/indexer.php --reindex catalog_product_flat) with the equivalent now through the scheduled cron job? All I can seem to see is that you can run enterprise_refresh_index cron job, but that handles all of the indexers right - no ability to single out certain parts?
Is it even relevant to need to do this any more? By this I mean that by doing that previous command, would Magento still have only indexed what it needed to within the catalog product flat realm, and by running the scheduled task it does the same thing but combines all indexers into one? If this is the case, that's fine - it's just quite confusing to understand.

Background:

I have asked this question with Magento EE support. They came back to say that it falls outside the realm of the support agreements, but still got an answer from one of the Magento devs and replied to me saying that "changes to the database are detected with triggers and have changelog records created." I understand that from here, the scheduled indexer decides what needs to be done based on those changelog records.

I previously have kind of assumed that if I need to reindex the product flat tables (all products, everything), I'd do it from the command line as the previous example. How do I achieve the same thing now if it's going to only reindex the ones it knows should be done via changelogs? Is there a way to reindex all of the product flat data without catching all the other indexers with it via enterprise_refresh_index?

I don't think its relevant, but we use the AOE_Scheduler module to give better insight into what the cron is doing.

I know it's long. Please let me know if I can summarize a little better. I've had no luck in getting a definitive answer, and some admin users are not convinced that the Magento cron is reindexing everything effectively everytime. When this kind of statement is made, I'd normally reindex all product flat data from CLI, but I can't do that anymore because it causes conflicts with the scheduled indexer and all hell breaks loose.


texts: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'attr_index_245.value' in 'having clause'

texts:
I am trying to modify a customized Ajax Layered navigation to return products on "AND" base instead of "OR" (return only the products having all selected values for filter attributes.) for this i am using the following code;

protected function applyMultipleValuesFilter($ids)
{
    $attribute  = $this->getAttributeModel();
    $table = Mage::getSingleton('core/resource')
          ->getTableName('catalogindex/eav');
    $alias = 'attr_index_'.$attribute->getId();
    $hvngquery = ' ';
    $i= count($ids)-1;
    foreach ($ids as $key => $value)
    {
        $hvngquery .= '(SUM(`'.$alias.'`.`value`= "'.$value.'") > 0)';
        if ($i>0)
        {
          $hvngquery .= ' AND ';
         }
         $i = $i-1;
    }
    $collection = $this->getLayer()->getProductCollection();
    $collection->getSelect()->join(
        array($alias => $table),
        $alias.'.entity_id=e.entity_id',
        array()
    )
    ->where($alias.'.store_id = ?', Mage::app()->getStore()->getId())
    ->where($alias.'.attribute_id = '. $attribute->getId())
     ->group('e.entity_id')
      ->having($hvngquery);

    if (count($ids)>1)
     {
       $collection->getSelect()->distinct(true);
     }
    // echo $collection->getSelect(); exit();
    return $this;
}

This code produces the following sql query, which while running in phpmyadmin works fine but when i run the code, magento returns error :(Subject)

SELECT `e`.*, `cat_index`.`position` AS `cat_index_position`, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price` FROM `catalog_product_entity` AS `e` INNER JOIN `catalog_category_product_index` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=1 AND cat_index.visibility IN(2, 4) AND cat_index.category_id = '24' INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.website_id = '1' AND price_index.customer_group_id = 0 INNER JOIN `catalog_product_index_eav` AS `attr_index_245` ON attr_index_245.entity_id=e.entity_id WHERE (attr_index_245.store_id = '1') AND (attr_index_245.attribute_id = 245) GROUP BY `e`.`entity_id` HAVING ( (SUM(`attr_index_245`.`value`= "238") > 0) AND (SUM(`attr_index_245`.`value`= "235") > 0))


texts: Select Product Attribute Options when programmatically creating a simple product

texts:
I have created products programmatically by following this post. I have assigned the required attribute set.

$sproduct->setAttributeSetId(attribute_set_id)

But my requirement is to select the relevant attribute options from the attributes in the attribute set.

Is there a way I can achieve this? Please advice.

Thanks in advance


texts:
We're currently working with a Magento (v 1.9.2.1) cached by Varnish (v 3.0.5). The varnish control is done by Turpentine (v 0.6.8).

When a user has no cookies for the site he has to login twice to get to the customer-account-index and get logged in. After the first login the user gets redirected to a blank login page without errors. At the same time the frontend and frontend_cid cookies are created. The customer_group (and persistent_shopping_cart) cookie is not created and the user is not logged in.

The automatically login after the registration process is working fine. When the user already has the frontend and frontend_cid cookies he can log in on first try.

After the second login the user gets logged in and all cookies are set correctly.

The cookie domain is left blanc. The input name="form_key" is set within  ul class="form-list".

Would like to see all users beeing logged in after the first time they enter their credentials correctly. But that does not work when user browses in private mode or visits the page for the first time (registering earlier on another computer).

Any idea?


texts:
I can get all products that doesn't have category with this query, how can I update them with an category id considering this query to select:

   SELECT e.entity_id,e.sku
FROM catalog_product_entity AS e
LEFT JOIN catalog_category_product AS l ON l.product_id = e.entity_id
WHERE l.category_id IS NULL

I need to set

UPDATE `catalog_category_product` SET l.category_id = '132' WHERE l.category_id IS NULL

SQLFIDDLE:http://sqlfiddle.com/#!2/59b01/2


texts: Implementation of sending selected items along with feedback form

texts:
Tell me how to implement the functionality of such a sample. On a separate page there is a form with any fields 2 or more and a submit button. I will use this example to implement. https://magento.stackexchange.com/a/201816/83080

But here is the difficulty. There are also elements with checkboxes on the page, they need to be selected and sent along with the form by 2 email. Customer and Administrator.

Tell me how to implement this or Mb someone was see examples of such an implementation, at least partial, I will be grateful for any help


texts: How to extend custom module layout in magento 2?

texts:
I have created a custom module. Now I want to override layout of that module from my custom theme.

For that, I have created a theme and configure that theme to use intead of luma theme.

Now I have added layout in my custom theme like below to extend that layout and add some more blocks and remove some blocks.

app/design/frontend/vendor/themename/vendor_module/layout/layout.xml

But don't know somehow its always using custom module layout instead of extended layout in theme.

Is there anything I'm missing here? Please help for the same. Thanks in advance.


texts: Magento 1.9.2.2 upgrade to 1.9.2.4 fails via Connect Manager

texts:
I am trying to upgrade all packages via Magento Connect Manager but keep getting the following:

Checking dependencies of packages

CONNECT ERROR: Package community/Phoenix_Moneybookers 1.9.2.4 conflicts with: community/Mage_All_Latest 1.9.2.2
Package community/Mage_Core_Modules 1.9.2.4 conflicts with: community/Interface_Frontend_Base_Default 1.9.2.2, community/Interface_Frontend_Default 1.9.2.2, community/Interface_Frontend_Rwd_Default 1.9.2.2, community/Interface_Install_Default 1.9.2.2, community/Mage_All_Latest 1.9.2.2, community/Mage_Centinel 1.9.2.2, community/Mage_Compiler 1.9.2.2, community/Mage_Core_Adminhtml 1.9.2.2, community/Magento_Mobile 1.9.2.2, community/Phoenix_Moneybookers 1.9.2.2
Package community/Lib_Varien 1.9.2.4 conflicts with: community/Mage_Core_Modules 1.9.2.2
Package community/Lib_Google_Checkout 1.9.2.4 conflicts with: community/Mage_Core_Modules 1.9.2.2
Package community/Lib_Js_Calendar 1.51.1.5 conflicts with: community/Mage_Core_Adminhtml 1.9.2.2, community/Mage_Core_Modules 1.9.2.2
Package community/Lib_Js_Mage 1.9.2.4 conflicts with: community/Mage_Core_Modules 1.9.2.2
Package community/Lib_Phpseclib 1.9.2.4 conflicts with: community/Mage_Core_Modules 1.9.2.2
Package community/Mage_Locale_en_US 1.9.2.4 conflicts with: community/Mage_Core_Modules 1.9.2.2
Package community/Lib_Mage 1.9.2.4 conflicts with: community/Mage_Core_Modules 1.9.2.2
Package community/Lib_Magento 1.9.2.4 conflicts with: community/Mage_Core_Modules 1.9.2.2
Package community/Lib_Credis 1.9.2.4 conflicts with: community/Cm_RedisSession 1.9.2.2, community/Lib_Cm 1.9.2.2, community/Mage_Core_Modules 1.9.2.2
Package community/Lib_Pelago 1.9.2.4 conflicts with: community/Mage_Core_Modules 1.9.2.2
Package community/Lib_Unserialize 1.9.2.4 conflicts with: community/Mage_Core_Modules 1.9.2.2
Package community/Lib_IDNA2 1.9.2.4 conflicts with: community/Mage_Core_Modules 1.9.2.2
Package community/Lib_ZF 1.12.10.4 conflicts with: community/Lib_Varien 1.9.2.2
Package community/Lib_Js_Prototype 1.9.2.4 conflicts with: community/Lib_Js_Mage 1.9.2.2, community/Mage_Core_Modules 1.9.2.2
Package community/Lib_ZF_Locale 1.12.10.4 conflicts with: community/Lib_ZF 1.12.10.2

I have deleted /pkginfo/Mage_All_latest.txt as per other suggestions I found, but nothing changes. How I can I fix this?


texts: Show/Hide a field in an admin form based on value of another field

texts:
My module has 2 tabs. In one, there is a text field for an API Key. In the other, a select field gets populated based off an HTTP request that is made with the API Key. I have all this working fine. However, if the user has not entered an API key, I'd like to display a message to them about the need to do so, rather than showing the empty Options field.

Screen 1 - API Key

Screen 2 - Options

I'm hoping there is a way to do this purely through system.xml. I'd also be ok with just injecting some custom JavaScript onto the page, but I'd need instructions on how to do that as well.


texts: I am after a credit system extension which will allow customers to purchase products using points however we completely want to remove prices and only display number of points it costs. Does any one know of an extension that will do this?


texts: Why my google map is not showing at contact us page?

texts:
My google map is not displaying and due to script problem. How to resolve this?

my script code is as follows

    function initialize() {
        var pos = new google.maps.LatLng(, );
        var mapOptions = {
            center: pos,
            panControl: true,
            zoomControl: true,
            mapTypeControl: true,
            scaleControl: true,
            streetViewControl: true,
            overviewMapControl: true,
            zoom:
        };
        var map = new google.maps.Map(document.getElementById("store_map"), mapOptions);
        var marker = new google.maps.Marker({
            position: pos,
            map: map,
            title: ''
        });
    }
    google.maps.event.addDomListener(window, 'load', initialize);

I have already verified this things.

From admin panel, In Porto theme settings i configured properly all this things,

System->Configuration->Porto - Settings Panel->Contact Us

Verify this field, you have added details.

 1. Show Google Map
 2. Address
 3. Latitude
 4. Longitude

For more information see screen-sort.


texts: Add custom product tab on product view page at my desired position

texts:
I want to add a new tab along with the already available tabs on product view page at my desired position and without modifying Magento_Catalog/templates/product/view/details.phtml.

I know this can be done my customizing/creating the catalog_product_view.xml file but I want to know how to change its position.

Say for example :- After Details Tab.


texts: tinyMCE always changes URL after edit configurable article and save

texts:
If I edit a configurable product and save then it loads and if load finisihed then URL changes from:

https://www.example.com/index.php/login/catalog_product/edit/id/4

to

https://www.example.com/index.php/login/catalog_product/edit/id/4/back/edit/tab/product_info_tabs_customer_options/key/70b9f407554ea83f8daecaf99f6b9b6d/

and the images in the tinyMCE Editor are not loading anymore because the path is changed from e.g. /media/xy/example.jpg to ../../../../../media/xy/example.jpg and there are many requests made because the image can't get loaded.

Why is the URL changed and why does tinyMCE Editor change the URL?

UPDATE

I found the bug which leaded to the unecessary requests:

var tinyMCEival = setInterval(function(){
    tinyMCE.triggerSave();
}, 500);

It stopped doing the requests when I removed this code. Everything is still working, so It is not even necessary.


texts: Magento 2 graphql file upload not working

texts:
I am using this schema to file upload:

mutation{
     uploadImg (file: Upload!): File @resolver(class: "\\Test\\Cgraphql\\Model\\Resolver\\UpImg") @doc(description:"Upload img")
}

But getting error:

  Type \"Upload\" not found in document.\n\nException #0
  (GraphQL\Error\Error): Type \"Upload\" not found in
  document.\n#1
  GraphQL\Utils\ASTDefinitionBuilder->internalBuildType('Upload',

Please let me know how can we upload image in graphql.


texts: Conditional Layout - Logged in / out in Magento 2

texts: How can I remove certain elements in the layout, but only when the customer is not logged in? In Magento 1, there was a logged in handle, but is there an equivalent in Magento 2?


texts: Magento 2.1 creating a slider / Carousal

texts:
I have a two part question:

How would i go about writing a block/widget (bespoke code that would allow me to output some html that made use of jquery and bespoke css) that implements code to produce a carousal - I know how this could be done say on a plain HTML page, but then Magento has its own idiosyncrasies?
Does anyone know a decent resource which would be a really good place to start to learn how Magento 2.1 works and how to develop for it, starting from the basics with good analogies as a posed to talking from an advanced level of programming?

A lot of the resources I have come across assume an experienced developer is reading their page - rather than a beginner


texts: Whats the best way to resolve requireJS conflicts in 3rd party modules

texts:
I have 2 modules, Cart2Quote and a Swissup Ajax module. Both have requireJs configs that override the catalogAddToCart mapping.
Siwssup_Ajaxpro

Cart2Quote

So the Cart2Quote modules init function is never called.
I've searched but can't find any advice for resolving issues like this.


texts: Magento 2.x - Save same model data in multiple databases

texts:
I have a very big B2B eCommerce which is based on websites (each website has different products, customers etc).

For each website I need to have different databases. I have achieved such a thing but now i need to synchronize some information that will be the same on all websites (so in all databases).

I have a main store that will be the master store and when something changes in CMS Module, Blog Module etc. in master it should be replicated to all other databases.

I do not want to make this replication in sql and i was wondering if it is possible to save/update a model directly by using resource connections of Magento.


texts: XML product feed problem with category path

texts:
I've found a code for exporting products in XML in order to feed price comparison engine.
Everything works fine except category path. They wanted in Category > Subcategory > ... format. So I used this code to create it

//Add Category Name
    $categoryIds = $_product->getCategoryIds();

    $category = Mage::getModel('catalog/category');
    $tree = $category->getTreeModel();
    $tree->load();

    $productids = $tree->getCollection()->getAllIds();
    $categories = array();
    if ($productids)
    {
        foreach ($productids as $productid)
        {
            $category->load($productid);
            $categories[$productid]['name'] = $category->getName();
            $categories[$productid]['path'] = $category->getPath();
        }
        foreach ($productids as $productid)
        {
            $path = explode('/', $categories[$productid]['path']);
            $string = '';
            foreach ($path as $pathId)
            {
                $string.= $categories[$pathId]['name'] . ' > ';
                $cnt++;
            }
            $category_path = substr($string, 34, -3);
        }
    }

    if(count($categoryIds) ){
        $firstCategoryId = $categoryIds[0];
        $_category = Mage::getModel('catalog/category')->load($firstCategoryId);
        $category = $xml->createElement( 'category' );
        $cdatacategory = $xml->createCDATASection($category_path);
        $category->appendChild($cdatacategory);
    }

The problem is that for every product in XML file the category path is the same. The result gives the right category id for the product but returns always the last subcategory's path.


texts:
I have developed a magento website and I'm facing a serious issue while uploading the product image !
I am unable to upload images more then 2MB of size !

Any solutions ?


texts: Set Braintree payment information to credit card

texts:
I'm using Braintree sandbox. This is what I'm sending to POST /guest-carts/:quote/payment-information:

email: '<my-email>',
paymentMethod: {
    method: 'braintree',
    additional_data: {
        cc_cid: '123',
        cc_type: 'VI',
        cc_exp_year: '2020',
        cc_exp_month: '1',
        cc_number: '4111111111111111'
    }
}

I'm constantly getting this response:

{
    "message": "Transaction has been declined. Please try again later."
}


texts: Deleting var/log folder in magento 1.9 version

texts:
Can we delete var/log folder from Magento-1.9?

Will it lead to any problem?


texts:
I've been doing a Slider module (Magento 1.9) and having a problem with the Slider management menu in the admin page. It hasn't shown up though I've been trying to fix the adminhtml.xml file. So I truly appreciate if anyone can provide me some good suggestions to fix it.
Here is my adminhtml.xml file:

<?xml version="1.0"?>
<config>
    <menu>
        <nhatbq>
             <children>
                <slider translate="title">
                    <title>Manage Slider</title>
                    <sort_order>100</sort_order>
                    <children>
                        <index translate="title" module="Nhatbq_Slider">
                            <title>Slider</title>
                            <!--Mapped to adminhtmlModulePath/controller/action-->
                            <action>adminhtml/slider/index</action>
                            <sort_order>0</sort_order>
                        </index>
                    </children>
                    <children>
                        <nhatbq_image translate="title" module="Nhatbq_Slider">
                            <title>Image</title>
                            <!--Mapped to adminhtmlModulePath/controller/action-->
                            <action>adminhtml/image/index</action>
                            <sort_order>1</sort_order>
                        </nhatbq_image>
                    </children>
                </slider>
            </children>
        </nhatbq>
    </menu>
    <acl>
        <resources>
            <admin>
                <children>
                    <catalog>
                        <children>
                            <slider translate="title" module="Nhatbq_Slider">
                                <title>Slider</title>
                            </slider>
                        </children>
                    </catalog>
                </children>
            </admin>
        </resources>
    </acl>
</config>

Thanks


texts: Override template, layout custom module magento 2

texts:
I have custom module and custom theme and i need to override template and layout.Module magic

Override and edit in theme template from module Magic.
Change file template block in xml module.

My template DIR in module Magic/view/frontend/templates/sayhello.phtm and layuot Magic/view/frontend/layout magic_index_index.xml
How i can  to do it?


texts:
I'm using a payment gateway module (Oitoo, that contacts the service from Cielo - in Brazil) to capture and approve credit card transactions during checkout. When a card is approved, everything goes smooth and fast, the module talks to Cielo via webservice, gets the ok and the order is finalized.

When the card is rejected, the response comes quickly from Cielo (I've logged it), but Magento gets stuck waiting for over 2 minutes before showing a dialog with the message telling us the transaction failed.

It all runs fast until a line that thwrows an exception with the message that will be shown to the user later on:

Mage::throwException(Mage::helper('payment')->__('Error Message goes here...'));

This exception is quickly logged to exception.log.

After that, Magento goes who knows where and only returns 2 minutes later. The whole session halts. Even opening a new tab on the store domain on the same browser will keep you waiting. The website works fine on another browser, so it's not a server freeze.

For backend orders everything works fine, no delays.

I've tried to contact the module developer but had no response so far. But it's known to work.

What could possibly be going on? Could it be that some SQL transactions have to be rolled back and that is what takes so long?


texts: product displayed in one column only instead of 2 column on phone in magento 2.3

texts:
when you view a category on desktop shows 3 column but on mobile phone it shows product only one column instead of two column of the page.
whats wrong with magento 2.3.0

check the link on mobile device.
http://www.magshahindia.com/collections/yoga-new.html

Please advise, is it problem of magento 2.3.0 because in 2.2.7 there was no problem


texts: Run Grunt deploy task -> Fatal error: Class 'Locale' not found

texts:
I NodeJs installed, I installed the Magento2 Grunt that works, but if I run the command "grunt deploy" it delete all from the folder pub/static/ but do not deploy and returns me the error below. Can someone help me?

Running "deploy" task

Cleaning "pub/static"...>> "pub/static" is empty.

Deploying Magento application...

Fatal error: Class 'Locale' not found in /Applications/MAMP/htdocs/magento/Projects/Magento2Theme/vendor/magento/framework/Locale/Bundle/DataBundle.php on line 64

Done, without errors.


texts: Change product image on changing color of the product

texts:
I have been struggling to change the image of the product on changing the color of the product on product detail page. I am not able to find the solution on how it will change the image on selecting the color.
For example, I have a configured the product with 3 variations, black, white, blue.
by default, product image appears. but when the user changes the color to blue, the product should display the blue color product(added already to the backend by making it configurable).
I have a custom theme and I am not overriding the templates.
Any idea any help would save me


texts:
I have created a new module in app/code/namespace/Mymodule. Now, I'm trying to display the information about Custom_order or exactly.

I want to copy module sales in vendor/magento/module-sales. I tried to research, but I can't find any guides specific to the problem I'm having.

This picture show at namespace/sales/order/view/order_id/4/

How can I show in another module?