texts: How do I add a submit button to a UI Component Form?

texts:
I'm building a custom form in the admin using the UI Form Component, and configuring it in [my_module]/adminhtml/ui_component/form.xml. I have the fields working, but would like to add a 'submit' button at the bottom of the form - I can see that there is a button UI Component defined in vendor/magento/module-ui/view/base/ui_component/etc/definition.xml, but when I add it, I get a small, clickable square at the end of the form with no text:

<field name="submit">
   <argument name="data" xsi:type="array">
       <item name="config" xsi:type="array">
           <item name="label" xsi:type="string">Submit</item>
           <item name="visible" xsi:type="boolean">true</item>
           <item name="dataType" xsi:type="string">submit</item>
           <item name="formElement" xsi:type="string">button</item>
           <item name="source" xsi:type="string">form</item>
        </item>
   </argument>
</field>

How do I add a submit button to a form using UI Component?


texts: Is there an official detailed documentation of the possible nodes,values and attributes than can be found in system.xml?

texts:
Is there an official detailed documentation of the possible nodes,values and attributes than can be found in system.xml

I can figure out the meaning of some of them myself, but some of them elude me.

For example why do sections of groups have a type attribute, what else could they be other than text. Mind you that section and groups are not inputs.

What does the canRestore="1" attribute in fields mean?

Who is responsible for interpreting the system.xml information and transforming it into a form?

To get a feeling of what I'm looking please take a look at this documentation of the layout instructions Layout instructions docs


texts: Magento 2 data migration RuntimeException

texts:
I am learning how to convert Magento 1.x to Magento 2.x

I installed fresh Magento ver. 1.9.3.8 from GitHub mirror and fresh Magento 2.2.3 using composer

maddy@maddy:/var/www/html/magento-composer$ sudo php bin/magento --version
[sudo] password for maddy:
Magento CLI version 2.2.3

maddy@maddy:/var/www/html/magento-composer$

In magento 1.9.3 i created one product, one category and placed one order now i am trying to migrate it to fresh Magento 2.

i followed this link Install Data Migration Tool  to install the toool.

composer config repositories.magento composer https://repo.magento.com composer require magento/data-migration-tool:2.2.3

but when i run above commands i got

  [RuntimeException]
  You must pass the type and a url. Example: php composer.phar config reposit
  ories.foo vcs https://bar.com

config [-g|--global] [-e|--editor] [-a|--auth] [--unset] [-l|--list] [-f|--file FILE] [--absolute] [--] [<setting-key>] [<setting-value>]...

maddy@maddy:/var/www/html/magento-composer$

I am not able to solve this, can anyone see what is the issue.

Update: if i run below command i got some error realated to memory

maddy@maddy:/var/www/html/magento-composer$ composer require magento/data-migration-tool:2.2.3

Installation failed, reverting ./composer.json to its original content.
The following exception is caused by a lack of memory and not having swap configured
Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details

  [ErrorException]
  proc_open(): fork failed - Cannot allocate memory

maddy@maddy:/var/www/html/magento-composer$ free -m
              total        used        free      shared  buff/cache   available
Mem:           3868        2758         105         303        1005         476
Swap:           475         470           5
maddy@maddy:/var/www/html/magento-composer$

Thank You


texts: Magento 2: registry() content missing while page refreshing

texts:
When loading a product detail page,

at first

$this->_registry->registry()

gets an output content.

But, while refreshing the same page,

$this->_registry->registry()

content missing.

This code was written on a theme custom module.


texts: How can i hide Discount Code form Payment page in Magento 2?

texts:
I have seen many articles on how to hide the discount code on the cart page and I was able to do that, but my attempts to hide the discount code on the PAYMENT page seems to be illusive for me. What is the correct way to hide the Discount Code option on the payment page.
TIA
Jason


texts: What am I doing wrong while trying move an element on the product view page in Magento 2

texts:
I'm trying to move the compare and wishlist buttons to below all of the content in the product info element.

In my theme's catalog_product_view.xml:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <move element="product.info.social" destination="product.info.main" after="product.info.overview"/>
    </body>
</page>

I know that the file is loading and that I can target the element because adding the below line will successfully remove the element.

<referenceContainer name="product.info.social" remove="true"/>

I've tried almost every element in product.info.main and others but it doesn't want to move. What am I missing?

Edit. I may have an idea, I just don't know how to fix it.

It looks like in the base theme I am moving additional.attributes to up to the bottom of product.info.main. I am trying to move the social links below these attributes. it's almost as if it IS putting the social links at the bottom of product.info.main then additional.attributes is loading after.

If I use this, it does move the social links to the top of the page.

<move element="product.info.social" destination="product.info.main" before="-"/>

also, trying to move the product.info.social to below additional.attributes moves it below the footer. I'm so confused...

<move element="product.info.social" destination="additional.attributes" after="-"/>

----------------Edit------------------

I'm going to leave all of my thought's and troubleshooting above for others to follow. The problem was that a lot of the elements share similar class names in HTML and even in template hints. As it turns out some of the elements were previously moved. I just had to reference the correct blocks.


texts: Magento 2.3 | Found 2 elements with non-unique id #fulltext

texts:
Getting following errors at admin->order->grid, under console:
Found 2 elements with non-unique id #fulltext
Found 2 elements with non-unique id #sales_order_grid.sales_order_grid.listing_top.listing_paging_sizes

Above errors, making browser comparability issues while printing invoices on IE and safari.


texts: Magento 2.3 - Category Page in CMS blank amongst other errors

texts:
Experiencing some weird behaviour in Magento 2. It's 2.3.1 (recently upgraded from 2.2.4 but it we only started experiencing it after migration).

Issue 1: When visiting a category page in the CMS, the category sidebars appear but the actual category form is blank.

Issue 2: The product columns in the CMS are offset by 1 - so SKU = Attribute Set, Attribute Set = Type etc etc

Issue 3: Issues on the frontend

The minicart is blank when I click to open it
The checkout doesn't load all of its assets

I've obviously cleared cache, redeployed all the assets. Even ran a lengthy set of commands to do that (as per the magento forum)

All signs seem to point to a knockout.js issue, but I can't seem to get any further than that.

As for error logs, I was getting an error like

  main.CRITICAL: Cannot gather stats!

But since refreshing the assets, that doesn't seem to occur anymore.

If anyone can help, I would be most grateful.

Thanks


texts:
I used the To Percentage of Original Price option to achieve the positive discount, with a Discount Amt of 110 (percent). First off, if I use the To Percentage of Original Price option to specify a typical discount (< 100%, so let’s say 90% for this example), Product Search for my test item shows a base customer price of $11.11 and discounted price of $10.00. This was correct.

But When I modify the associated Rule to specify a positive discount using a Discount Amount of 110% of Original Price, the Product Search shows this:

E.g. product price is 11.11 Promotion is "To Percentage of Original Price" is 110% It was increasing from 11.11 to 12.22 Front end shows price of 12.22 and as low as 11.11

How I can fix this issue


texts: In Search Results order/sort by ordered quantity

texts: Please help me I want to see the products in Search Results order by ordered quantity means which products are more sold those products shows at first Thanks in


texts: I want to apply some rule for customer group for example if general user can buy only single quantity of any product and wholesaler can buy limitless  product quantity and retail can buy specific quantity and so on for different customer groups.


texts: Magento Search Product should atleast return one product

texts:
I have a one custom requirment.

In magento Search module if i am searching with any search term and result is zero then i wanted to return atleast one product (any).
if magento returns atleast result then no need to return this dummy product.

i tried following code:-

i used controller_action_layout_render_before_catalogsearch_result_index

public function customSearch($observer){
        /** @var Mage_Catalog_Block_Product_List $block */
        $block = Mage::app()->getLayout()->getBlock(self::RESULT_BLOCK_NAME);
        //echo $count = Mage::app()->getRequest()->getParam('q'); exit;
        if ($block) {
            $collection = $block->getLoadedProductCollection();
            echo $collection->getSize(); exit;
            if($collection->getSize() == 0){
                $test = Mage::getModel('catalog/product')->getCollection()->getLastItem();
                $block->setLoadedProductCollection($test);
                exit;
               // echo "<pre>"; print_r($test->getData());
               // exit;
            }
        }
    }

2) In Mage_CatalogSearch_Model_Layer

public function prepareProductCollection($collection)
    {
        $collection
            ->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())
            ->addSearchFilter(Mage::helper('catalogsearch')->getQuery()->getQueryText())
            ->setStore(Mage::app()->getStore())
            ->addMinimalPrice()
            ->addFinalPrice()
            ->addTaxPercents()
            ->addStoreFilter()
            ->addUrlRewrite();

        //echo Mage::app()->getRequest()->getParam('q'); exit;

        if(count($collection) == 0){
            $collection = Mage::getResourceModel('catalog/product_collection')
                            ->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())
                            ->addFieldToFilter('entity_id', array('in',array('34791','34790')))
                            ->setStore(Mage::app()->getStore())
            ->addMinimalPrice()
            ->addFinalPrice()
            ->addTaxPercents()
            ->addStoreFilter()
            ->addUrlRewrite();;
            //$collection = Mage::getModel('catalog/product')->getCollection()->getLastItem();
        }

        Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);
        Mage::getSingleton('catalog/product_visibility')->addVisibleInSearchFilterToCollection($collection);

        return $this;
    }

but this code is not returning the that one product when magento returns no records for any search term


texts:
I try to execute a procedure, and this procedura have return, but didn´t work.
$retorno = \DB::connection('sqlsrv05')
        ->select(\DB::raw("DECLARE @DATA DATE SET @DATA = '".$data."' EXEC RIDATA_NEOGRID "));

return $retorno;

Error:
SQLSTATE[IMSSP]: The active result for the query contains no fields. (SQL: DECLARE @DATA DATE SET @DATA = '20200815' EXEC RIDATA_NEOGRID )


texts: How to disable the product price for entire website in magento2

texts:
I have used the below code its not working. Please suggest the solution.

if someone know the answer please share the exact code and folder structure. since i'm new to magento.

  di.xml file:

    < type name="Magento\Catalog\Pricing\Render\FinalPriceBox">
        < plugin name="customization_finalpricebox" type="Checkout\Customization\Plugin\FinalPriceBox"/>
    < /type>
< /config>

Plugin file code:

  FinalPriceBox.php

namespace Checkout\Customization\Plugin;

class FinalPriceBox
{
function aroundToHtml($subject, callable $proceed)
{

    if($subject->getSaleableItem()->getHidePrice()==1){
        return '';
    }else{
        return $proceed();
    }

}

}


texts:
I am using the the Recently viewed products reporting on my basket page.

<?php echo $this->getLayout()->createBlock('reports/product_viewed')->setTemplate('reports/product_viewed.phtml')->toHtml(); ?>

Is it possible to exclude items that are contained in the cart from this report?

This is the full code for that report:

<?php if ($_products = $this->getRecentlyViewedProducts()): ?>

<?php echo $this->__('Have you considered?') ?>

        <?php foreach ($_products as $_item): ?>

                        <a href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->escapeHtml($_item->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'small_image')->resize(300) ?>" alt="<?php echo $this->escapeHtml($_item->getName()) ?>" />

<a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->escapeHtml($_item->getName()) ?>

<?php echo $_item->getSku(); ?>

                        <?php echo $this->getPriceHtml($_item, true, '-related') ?>

                        <?php if(!$_item->isComposite() && $_item->isSaleable()): ?>
                            <button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Add to Basket')) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_item) ?>')"><?php echo $this->__('Add to Basket') ?></button>
                            <?php else : ?>
                        <?php endif; ?>

        <?php endforeach; ?>

<?php endif; ?>


texts: Magento 2 - How to add a custom field to checkout and then send it

texts:
All tutorials are covering only adding a fields, but saving value of this fileds is skipped #mindblown. I don't know why, it's most important part of adding any field or form.

I tried to follow Magento docs, but... it sucks.

For testing purposes I try to add another fields to shipping address, just to ignore custom scopes, custom data sets, custom data providers and other undocumented stuff, which looks too weird for me.

I have no idea what mean that form is "static" or "dynamic". For me all checkout forms are builded dynamically on top of KnockoutJS templates, but... when I try "static" way, I'm able to add inputs here (so it's a static form or not?).

First I try to debug why Knockout observables just ignore my fields during parsing and sending data. I found that my fields have empty name parameter, but I can't manage a way to fix this issue. IMO it should be passed to UI component renderer via inputName parameter, same as any other options like disabled, placeholder etc. (other parameters works fine, I checked configuration generated from my XML to checkout module initialization and looks good for me)

Second I tried to use "dynamic" way with creating plugin with LayoutProcessor and passing exactly same data... and now I have fields with names, but sending still doesn't work at all.

After digging into JS I found that preparing this request is maintained in module-checkout/view/frontend/web/js/model/shipping-save-processor/default.js file, which depends on module-checkout/view/frontend/web/js/model/quote.js where Knockout observables are defined/created.

Somehow module-checkout/view/frontend/web/js/model/address-converter.js update this observables and depends on module-checkout/view/frontend/web/js/model/new-customer-address.js, where I finally found some interesting configuration options - list of all address fields.

When I add my fields here, scripts start parsing and sending them,  OFC I get 500, b/c backend doesn't recognize them... (don't ask, I'm not a backend dev)

So here comes my questions:

It's a right way to handle this type of customization? (b/c looks weird for me)
How to send values of fields not related to new addresses? I didn't see similar configuration anywhere. In my case I'd like to send order comment (textarea) and invoice request (checkbox). Both shouldn't be saved as a address, b/c some users might want to save this address for future use.
Is there any documentation about "static" and "dynamic" forms or some
examples / comparison? It's worth thinking about it this way?

Additional existential question:

Why this is so inconsistent? Why I have to define tons of parameters in XML/PHP files, while Magento at all can only render a input and then I have to handle everything on my own?


texts: Adding Cart Price Rule to Store Pickup not working

texts:
I'm using Magento 1.7.0.2 and enabled the checkout store pickup function as described here: http://www.magentocommerce.com/boards/viewthread/12703/

It works fine so far. But I also need to apply a cart price rule to add 5% discount if a customer picks store pickup as the Shipping method.

Unfortunately that doesn't seem to work. The rule is not considered.

My cart price rule looks like:If ALL conditions are TRUE:
Shipping IS [pickup] Store Pickup

Action:Percent of product price discount, Discount Amount: 5

If I select any other condition instead of pickup (like flatrate) it works as desired. But if I select pickup, nothing happens.

Any ideas why and how to fix this?


texts: Magento 2 : Required Field (UiComponent) (only/any one from two)

texts:
I want to set anyone field is required from two fields [UiComponent]

for example, either text field or Image anyone needs to a required field otherwise can not save.


texts:
I noticed that Magento Layout module does not provide TTL when saves to cache, so the keys in Redis are not expired.

Example: vendor/magento/framework/View/Layout.php:

$this->cache->save($this->serializer->serialize($data), $cacheId, $this->getUpdate()->getHandles());

Taking into account the key hash depends on the entity ID (i.e. product/category/page) the cache is bloated with key that will never be evicted.

It all leads to 5GB - 6GB of the cache size by the end of the day.

Can anyone tell what was the reason to implement it like this, and should it be changed?


texts: Exception #0 (LogicException): Unable to load theme by specified key: '12'

texts:
it's occurred when I tried to change theme from back-end from custom theme to Luma theme.

  Unable to load theme by specified key: '12'

I tried:

check table core_config_data for theme entry and check by changing it.

SELECT * FROMcore_config_dataWHEREpathLIKE '%theme_id%' it show two entry with different scope one if have scope default and other one is store having id 6 so I delete it.

check table theme for theme id. no luck theme have different id & even i check it by changing id of custom theme after I delete entry and deploy theme.
match both table(theme and core_config_data ) entry in db.

deleted custom theme completely

delete all db entry for product & category assign theme.

SELECT * FROM eav_attribute WHERE attribute_code = "custom_theme"

SELECT * from catalog_product_entity_varchar WHERE attribute_id = product custom design attribute id ;

SELECT * from catalog_category_entity_varchar WHERE attribute_id = category custom design attribute id ;

I delete all entry for categories & products assign theme.

it's now saving luma theme in back-end but showing error

to try to solve this issues now it's only luma & blank theme.

I can't find any theme having id 12   entry  in db. in following tables theme, core_config_data


texts: Magento2 - Product import extremely slow

texts:
I created a product (catalog) import module for magento2. I know there is a import module out of the box in magento2 but this does not serve my needs. All my data is stored in sepperate csv files (this data is updated hourly)

articles.csv (7000 products)
categories.csv
attributes.csv
article_attributes.csv

So all this data needs to be imported into magento2.

The import module is executed via the Index controller (mysite.url/import). This works fine and I can see that my products are being imported but it takes very long. After around 10mins I get a 504 Gateway Time-out error

This is my code http://pastebin.com/t3z37X7a

How could I improve my code to reduce the execution time? Or should I try to work with Import classes from magento2 ?


texts:
I am new to this Magento community and stuck at a very basic thing. I am getting the region(state) name from a customer address with this code

$billingAddress = Mage::getModel('customer/address')->load($billingAddressId);
$RegionName = $billingAddress->getRegion();

Now some regions are being returned in locale language. One example is -
Oberösterreich. I want this to be translated in default en_GB language.

I was facing a similar issue with country name as well, though figured out a solution for that as -

$locale = new Zend_Locale('en_GB');
$countries = $locale->getTranslationList('Territory', $locale->getLanguage(), 2);
$countryName = $countries[$billingAddress->getCountryId()];

This was converting the returned name from Deutschland to Germany

I am seeking the same solution for the region name as well. Any help would be appreciated.


texts: Magento2. composer.json require module:version

texts:
Can anybody just give me complete example how to require in composer.json some existing magento module (for some my personal extension). And dependency should work in any magento 2.x.x version. For example for magento/module-catalog?

  "require": {
    "php": "~5.5.0|~5.6.0",
    "magento/module-store": "^100.0.0",
    "magento/module-catalog": "^100.0.0",
    "magento/module-catalog-inventory": "^100.0.0",
    "magento/module-ui": "^100.0.0",
    "magento/magento-composer-installer": "*"
  },

Console:

Using version dev-master for vendor/module
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for magento/magento2ce 2.2.0-dev -> satisfiable by magento/magento2ce[2.2.0-dev].
    - vendor/module dev-master requires magento/module-catalog ^100.0.0 -> satisfiable by magento/module-catalog[100.0.2, 100.0.3, 100.0.4, 100.0.5, 100.0.6, 100.0.7, 100.0.8, 100.0.9].
    - don't install magento/module-catalog 100.0.2|remove magento/magento2ce 2.2.0-dev
    - don't install magento/module-catalog 100.0.3|remove magento/magento2ce 2.2.0-dev
    - don't install magento/module-catalog 100.0.4|remove magento/magento2ce 2.2.0-dev
    - don't install magento/module-catalog 100.0.5|remove magento/magento2ce 2.2.0-dev
    - don't install magento/module-catalog 100.0.6|remove magento/magento2ce 2.2.0-dev
    - don't install magento/module-catalog 100.0.7|remove magento/magento2ce 2.2.0-dev
    - don't install magento/module-catalog 100.0.8|remove magento/magento2ce 2.2.0-dev
    - don't install magento/module-catalog 100.0.9|remove magento/magento2ce 2.2.0-dev
    - Installation request for vendor/module dev-master -> satisfiable by vendor/module[dev-master].

Installation failed, reverting ./composer.json to its original content.


texts: Correct Observer for after Invoiced issued

texts:
I want to run a function AFTER the invoice has been issued.

What is the best event observer? sales_order_invoice_register?


texts:
I have the following code in my sql setup trying to add an integer value in my backend as a custom attribute:

$productAttributesSetup->addAttribute('catalog_product', 'calculator_product_id',
    array(
        'backend'         => '',
        'type'            => 'int',
        'frontend'        => '',
        'input'           => 'text',
        'label'           => 'Calculator',
        'frontend_class'  => '',
        'source'          => '',
        'required'        => false,
        'user_defined'    => true,
        'default'         => 0,
        'unique'          => 0,
        'note'            => '',
        'global'          => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE
    )
);

Im making a mistake and I dont know where. the attribute display the "label: Calculator" in catalog-product backend but not the field to edit the value. could you please shed some light of what do I have to include in order to have a text field defined in my script. brgds!


texts: Display subcategories and its subcategories in dropdown menu

texts:
I am making something like mysmartprice menu in magento, can anybody point me to the resource or search term. I have UI read with me, i just need the correct loop or function to begin. I am familiar with magento theme making, i have made some themes for ecommerce website also, but for this sub-category and its sub-category i am bit confuse.

Any Help would be appreciated.


texts: Call to a member function getPriceType() on null magento graphql - addtocart

texts:
I have a simple product with custom options

while adding to cart i getting error

add a simple product to cart

  mutation {
  addSimpleProductsToCart(
    input: {
      cart_id: "jw7wY66RevjvCOzLMwZr71sj8aRA10gi"
      cart_items: [
        {
          data: {
            quantity: 1
            sku: "Custom option product 2"

          }
          customizable_options:[
          {
            id:2
            value_string:"new"
          }
        ]
        }
      ]
    }
  ) {
    cart {
      items {
        id
        product {
          sku
          stock_status

        }

        quantity
        ... on SimpleCartItem {
          customizable_options {
            label
            values {
              value
            }
          }
        }
      }
    }
  }
}

Response:

{
  "errors": [
    {
      "debugMessage": "Call to a member function getPriceType() on null",
      "message": "Internal server error",
      "category": "internal",
      "locations": [
        {
          "line": 33,
          "column": 11
        }
      ],
      "path": [
        "addSimpleProductsToCart",
        "cart",
        "items",
        0,
        "customizable_options"
      ]
    }
  ],
  "data": {
    "addSimpleProductsToCart": {
      "cart": {
        "items": [
          {
            "id": "34",
            "product": {
              "sku": "Custom option product 2",
              "stock_status": "IN_STOCK"
            },
            "quantity": 1,
            "customizable_options": null
          }
        ]
      }
    }
  }
}

  Call to a member function getPriceType() on null

I searched but I couldn't find any idea about that?

does any one have an idea about that?


texts: Is it possible to fire multiple ajax requests asynchronously in Magento 2 backend?

texts:
What the title says. Im trying to run an import script with AJAX "call 1" and I want to keep track of the import (for feedback purposes) with AJAX "call 2". To give the end user live feedback these calls need to run simultaneously and "call 2" needs to call itself (recursive) to poll for changes.

I have the Controllers and the methods and everything works just fine, just not at the SAME time. Is it a soft lock on the database or is it something else?

Btw I am aware of the "async: true" setting for the ajax call.

[edit] It looks like Magento is preventing me from executing two controllers at the same time. Can anyone confirm this?


texts: Can't override magento 1 controller method

texts:
I am trying to override community controller(which is overriding core controller) but Its not overriding...Local module files

<modules>
    <WoofDigital_Enquiry>
        <active>true</active>
        <codePool>local</codePool>
        <depends>
            <JakeSharp_Waterlee/>
        </depends>
    </WoofDigital_Enquiry>
</modules>

config.xml

<fronend>
        <routers>
            <jakesharp_waterlee_contacts>
                <args>
                    <modules>
                        <WoofDigital_Enquiry before="JakeSharp_Waterlee">WoofDigital_Enquiry</WoofDigital_Enquiry>
                    </modules>
                </args>
            </jakesharp_waterlee_contacts>
        </routers>
    </fronend>

controllers/Contacts/IndexController.php

require_once 'JakeSharp/Waterlee/controllers/Contacts/IndexController.php';
class WoofDigital_Enquiry_Contacts_IndexController extends JakeSharp_Waterlee_Contacts_IndexController
{
    public function postAction()
    {
        die('Controller override');
    }
}

Community config.xml

<frontend>
    <routers>
        <contacts>
            <args>
                <modules>
                    <jakesharp_waterlee_contacts before="Mage_Contacts">JakeSharp_Waterlee_Contacts</jakesharp_waterlee_contacts>
                </modules>
            </args>
        </contacts>
    </routers>
</frontend>

community Controller

require_once(Mage::getModuleDir('controllers','Mage_Contacts').DS.'IndexController.php');

class JakeSharp_Waterlee_Contacts_IndexController extends Mage_Contacts_IndexController

Anyone who can just put me in right direction because I think I am doing everything right as it required by Magento 1.9.3
Thanks


texts: php bin/magento reindexer:reindex catalogrule_product

texts:
I am using Wampserver 3.0 on Windows 10 and I have installed Magento 2.0.
I extracted Magento to C:\wamp64\www and installed. I had an initial issue with the php.ini which I have since solved. So now it appears that everything installed correctly but I am getting

How do I resolve this issue? Thank you for your assistance.
Eric


texts:
I get the thumbnail url using the following code

$image_url = $this->imagehelper->init($product, 'product_page_image_small')->setImageFile($product->getFile())->getUrl();
echo $image_url;

It returns

http://localhost/magento/pub/media/catalog/product/cache/e97e30f46ad3af2c4402aa864120074b/w/b/wb02-green-0.jpg

My doubt is they mention the directory name cache in url. is this url is fixed one ? . I mean if erase the cache or run some command to remove cache files this url is exists or not . if not means how do i take the url


texts: Magento 2 Add existing simple product to configurable product greyed out

texts:
I'm trying to add an existing simple product to a configurable product.
I clicked on Add products Manually in the configurable product.

But the the simple product I'm trying to add to this configurable product is greyed out. Why is this happening and how can I fix it?


texts: What am I doing wrong in applying patch?

texts:
When trying to apply a patch I am getting this error-

 ssh PATCH_SUPEE-9767_CE_1.9.3.2_v2-2017-07-11-11-06-06.sh
ssh: Could not resolve hostname PATCH_SUPEE-9767_CE_1.9.3.2_v2-2017-07-11-11-
6-06.sh: Name or service not known

When I do ls I can see the patch. I have double and triple checked it is spell correct, and I have all permissions. What does name or service not known mean?


texts: Magento 2 - Remove filter in category page

texts:
I need to remove the category filter in Layered Navigation, but I can't find a way to remove the filter option in the layout arguments.

Anyone knows the best way to do this?


texts:
We have upgraded and unfortunately many of the custom theme modifications do not work with the new system.  Most are easy fixes but i am struggling with this one which i suspect is probably an easy fix in the CSS somewhere

On hovering over the products, the products below are pushed down.  Can someone please suggest a fix for this issue?  Test site can be seen here;

https://magdev.challengept.com/gear/fitness-equipment.html


texts:
I am showing ajax response in select options as below code. I want to sort the select options in alphabetical order of values.

Please provide a solution to sort below data on values basis.
My data is like {123:"green",124:"blue"}

function ajax_post(params, append_to, appent_type) {
            $.ajax({
                type: "GET",
                url: "<?= $this->getBaseUrl()?>" + "customcontroller/index/index/" + params,
                dataType: "json",
                success: function (data) {

                    if (append_to != 0) {
                        $(append_to).html('');
                        $(append_to).append('<option value="0">Select ' + appent_type + '</option>');
                        $.each(data, function (key, value) {

                            $(append_to).append('<option value="' + key + '">' + value + '</option>');
                        });
                    }
                }
            })
        }

Please provide a solution. I have tried to sort response in controller but when ajax loads it, it shows unsorted data.


texts: get payment method in the success page Magento 2 programmatically

texts:
How can I display the payment method in the success page using a code?
If anyone can help me, it would be great. Thankyou.


texts: Frontend customer registrations incorrectly setting Associate to Website: Admin/Not preventing signup with dup email address

texts:
While testing a site currently in development, noticed that when creating a customer on the frontend, the customer saves with "Associate to Website" set to  Admin, which means new users cannot log back in after creating the account.

Have also noticed it is not preventing the registration of multiple users at the same email address.

The Created From input does show the correct store the customer was created from.

We cannot set "Share Customer Accounts" to Global, which would allow the customer to login, even though they are associated with a different website, as customers of one website are not to have access to the other.

Have confirmed the website_id, attribute_id is associated with adminhtml_customer in the customer_form_attribute table.

Upon logging $customer just after $customer->save(); in \app\code\core\Mage\Customer\controllers\AccountController.php I notice an absence of website_id, perhaps related to the issue.

[_data:protected] => Array
    (
        [entity_id] => 129905
        [group_id] => 1
        [entity_type_id] => 1
        [firstname] => xxxx
        [middlename] =>
        [lastname] => xxxx
        [email] => xxxx@xx.com
        [password] =>
        [password_hash] => xxxxxxxxxx
        [password_confirmation] =>
        [mailchimp_update_observer_ran] => 1
        [store_id] => 2
        [parent_id] => 0
        [created_at] => 2017-03-27T23:18:29+00:00
        [updated_at] => 2017-03-27 18:18:29
        [created_in] => xxxxxxxxxxx
        [disable_auto_group_change] => 0
        [confirmation] =>
        [p21contactid] => xxxxx
        [p21customerid] => xxxxxx
    )

Any ideas?

UPDATE 3/29: app\code\core\Mage\Customer\Model\Resource\Customer.php

$bind['website_id'] = (int)$customer->getWebsiteId();

website_id is being set to 0, even though I'm registering customer from website 2

If I hardcode a valid store id(just for testing) then I am prevented from creating a customer with an email which already exists, but customer is still assigned to Admin website

$bind['website_id'] = 2;

\app\code\core\Mage\Customer\Model\Session.php

$customer = Mage::getModel('customer/customer')->setWebsiteId(Mage::app()->getStore()->getWebsiteId());

Always returns the correct website ID

Will continue to update throughout troubleshooting. Appreciate any suggestions in the mean time.


texts:
I have an old and a new version of Magento 2 installed. However, I have to use the old version because the server only supports PHP 5. After installing this error has appeared.

After that I tried to execute the suggested command. However, I get this error message.

What can I do that Magento 2 works?


texts: Make a coupon valid for one month from the date of registering

texts:
I want to make a coupon time bound if a user registers on the website I will send him a coupon e.g. : CHJU20 that will be valid for only one month from the date of registering.

It should not apply after 1 month. Now if a new customer registers the same should happen with him too


texts: After changing default theme to custom theme contents and blocks missing

texts:
While developing custom theme when initialized my new theme from content -> theme -> selected my own theme after that my site content are missing.

But when i select some dropdown menu i can able to view the product list page only for some selected menu


texts: Configurable Product Option that doesn't exist

texts:
I have configurable products that have multiple simple products associated with it. Some of these simple products do not have the same options for others within this config.

For instance:
Configurable Product:

Simple Product A - Size: Large, Color: Black
Simple Product B - Size:
Medium, Color: Red

You can see that there is no product that is Large AND Red but the configurable product allows this selection. It even allows the user to add to cart, proceeds to checkout and lists that product as one of the other product (Simple Product A).

How can I fix this issue?

I have created Simple Product C - Size: Large, Color: Red Quantity 0 (Out of stock). Nothing happens, in fact the availability still indicates In Stock.

It simply does not read the configurable product options properly.

For reference, this is the page that has this problem: LINK

Product Options White + King is there but set to quantity 0 out of stock. It should not allow to be selected.

EDIT: I forgot to mention, I am using the SCP Simple Configurable Product Module


texts: Show value if customer logged in and customer email is X

texts:
I want to show a value on the product page that only an Admin can see.

What is the best way to do this?

I was thinking of an if statement that checks if I am logged in and also checks my email.

It would be easier if it knew I was logged into the Backend though as I wouldnt have to log in as a customer.

Thanks


texts:
I want to display only the products that use image, not placeholder:

<?php $_productCollection = Mage::getResourceModel('reports/product_collection')
                           ->addAttributeToSelect('*')
                           ->setOrder('created_at', 'desc')
                           ->setPage(1, 10); ?>

                    <?php foreach($_productCollection as $_product) : ?>

                            <a href="<?php echo $_product->getProductUrl() ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(220, 150); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />

<a href="<?php echo $_product->getProductUrl(); ?>"><?php echo $_product->getName(); ?>

                <?php endforeach; ?>


texts: Magento2 Type Error occurred when creating object: Magento\InventorySourceSelection\Model\Address

texts:
I am placing an order which consists of 2 items out of which one product is Giftcard and the other one is a Simple product.
I place the order with these items using the Hyperpay Payment method which is a third party.
The order get's placed successfully.

My issue is when I try to create the invoice of this order with both the items I face the
 Type Error issue saying:

"Type Error occurred when creating object: Magento\InventorySourceSelection\Model\Address".

Also, the order status becomes complete. I tried debugging this issue but had no luck

.


texts: Calling an admin block from xml layout issue

texts:
This is the content of my custom module, config.xml file:

<adminhtml>
        <layout>
            <updates>
                <mymodule>
                    <file>homepage.xml</file>
                </mymodule>
            </updates>
        </layout>
    </adminhtml>

this is the content of the layout/homepage.xml file from

<?xml version="1.0"?>
<layout>
    <adminhtml_manage_index>
        <reference name="content">
            <block type="mynamespace_mymodule/adminhtml_banner" name="mynamespace_mymodule_banner" />
        </reference>
    </adminhtml_manage_index>
</layout>

This is the content of my controller Mynamespace/Mymodule/controllers/Adminhtml/ManageController.php

class Mynamespace_Mymodule_Adminhtml_ManageController extends Mage_Adminhtml_Controller_Action
{
    public function indexAction()
    {
        $this->loadLayout();
        $this->_initAction()->renderLayout();
    }
}

and the content of the Mynamespace/Mymodule/Block/Adminhtml/Banner.php

class Mynamespace_Mymodule_Block_Adminhtml_Banner extends Mage_Adminhtml_Block_Widget_Grid_Container
{
    public function __construct()
    {
        echo 1; exit();
//....
    }
}

My problem is that it doesn't access the block. I put an exit() there . But I cannot get there. Why ? What am I missing ? thx


texts: how to add onclick method in magento2 admin custom module page?

texts:
my edit.php file in magento admin custom module

 $this->addButton(
            'approve',
            [
                'label' => __('Approve'),
                'onclick' => 'deleteConfirm(' . json_encode(__('Are you sure you want to Approve Quote?'))
                    . ','
                    . json_encode($this->getDeleteUrl()
                    )
                    . ')',
                'class' => 'scalable delete',
                'level' => -1
            ]
        );

here i want to add my custom method(Logic)
how i can add

  'onclick' => 'deleteConfirm(' . json_encode(__('Are you sure you want
  to Approve Quote?'))

when add any method shows error

  Fatal error: Uncaught Error: Call to undefined function
  Webkul\Mpquotesystem\Block\Adminhtml\Managequotes\getDeleteUrl() in
  /var/www/html/equpo2/app/code/Webkul/Mpquotesystem/Block/Adminhtml/Managequotes/Edit.php
  on line 57

how i can solve this??


texts: How to return Final Price with Tier pricing taken into account

texts:
Our webshop pricing structure is completely based on Tier pricing. The normal price is set to 999999.99 and occasionally there are special prices that overwrite the Tier price. We need to make an adjustment to the way the price is shown in the category overview. By my knowledge I should use:

 <?php echo $_product->getFinalPrice(); >

To get the price the logged in customer needs to pay. This should obviously take into account the Tier prices and Special prices if applicable. When I use this I either get the normal price (999999.99) or the special price, but never the actual price (Tier price).

I've also tried calling the Tier prices by using:

 <?php echo $_product->getTierPrice(1); ?>

This also return 999999,99. I've got this working on the product page. How can I make this work on the category page?


texts: How to fix "Serve static content from a cookieless domain" to increase the speed of Magento site

texts:
I had completed my magento website called www.bookslab.in. I want to increase the speed of my website. I had checked my website speed on "tools.pingdom.com" it is coming "4.34s" page load time & Performance grade as: 91. My website speed will increase if i remove this 1 error
1) Serve static content from a cookieless domain
I am attaching the screenshot of my website speed details.


texts: The shipping method is missing. Select the shipping method and try again - but it is set

texts:
I am struggling with a problem regarding placing an order programmatically. I have an extension that creates an order programmatically and does some stuff afterwrds (which is not relevant for my problem here).
Here is the funny thing. When the shipping address destination country is the default location, it works as expected. But if the destination country is Finland for example, I get the exception "The shipping method is missing. Select the shipping method and try again.", even if I definitiely set it, the rates have even been calculated, I checked that. But the order itself won't be submitted.
Does anyone have an idea why? I need help please...
$shippingMethod = $this->_helperData->getConfig('shipping_calculation');
$shippingAddress = $quote->getShippingAddress();

$shippingAddress->setCollectShippingRates(true);
if ($shippingMethod === 'tablerates' ||
   $this->_moduleManager->isDhlInstalled() === false) {
   $shippingAddress->setShippingMethod('tablerate_bestway');
} else {
   $shippingAddress->setShippingMethod('dhlrates_DOM');
}

/*
 * NEXT 2 LINES ONLY FOR TESTING!
 */
$shippingAddress->save();
$quote->setShippingAddress($shippingAddress);

$quote->getPayment()->importData(['method' => 'checkmo']);
$quote->setInventoryProcessed(false);
/*
 * Added setTotalsCollectedFlag(false) for testing
 */

$this->_quoteResource->save($quote->setTotalsCollectedFlag(false)->collectTotals());

//$rates = $shippingAddress->collectShippingRates()
//    ->getGroupedAllShippingRates();

$order = $this->_quoteManagement->submit($quote, $orderData);


texts:
In Magento 1 how can I translate the following e.g echo $this->__("This is it, blablabla");

How can I escape the comma?

I've tried to do this in the translation file

This is it"," blablabla, New translation


texts: How to call observer before checkout page in magento2

texts:
I am working with magento2, and now I want open popup modal box when the user clicks on checkout link.
Instead of the open checkout page, it should open my custom pop box with the module in magento2.
Anyone know about this please give me a suggestion.


texts: Store external API expire time in Custom Module

texts:
I use ajax to get the access token from the external API. How can I store the expired time across the site and the ajax only call again when the session expired?

test.js

/helloworld/index/display is the controller that will get the input from Store -> Configuration and call the external API by using cURL

$.ajax({
    url: "/helloworld/index/display",
    type: "GET",
    complete: function (response) {
        access_token = response.responseText;
    }
});


texts: How to restore Admin access for failed TLS/SSL?

texts:
I was configuring Magento CE to use a SSL certificate. I navigated to Configuration / Web / Secure and enabled SSL. Then I did the wrong thing, I think. I changed the secure URL path to https://www.example.com/ and now I am locked out of the back end, showing  “SSL connection error”. My website is up, but checkout is not working. I think. I have cleared the cache on my browser, and tried some others.

I did a search on the error, and the fix seems to be: to go into phpmyadmin, find core_config and change the value of  web/secure/use_in_adminhtml from 1 to 0.

I cannot find the path web/secure/use_in_adminhtml. The closest I can find is web/secure/base_url.  The post is from 2011, so it may have changed since then. You can read the post here http://www.magentocommerce.com/wiki/recover/ssl_access_with_phpmyadmin . I am using Magento 1.8 now. I have a very basic understanding of phpmyadmin, so am much more likely to stuff it further, so please advise me.


texts: remove BOM byte ("" /ufeff"") from response

texts:
so im using m2e pro extension on magento 2.3
suddenly the synchronizing stopped from working.
thats because that m2e pro uses their own cron job and they sends curl calls to the server, but my server response with BOM byte.
script for exemple:

  ?php

  $ch = curl_init(); curl_setopt_array($ch, array(

  CURLOPT_URL            => 'http://my-sire-ip/index.php/M2ePro/cron/test/',

  CURLOPT_HTTPHEADER     => array('Host: my-site-name.com'),
      CURLOPT_RETURNTRANSFER => 1 ));

  var_dump(json_encode(curl_exec($ch))); // return string(8) ""\ufeff""

  // "\ufeff" - this is BOM byte it should not be in response.

the response is:

  string(8) ""\ufeff""

this is what stopping from their cron to work on my server.
how can i remove this BOM byte so it will work properly?


texts:
I am trying to work out what grid system comes with Magento 2.2 for the frontend

I can see there are docs for the admin Page Grid however none of the frontend. Could someone point me in the right direction or is it the case that I should include my own system like Bootstrap or UI Kit


texts:
i like to add a new font to magento admin theme, for that i put the font file in "FederalLawyer/skin/adminhtml/default/lawyeradmintheme/fonts"

in my css file i called :
------------------------
 @font-face{
        font-family:'FontAwesome';
        src:url('../fonts/fontawesome-webfont.eot?v=4.2.0');
        src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.2.0')
        format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.2.0')
        format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.2.0')
        format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular')
        format('svg');font-weight:normal;font-style:normal;}

but still is not get call.
see the below screen you will know that.


texts: Adding a Custom Column to Customers Grid

texts:
am tring to show a Custom Customer attribute in Customer Grid by using this code
http://www.atwix.com/magento/add-column-to-customers-grid-alternative-way/

its showing the values if am using default magento columns as index
but how can i use a custom text field attribute ?

        if ($block->getType() == 'adminhtml/customer_grid') {
/* @var $block Mage_Adminhtml_Block_Customer_Grid */
        $block->addColumnAfter('origin', array(
            'header'    => 'origin',
            'type'      => 'text',
            'index'     => 'entity_id',
        ), 'group');
    }


texts: Add new form code for customer_form_attribute in Magento 1.9

texts:
I added new customer fields (attributes) by installer in my Magento extension. I want group this fields and show in separate tabs on customer edit page.

I can make it in installer with this code

Mage::getSingleton('eav/config')
    ->getAttribute('customer', $attr_code)
    ->setData('used_in_forms', [$form_code])
    ->save();

But for this I need add new value to enum list for field form_code in table customer_form_attribute

I know how make this with SQL in mysql console:

Check enum list by SHOW CREATE TABLE customer_form_attribute
Change column by ALTER TABLE customer_form_attribute ...

But I need make this modification in my extension installer.

How I can make it?


texts: How to create a custom import in Magento 2

texts:
We need to create a custom data import in Magento 2. In Magento 1 we used to use the Dataflow model to implement our custom imports.

In Magento 2 there are no 'advanced profiles' but an 'Import' section. Does anyone know if it's possible to add new custom entities to that import section? Any examples?

Thanks!


texts:
In Magento 1.7 there is a well known rounding error issue, which I thought I have solved using the fix suggested for example here

However, ever since I have applied the fix, there is now a very strange new calculation error, not for taxes, but already for the items in cart. It only happens when the amount of an item in the cart is more than one.

Example:  5 times an item with a price of 1.18 € each equals 5.88 € in cart and not 5.90 € as supposed.

Once I disable the rounding error fix again, price calculation for the articles works again, bit than tax is being calculated wrong.

Any idea how to fox this?


texts: Checkout billing address getting blank in magento 2

texts: I'm getting issue on checkout when I apply coupon code on checkout cart or checkout shipping page at the end of checkout payment page I'm getting issue with my billing address  same as shipping getting only 2 things once pin code or second country name


texts: Magento 2 get catalog price rule Action applied and Discount Amount on product list page

texts:
I would like to display text for each product on product list page for a e.g on a category all product with discount but there are 4 options which consist of percentage or fixed :

So if Apply is Apply as percentage of original that means the display will be= "x% Discount" if Apply is Apply as fixed amount the display will be any currency = "$x Discount" etc... How do I get the selected drop down value
to define if is percentage or fixed value?

So the goal is to check which one to display either % or a currency symbol e.g $


texts:
I've been googling well over 2 hours now and for some reason I cannot find a way to add a full catalog to the homepage. I need this cause I want an infinite scroll on the homepage, I'll be able to resolve this.

How can I add a normal product list on the homepage with all items? Preferably sorted by date add (DESC) but that'd be something I should be able to resolve.

I have an extra template file added to the homepage, should I just go ahead and copy the catalog html in here?

Please advise.


texts: How to check if Magento patch has been installed?

texts:
So I just installed recent critical patches SUPEE-5994 + SUPEE-5344 + SUPEE-1533 - through SSH on my server.

I did the following steps for installing each patch:

Downloaded the patches from: https://www.magentocommerce.com/products/downloads/magento/

Uploaded each patch to my Magento root folder
Ran SSH command: sh patch_name.sh
Got success message from console: Patch was applied/reverted successfully

My website works and all is good. It all installed instantly.

Lets say I'm suspicious to whether the patches actually DID get installed - is it possible to check somewhere which patches has been installed?? - either through SSH, FTP or similar?


texts: How to custom field select options in register and saving them in db

texts:
I need to add select input in registration from in magento 2 I did all the steps but in InstallData.php file I have this partial code

  $eavSetup->addAttribute(Customer::ENTITY, 'account_type', [
        // Attribute parameters
        'type' => 'int',
        'label' => 'Account Type',
        'input' => 'select',
        'required' => true,
        'visible' => true,
        'user_defined' => true,
        'sort_order' => 990,
        'position' => 990,
        'system' => 0,
        'source' => 'Magento\Eav\Model\Entity\Attribute\Source\Table',
        'global' => \Magento\Catalog\Model\ResourceModel\Eav\Attribute::SCOPE_GLOBAL,
        'option' => ['values' => [1=>'Customer', 2=>'Designer or Architect']],
        'is_used_in_grid' => 1,
        'is_visible_in_grid' => 1,
    ]);

I think it add select's options in db but it doesn't take values in right way it suppose to be 1 and 2 but it shows 4 and 5 like:

  <option data-title="Customer" value="4">Customer</option>
  <option data-title="Designer or Architect" value="5">Designer or Architect</option>

How to make this take the values I defined?


texts:
I am trying to modify coupon code functionality.  I have got a situation where I am not able to find where a coupon code is validated. I have searched the entire code base. Can anyone point me in right direction?

  I am trying to apply Multiple Coupon codes.


texts: I have upgrade Magento 2.2.7 to 2.3.2 complete but the Front-end not working

texts:
upgrade Magento 2.2.7 to 2.3.2 complete but frontend not working Swissup/argento-essence/ theme error at the below-attached screenshot.
https://prnt.sc/okp009


texts: coupon not applying for subtotal more than 1100

texts:
we want to apply coupon code

1)for all products with price 499

2) except some products which have particular price as 299, 998, 999.

3)except Products which are in category id 6475

so i am trying shopping cart price rule as below.

issue : its not applying discount if subtotal is greater than 1100

Also i tried like below image :

Edit


texts: How to add debit card and net banking method DIRECT in indian shipping site?

texts: I am a student and I am learning the Magento 1.9.3.6 version. I want to add the debit card and net banking option to my payment method. Thank you.


texts: Upgrade script not working - SQLSTATE[42000]

texts:
However when I run an upgrade script to add this column I get this Error:

  Error in file: "..................sql/test123_bannerslider_setup/upgrade-0.0.1-0.0.2.php" -
   SQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command
  denied to user 'devx'@'localhost' for table
  'test123_bannerslider_bannerslider'";i:1;s:1259:"#0
  ..................../app/code/core/Mage/Core/Model/Resource/Setup.php(644):
  Mage::exception('Mage_Core', 'Error in file: ...')

<?php
$table = $this;
$table->startSetup();
$table->getConnection()
    ->addColumn(
        $table->getTable('test123_bannerslider/bannerslider'),
        'topheadline',
        Varien_Db_Ddl_Table::TYPE_VARCHAR,
        255,
        array(
            'nullable' => true
        )
    );
$this->endSetup();

My file structure:

->sql
-->test123_bannerslider_setup
--->install-0.0.1.php
--->upgrade-0.0.1-0.0.2.php

Update:

SOLUTION

Finally I change my code to SQL and now it works:

<?php
$table = $this;
$table->startSetup();

$table->run("
ALTER TABLE test123_bannerslider_bannerslider
  ADD COLUMN `topheadline` VARCHAR(255) NULL;
");

$table->endSetup();


texts:
Hello Guy i am New to mangeto technology , i have created a small E commerce website using Mangeto ON WAMP, it's very simple website and now i planning to put it on Git or any other version control so that if anyone fellow developer want to make changes in website then they can, Now my Problem here is as follows

1.should i upload the entire Magento folder or there some specific files from the folder ?

i will need the database too, which i have created for website using phpMyadmin how to deal with that ?

3.once i am done with uploading Mangento and getting database too , what should i do that it work fine on other system?


texts: How to make an attribute as unique magento 2

texts: I have installed loging advanced so i can log in with a login or an email but how to make the login unique as the email any idea please.


texts:
I'm working on a Magento site and there are 'No records found' on the Index Management admin panel.

Has anyone come across this before?


texts: Placeholders and Boolean Logic in Data-Table Filters

texts:
I can filter a data-table in the backend by a custom search term for textual columns, see devdocs.
Can I somehow use placeholders or logical operations (like not or xor) therein?
I have tried * as a placeholder as well as NOT and ! as a prefix to a single search term and AND, &, OR and | as combinators between two terms – all without any success at all.


texts: Magento 1.8 Multi-Store in folder - 404 error

texts:
I'm trying to create a multi store site for a Magento 1.8 CE installation.
I followed this tutorial: https://docs.nexcess.net/article/how-to-configure-multiple-magento-storefronts.html

Basically I created the folder for the new store, copied index.php and .htaccess, created the symlinks, and modified in index.php with the corresponding parameters for Mage::run.

is there anything I missed?


texts: What do numbers mean in magento patches?

texts: During installation of the latest Magento security patch the interesting question appeared in my head what do numbers mean in name of patches? like 9767 or the latest one 10266?


texts:
I have two conditions If the user is from UK the VAT is 20% (That Part is done), But if He Has VAT No. then There will be 0% Tax Include in total Amount.

How This will be managed in Magento 2.


texts: How to turn on error messages in magento 2

texts: I need to show the error on the front page instead of the error report.Please suggest


texts: want to disable required filed validation on one filed in onepagecheckout

texts: we are using onpagecheckout for checkout, currently we have passport/id field as required on checkout page, even thought i deleted the client side validation , its still saying "ID Type is a required value.", is there any place that i should change the validation ?


texts:
After adding a new module to Magento2 I need to enable it using

bin/magento module:enable Module_Name

then, I need to run the install scripts from the module using

bin/magento setup:upgrade

While running this I see in the log these messages:

Schema creation/updates
Installing schema
Schema post-updates
Data install/update

1, 2 and 4 are clear. Actually 1 and 2 seam to be the same thing. Applying the schema delta. So it runs everything from Setup/InstallSchema.php (that needs to run)
4 installs data for the modules. So it runs everything from Setup/InstallData.php.

What does Schema post-updates mean, what it does and how can I use it?


texts: Adding custom JS (Slick Slider) to Magento Custom Theme without overriding parent

texts:
I created a custom theme which is inheriting from the blank theme.
Now I wanted to integrate Slick and found this article which I followed
https://inchoo.net/magento-2/magento-2-slick-carousel/

My problem:
I pasted this to a freshly created app/design/frontend/_YOUR_VENDOR_/_YOUR_THEME_/web/requirejs-config.js

var config = {
    paths: {
        slick:        'js/slick'
    },
    shim: {
        slick: {
            deps: ['jquery']
        }
    }
};

Now when I check the file on the web page this is the only content in it, of course because it's obviously overriding the file from the parent theme

I could copy paste the content of the parent theme's requirejs-config.js
but then still if the parent theme gets updated I will not get those updates.

How can I just extend the file instead of overriding?
Or is there a better way to integrate the js library?


texts: Magento 2 - Using KOJS template for filter component?

texts:
On the same page I have several custom product grids with above them a filter toolbar.

To simplify the case :

<?php foreach ($grids as $id => $grid): ?>

        <div id="item-<?php echo $id; ?>"
             class="item"
             data-bind="scope:'filter'"
        >

Product 1

Product 1

Product 1

Product 2

<?php endforeach; ?>

My JS Component file :

# \Foo\Bar\view\frontend\web\js\filter.js

define([
    'jquery',
    'uiComponent',
    'jquery/ui'
], function ($, Component) {
    'use strict';

    return Component.extend({
        defaults: {
            template: 'Foo_Bar/filter'
        },
        options: {
            option1: 'option1',
            option2: 'option2'
        },
        initialize: function () {
            this._super();
            this.applyFilters();
            this.getTrigger().on('click', $.proxy(this.triggerFilter, this))
        },
        triggerFilter: function (event) {
            this.applyFilters();
        },
        applyFilters: function () {
            // logic
        },
        getCurrentElement: function () {
            return $(this.currentElement);
        }
    });
});

With that I would like that my filter component is linked to the <div id="item-<?php echo $id; ?>"> element that I can work with the
 element.

My questions are :

Is JS Component + KOJS template the best way / practice to perform that?
Do I have to simply use Magento block + Magento template + RequireJS plugin?
Is there a simple way to retrieve the current targeted element in UiComponent without using config node as in my example for the KOJS way?


texts: Show Product Category Item List in Static Block (cms block)

texts:
I try to show the product list from my category ID 472 somewhere else of my magento Site, so I've made a Static-Block who includes:

{{block type="catalog/product_list" category_id="472" template="catalog/product/list.phtml"}}

At my phtml-Template I include the Block like this:

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('telekomm_success')->toHTML();?>

But there's no HTML Output. only the first  from the "catalog/product/list.phtml"-Template. Why?
What do I wrong?


texts: I am wanted to import the live site in the local environment. i have installed the magento on the localhost now which steps i have to follow for the successful import of the live db in the local environment ?


texts: Compare item added to cart to items already in cart to check if same attributes

texts:
I am having trouble comparing the items already in my cart with the item that was just added to the cart. Since I have attributes that are added via module instead of in each product, the item is just using whatever configuration the previous one had.

I am using the Mage_Sales_Model_Quote_Item to check this, and if I just return: false every time, it does add each item separately, so I know this is being called. Now instead of just adding each one separately even if they're the same, I want to check and add it as a quantity increase instead of a separate item.

Here's the class:

class ECB_ModifyMeal_Model_Sales_Quote_Item
    extends Mage_Sales_Model_Quote_Item
{
    public function representProduct($product) {
        $bool = false;
        $productExP = $product->getData('exclude_protein');
        $productSubP = $product->getData('sub_protein');
        $productExS = $product->getData('exclude_sides');
        $productSubS = $product->getData('sub_sides');

        $itemProduct = $this->getQuote()->getAllVisibleItems();
        foreach($itemProduct as $item){
            $itemExP = $item->getData('exclude_protein');
            $itemSubP = $item->getData('sub_protein');
            $itemExS = $item->getData('exclude_sides');
            $itemSubS = $item->getData('sub_sides');

            if($productSubS == $itemSubS){
                $bool = true; //same product
                break;
            }
        }
        return $bool;
    }
}

I've tried a few different variations of 'getAllVisibleItems' and none of them worked. Is there another way to get these attributes? I know that these are the same names I have used when setting them up.


texts: How can a customer upload an image and then show the product as a preview and maybe customize it?


texts: Magento crashes after theme installation

texts:
After having installed a theme in Magento and played around a little bit on my next restart I tried to reach the site and I'm getting this error

Notice: Undefined index: catalog.topnav  in /var/www/html/magento1.9/app/code/core/Mage/Core/Model/Layout.php on line 460

  #0 /var/www/html/magento1.9/app/code/core/Mage/Core/Model/Layout.php(460): mageCoreErrorHandler(8, 'Undefined index...', '/var/www/html/m...', 460, Array)

  #1 /var/www/html/magento1.9/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('page/html_topme...', 'catalog.topnav')
 #2 /var/www/html/magento1.9/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('page/html_topme...', 'catalog.topnav')
 #3 /var/www/html/magento1.9/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#4 /var/www/html/magento1.9/app/code/core/Mage/Core/Model/Layout.php(206): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#5 /var/www/html/magento1.9/app/code/core/Mage/Core/Model/Layout.php(206): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
 #6 /var/www/html/magento1.9/app/code/core/Mage/Core/Model/Layout.php(206): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
   #7 /var/www/html/magento1.9/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
 #8 /var/www/html/magento1.9/app/code/core/Mage/Cms/Helper/Page.php(113): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#9 /var/www/html/magento1.9/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'home')
#10 /var/www/html/magento1.9/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'home')
 #11 /var/www/html/magento1.9/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->indexAction()
 #12 /var/www/html/magento1.9/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#13 /var/www/html/magento1.9/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
 #14 /var/www/html/magento1.9/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#15 /var/www/html/magento1.9/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#16 /var/www/html/magento1.9/index.php(83): Mage::run('', 'store')
#17 {main}

I assume it's the theme's fault because I came across the same post somewhere on the internet but I'm not sure on how to remove the theme. Any fix on this or do I have to remove the theme ?

Thank you..!!


texts:
I have a new field varient_id in sales_flat_quote_item and sales_flat_order_item table.

I want to save item_id as varient_id in sales_flat_quote_item and sales_flat_order_item table. ie,quote item_id as quote varient_id and order item_id as order item_id.

How can I do it?


texts: Ajax not working in header file of frontend

texts:
<form name="frmExotel" id="frmExotel" method="post" action="" >
    <input type="text" name="mobile_no" id="mobile_no" value="" />
    <button type="submit" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Submit')) ?>" name="sbmt" id="sbmt" onclick="return chk_validation()"><?php echo $this->__('Submit') ?></button>
</form>


texts: Extensions purchased on market place won't appear under extension manager

texts:
Purchased few extensions on the marketplace. Followed the official Magento 2 documentation for the installation method via Web Setup Wizard from Admin Panel

Clicked Install on the purchase success page
The page redirected to the access keys page
Copied the public and private access keys
On my Magento 2 CE admin page, clicked System > Tools > Web Set Up Wizard Clicked Extension Manager
Added my access keys from step 2
expected to see '5 Extensions ready to install' - however, this page still displays 0. Any help is appreciated.

Also, there's no wide range of support available for this well known issue on Magento dev docs, etc. weird


texts: When should I use the PUT /carts/{cartId} when I’m log as a customer to assign a guest cart to the customer https://devdocs.magento.com/redoc/2.3/customer-rest-api.html#operation/quoteCartManagementV1AssignCustomerPut. If I’m trying right after I’ve log in I got a error because the customer already have a cart assign and if I try right after proccess the transaction, I’m getting 404 saying there’s not entity at the cartId


texts: Custom admin page too many redirects Magento 2

texts:
I'm starting to get familiar with Magento 2.

I installed v2.3.1 in an Nginx/PHP-fpm and got it working, including the sample data.

Then I followed everything in the tutorial at https://devdocs.magento.com/guides/v2.3/ext-best-practices/extension-coding/example-module-adminpage.html

The menu shows up ok, but when I click the link generated in the menu:

adminlink/exampleadminnewpage/helloworld/index/key/(removed-key)/

I get the Too many redirects and tries to redirect to:

  adminlink/exampleadminnewpage/helloworld/index/key/(removed-key)/adminhtml/adminhtml/adminhtml/adminhtml/adminhtml/adminhtml/adminhtml/adminhtml/adminhtml/adminhtml/adminhtml/adminhtml/adminhtml/adminhtml/adminhtml/adminhtml/adminhtml/adminhtml/adminhtml/adminhtml/dashboard

All other pages, frontend and backend, work fine.

EDIT:

I'm trying to debug this error and found that the the rewrite/redirect is not from Nginx it self.

In app/code/Magento/Backend/App/Request/BackendValidator.php, function validate (called from lib/internal/Magento/Framework/App/FrontController.php) when I try to access the new module the $action is instance of Magento\Framework\App\Action\Forward\Interceptor, which fails the test for not being instance of AbstractAction and start the redirect. But other pages (for example trying to access Content -> Pages) are instance of Magento\Cms\Controller\Adminhtml\Page\Index\Interceptor that pass that test.

EDIT 2:

In lib/internal/Magento/Framework/App/FrontController.php function processRequest the $this->requestValidator->validate($request, $actionInstance) throws an Exception "Invalid request received" for my custom module. And Null in other pages from Magento.

In lib/internal/Magento/Framework/App/Router/Base.php function matchAction $modules finds the correct module MyCompany_ExampleAdminNewPage and the cms page finds the Magento_Cms.

Then i found that in the same matchAction, magento didn't retrieve any actionList for the custom module. Which led me to conclude something should be wrong wih my app/code/MyCompany/ExampleAdminNewPage/Controller/Adminhtml/HelloWorld/Index.php. So i deleted and created a new one, checked for correct file permissions and ownership, and it solved my problem. Could also be the file encoding messing something up (wouldn't be the first, and won't be the last time this will happen).


texts: Magento 2: How to solve the error " Invalid Document Element cron_expr" while try to run cron?

texts:
I've tried to run the cron php -f bin/magento cron:run from the cmd prompt.
During this run, I got the following error:

[Magento\Framework\Exception\LocalizedException]
Invalid Document
Element 'cron_expr': This element is not expected. Expected is one of ( schedule, config_path ).
Line: 11

I'm not sure what is this expecting to correct. If anyone faced the same please help here.


texts: I have to make new module in magento 2 but pub/static are changed

texts:
I have to make new module, I took backup from server to local and after executing commend "php bin/magento setup:upgrade" layout and function not working properly, It seem like someone worked in pub/static folder files.

Now i complete my module in localhost and need to upload at server, Did any way to upload module and run without "php bin/magento setup:upgrade" commend ?

My module also have database table.

Can you please advise me the best way.


texts: Add a 'layer' to pricing logic, along with front end component before 'add to cart'

texts:
I'm working on a site that involves possibly customising an item before adding it to cart and the final price will be based on a couple of things asked by the customer. These aren't customisable options in terms of different version of a product (like sizing and colours for instance) but are a fixed set of questions that will change the price of the item before it is added to cart.

The site sells shirts on which printing can be done. What I'm trying to achieve now is add a few questions to be answered by the customer on the product view page before clicking 'add to cart'. Depending on the answers to these questions (things like "Do you need something printed on the shirt?" "If so, how many colours?" and so on) the final price for the item will be adjusted.

I first thought of creating different products for each print job and somehow have the appropriate product be added to cart depending on the customer's request but the price of the printing job depends on the price of the shirt (for instance, printing on a $20 sweatshirt will be a bit more expensive than printing on a $10 t-shirt).

As a reference here's an example:

Customer finds a sweatshirt and goes to the product page, picks the colour they want and the size. The price shown is now $20. Next they are asked if they want printing done on the shirt. If not they can simply click 'Add to Cart' and be on their way. If they do, they would select "I need printing" at which point they would be asked for how many colours they need printed. The customer selects "2 colours" and the price is updated: $20 + $5 for printing + 10% of $20 for '2 colours'. The final price is $27 is now displayed and shows up in the cart.

I have found the documentation for the Price Calculation Logic (https://wiki.magento.com/display/MAGE2DOC/Price+Calculation+Logic) but I'm not sure this is the way to go and would appreciate any tips and guidance.

Thank you


texts: How to delete table from mysql when uninstall extension frommagento 2.2.6?

texts:
I have created an extension with the schema. It is installed correctly and tables are created correctly in the database.

But, now I want to uninstall that extension.

But with uninstall, I also want to delete the tables which were created during the installation of the same extension.

is there any way to do this?


texts: Shipping cost is not added when creating invoices programmatically

texts: We are creating invoices via code according to the order's status at worldpay payment center. But when we generate invoice, for some orders it is not including shipping_amount and it is showing as total_due amount. But in payment gateway the full order amount is captured and it returns correct amount in the data


texts: Unable to get sales orders limit by date range through SOAP API

texts:
I tried to get a list of orders filtered between two dates using SOAP-UI.

I am using API version 2 WSI complaint mode. This doesn't seem to be working and below is the sample SOAP envilope.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:Magento">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:salesOrderListRequestParam>
         <sessionId>f805e525b7b86b29b5e80e615361087f</sessionId>
        <filters>
           <!--<filter>
               <complexObjectArray>
                  <key>created_at</key>
                  <value>gteq</value>
               </complexObjectArray>
            </filter>-->
             <complex_filter>
               <complexObjectArray>
                  <key>created_at</key>
                  <value>
                     <key>gteq</key>
                     <value>2015-03-10 01:01:01</value>
                  </value>
               </complexObjectArray>
            </complex_filter>
         </filters>
      </urn:salesOrderListRequestParam>
   </soapenv:Body>
</soapenv:Envelope>

This throws following error:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
         <faultcode>1</faultcode>
         <faultstring>SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and created_at gteq =  '2015-03-10 01:01:01')' at line 3</faultstring>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

As this failed I tried to do a sample php to test this is working but that resulted all the orders but filtered.

Below is the sample php code.

$client = new SoapClient('http://www.ruwan.com/Magento1610/index.php/API/v2_soap?wsdl');

$session = $client->login(array('username'=>'soap_user','APIKey'=>'soap_user'));

$sessionId = $session->result;

$params = array('complex_filter'=>  array('key'=>'created_at','value'=>array('key' =>'gteq','value' => '2015-04-10 01:01:01')),
                        array('key'=>'created_at','value'=>array('key' =>'lteq','value' => '2015-05-22 01:01:01')),);

$result = $client->salesOrderList((object)array('sessionId' => $sessionId, 'filters' => $params ));

var_dump($result->result);

However, this code too resulted complete list of orders available irrespective of the date range specified.

I wonder what is happening in the Magento back end. I did necessary configurations in Magento get to the web services working.


texts: Magento 2.3.4: Elasticsearch 7 is not working

texts:
I have installed an elastic search in my local server successfully. I am not able to reindex the catalog search indexer. Please check the attached screenshots.

Elastic Search Version Is : 7.6.0

Magento Setting :


texts: Autoload, Registration error on Magento Community 2 installation using Docker on Windows 10 Pro

texts:
I am attempting to get Magento 2 Community working in my local environment using Docker and am running into the same error when I finally get to check the admin screen. After I've finished installing, I cannot enter the bin/magento CLI without also seeing the error in the shell.
This is the error I see in the browser when I get to the admin screen and in the shell:

Fatal error: Uncaught Error: Class 'Magento\Framework\Component\ComponentRegistrar' not found in
/www/vendor/magento/framework/registration.php:9 Stack trace: #0 /www/vendor/composer
/autoload_real.php(73): require() #1 /www/vendor/composer/autoload_real.php(63):
composerRequire6dfc6a905630f73646996ff0d5c91c2f('07ec02c7e667fdc...', '/www/vendor/com...') #2
/www/vendor/autoload.php(7): ComposerAutoloaderInit6dfc6a905630f73646996ff0d5c91c2f::getLoader() #3
/www/app/autoload.php(30): include('/www/vendor/aut...') #4 /www/app/bootstrap.php(33):
require_once('/www/app/autolo...') #5 /www/pub/index.php(13): require('/www/app/bootst...') #6 {main}
thrown in /www/vendor/magento/framework/registration.php on line 9

I've tried starting from square one several times and I think I'm simply missing something or do not understand the nature of this error. I've searched a lot online and I have not found an answer, but a couple others who have had the same problem and there is no answer. Is it a cache issue? Is it a certain module that I need to uninstall?
I would greatly appreciate any pointers or tips you might have for me to fix this problem. I've tried clear cache, dumpautoload, and re-initializing the database several times to no avail.. Losing my mind over here


texts: Is it possible to require visitor get shipping estimate before moving to checkout process?

texts:
As the title suggest is it possible to require the visitor to enter the postcode details on the estimate box and get shipping. So he must fill this in on the cart page and make a selection before moving on to the checkout process.

By making this a requirement i am removing the select shipping method step later on the process. At present if the postcode is entered and shipping method selected the checkout process will go as it should. However if no postcode is entered I get the no shipping method selected message. So by making it a requirement, i hope to avoid this problem.

I can enable a default shipping method, but as I am using table rate matrix i can not enter a default shipping as the table rates are based on postcodes.

Plus is it possible to send the postcode collected here sent to the billing info page so he does not have to enter it again.

Please advise. Thanks


texts: Change "add to cart" button to "BUY NOW"

texts:
I have tried to edit the title "add to cart" button to "BUY NOW". but i dont what to do? please help me any one knows.
app/design/frontend/default/Thems/template/catalog/product/view/addtocart.phtml
but it doesn't works.

please help me to change this.


texts: Multiple Images Select from Media storage from admin Panel

texts:
By Default magento when we select images from media storage it's select images One by One. Is their any way in which we can select multiple images at a time and assign images to product.

Please see the attached image for better understanding https://www.screencast.com/t/0EUcWFRQbP2E


texts: Update table data for configurable product

texts:
I need to transfer data stored in an attribute (cjm_imageswitcher as serialised data array) for all configurable products into the database table mg_catalog_product_entity_media_gallery_value.

The code below loops through the configurable products and the serailised data of the attribute.

Is there a way to update the single field selectorbase of mg_catalog_product_entity_media_gallery_value for each configurable product without using a direct sql query?

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

$collectionConfigurable = Mage::getResourceModel('catalog/product_collection')->addAttributeToFilter('type_id', array('eq' => 'configurable'));

foreach ($collectionConfigurable as $_configurableproduct):

    $product    = Mage::getModel('catalog/product')->load($_configurableproduct->getId());

    $imageSwitch    = $product->getData('cjm_imageswitcher');

    //UPDATE IMAGE SWITCH

    if ($imageSwitch != 'N;'):
            $imageSwitch = unserialize ($imageSwitch);

        foreach ($imageSwitch as $value=>$selectorbase):

            if ($selectorbase == ''):
                $selectorbase = 0;
            endif;

            **// UPDATE SELECTOR BASE VIA DIRECT SQL????
            $sql = 'UPDATE "mg_catalog_product_entity_media_gallery_value" SET selectorbase = '.(int)$selectorbase.' WHERE value_id = '.(int)$value;**

        endforeach;

    endif;
endforeach;
?>


texts: Adding Extra Field on Products Image Gallery

texts: How can I add a text area onto the Image Gallery Attribute on Products. Right now it has Image,Label,Sort Order, Base Image, Small Image, Thumbnail, Exclude and Remove. I need to add a text area for a short description for the image. Any help will be much appreciated.


texts: i want to create a customized environment to showcase products

texts:
Something like - http://www.pbteen.com/shop/guys-bedding/guy-bedding-tool/

Is there an extension i can use. Please Help !


texts:
I would like to patch a Magento shop with SUPEE-9767. The documentation for SUPEE-9767 tells me to disable Symlinks setting before applying the patch:

  Before applying the patch or upgrading to the latest release, make sure to disable Symlinks setting ... The setting, if enabled, will override configuration file setting and changing it will require direct database modification.

But I use modman to manage modules and since some of the modules are using template files, the Symlinks setting is enabled according to the suggestion in modman's README. Is it safe to leave Symlinks setting enabled as one of the posts in  Security Patch SUPEE-9767 - Possible issues? suggests (I cannot comment on posts yet since I'm a new user)?

  Users using modman to manage Magento 1.x modules should ensure that they do not disable symlinks as this will disable the modman modules.

If I leave Symlinks setting enabled, wouldn't the shop be exposed to APPSEC-1281: Remote code execution through symlinks, a security threat this patch is meant to fix?

Are there other ways of using modman with template files after this patch? (I know of the "patched version of Mage/Core/Block/Template.php" option that modman's README mentions, but patching a core file seems dangerous.)


texts: payment method configuration page in admin is not opening magento 2

texts:
I am trying to open configuration > sales > payment methods but it shows

  Service Unavailable The server is temporarily unable to service your
  request due to maintenance downtime or capacity problems. Please try
  again later.

  Apache/2.4.29 (Ubuntu) Server at mysitename.de Port 80

i have tried with this

php bin/magento maintenance:disable
php bin/magento cache:flush

and there is also no any .maintenance.flag in root or in var directory

how to fix it in magento 2


texts: What was the default working on layered navigation in magento 2?

texts:
I need to check the default working of layered navigation filter in Magento 2.

For configurable products color filtering was applied correctly, but when I have added a custom attribute filter, the rendered result is not correct.

Can anyone please help me to find the default working of layered navigation filter for configurable products?

Color attribute is already on the left side of the listing page. Added a custom attribute 'Select' with Yes/No drop-down options. Created some configurable products. Then assign Yes/No to the associated products.

Eg:

Product 1:(Configurable)
    Pro 11  (Color-white, Select-yes)
    Pro 12  (Color-blue, Select-no)
    Pro 13  (Color-red, Select-no)
    Pro 14  (Color-green, Select-yes)

Product 2:(Configurable)
    Pro 21  (Color-white, Select-no)
    Pro 22  (Color-blue, Select-yes)
    Pro 23  (Color-red, Select-yes)
    Pro 24  (Color-green, Select-no)

Product 3:(Configurable)
    Pro 31  (Color-white)
    Pro 32  (Color-blue)
    Pro 33  (Color-red)
    Pro 34  (Color-green)

In front end, choose color filter as white. It results with Product 1, Product 2, Product 3 Then choose Select filter as Yes. It results with Product 1 & Product 2. Why it results with 2 products. The correct answer is color -white & select-yes is Product 1.


texts: How to check the upsell products stock and status in magento 2

texts: I need to check whether the upsell product is enabled or not and also check whether it is in stock or not in Magento 2. Please provide me a solution


texts: $this->getQuote()->setData(); not working in saveBilling() in Onepage checkout Magento

texts:
I am trying to set a custom attribute for customer in saveBilling() method of Onepage.php Path for Onepage.php is

/app/code/core/Mage/Checkout/Model/Type/Onepage.php

In saveBilling() i have written below code

$this->getQuote()->setData("customer_dri_license","22");

as you can see i am trying to set value 22 for customer_dri_license

I want to retrieve this value in saveOrder(), for that i have written below line of code

$this->getQuote()->getData("customer_dri_license")

but i am not receiving value '22' as set in saveBilling()

Please let me know if i'm missing something.


texts: How to restrict magento to have one product per order?

texts:
I want to restrict Magento to have one single product per order. If the user is trying to add more than one product to the cart it should be prohibited. I'm not talking about restricting one particular product. Generally whatever the product is, there should be one product at a time in the cart until place the order.

How can I achieve this?


texts:
Our client wants customize category list drop down menu.
So our requirement is to reduce it's height when drop down is opened.

Theme is inherit from Magento blank.

Let me know which file i need to edit.


texts: How to modify magento 2 submission form?

texts:
How can I add labels to the address fields.
Example:
Field 1:

Field 2:

Field 3:


texts:
I am having an issue of widgets showing twice on home page. I am not able to find the function which return the list of widgets on home page to add some condition there.
Which function returns the list of widgets or how can I get list of widgets on some custom file?
Please advise.
thanks


texts: Newsletter subscribed variable in success.phtml

texts:
I am looking to show a custom message to customers who subscribed to newsletter on the checkout confirmation page on our magento site but I am not able to check the subscription status using the following method in success.phtml:

<?php
$customerSession = Mage::getSingleton("customer/session");
$email = $customerSession->getCustomer()->getEmail();
$subscriber = Mage::getModel('newsletter/subscriber')->loadByEmail($email);

$status = $subscriber->isSubscribed();  // status should be  1 if subscribed.

Can anyone help?


texts: How to retrieve product image URL in default item renderer

texts:
I am in the process of trying to add a product image to each order item displayed on the sales/order/view page located inside the user account area of Magento2.

What is the most efficient way of retrieving the product image URL from inside the following template file?

app/design/frontend/[Vendor]/[theme_dir]/Magento_Sales/templates/order/items/renderer/default.phtml


texts: Getting products position while using flat tables

texts:
Regarding the answer from Vinai here https://magento.stackexchange.com/a/5775/199 I have one follow-up question:

How can I get the ProductPosition array when I use flat category tables?

In my system configuration I use these settings:

Catalog -> Frontend -> Use Flat Catalog Category = yes
Catalog -> Frontend -> Use Flat Catalog Product  = yes

When I use getProductsPosition() I receive the following:

Fatal error: Call to undefined method  Mage_Catalog_Model_Resource_Category_Flat::getProductsPosition() in [...]/app/code/core/Mage/Catalog/Model/Category.php on line 318

Any ideas?

Thanks in advance :)


texts: Magento 2: currency drop down is not showing?

texts:
I have set up the currency according to store view but when I see the frontend, it's not displaying.

I have done all the things. Moved the currency using the default.xml file.

<move element="currency" destination="header.sections"/>

Call this from my custom phtml file.

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

when I open the template hints, the currency file is calling from the vendor module but not displaying in frontend.

See the below image.

Is there anything which I had missed out.


texts: Magento2.2.6 - What is the purpose of tables which have tmp/replica/idx as a postfix?

texts:
I'm trying to insert queries in order to add products to our Magento website. I have no idea about these tables i mentioned at title like

catalog_category_product_index_replica,

catalog_category_product_index_store1,catalog_category_product_index_store1_replica.

When i implement quires, should i insert values into those tables?
What is the purpose of tables which have tmp/replica/idx as a postfix?

Thanks a lot.


texts: How to get custom product attribute values in magento 2 jquery?

texts:
I want to get custom product attribute ('deliverytime') values for  checkout config in jquery

Here is the code for  getting default product attributes jquery

date-block.js

 function updateDeliveryDateAndTime() {
                if($('#delivery_date').length && window.checkoutConfig && window.checkoutConfig.quoteItemData) {

                    console.log(checkoutConfig.quoteItemData);
                    //read checkoutconfig
                    var quoteData = checkoutConfig.quoteItemData,
                        quote_length = quoteData.length,
                      prep_times = [],
                      creation_dates = [],
                      cake_names = [],
                      item_ids = [];
                    console.log(quoteData[0].deliverytime); // **this shows undefined**

  in checkoutconfig.quoteItemdata  has  no  custom attributes are
  showing

  checked in console

could anyone help me to resolve the problem..


texts: I want to add the phone to the registration form, but did not succeed. This form processing file located? I want to correct in order to add the phone and send it


texts:
I have Magento working in a cPanel, but I need to migrate in to Docker.
I kept the same version of PHP (7.1.33) and also MySQL (5.7).
Installed the extensions:
mysqli, pdo_mysql, mcrypt, intl, xsl, gd, bcmath, soap, zip, sockets, sqlsrv, pdo_sqlsrv.

Run the commands:
rm -rf var/cache/* var/page_cache/* var/generation/*
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento deploy:mode:show
php bin/magento setup:static-content:deploy

However when I try to access the page I get an ERR_EMPTY_RESPONSE and Apache consumes all the resources of the machine. 8GB RAM & 8 threads.
Magento version 2.2.6.
Where dit I go wrong?
Thanks!


texts: Get current date and time in custom module and save that in database in magento 2

texts:
I wanted to get the current date and time as created_at. I have tried all the ways I found on google but nothing works for me. It showing error while running my module.

   use Magento\Framework\View\Result\PageFactory;
protected $_timezone;
    /**
     * @param \Magento\Backend\App\Action\Context $context
     */
    public function __construct(
        Context $context,
        \Magento\Framework\Stdlib\DateTime\DateTimeFactory $timezone,
        PageFactory $resultPageFactory
    ) {
        $this->_timezone = $timezone;
        $this->resultPageFactory = $resultPageFactory;
        return parent::__construct($context,$resultPageFactory);
    }
public function execute()
    {
        $date = $this->_timezone->gmtDate();
        echo $date; die;
}

But when i am using i am getting this error: Magento\Framework\ObjectManager\Factory\Compiled->create('Neo\Demo\Control...', array()) called at [vendor/magento/framework/ObjectManager/ObjectManager.php:56]


texts: How can I know which .css file is used for a certain template?

texts:
How can I get to know which styling file is used for a certain template.
Because for the billing/shipping checkout templates, there is one css file used. But when I want to modify the template for the customer address page (when in the customer account - modifying the address), apparently the classes that I have in that css don't apply. And I want to know which css is used, for example to write in the log the path to the certain styling file, so I know where to modify my design.


texts: Magento 2 admin can not be openend 404 error - Debugging (Behind Reverse Proxy)

texts:
I can not open the admin panel and get a 404.

The $this->_routerList does not contain the admin route.


texts: Magento2 : How to create custom less file in magento 2 for particular store?

texts:
In Magento2, how to create custom.less file for a particular store ?
i created custom themes like theme1, theme2 and theme3 in magento2
and also i created custom.less file only in theme but when i hit the command to compile this less file but is generated in all themes folders
i am only create this custom.less file in theme

these steps i follow to compile

first : i am created custom.less file
second: i am run these command to generate from custom.less to csutom.css
         - php bin/magento setup:static:content:deploy -f
         - php bin/magento cache:clean
conculsion : but this custom.css file generated in all themes.


texts:
I have made REST API callout to get products based filter criteria. Following is the endpoint. http://xxxxxxxx/magentodemo/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=updated_at& searchCriteria[filter_groups][0][filters][0][value]=2018-08-24 08:35:37&searchCriteria[filter_groups][0][filters][0][condition_type]=eq. I got response as below.

{"message":"Internal Error. Details are available in Magento log file. Report ID: webapi-5b9f70d36a6c1"}.

I have gone through log file to check the Error Details.

[2018-09-17 09:16:03] main.CRITICAL: Report ID: webapi-5b9f70d36a6c1;Message: Invalid URI supplied {"exception":"[object] (Exception(code: 0): Report ID: webapi-5b9f70d36a6c1;Message: Invalid URI supplied at C:\\xampp\\htdocs\\magentodemo\\vendor\\magento\\framework\\Webapi\\ErrorProcessor.php:205,Zend_Uri_Exception(code: 0): Invalid URI supplied at C:\\xampp\\htdocs\\magentodemo\\vendor\\magento\\zendframework1\\library\\Zend\\Uri\\Http.php:156)"} []


texts:
I'm trying to export products in CSV via the default export feature.
The store has 40k+ products. If I add any filter to export and click the "continue" button - the export file creates, but if I try to export products without any filters(all products) it creates a file with name like importexport_5f64371q4486c and it always has 0 bytes... The issue exists only in the live environment, dev\local environments have a little delay and then it fills with the data, but in the live environment, this delay is permanent. Cron is working, I also tried to start exportProcessor - still 0 bytes. Queue message status is 3, and it's also permanent. Any ideas?