texts: Add new field in system.xml that allows only numbers

texts:
I want to add a new field in system.xml which allows only numeric values. How can I validate that?
Here is my code:
<config>
    <sections>
        <newsletter translate="label" module="newsletter">
            <label>Newsletter</label>
            <tab>phone</tab>
            <frontend_type>text</frontend_type>
            <sort_order>110</sort_order>
            <show_in_default>1</show_in_default>
            <show_in_website>1</show_in_website>
            <show_in_store>1</show_in_store>
       </newsletter>
  </sections>
</config>


texts: Magento 2: How to add where clause in grid collection

texts:
I am working on a module, where I have 2 custom tables. One is of all customer who have added product to First table(one customer can add multiple tables) and that first table is displayed on grid.

On grid action I have a action column which has to show all products added added by a customer.

My frist tables  structure( table name->rfq)

my second tables structure (table name->rfqitem)

this code gives output  like below

    protected function _initSelect()
{
    parent::_initSelect();

    $this->getSelect()->joinLeft(
        ['secondTable' => $this->getTable('rfq')],
        'main_table.rfq_id = secondTable.customer_id',
        array('main_table.product_id','main_table.qty')
    );
}

current output

but i expect result like this

So how can achieve this.

thanks


texts:
I have installed the algolia search function and it performs as it should however I have been left puzzled by how the search bar doesn't sit right.

As you can see the html has thrown up an extra piece of code which is hidden normally. This is the css from the algolia for the searchbox:

/**
 * Search Box
*/
#algolia-searchbox{
  margin: 20px 0;
  position: relative;
}

.clear-cross {
  position: absolute;
  display: none;
  background: url("clear-cross.svg") no-repeat center center / contain;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

#algolia-searchbox .clear-query-autocomplete {
  top: 13px;
  right: 12px;
}

#algolia_instant_selector .clear-query-instant {
  right: 12px;
  top: 10px;
}

.cross-wrapper .clear-refinement {
  display: block;
  position: relative;
  top: 5px;
  left: 5px;
 }

#algolia-autocomplete-container .aa-suggestions svg.algolia-glass-suggestion.magnifying-glass {
    position: absolute;
    right: auto;
    left: 5px;
    top: 7px;
    fill: #A6A6A6;
    stroke: #A6A6A6;
}

#algolia-searchbox .magnifying-glass {
  position: absolute;
  right: 10px;
  width: 20px;
  height: 20px;
  display: block;
  top: 10px;
  background: url("magnifying-glass.svg") no-repeat center right / 20px;
}

#algolia-searchbox .algolia-search-input {
  width: 300px;
  float: right;
}

#algolia-searchbox .algolia-search-input:focus:not([value=""]) {
  background: transparent;
}

#algolia-searchbox .algolia-search-input:focus {
  outline: 0;
  box-shadow: none;
  border: solid 1px #008000;
}

This is the HTML for the search bar.

if ($config->isDefaultSelector()): ?>
    <form id="search_mini_form" action="<?php echo $catalogSearchHelper->getResultUrl() ?>" method="get">

            <?php echo $this->__('Search:') ?>
            <input id="search" type="text" name="<?php echo $catalogSearchHelper->getQueryParamName() ?>" class="input-text algolia-search-input" autocomplete="off" spellcheck="false" autocorrect="off" autocapitalize="off" placeholder="<?php echo $placeholder; ?>" />

    </form>
<?php endif; ?>

I haven't got a clue what file I need to edit as it's not showing up when I inspect the area.

Anyone have a clue as to what I would need to do as algolia forums don't even bother to help you.


texts:
I have installed Magento 2 on my ubuntu 14.04 virtual machine and when I created a new module and tried to do setup:upgrade after enabling it, it shows following error.

root@ubuntu:/var/www/html/Magento# php bin/magento setup:upgrade
Cache cleared successfully
File system cleanup:
/var/www/html/Magento/var/generation/Composer
/var/www/html/Magento/var/generation/Magento
/var/www/html/Magento/var/generation/Symfony
The directory '/var/www/html/Magento/var/di/' doesn't exist - skipping cleanup
Updating modules:
Schema creation/updates:
Module 'Itdeation_Catalog':
Schema post-updates:
Module 'Itdeation_Catalog':
Data install/update:
Module 'Itdeation_Catalog':
Installing data... PHP Fatal error:  Cannot instantiate interface Magento\Eav\Model\Entity\Setup\PropertyMapperInterface in /var/www/html/Magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 73

Fatal error: Cannot instantiate interface Magento\Eav\Model\Entity\Setup\PropertyMapperInterface in /var/www/html/Magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 73

Please help!


texts: Magento 2 - Use multiple block classes in template

texts:
I try to show a block in the header which shows different content, depending on whether the user is logged in or not.
If the user is logged in, then I show:

If the user is NOT logged in, then I like to show:

So to make this possible, I need access to methods of multiple block classes.
A) I need the method customerLoggedIn()in vendor\magento\module-customer\Block\Account\Customer.php [Magento\Customer\Block\Account\Customer] to check if the user is logged in or not.
B) ... the method getHref() in vendor\magento\module-customer\Block\Account\RegisterLink.php [Magento\Customer\Block\Account\RegisterLink], to get register link.
C) ... the method getHref() in vendor\magento\module-customer\Block\Account\Link.php [Magento\Customer\Block\Account\Link] to get the account link.
D) ... the method getHref() of vendor\magento\module-customer\Block\Account\AuthorizationLink.php [Magento\Customer\Block\Account\AuthorizationLink] to get login/logout link.
This is my current layout file:
<container name="user-actions-row" label="User Actions" htmlTag="div" htmlId="user-actions-row">
    <container name="user-actions-col-a" htmlTag="div" htmlId="user-actions-col-a">
        <!-- show "login" if user is NOT logged in -->
        <!-- show "account" if user is logged in -->
        <block class="Magento\Customer\Block\Account\Customer"
               name="user-actions-col-a-block"
               template="Magento_Customer::header/user-actions-col-a.phtml"
        />
    </container>

    <container name="user-actions-col-b" htmlTag="div" htmlId="user-actions-col-b">
        <!-- show "register" if user is NOT logged in -->
        <!-- show "log-out" if user is logged in -->
        <block class="Magento\Customer\Block\Account\Customer"
               name="user-actions-col-b-block"
               template="Magento_Customer::header/user-actions-col-b.phtml"
        />
    </container>
</container>

How do I have to setup my layout?
Template MY_THEME\Magento_Customer\templates\header\user-actions-col-a.phtml (not working):
<?php if ( ! $block->customerLoggedIn()): ?>
    ???
<?php else: ?>
    ???
<?php endif; ?>


texts: Magento 1.9.2.1 RWD theme One page checkout progress column showing formatting errors

texts:
so translation seems to be working, however the problem seems that maybe variables are not defined in the progress.phtml, not quite as in there it is directed to

echo $this->getChildHtml('billing.progress')

now I am stuck as all the template files in the 'base' package do not contain the keyword progress other than progress.phtml and no clue what this function is about

i am aware that the RWD theme package has less files in the folder:

app/design/frontend/rwd/default/template/checkout/onepage

I am working with a fresh install and hardly any extensions.

Thank you for giving me some clues on how to resolve


texts: Magento 2 installation settings - mysql database password problem

texts:
I am trying to run the magento 2 install (default shown below). However, if I add a symbol into the password it complains and says

Your password must include both numeric and alphabetic characters.

However, mysql won't let my create a user without a symbol in it.

so things like "iHateMagento1357"  won't be accepted by mysql  but
"iHateMagento1357~"  or "iHateMagento!13"  won't be accepted by Mag2.

Any suggestions..? before I go mad and use woocommerce instead.

====setup script reference====

bin/magento setup:install \
--base-url=http://localhost/magento2ee \
--db-host=localhost \
--db-name=magento \
--db-user=magento \
--db-password=magento \
--backend-frontname=admin \
--admin-firstname=admin \
--admin-lastname=admin \
--admin-email=admin@admin.com \
--admin-user=admin \
--admin-password=admin123 \
--language=en_US \
--currency=USD \
--timezone=America/Chicago \
--use-rewrites=1


texts: How to show saved values of custom fields when product edit

texts:
I have added some custom fields to my product edit page and it is working now.
But I want to show the saved values in the edit.
Now i am able to show the values in text fields. but i don't know how to do the same in toggle box.

my xml for toggle box

       <field name="price_on_request">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="sortOrder" xsi:type="number">4000</item>
                    <item name="dataType" xsi:type="string">boolean</item>
                    <item name="formElement" xsi:type="string">checkbox</item>
                    <item name="source" xsi:type="string">category</item>
                    <item name="prefer" xsi:type="string">toggle</item>
                    <item name="label" xsi:type="string" translate="true">Price on request</item>
                    <item name="notice" xsi:type="string">Price will not be displayed.</item>
                    <item name="valueMap" xsi:type="array">
                        <item name="true" xsi:type="string">1</item>
                        <item name="false" xsi:type="string">0</item>
                    </item>
                    <item name="validation" xsi:type="array">
                        <item name="required-entry" xsi:type="boolean">false</item>
                    </item>
                    <item name="default" xsi:type="string">0</item>
                </item>
            </argument>
        </field>

now i am using this method to set values when edit

 public function afterModifyData(
    \Magento\CatalogInventory\Ui\DataProvider\Product\Form\Modifier\AdvancedInventory $subject,
    $data
) {
    $productId = $data['1']['product']['stock_data']['product_id'];
    $data[strval($productId)]['magenest']['price_on_request'] = 1;
    $data[strval($productId)]['magenest']['surcharge'] = 40;

    return $data;
}

now i can able to see the surcharge value is displaying fine, but toggle box is not showing as true/checked.

how can i manipulate the toggle box like here? please help me.


texts: Magento2 get Visual Swatch colors on Compare product list page

texts:
Magento2 I need to get the Color Swatches option on Compare products list page.
When a config product is added to cart I need to display it swatch Images.
How can  I achieve this?


texts: Magento 2 - Load js in adminhtml area by require-js

texts:
I'm trying to load a js file in adminhtml area.

I've created my module and requirejs-config.js file under app/code/vendorName/moduleName/view/adminhtml/web folder:

var config = {

        map: {
            "*": {
                stickerConfig: 'vendorName_moduleName/js/stickerConfig'
            }
        }
    };

I see this piece of code in pub/static/_requirejs/adminhtml/Magento/backend/en_US/requirejs-config.js file.

Then I created my stickerConfig.js in app/code/Mainf/Stickers/view/adminhtml/web/js

When I load backend pages, I don't find my javascript in list of js downloaded by browser.

What's wrong?


texts: How do I change the position of a static block in my product view?

texts:
I am applying a custom design to one of my products. I am using

 <reference name="content">
    <block type="cms/block" name="moscow-mule-product-header">
         <action method="setBlockId"><block_id>moscow-mule-product-header</block_id></action>
     </block>
 </reference>

My problem is that I need my static block below the header of the page but above the product details. Currently it is displaying below the product information.


texts: magento ajax layered navigation data came from cache

texts: I have ajax layered navigation extension and varnish magento extension. they seem to have category products came from cache. Ajax layered navigation ajax loader is triggered when I select a pagination from toolbar. i had tried disabled the varnish module then after the data is came from cache. Any guidance on this?


texts: Magento 1: How replacing WYSIWYG button in product description field?

texts:
By default when there is an attribute with "Enable WYSIWYG" set to Yes you will get a button bellow that form field [WYSIWYG Editor]. When you click on the button your will get a pop-up window, but this takes long and it is annoying when you do this task many times.

I would like to replace this button with those 4 buttons which are available when editing a CMS page content, just for Description in product edit page. In this way there is no pop-up window displayed and it is easy to insert static blocks, widgets, variables, in case this content repeats in many places. See the image bellow for what I mean.


texts: Magento 2.3.3 blank email with html attachment

texts: Since upgrade 2.3.2 to 2.3.3 order confirmation emails are showing empty with attachement.html file attached. The attachement.html files shows the order confirmation text which previously appeared in the message. When email with attachment is sent the message text appears in the email. We have already applied the backward compatibility patch. I assume it is a setting somewhere? Any help is much appreciated.


texts: How to create two pages from a same module?

texts:
I created a module for displaying customized form for my website and its works  fine.

I want to duplicate the same page with extra one or two fields.

Is it possible to create another page from the same module?

If Yes how can i change the front name and phtml files(Different form with different front name)?

Current link for the page is www.domain.com/subscribe,

I want to create another link like www.domain.com/subscribe_new

My config file

<frontend>
    <routers>
        <htdgetresponse>
            <use>standard</use>
            <args>
                <module>HTD_Getresponse</module>
                <frontName>subscribe</frontName>
            </args>
        </htdgetresponse>
    </routers>
    <layout>
    <updates>
      <htdgetresponse>
        <file>htdgetresponse.xml</file>
      </htdgetresponse>
    </updates>
  </layout>
</frontend>

My Layout.xml File

<?xml version="1.0"?>
<layout version="0.1.0">
<htdgetresponse_index_index>
<reference name="root">
  <action method="setTemplate"><template>htdgetresponse/getresponse_manage.phtml</template></action>
</reference>
<reference name="content">
  <block type="htdgetresponse/unsubscribe" name="unsubscribe" template="htdgetresponse/index.phtml"/>
</reference>
</htdgetresponse_index_index>
</layout>


texts:
I tried for a hours, but i can't find out. i created static block on header, and i tried to call the header out side of magento. I'm able to connect to magento, but the header is not showed. My code is below

$layout = Mage::getModel('core/layout');

$head = $layout->getBlock('head');
$head->setTemplate('page/html/head.phtml');

$post = get_post( $post );
$metaTitle = pods_field('video', $post->ID, 'meta_title', true);
$metaDescription = pods_field('video', $post->ID, 'meta_description', true);

$head->setTitleWp($metaTitle);
$head->setMetaDescription($metaDescription);

echo $head->toHtml();

And i got the below error.

 Fatal error: Call to a member function setTemplate() on a non-object in


texts: Magento 2: How to display the description and review without tabbing

texts: How can i display the review and description without tabbing like the below image?


texts:
In my local machine on xampp windows i am getting error while run yarn run build command and please find below error:-
$ rimraf dist
TypeError: Cannot read property 'useApp' of undefined
at R:\xampp7\htdocs\magento231\pwa-studio\packages\extensions\venia-a
dobe-data-layer\intercept.js:5:13
at eval (eval at create (R:\xampp7\htdocs\magento231\pwa-studio\node_
modules\tapable\lib\HookCodeFactory.js:74:10), :17:1)
at new Promise ()
at AsyncSeriesHook.eval [as promise] (eval at create (R:\xampp7\htdocs\magento231\pwa-studio\node_modules\tapable\lib\HookCodeFactory.js:74:10), :4:8)
at AsyncSeriesHook.lazyCompileHook (R:\xampp7\htdocs\magento231\pwa-s
tudio\node_modules\tapable\lib\Hook.js:154:20)
at Target.promise (R:\xampp7\htdocs\magento231\pwa-studio\packages\pw
a-buildpack\lib\BuildBus\Target.js:135:30)
at HookInterceptorSet.runAll (R:\xampp7\htdocs\magento231\pwa-studio
packages\peregrine\lib\targets\HookInterceptorSet.js:96:28)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async R:\xampp7\htdocs\magento231\pwa-studio\packages\peregrine\li
b\targets\peregrine-intercept.js:36:17
at async Promise.all (index 1)
at async R:\xampp7\htdocs\magento231\pwa-studio\packages\peregrine\li
b\targets\peregrine-intercept.js:28:9
error Command failed with exit code 1.


texts: Magento : Disable and Enable Cache Programattically

texts:
I have execute below code before execute some content(i.e Menu) for disable cache on page

$types = Array(
          0 => 'evolved'
        );

$allTypes = Mage::app()->useCache();

$updatedTypes = 0;
    foreach ($types as $code) {

        if (!empty($allTypes[$code])) {

            $allTypes[$code] = 0;
            $updatedTypes++;

        }

    }

Mage::app()->saveUseCache($allTypes);

It disabled cache
Now I want to enable after some content(i.e Menu) programmatically.
How can i achieve it?
Above code is correct or minimization possible?


texts:
I'm trying to extending Magento 2.x Search Box, But it's not overriding my module.

My code is:

Learning/CustomSearch/view/frontend/layout/default.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">

        <referenceContainer name="header-wrapper">
            <referenceBlock name="top.search">
                <arguments>
                    <argument name="template" xsi:type="string">Learning_CustomSearch::form.mini.phtml</argument>
                </arguments>
            </referenceBlock>
        </referenceContainer>

</page>

Learning/CustomSearch/view/frontend/templates/form.min.phtml

<?php

/** @var $this \Magento\Framework\View\Element\Template */
/** @var $helper \Magento\Search\Helper\Data */
$helper = $this->helper('Magento\Search\Helper\Data');
?>

<?php echo __('Search'); ?>

            <form class="form minisearch" id="search_mini_form" action="<?php echo $helper->getResultUrl() ?>" method="get">

                        <input id="search"
                               data-mage-init='{"quickSearch":{
                                    "formSelector":"#search_mini_form",
                                    "url":"<?php echo $this->getUrl('search/ajax/suggest'); ?>",
                                    "destinationSelector":"#search_autocomplete"}
                               }'
                               type="text"
                               name="<?php echo $helper->getQueryParamName() ?>"
                               value="<?php echo $helper->getEscapedQueryText() ?>"
                               placeholder="<?php echo __('Search entire store here...'); ?>"
                               class="input-text"
                               autocomplete="off"/>

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

                    <button type="submit" value="Zoeken" class="btn btn-search"><?php echo __('Search'); ?></button>

            </form>

Could you please tell me where I went wrong?


texts: Magento 2.1 "Styles.css" standatd file missing, instead css data pulled from "%7B%7BMEDIA_URL%7D%7Dstyles.css"

texts:
Good day, thank you in advance for the advice.

During struggles in establishing some elements that use standard .css, I noticed that instead of standard "Styles.css" file the commands are pulled from strange location/file:
http://magento.myDomain.com/%7B%7BMEDIA_URL%7D%7Dstyles.css (and styles.css file missing)

When I tried to open/edit with the help of firebug (FF), I got the text "There are no rules. You can create a rule." I could place standard .css code what solved my issues on the browser view (and shows that the location would be right).

Never the less, I can't find the file or spot a field in Magento CMS to insert the CSS code.

Any advise wherefrom data is pulled for file "%7B%7BMEDIA_URL%7D%7Dstyles.css" or where the file is placed?

For me, it looks like some Magento CMS generated file.. and I have to clue where the field to edit it is placed.

Thanks!


texts: New theme (Astra) installed but home slider not working properly

texts: website installed with new magento theme but slider not working proper how to check it and solve it. I have no idea how to edit slider statics blocks.


texts: Magento 1.9 Product Image Upload Console Error

texts:
Console Error :

  Failed to load resource: the server responded with a status of 403
  (Forbidden)

  VM262:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
      at JSON.parse ()
      at XMLHttpRequest.UploadFile.xhr.onreadystatechange (965258ac47073d26e0b556877b7e343b.js:23521)
  UploadFile.xhr.onreadystatechange @
  965258ac47073d26e0b556877b7e343b.js:23521

note: all file persmission set.


texts: I'm looking for an extensions for configurable products. I have a configurable product with several associated simple products, I would like that when the client selects the color and size the extension Gets the image associated with the simple product.


texts: DI Compile fails with "Area code not set" error

texts:
I'm trying to use the \Magento\Sales\Model\InvoiceOrder class to invoice some orders. If I include the class in my constructor, however, then I get the "Area code not set: Area code must be set before starting a session." error.

I ran a bin/magento setup:di:compile -vvv and found that the exception is being thrown while initialising the "Magento\Payment\Helper\Data" class which requires Magento\Ui\Config\Reader\Definition\Data and goes on to run Magento\Framework\Url->getUrl() which in turn attempts to create a session.

Is there any way to make this work? I can think of three ways to possibly make it work, but I'm not sure if any of them would be considered best-practice:

Use the ObjectManager to get the instance of "InvoiceOrder" rather than Dependency Injection.
Set the Area somewhere, like a class constructor, so it can bypass the issue
Extend one of the base classes (like "\Magento\Framework\Url") with a plugin which either sets the area or catches the exception.

I'm getting around the issue right now using the Object Manager, but it obviously goes against best practices. Would option 3 be considered good practice, or at-least better practice than the other two options? It seems a bit crazy to set the area in a console command even though it won't really be used.


texts:
In Magento 1 I could copy abstract class to local or community directory and Magento used it, when autoload load this class.

Is there some solution to make to Magento loads my class instead  vendor/magento/framework/Model/AbstractModel.php?

Preferences in di.xml for abstract classes does not work. Plugins only?


texts: How to get specific sku product on search in magento 2?

texts:
In search bar when i am searching a product using sku (MY-PRODUCT-101),

It displays all the product whose sku is having prefix (MY-PRODUCT-XXX) ,

But i only want it to fetch whose sku is (MY-PRODUCT-101).


texts: magento2 how to implement graphql with alpine.js get cms static block data

texts: I have create a static block in magento2 admin panel. I like use graphql with alpine.js to get data of the static block.


texts: Magento 2 Admin Extension Button Not Showing Javascript

texts:
We have Latest Mirasvit Advance Feeds extension installed on our Magento 2.2.2. site PHP 7.1 - all the features of the extension are loading fine apart from the + button in the category mapping section. It basically a button that opens up category lists.
We have tried this extension on same setup but on another server and its working perfectly. other server is also running with php 7.1
After several weeks we are unable to fix this issue on live site with the developer or server hosting company as to what can be causing this issue. The permission / ownerships all seems to be correct and installation and upgrade goes without any errors.
We really need this to show so we can map the categories with googles and create the feeds.
Can this be database / javascript / php /  nignx /  apache / related ?
As I said we have same backup on another server and upgraded the extension and its working fine.
The previous version of the extension loads the category mapping button but doesnt after we update or even remove and install from scratch the latest version.


texts: Bind a Custom Entity Event to an Indexer ?

texts:
I have added an event for a custom entity to an Indexer but I have some issue:

_registerEvent() is called correctly
_processEvent() is never triggered

Here what I did:

In my Indexer Model I have add the Custom Entity/Event:

/**
 * @var array
 */
protected $_matchedEntities = array(
    MY_CUSTOM_ENTITY::ENTITY => array(
        Mage_Index_Model_Event::TYPE_SAVE,
        Mage_Index_Model_Event::TYPE_MASS_ACTION,
        Mage_Index_Model_Event::TYPE_DELETE
    )
);

In the custom entity model I added the call to logEvent()

protected function _beforeSave()
{
    parent::_beforeSave();
    Mage::getSingleton('index/indexer')->logEvent(
        $this, self::ENTITY, Mage_Index_Model_Event::TYPE_SAVE
    );
    return $this;
}


texts: Display category products on homepage using carousel slider

texts:
I am able to display products from specific categories on homepage using duplicate copies of list.phtml and with the help of this code.

It just displaying flat 4 products but I want to display more products using slider and column_count = 4

  {{block type="catalog/product_list" column_count="4" category_id="3" template="catalog/product/list-officestationery.phtml"}}


texts: How to override step-navigator in checkout?

texts:
I need to override/extend the step-navigator.js with the function "isProcessed" but that link How to extend js class/method of checkout model class in magento 2
doesn't work.
Magento can't find the pluggin.js.


texts: How to checkout configurable product in REST API in magento 2?

texts:
After adding configurable product in cart
How to checkout configurable product in REST API in magento 2 ?


texts: Fedex API. Shipping rates request for Multiple-Package Shipment rates

texts:
I am looking for fedex shipping rates (shipping estimate quotes), how to add multiple package(box) shipping rates after certain weight limit.

I know there is option in magento admin panel weight limit but shipping charges are not coming properly after certain limit cross.

Basic query is how to add multiple boxes or packages in api request.

example 1 package holds only 12 items and all items weight is similar.

Thanks.


texts: Filter Collection of Listing depends on Request Parameter

texts:
I'm going to add the request param to filter the Grid Listing.
The url will be like: abc/xyz/status/2
And the collection will filter which record that have "status" value equal 2.
I want to found something to add to my listing.xml like:

<item name="add_filter" xsi:type="string">status</item>
</item>


texts: What is the recomended file system permissions for magento 2 installation?

texts:
My environment is an AWS EC2 machine, with only one magento 2.2.3 store, with apache and Mysql. I've followed a few posts here from stackoverflow (here and here) and oficial documentation, but I'm not sure if I got all we need here. I've been setting my folder permissions as:

sudo find . -type f -exec chmod 740 {} \;
sudo chmod u+x bin/magento;
sudo find . -type d -exec chmod 750 {} \;
./var/view_preprocessed \( -type d -or -type f \) -exec chmod 777 {} \;
sudo find ./pub/media -type d -exec chmod 775 {} \;
sudo find ./pub/static \( -type d -or -type f \) -exec chmod 775 {} \;
sudo find app/code lib pub/static app/etc generated/code generated/metadata var/view_preprocessed \( -type d -or -type f \) -exec chmod g-w {} \; && chmod o-rwx app/etc/env.php;
sudo find . -maxdepth 1 -type f -exec chmod g-wr {} \;
sudo chmod g+rx index.php .htaccess composer.json composer.lock && sudo chmod g-w .;

My question is, is this file permissions secure? There is something to get better, if so, why?


texts: How to Make total of same customers orders

texts:
I have to make the total of the same customer who has many orders.
means i need the sum of all orders of 1 customer
I tried this.

$cus = Mage::getModel('sales/order')->getCollection();
foreach($cus as $customer)
{
echo "<pre>";
$i=Mage::getModel('sales/order')->load($customer->getEntityId());
echo "<pre>";
$j=($i->getstatus());
if($j == complete)
{
    print_r($i->getbaseGrandTotal());
    //print_r($i->getData());
    print_r($i->getCustomerEmail());
}
else
{
    echo "bye";
}}


texts:
I've created a new attribute for a module

app/code/local/AtlanticBT/Featured/Model/Resource/Eav/Mysql4/Setup.php

<?php
class AtlanticBT_Featured_Model_Resource_Eav_Mysql4_Setup
  extends Mage_Eav_Model_Entity_Setup
{
    public function getDefaultEntities()
    {
        return array(
            'catalog_product' => array(
                'entity_model'      => 'catalog/product',
                'attribute_model'   => 'catalog/resource_eav_attribute',
                'table'             => 'catalog/product',
                'additional_attribute_table' => 'catalog/eav_attribute',
                'entity_attribute_collection' => 'catalog/product_attribute_collection',
                'attributes' => array(
                    'featured' => array(
                        'group'                      => 'General',
                        'type'                       => 'int',
                        'backend'                    => '',
                        'frontend'                   => '',
                        'label'                      => 'Featured',
                        'input'                      => 'select',
                        'class'                      => '',
                        'source'                     => 'eav/entity_attribute_source_boolean',
                        'global'                     => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE,
                        'visible'                    => true,
                        'required'                   => false,
                        'user_defined'               => true,
                        'default'                    => false,
                        'searchable'                 => true,
                        'filterable'                 => true,
                        'comparable'                 => false,
                        'visible_on_front'           => true,
                        'visible_in_advanced_search' => true,
                        'used_in_product_listing'    => true,
                        'used_for_sort_by'           => true,
                        'unique'                     => false,
                    ),
                ),
            ),
        );
    }
}

app/code/local/AtlanticBT/Featured/sql/featured_setup/mysql4-install-0.1.0.php

<?php
$this->installEntities();

can I alter this attribute to only show on configurable products?  would that be a class in the backend or frontend option which controls this functionality?


texts: QuickView button misplaced after products loaded Using infinite scroll Magento 2

texts:
I am using Weltpixel Quick View extension and it is working fine. But there is an issue when products loads using infinite scroll. After loads, the Quickview button is appended at the end of div with class "product photo product-item-photo" its is appended inside next div i.e with class "product details product-item-details"
I am using Strategy Infinite Scroll. https://github.com/Strategery-Inc/Magento2-InfiniteScroll This infinite scroll also working fine.
Here is URl
https://fg2xq68aus8nnncy.mojostratus.io/clearance/parts.html


texts:
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$product = $objectManager->get('Magento\Catalog\Model\Product')->load('YOUR PRODUCT ID');
echo $product->getAttributeText('your_attribut');

I need to get product in carts with custom attribute values to pass in a XML for a API POST call I am making.

Say I dont have the product ID, and I just want to get the product in cart with custom attribute value, how would I do that?


texts: How we can show only one shipping method at time in magento 2?

texts:
We have two shipping methods

1.Yamato

2.Gdex

We want to show only one shipping method at time based on our custom order sequencing rule. at the same time want to change price(dynamically) of shipping methods based order sequencing rule.
for more clarity. you can see image.


texts: Magento 2 - Error in line 196 Dictionary.php - Undefined offset

texts:
Sometimes after creating a dictionary, I get this error:

Undefined offset: 1 in /vendor/magento/framework/App/Language/Dictionary.php

  a:4:{i:0;s:104:"Notice: Undefined offset: 1 in
  /srv/www/vendor/magento/framework/App/Language/Dictionary.php on line
  196";i:1;s:4066:"#0
  /srv/www/vendor/magento/framework/App/Language/Dictionary.php(196):
  Magento\Framework\App\ErrorHandler->handler(8, 'Undefined offse...',
  '/srv/www/vendor...', 196, Array)
      #1 /srv/www/vendor/magento/framework/App/Language/Dictionary.php(113):
  Magento\Framework\App\Language\Dictionary->readPackCsv('bleez',
  'pt_br')
      #2 /srv/www/vendor/magento/framework/Translate.php(325): Magento\Framework\App\Language\Dictionary->getDictionary('pt_BR')
      #3 /srv/www/vendor/magento/framework/Translate.php(181):

The function which is in this path vendor\magento\framework\App\Language\Dictionary.php:

private function readPackCsv($vendor, $package)
    {
        $path = $this->componentRegistrar->getPath(ComponentRegistrar::LANGUAGE, strtolower($vendor . '_' . $package));
        $result = [];
        if (isset($path)) {
            $directoryRead = $this->directoryReadFactory->create($path);
            $foundCsvFiles = $directoryRead->search("*.csv");
            foreach ($foundCsvFiles as $foundCsvFile) {
                $file = $directoryRead->openFile($foundCsvFile);
                while (($row = $file->readCsv()) !== false) {

                    $result[$row[0]] = $row[1];
                }
            }
        }
        return $result;
    }

The problem is that there is a line in the dictionary which is not written properly, meaning that the fields are not properly created ( missing coma, or more than a comma) so the function sends an error.
But the error doesn't give you any information about the line you have the error and with 13000 lines, you can't check each one.

So, which is the way you can know which line of the dictionary you created is wrong?


texts: magento 2 : How we can load product by sku in root file

texts:
i'm using magento 2 and i've to update particular product by sku,

i've used below code to load but it is taking too much time

$objectManager = $bootstrap->getObjectManager();
$productRepository = $objectManager->get('\Magento\Catalog\Model\ProductRepository');
$product = $productRepository->get(trim($sku));

is there any other solution to load product from root which take less then above code,

Thank you,


texts:
I testing the REST API with the Fire Fox Rest API Client. But I am getting 403 Access Denined. I have checked with all the permissions as mentioned in the other answers but could not get through. I am new to REST API.

UPDATE 1:

However, by looking at below API, I have not found any information regarding Login.

  http://devdocs.magento.com/guides/m1x/api/rest/Resources/resource_customers.html

UPDATE 2:

I am able to get the Login screen as below.

Now the question is from where will I get oauth_token ?


texts: Magento 2: how to Get Customer Recently viewed product collection

texts:
How to get customer recently viewed product collection, I am using below code but not working anyone has an idea for same...
Bellow code always return Null or blank array

protected $recently_viewed;

    /**
     * @param \Magento\Catalog\Block\Product\Context $context
     * @param array $data
     */
    public function __construct(
        \Magento\Catalog\Block\Product\Context $context,
        \Magento\Reports\Block\Product\Viewed $recently_viewed,
        array $data = []
    ) {
        $this->recently_viewed=$recently_viewed;
        parent::__construct($context, $data);
    }

public function getRecentProductCollection() {
        $collection=$this->recently_viewed->getItemsCollection();
        return $collection;
    }


texts: Nginx as reverse proxy server instead of varnish in Magento 2

texts:
I've setup a store on Magento 2 that is going to go live soon. I wanted to implement Varnish, but my hosting says that it is not compatible with cPanel. They did install it, but they're facing problem when they run it. They're suggesting that I use nginx as reverse proxy server instead. I've little knowledge of servers and don't know how that can be done. I've searched the web but can't find a concrete document that explains how to use nginx as full page caching / reverse proxy server, just like how Magento 2 uses varnish. My objective is of course to speed up my site.

I'm also confused on how Magento 2 would interact with nginx as a proxy server instead of Varnish since it does not have built in support for nginx. For instance, would Magento 2 automatically purge a product page that is cached if say price of that product is updated on the backend?

Can someone kindly brief me and let me know on how to achieve my goal. Would be grateful for all the help. Thank you.


texts: How to filter loadedProductCollection to show out of stock products within a specific period?

texts:
I have a huge catalog and I've enabled "Display out of stock products" to show the out of stock products too in the listing page. Since my catalog is huge and 80% of the products are out of stock, I would like to show only the out of stock products which were created in the last 6 months.

In the listing page I was able to do this by checking the product stock status and product created date. But the problem with this is that the products which do not meet the conditions of the filter are still counted in the product collection but are displayed as a blank space. For eg: if the default number of product displayed in the listing page is set to 12 and if only 10 products meet the above conditions, there are two blank spaces at the end for the left out products. Is there a way to avoid these blank spaces?

EDIT:
code used in list.phtml

$_productCollection=$this->getLoadedProductCollection();
$currentDate = date("Y-m-d");
$check_date = new DateTime($currentDate);
$check_date->modify("-180 day"); // 6 months
$check_date = $check_date->format("Y-m-d");
foreach ($_productCollection as $_product):
    $pdt_date = substr($_product->getData('created_at'),0,10);
    if(!$_product->isSaleable() && ($pdt_date < $check_date)):
        //don't show the product
    else:
        //display product
    endif;
endforeach;


texts: If attribute = 'yes' then show this html, if attribute = 'no' show this html

texts:
I have an attribute called 'made_to_order' and it has a dropdown select (in the backend of Magento) with two outcomes 'yes' or 'no'. At the moment I'm just echoing the yes or no on the frontend. However, ideally I'd like to show different html dependent on the attribute value. For example, if 'yes' then green color font, if 'no' then red color font.

Can anyone please help with the code for this? My current code is:

<?php echo $_product->getAttributeText('made_to_order') ?>

Thank you very much


texts:
I have a custom module, which uses two tables to store data in database. table 1 and table 2 are conntected by storing the id of table1 in one of the field of table2. In order to store datas to table2, I am using protected function _aftersave(). Here is my aftersave method

// this function will get executed before the model is saved but after save function has been called
    protected function _afterSave( Mage_Core_Model_Abstract $object )
    {
        // do some model loads and checks here so that you will update existing data and not duplicate rows on editAction saves...\
        $frontendModel = Mage::getModel( 'news/newsfrontend' );
       //loading item in table2 with current table1 id
        $frontendCollection=$frontendModel->getCollection()
              ->addFieldToFilter('news_parent_id', array('eq' => $object->getId()))
              ->getLastItem();
        if(!$frontendCollection->isEmpty()) //check whether any item exist or not
        {
          //saving news data to existing item
            $frontendCollection->setData("news_parent_id",$object->getId())->save();
            $frontendCollection->setData($object->getData())->save();
        }
        else
        {
            //storing new datas to new item
            $frontendModel->setData("news_parent_id",$object->getId())->save();
            $frontendModel->setData($object->getData())->save();
        }

      return parent::_beforeSave( $object );
    }

The problem that I am facing now are

1) news_parent_id is not setting after save action. Rest datas are saving
     in table2

2)Is this the correct approach to my problem?

3)How can I set news_parent_id correctly?

4)Is there any easy way for achieving this?

5)if I am using _beforesave(), how can I get the table1 id in order to set the news_parent_id through it?

Please enlighten me with your ideas and suggestions. Awaiting for your response. Thanks in advance


texts: Getting thumbnails in wishlist to use parent image

texts:
We're using grouped products, and we have the configuration set to use the parent image for thumbnails in the shopping cart view.  This is working, but when we see those products in the wishlist, all we see is a placeholder image.

How can I make the thumbnail selection there work the same as on the cart page?

I have tried editing the wishlist/view.phtml to use:

$this->helper('catalog/image')->init($this->getItemProductForThumbnail($item), 'small_image')->resize(113, 113);

instead of

$this->helper('catalog/image')->init($product, 'small_image')->resize(113, 113);

but that breaks the page.  I get this in the system.log:

2014-09-18T18:15:30+00:00 ERR (3): Recoverable Error: Argument 1 passed to Mage_Catalog_Helper_Image::init() must be an instance of Mage_Catalog_Model_Product, null given, called in...

So I don't think $item is what getItemProductForThumbnail($item) is expecting


texts: How to share code intelligence between several blocks of the same module?

texts: How to share code intelligence between several blocks of the same module ? Is there a "Magento way" to do this ? or should I simply use Traits to share some functions between a given module class ?


texts:
when the customer order t-shirts for team or event this is the step I want

1- select color
2-select size and quantity  for example s=2,M=1,X=4,XL=2 at same time
3- add order to cart

something like this http://www.4imprint.ca/product/C121147-L


texts: Magento : How to get value of checkbox in observer?

texts: I want to add a checkbox after Place order button. So , If someone checked the checkbox then he/she should subscribe. I have added checkbox in button.phtml page and I have written observer('checkout_submit_all_after') also but I am not getting value of checkbox. Please help me in this.


texts: Magento 2 - Get currency of an order item

texts:
I get the order items from order using:

$order = $this->orderRepository->get($orderId);
$orderItems = $order->getAllItems();

How can I get the currency of an order item? We have products that sell in different store using different currency.


texts:
I've been following this tutorial to add currency switcher to header of my magento theme:
http://www.jimcode.org/2011/02/magento-multi-language-currency-region-setup/

I've add currency block and others under header of my page.xml file:

<block type="page/html_header" name="header" as="header">
    <block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>
    <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
    <block type="directory/currency" name="currency" as="currency" template="directory/currency.phtml"/>
</block>

then under header.phtml file under my template, I've added these lines:

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

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

Store language is appearing fine, while neither store views, nor currency views are displaying on the header.

Please help me point out what am i missing.


texts: How to update shipping cost for one specific item in Magento

texts: I have a flat handling fee of $7.95 and free shipping for all items. But for some reasons, some items (specifically two) are showing shipping rates with FedEx of $57+ and not showing the flat rate of $7.95 which I only charge for the customer per order. How do I fix that? And why are these particular items show different numbers? Maybe because of their high price since those are the most expensive items on my website, so how to fix this? Anyone?


texts: How to Add No Index tag to category path product urls in magento?

texts:
We want to add no index robots meta tag for all those category path product pages:

  www.example.com/Category/productpage

Actual product page:

  www.example.com/productpage

category path product page is:

  www.example.com/Category/productpage

We have already added canonical tags all the category path product pages

  "wwww.example.com/Category/productpage"

by following the first option mentioned in this article

  https://www.hallaminternet.com/how-to-add-canonical-tags-in-magento/

Now we have to add no index robots tag to all those category path product pages

  www.example.com/Category/productpage

because search engines are indexing the category path product pages, rather than exact product page urls. This is effecting our seo and traffic.

Please give us suggestion that will help us to solve this issue.


texts:
Magento was released Magento-2.2.6 version on 18th Sep, 2018.

This release includes :

25 critical enhancements to product security, over 150 core code fixes and enhancements, and over 350 community-submitted pull requests.
Although this release includes these security enhancements, no confirmed attacks related to these issues have occurred to date.
However, certain vulnerabilities can potentially be exploited to access customer information or take over administrator sessions, so we recommend that you upgrade your Magento software to the latest version as soon as possible.

The Magento is recommending to upgrade our Magento software to the latest version ASAP.

What are the Possible Issues with this Magento-2.2.6 release?


texts:
Cannot read property 'RFC_2822' of undefined is getting problem in magento 2.0.4

i saw this error in console. following one more error.

  women-blue-jacket.html:912 Uncaught TypeError: Cannot read property
  'RFC_2822' of undefined
      at women-blue-jacket.html:912
      at Object.execCb (require.js:1650)
      at Module.check (require.js:866)
      at Module. (require.js:1113)
      at require.js:132
      at require.js:1156
      at each (require.js:57)
      at Module.emit (require.js:1155)
      at Module.check (require.js:917)
      at Module.enable (require.js:1143)

  price-box.js:21 Uncaught TypeError: $.widget is not a function
      at price-box.js:21
      at Object.execCb (require.js:1650)
      at Module.check (require.js:866)
      at Module. (require.js:1113)
      at require.js:132
      at require.js:1156
      at each (require.js:57)
      at Module.emit (require.js:1155)
      at Module.check (require.js:917)
      at Module. (require.js:1113)

full error as above. in more details im using free theme
http://www.venustheme.com/theme/ves-fasony-free-magento2-theme/  .

i dont know is, theme specific error or some where magento error.
if this error comes,  my product image will not load. i tried lot to remove it but not works.


texts: How the guest order is mapped with the customer who is registered in success page in magento 2

texts: How the guest order details are mapped with the customer who is registered by clicking Create Account button in the success page in magento 2.


texts: How to change price based on the input field in magento 2

texts:
Hello I want to add two text field in product detail page

1) width
2) Height

When the customer enters the value of width and height they do the following thing:

Price = width*height
Final price = base price + price

So after the customer enters the width and height it should be added in the base price through the checkout in Magento 2


texts: Magento 2.3 REST API not working for default store - rest/V1/inventory/source-items

texts:
In Magento2.3

I'm using http://localhost/new-jk/rest/V1/inventory/source-items

it is working fine for all stores but only default is not updating properly

The service is updating quantity of product but the salable quantity does not change only for default stock.

can someone face this issue? please guide


texts: How to get union of products when filter by layered navigation?

texts:
My scenario is as follows.
I have the following attributes which are available in layered navigation.

Color (have 5 products)
Size( have 10 products)
Shape(have 3 products)

If I filter by Color and Size it'll show the intersection of those 15 products as the result. So the resultant number of products is less than 15. But my requirement is to show all the 15 products. Following are few more examples which will demonstrate what I actually want to do.

e.g. Filter by Size and Shape should result with 13 products

Any suggestions on this will be highly appreciated. If there's any extensions available please mention as well.


texts:
After downloading a patch via curl to my install directory, I tried installing it with patch -p0 < CE-MAGETWO-93036.patch but could not find the file to be patched.
The patch file specifies diff --git a/vendor/magento/module-email/Model/AbstractTemplate.php b/vendor/magento/module-email/Model/AbstractTemplate.php but my standard 2.2 install does not include these a and b directories. Naturally it failed to change the file and patch asked me to specify the file to be changed and I entered vendor/magento/module-email/Model/AbstractTemplate.php and that worked fine.
Question: Why do the patch files specify these a and b directories, and is there a better way to apply patches?

Thanks


texts: Magento 2.0.3 fresh install unable to change to developer mode following step by step developer documentation

texts:
i just did an fresh install (web installer) of magento 2.0.3. When trying to switch to developer mode by using

  magento deploy:mode:set developer

http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/themes/theme-create.html

is returning the following failure:

  There are no commands defined in the "deploy:mode" namespace.

Any ideas?


texts: Multiple invoices are creating for a order in Magento 2

texts:
Magento 2 allows me to create multiple invoices for a order that has already been invoiced(using REST Api) which should not be the case.

So, if anyone can give a light to this part, it will be helpful.


texts: Set coupon expire date for individual coupon

texts:
I want to create coupon code and I need to set also expiration date. Magento offers to set expiration date only for promotion rules and it affects globally all coupons inside this rule. Anyway inside database table salesrule_coupon has also field expiration_date but it seems that this field is not used anywhere.

Has anybody managed to set expiration date for individual coupon successfully? Otherwise I am thinking the only way to make it right would be to create observer which will observe entering coupon code and delete the coupon if expired and thus it will make coupon code unusable before it is applied.

Any ideas are appreciated.


texts:
How to remove or hide category listing title using Custom Layout Update?

This is my code so for.

<reference name="product_list_toolbar" after="content">
  <action method="setData"><data>_current_grid_mode</data><mode>grid</mode></action>
</reference>

<reference name="product_list">
  <action method="setColumnCount"><count>5</count></action>
</reference>


texts: Free shipping with flat rate shipping at magento 2

texts:
Can i make promotion for flat rate method? equal or greater than ... allow free shipping.

I have already do this with free shipping but both methods appear there. I have configured it many times at magento 1.9, but magento 2 resist....

I had also tried a custom module for shipping.

Any thinking about that?


texts:
I have recently upgraded from Magento 2.2.4 to Magento 2.3.

This has caused some compatibility issues between some of our modules.

One instance of this is that we are missing a file:

/pub/static/adminhtml/Magento/backend/en_GB/tinymce.js

I have downloaded this file from Tiny MCE and when i manually upload it to the static backend folder, the module is working properly again. However, Magento is not generating this file.

How can I force Magento to generate tinymce.js in the /pub/static/adminhtml/Magento/backend/en_GB/ folder?

thanks.

Edit:

this seems to be occuring on every page on the backend of our store. Where can i add this file to my code so that it is generated in the static folder?


texts: How can I show limted products in category like I want 8 products

texts:
I am using this code, can anyone help me out with this:

  {{block type="catalog/product_list" limit="8" column_count="4"
  category_id="1" template="catalog/products.phtml"}}


texts: "cataloginventory/stock_item_api" set no data on update

texts:
I try to create over 4,000 products in a demostore. catalog/product_api returns the id of the created product ... all fine. Then i call catalog/product_attribute_media_api with the id of the created product to create a image by base64-content. Even this works too. At the last i try to call cataloginventory/stock_item_api as update. It's run, i get as result true, but there is no data visible in the database / adminpanel.

Here the script part:

$arrCurrentStockData = array(
    'qty' => '100',
    'is_in_stock ' => 1,
    'manage_stock ' => 1,
    'use_config_manage_stock' => 0,
    'min_qty' => 1,
    'use_config_min_qty ' => 1,
    'min_sale_qty' => 1,
    'use_config_min_sale_qty' => 1,
    'max_sale_qty' => 10,
    'use_config_max_sale_qty' => 1,
    'is_qty_decimal' => 0,
    'backorders' => 1,
    'use_config_backorders' => 1,
    'notify_stock_qty' => 10,
    'use_config_notify_stock_qty' => 1
);
var_dump(Mage::getModel('cataloginventory/stock_item_api')->update($intProductID,$arrCurrentStockData));

I tried to to this with the regular class cataloginventory/stock_item - no data. Tried to set data in the creat-call from the product as stock_data - no data.

I have a clean local installation (1.8.1) without 3rd-party-extensions. What's wrong? Has Anybody a tip? Even now, many , many thanks!

Edit

If i open a product in adminpanel and save it, then write the system data to the cataloginventory_stock_item-table - funny!


texts: How to add Dynamic fields for custom extension at Admin side magento 2

texts: How to Create Dynamic Generated Field at the admin side in custom extension.


texts: Building a custom search module for Magento adhering to Search Type configuration

texts:
I´m in the middle of building a search module for Magento, and I´m currently facing a little bit of trouble, specifically regarding applying "Search Types" (Like, Fulltext or Combine) according to the admin configuration.

Here is my working query code:

$searchQuery = 'my search';
$storeId = '1';
$collection = Mage::getResourceModel("catalog/product_collection")->addAttributeToSelect("*");
$query = Mage::helper("catalogSearch")->getQuery();
$query->setStoreId($storeId);
$query->setQueryText($searchQuery);
$collection = $query->getSearchCollection();
$collection->addSearchFilter($searchQuery);
$collection->addAttributeToSelect("*");
$collection->addCategoryIds();
$collection->addFinalPrice();
$collection->addUrlRewrite();
$collection->addAttributeToFilter('status', Mage_Catalog_Model_Product_Status::STATUS_ENABLED);
$collection->addFieldToFilter('visibility', Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH);
$collection->setPageSize(20);

The only thing I need is to somehow define "Search Types" so it´s either "like", "fulltext" or "combine" depending on the shop configuration.

In other words, if the shop owner has set "Search Type" to "Combine(Like and Fulltext)" - then my query must also be search type "combine".

My problem is that I don´t know where to apply search type in the query.

I hope someone out there can help.

P.S. I normally work in Joomla, so I´m a complete novice when it comes to the Magento framework..


texts: Help creating custom report and debugging blank page

texts:
I'm trying to create a custom report using the guide here...
Creating new completely custom report

I created it EXACTLY as described. The new report shows up in the dropdown for Reports as it should, but I only get a blank page (besides the header and footer). Even if there wasn't any data for the report, I think I should still get a empty grid.

I added logging to all the functions in all the files under Block directory, but nothing is getting logged. Example, in Mycompany_Mymodule_Block_Adminhtml_Mymodule_Grid

public function __construct() {
    Mage::log("construct()", null, 'Mymodule.log');
    parent::__construct();
    $this->setId('mymoduleGrid');
    $this->setDefaultSort('created_at');
    $this->setDefaultDir('ASC');
    $this->setSaveParametersInSession(true);
    $this->setSubReportSize(false);
}

Not sure where to go to even begin debugging this.


texts: Type Error occurred when creating object in Magento 2

texts:
I am creating the custom module to Log the custom module logs Info, Error to custom table and the module working. But when I compile the module getting below error.
/var/www/html/var/log/exception.log
[2020-12-21 10:43:14] main.CRITICAL: Type Error occurred when creating object:
Learning\LoggerModule\Model\ResourceModel\CustomLogger\Collection\Interceptor, Argument 5 passed to
Learning\LoggerModule\Model\ResourceModel\CustomLogger\Collection\Interceptor::__construct() must implement interface Magento\Framework\DB\Adapter\AdapterInterface or be null,
string given, called in /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 121
{"exception":"[object] (Magento\\Framework\\Exception\\RuntimeException(code: 0): Type Error occurred when creating object:
Learning\\LoggerModule\\Model\\ResourceModel\\CustomLogger\\Collection\\Interceptor, Argument 5 passed to
Learning\\LoggerModule\\Model\\ResourceModel\\CustomLogger\\Collection\\Interceptor::__construct() must implement interface Magento\\Framework\\DB\\Adapter\\AdapterInterface or be null,
string given, called in /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 121 at
/var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:131)"} []

The Collection class as below
<?php
declare(strict_types=1);

namespace Learning\LoggerModule\Model\ResourceModel\CustomLogger;

use Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;
use Learning\LoggerModule\Model\CustomLogger;

class Collection extends AbstractCollection
{

    protected $_idFieldName = 'id';

    protected function _construct()
    {
        $this->_init(
            CustomLogger::class,
            \Learning\LoggerModule\Model\ResourceModel\CustomLogger::class
        );
    }

}

Please suggest us to work properly.


texts: Magento 2 - I need to create simple custom report with date range and other column filter (filter should be outside of grid)

texts:
I need to create custom report which is just like magento default reports. I go through the Internet I found this https://github.com/degdigital/magento2-customreports but In this report data is already fetched and they give column level filter functionality like this

I need the data fetch based on filters

  For Reference I need simple report like this:

I hope, you guys got my point, if you have any free extension, git code and your experience please share it

Thanks


texts: Installing a downloaded extension with a composer

texts:
I am new to M2 and don't exactly know much about composer.

I am able to install extensions from GitHub or Magento store with composer just fine.

But I don't know what to do with extensions where "component name" is not provided. I want to be able to later easily update it like you can with composer.

So how do I install a downloaded extension via composer?


texts: Authorize.net Transaction Hash Upgrade for Only Authorised.net

texts:
If Magento Store using Authorize.net method Instead of Authorize.net Direct Post then Need to install Authorize.net Direct Post Signature Key patch  in my magento store?

I am using Magento version:1.9.3.3.


texts: Shipping Request not working, reporting missing parameters

texts:
While creating a shipping label I got this error

Error #151 : Consignee segment Company Name Mandatory Required error

I crosschecked the request XML and the Company Name is empty, however the customer has a company name.

The company name contains an & (ampersand) maybe this is problem ?


texts:
I installed owl-carousel into my Magento.
In home page there is only 5 items. I want to display 5 products.
How I make it?

My code:

{{block type="filterproducts/featured_home_list" column_count="5" product_count="10" category_id="7" product_count="12" template="filterproducts/list.phtml"}}


texts: Need help with categories system, nav and layered nav

texts:
I am setting up an online store for a company that sells vinyl records on magento.

I want to have an option on my main nav at the top that says 'genre' with a dropdown to every genre where each product will be assigned a genre. I created a category called genre with the genres as sub categories but I don't want genre to be its own category or have its own page.

If you look at the picture it says 'view all genre' but I want to get rid of that. Also if you notice on the layered nav on the left, when I search for an artist genre comes up at the side as a category but I want it instead to just come up with the different genres at the side (which are currently subcategories of 'genre'.

Anyone know how I would go about doing this properly? Thanks.


texts: How to use a variable set in "view.phtml" in a controller file?

texts:
I'm using Magento 1.4.1.1.

The following contains a useful URL when run in "template/catalog/product/view.phtml".

$this->helper('core/url')->getCurrentUrl();

When I try to get the same URL by running the following from "Mage_Customer_AccountController". I don't get the same URL.

Mage::helper('core/url')->getCurrentUrl();

Is there anyway I could save the URL value from "template/catalog/product/view.phtml" and be able to use that variable in "Mage_Customer_AccountController" methods ?

Don't hesitate to provide code snippets as I'm new in Magento.

Thanks


texts: Discount Codes Not Working After Update (Magento 2.2.9)

texts:
After an otherwise successful update to Magento 2.2.9, the discount code functionality has stopped working.

When I try to apply it on the Cart page, nothing happens. When I try it on the Payment Method step of checkout, I receive a "Could not apply coupon code" error.

Does anyone know what could be causing this, or how to investigate?


texts: how to export all my configuration to the database?

texts:
in my case i have some fields in the system configuration (the route is = 'admin/system_config/edit/section/someconfigpage) page with their values which I want to save it not just for me in local also when someone did "git clone" for my project, i want him to get the same configuration that I have in my local machine to his local machine.

  is there some export to database or anything i can do , some example will be great and very helpful :)?


texts: I want to access this value from fedex response

texts:
I want get the last event from fedex tracking from magento.
i have call api for tracking and get the below response. now i want to get only last event from this responses

currently i am using following code but its return the

  FATAL ERROR : getTrackings() is not a member function.

  public function getTrackingStatus(Varien_Event_Observer $observer)
    {
        $collection = Mage::getResourceModel('udpo/po_grid_collection');
        $collection->addFieldToFilter( 'main_table.udropship_status', '3' );
        $collection->addAttributeToSelect('increment_id');
        $collection->getSelect()->join( array('ship_item'=> sales_flat_shipment_grid), 'ship_item.udpo_id = main_table.entity_id', array('ship_item.entity_id'));
        $collection->getSelect()->join( array('track_item'=> sales_flat_shipment_track), 'track_item.parent_id = ship_item.entity_id', array('track_item.track_number','track_item.carrier_code'));
        $data = $collection->getData();
        $count = count($data);
        if($count > 0){
            for($i=0; $i<$count; $i++){
                $response = Mage::getModel('usa/shipping_carrier_fedex')->getTracking($data[$i]['track_number']);
                echo "<pre>";
                print_r($response->getCollection()->getFirstItem()->getData());
                exit;
            }
        }
    }


texts: Problems after upgrate magento 2.2.5 to 2.3.0

texts:
After I upgraded Mageto 2.2.5 to 2.3.0 I've run all the commands in the console (upgrade,deploy,compile,flush), but on frontend it doesn't load the page and in system.log

I'm getting following error

  "main.INFO: Broken reference: the 'theme.active.editor' element cannot
  be added as child to 'after.body.start', because the latter doesn't
  exist [] []  main.INFO: Broken reference: the 'logger' element cannot
  be added as child to 'after.body.start', because the latter doesn't
  exist [] []"

And in backend i have the error :ERR_TOO_MANY_REDIRECTS

Thank you for any advice


texts: Production Mode - CSS/JS missing when reloading with CTRL + Shift + R

texts:
Hello everyone,

As the title suggests, I'm currently having some problems with a Magento 2 site, running in production mode, and it's static content / caching. The website loads just fine, but when I try to reload the page without caching enabled in the browser (Ctrl + shift + R or disabling cache in your browsers developer tools) it's no longer working as intended. CSS and javascript seems to be missing.

Here's the interesting part, though. If I go into the page's source code with caching disabled and click on one of the CSS links, it still shows the correctly loaded CSS.

I've attempted to find anyone with similar issues, but it seems pretty rare? It's a semi-large live website, so I've not attempted to clear any caches, reindex anything or deploy static content yet, as I'd rather not completly destroy the "live cached" site as well.

I mistakenly changed mode to production while already being in production mode - I think it might have happened after that, as it weren't a problem before.

Edit:

I also just noticed that the deployed version in the deployed_version.txt file doesn't match the ones in the links, both with or without cache enabled.

File is 1578925531, website is 1578561207.

Any ideas?

Thanks!


texts: How to download product csv directly not in queue

texts:
Magento 2 Export product with direct download csv not in Queue
default is to add csv into message queue system so we want to direcly download csv


texts: Just Upgraded My Server : 8 to 16 GB Ram, 4 to 6 CPU - How to allocate new resources?

texts:
I've been searching all over for magento config posts and digesting them, but haven't found anything like what I'm asking for.

I've just upgraded my VPS with more resources, so my server still has it's old config resource allocation setup for MYSQL, PHP (7.2), Cacheing, Apache, etc.

I was wondering could you please let me know all the settings on my WHM CentOS server I should now change so that my Magento 1.9.3.10 system is making the most out of the new resources?

(If you could give me specific values for my new resources I would love you even more! :)  )

I have a small magento store with less than 30 products.
With average 300 users per day.

I also run all the usual WHM stuff like exim, munin, etc. on the server.

Thanks for your help!


texts: How to disable postcode, city and street as required fields in checkout

texts:
We developed a Magento module for creating simple landing-pages for free downloadable products. We programmatically create an order model and save it to the database. As long as we populate street, city, and postcode to the model - we're fine.

But to make it easy for customers to purchase the free download, we don't want the street, postcode, and city as required fields.

We tried rewriting validate() in customer/address_abstract and we set all eav-customer-attributes to be not required in eav_attributes table. But that still didn't help.

Any recommendation in which direction we could go to resolve this issue?

EDIT:
Fixed. No rewrite necessary, no fields have to be changed in the database. As long as we pass country and region it's working now.


texts: Allowed country not working properly in magento2.3.3?

texts:
I have two stores (e.g.:store 1 and 2). Both have different shipping destinations.

Under the website scope, I had set for Store 1 Japan for the Allow Countries. And for Store 2 are non-eu countries (US, Canada etc).

However, the problem is when I go to checkout shipping page, it list out the country which has also in Default config, I mean it needs to show US,Canada but not Japan, but unfortunately Japan is also showing in the list.

As we can see in the image that in the admin panel setting Japan is not included in the allowed country list in first image. But in checkout shipping page Japan is now showing in the country option.
Is this possible, only to show allowed country in the website scope for the country option?


texts: Order Confirmation Template Not Being Picked up

texts:
I'm working on a store which language wise is set to use en_UK. Here - app/locale/en_GB/template/email/sales I added email templates. For some reason the order confirmation email template is being picked up for guests - order_new_guest.html but the order_new.html (for people that are logged in) is not.

To my knowledge en_US is the default folder so for testing purposes copied my changes to the order_new.html in here but it is still rendering a default file. Where else might default templates be stored? I can either copy my changes in here as a quick fix or even better if someone can think of a reason why it is not picking up this template I can try something else.


texts: Getting different category id for the products

texts:
I am trying to add a link on my website's product pages and redirect the users based on the category that the product belongs to. For example, I have a category chairs which is having a Category Id of 39 and I am having another category desks for which the category id is 52.

Now my issue with the above scenario is when I am moving into the product page through category pages I am getting the above-mentioned category Id's properly and the URL will be

http://example.com/chairs/wood-chair.html

but when I am trying to search for the product directly from the search box and move into the product page from there the URL becomes

http://example.com/wood-chair.html

the category id becomes 2 and this happens with every category and it shows the category name as default category when I go to the product page through search box. How can I resolve this? kindly let me know if there is any parameter that doesn't change on the product page which can enable me to display the content based on the category the product belongs to.


texts: Total Paid amount is mismatch with captured amount in paypal order

texts: I have some inconsistent orders having issue with total paid amount difference with captured amount for paypal payment orders. Here I have one example order having total paid $160.51 and captured amount is $159.41. capture amount is less than total paid where order contains bundle items one is simple product and other is digital product. And the difference amount $1.1 is shipping_tax_amount. How to debug Paypal total collections.


texts:
after copy files into new server - magento shop working good, but when i goto in product page - i see HTTP ERROR or Internal server error HTTP 500, in admin panel -
Index Management - re-index - good, Cache Storage Management also good - green status, in log - not error, how i can fix product page? can you tell me?


texts: White blank screen in custom module production mode magento 2

texts: I have created a custom module in Magento 2. In developer mode it is working well, however same module does not show any content in the production mode of Magento its show only white screen. There is no error in logs, apache, system, debug logs are empty. Any suggestions?


texts: Set rules for 'Payment Information' on Onepage Checkout

texts:
I'd like to add in some rules for the 'Payment Information' section of the Magento Onepage Checkout.

Currently my site will show the options:

Debit/Credit Card
PayPal
Invoice Organisation

I'd like to only show the 'Invoice' option if they have selected a particular option within the Billing Payment section.

Which file should I edit to access the options within the Payment Section on the onepage checkout? Can anyone point me in the right direction?


texts: Config default image not saved (On first save, when no new image uploaded)

texts:
I have a module with some config options that are used in the admin configuration section, and these have defaults applied.

When the user has never pressed save in that section, all the defaults are read correctly. When they click save for the first time, magento correctly stores all the defaults in the database (assuming they haven't changed anything), however any default images are instead set to 'null', wiping them from the config as if they'd never been set.

This only happens on the first ever save, and only if they haven't assigned a new image to that config value.

Is there a way to have magento store the default image path provided at all?


texts: In Magento 1, Restrict a coupon code to a Not logged In customer Group?

texts: How to restrict coupon code for the guest user? I want to the guest user can apply code only one-time.on the other hand other customer groups can apply same coupon code more than one time.


texts: Product shown even though it's deactivated?

texts:
Magento 2.2.3

I disabled a product using the switch, cleared the cache, re-indexed and checked if it is still shown on the front end ... and it is. I also checked the scope I disabled it in, it's disabled for all stores.

Any idea what might be wrong?

Thanks!


texts: How to make a form field readonly using ui-components?

texts:
I have this ui-component definition of a form field In my Magento 2 module.

    <field name="name">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="dataType" xsi:type="string">text</item>
                <item name="label" xsi:type="string" translate="true">Some Label</item>
                <item name="formElement" xsi:type="string">input</item>
                <item name="source" xsi:type="string">something_here</item>
                <item name="sortOrder" xsi:type="number">10</item>
                <item name="dataScope" xsi:type="string">name</item>
                <item name="notice" xsi:type="string" translate="true">Enter something here</item>
                <item name="validation" xsi:type="array">
                    <item name="required-entry" xsi:type="boolean">true</item>
                </item>
            </item>
        </argument>
    </field>

and I'm trying to make it readonly. Not disabled. Just readonly.
I tried adding:

<item name="readonly" xsi:type="boolean">true</item>

to the config section, but obviously I failed.
How can I make the field readonly? Can I make the field readonly?


texts: Magento 2, add `company's name` in invoice PDF file?

texts:
Using Magento 2.2, Invoice, PDF. I want to add new text block into pdf invoice. What do I need to do?

  Printed Order Invoice


texts: What are the steps to migrate a Magento Go site to Magento Community edition?

texts:
Since Magento Go is closing, I need to move a site from Go to the Magento Community edition and would very much appreciate if someone could advise me on how to do this. I've tried Googling, but unfortunately most of the results are companies offering to do it for you (for a hefty sum). Essentially, I want the site to remain pretty much as it is now in terms of appearance - is this possible?

Many thanks!


texts: Magento 2 customers import error : "Please make sure attribute "city" is not empty. in row(s): 1"

texts:
i am trying to import a csv file of magento1 in magento2 so all is going good but the only error magento gives me on the time of importing is

  Please make sure attribute "city" is not empty. in row(s): 1

this because some of customers have no city in address_attribute in CSV file.

so could anyone tell me that how may i correct this error


texts: Total Payment & recurring Payment option for a product

texts:
If I have created recurring profile for one product then is it compulsory for me to pay in installments or I can pay total amount also.

Selection between total amount pay or pay in installments is possible or not?


texts: Magento Notfication Bar Not Displaying in Magento 1.9.3.6

texts: I usually set up a notification to inform our customers of any holiday or shutdown breaks we have. This year however I've been unable to. Unsure if it's an extension conflict or in light of some recent security patches. Has anyone else experienced and remedied this?


texts:
This question was already asked, but I want to know is there some issue if I use following solution to limit the backorder qty:
I'll set "Qty for Item's Status to Become Out of Stock" as negative number on Inventory tab of product edit page and re-assign this negative number via catalog_product_prepare_save observer. Thanks.


texts:
$this->getsummarycount() not working custom block. i want add cart widget template custom block. but $_cartQty = $this->getSummaryCount(); can't get value can you tell me any helper file or any block call for it.

    <?php $_cartQty = $this->getSummaryCount(); ?>

        <?php echo $this->__('My Cart') ?>

    <?php if ($_cartQty>0): ?>

            <?php if ($_cartQty==1): ?>

<?php echo $this->__('There is 1 item in your cart.', $this->getUrl('checkout/cart')) ?>

            <?php else: ?>

<?php echo $this->__('There are %s items in your cart.', $this->getUrl('checkout/cart'), $_cartQty) ?>

            <?php endif ?>

                <?php if ($this->canApplyMsrp()): ?>
                    <?php echo $this->__('ORDER TOTAL WILL BE DISPLAYED BEFORE YOU SUBMIT THE ORDER'); ?>
                <?php else: ?>
                    <?php echo $this->__('Cart Subtotal:') ?> <?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?>
                    <?php if ($_subtotalInclTax = $this->getSubtotalInclTax()): ?>

(<?php echo Mage::helper('checkout')->formatPrice($_subtotalInclTax) ?> <?php echo Mage::helper('tax')->getIncExcText(true) ?>)
                    <?php endif; ?>
                <?php endif; ?>

    <?php endif ?>
    <?php if($_cartQty && $this->isPossibleOnepageCheckout()): ?>

        <?php echo $this->getChildHtml('extra_actions') ?>
        <button type="button" title="<?php echo $this->__('Checkout') ?>" class="button" onclick="setLocation('<?php echo $this->getCheckoutUrl() ?>')"><?php echo $this->__('Checkout') ?></button>

    <?php endif ?>
    <?php $_items = $this->getRecentItems() ?>
    <?php if(count($_items)): ?>

<?php echo $this->__('Recently added item(s)') ?>

        <?php foreach($_items as $_item): ?>
            <?php echo $this->getItemHtml($_item) ?>
        <?php endforeach; ?>

    <?php else: ?>

<?php echo $this->__('You have no items in your shopping cart.') ?>

    <?php endif ?>


texts: Magento 2 | Observer for checkout payment-method

texts:
Is there an event for the checkout when you choose the payment method?

So when the site where you choose the payment method is called I want the event to trigger.

Thanks!


texts:
Anyone having this issue?

data migration > EAV Step

  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-Migration_Default' for key 'EAV_ATTRIBUTE_SET_ENTITY_TYPE_ID_ATTRIBUTE_SET_NAME'


texts:
we have upgraded 2.2.0 to 2.2.1 via composer and we got this error any one can help ?

.Warning: DOMDocument::loadXML(): Input is not proper UTF-8, indicate encoding ! Bytes: 0xA9 0x20 0x4D 0x61 in Entity, line: 3 in .../vendor/magento/framework/Config/Theme.php on line 75


texts: how can I show full breadcrumbs category path on product page in Magento 2.3?

texts:
How can I show the full breadcrumbs category path on the product page in Magento 2.3?

i want this path complete on product detail page in breadcrumbs


texts: get the base price and final price with out html in collection Magento 2

texts: I have an issue that i am getting the base price and final price in html while rendering collection,I need a fix so that i can get the base price and final price separately in magento 2


texts: How to Create Custom Module in Magento 1.9

texts:
I am using magento version 1.9

I want to create module for FAQ's Questions and Answers.

In this module I want to create one form on front-end for inserting FAQ and in back-end admin panel. I want custom grid using which admin can view,edit delete,update,search FAQ as well as admin can also send response to the client's FAQ.

Thanks in advance


texts: Fonts not showing for desktop layout. Why?

texts:
I have css that is setting font icon content

On mobile it shows fine here:

But on desktop it is not showing:

It's the same layout, the css is loaded, the icons are loaded.  What is happening?


texts: Magento 2 - Get multi-store addresses REST API

texts:
I need to fetch the stores addresses using REST API.

We already have storeConfigs but this doesn't return the addresses.

GET  /V1/store/storeConfigs

How can we get the address mentioned in the Store Information tab. Also the Address is Website scoped but I need Store View based.

Thanks in advance.


texts: Layered navigation doesn't appear in mobile view (Magento 2)

texts: I created a layered navigation using an attribute to filter colors. This color filter is the only filter I am using and works in desktop view well. But in mobile view the filter doesn't show up. I also tried it in Luma Theme but it doesn't show up there too. Do I need to activate layered navigation for mobile somewhere?


texts:
I'm looking for a "INSERT IGNORE INTO" option with Magento.
I've created a custom table, and this table is updated every time an order is successfull (this is working). However, I want it only to insert in there if it is not existing yet on all 3 values.

My table

| customer_id (int) | customer_type (enum) | product_id (int) | id

customer_id registers the customers user id OR the session id if the customer is not logged in
customer_type register if it's logged or session
product_id registers the id the of the product
id is the row identifier

On the succes page all these options are run through and added to my table. However if there is allready a row with all 3 exact matching it doesn't need to add it in there.

Anyone has a clue how to handle this?


texts:
I have been searching for hours, trying to avoid the "already asked and answered" and the "LMGTFY" remark.  The problem is, all the answers I'm finding are either not applicable to my environment (I'm not running Vagrant, WAMPP/XAMPP/MAMPP, and I haven't installed anything on top of, updated, or otherwise fiddled with Magento at all) or the suggested solutions are not my problem (the .htaccess file is already in the docroot, user:group is already set to www-data:www-data, app/etc/use_cache.ser doesn't exist, therefore, cannot be deleted).  So, if I've somehow overlooked the fix, please accept my apology and just point me to the right place.

This is a brand new, fresh install of Magento 2 (Magento-CE-2.1.9-2017-09-13-03-35-18.tar.gz to be exact) running on a dedicated Ubuntu 16.04 x64 server running on a DigitalOcean droplet.  This is a development server that will only be accessed via IP and eventually moved to a permanent host.  Listed are the steps I took.  At the end of the web-based setup, I hit the big, orange "Launch Admin" button, and got a 404 error.  I added /admin/ to the URL, then I added /admin/index.php ... neither worked.  Yes, I made sure I was using the correct "admin" username.

Ensured LAMP stack in place
Added user 'magento' to mysql and granted all permissions.  (GRANT ALL ON magento.* to magento@localhost; FLUSH PRIVILEGES; etc)
To /etc/apache2/sites-available/000-default.conf, I added:

 DocumentRoot /var/www/html // added for clarity
 // Open bracket not showing up, even when using  &  tags
-open bracket -Directory /var/www/html>
 Options Indexes FollowSymLinks Multiviews
 AllowOverride All
 Order allow,deny
 allow from all
 -open-bracket-/Directory>

apache2ctl configtest (Syntax OK)
Restarted apache
tar xvzf Magento-CE-2.1.9-2017-09-13-03-35-18.tar.gz (from docroot: /var/www/html)
chown -R www-data:www-data /var/www/html
chmod -R 755 /var/www/html  // on a previous attempt, I set the entire tree to 777
Fired up the browser, ran http:/xxx.xxx.xxx.xxx/setup
Passed all checkpoints and web portion of setup successfully completed
Hit "Launch Admin", got 404
Checked front page - content visible, appears to be missing CSS.

This wasn't my first attempt.  I actually verified these with an instruction video, so I could be sure I covered everything.

I apologize for the long read, and I've tried to take most of the frustration out of my tone, but I've never had so much trouble installing anything. Ever.


texts:
I am trying to import product from magento but when I try import I will get below errors.

I have flushed all category then update the new category. Got the error message below:

General system exception happened
Additional data: URL key for the specified store already exists.

Please help me with this.


texts: how to Implement the option of choosing product weight on drop down option

texts: i want to display as like above image in my website in product list page.


texts: How to Add Custom Attribute Variable in Invoice Magento 1.9.2?

texts: I have created two custom attribute code. I assigned one of these code on product. I want to show product name alongwith this code in invoice. How can i implement this?


texts:
I am getting an error message when I use any date field for products or coupons. It tells me to enter a valid date. The dates are valid and there is no range that satisfies the system.

Some payment cards are being rejected saying invalid date also. Not sure if this is related.


texts: How to display success message after ajax form summit

texts:
I've been working on this code I found somewhere. I use it to submit the Send to Friend form from a popup. It works but I can't get it to display the success message after it submits the form. Right now after it submits the form it just disappears. Maybe someone good at ajax can see what's the matter with it. Thanks

<script type="text/javascript">
    //<![CDATA[
        var formId = 'product_sendtofriend_form';
        var sendfriendForm = new VarienForm(formId, false);
        var postUrl = '<?php echo $this->getSendUrl() ?>';
        function doAjax() {
            if (sendfriendForm.validator.validate()) {
                new Ajax.Updater(
                    { success:'formSuccess' }, postUrl, {
                        method:'post',
                        asynchronous:true,
                        evalScripts:false,
                        onComplete:function(request, json) {
                            Element.hide(formId);
                            Element.show('formSuccess');
                        },
                        onLoading:function(request, json){
                            Element.show('formLoader');
                        },
                        parameters: $(formId).serialize(true),
                    }
                );
            }
        }

        new Event.observe(formId, 'submit', function(e){
            e.stop();
            doAjax();
        });
    //]]>
    </script>


texts:
I want to connect the Instagram shop with Magento 2.3
on step2:
Magento connect > Magento connect manager ( I could not found this in Admin console )


texts: Add foreign key on UpgradeSchema return "Foreign key constraint is incorrectly formed"?

texts:
I want to add a new attribute to catalog_product_website table named id_admin_user to make relation with admin_user table.

PS: I want to do that to save the ID of the admin user who added a product.

So, I create an UpgradeSchema with this code

$setup->getConnection()->addColumn(
    $setup->getTable('catalog_product_website'),
    'id_admin_user',
    [
        'type' => Table::TYPE_INTEGER,
        'size' => null,
        'nullable' => false,
        'comment' => 'ID ADMIN USER'
    ]
);
$setup->getConnection()->addForeignKey(
    $setup->getFkName(
        'catalog_product_website',
        'id_admin_user',
        'admin_user',
        'user_id'
    ),
    $setup->getTable('catalog_product_website'),
    'id_admin_user',

    $setup->getTable('admin_user'),
    'user_id',
    Table::ACTION_CASCADE
);

But when I execute the setup:upgrade I get this error

SQLSTATE[HY000]: General error: 1005 Can't create table `magento_test`.`#sql-357_165b` (errno: 150 "Foreign key constraint is incorrectly formed")

is there any solution?


texts: Magento 2: SEO tab not visible in product form

texts:
SEO tab is not visible in product Edit and ADD form.

I guess this issue occurs after migration but not confirm.


texts:
If I insert a widget in content in CMS, is it possible to define the name of the widget? Like

{{widget type="catalog/product_widget_new" name="NAME_HERE" display_type="all_products" products_count="2" template="catalog/product/widget/new/content/new_grid.phtml"}}

So I can use it later in my code?


texts: Unable to place new customer orders in admin backend

texts:
Currently unable to place new customer orders in our magento store's admin backend via Sales > Orders > Create New Order > Select customer from list. The page doesn't fully load. See screenshot below:

When attempting to do so the following is recored in our server's error_log file.

  2015/07/27 20:57:30 [error] 45314#0: *265562 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function getCustomerIdFieldName() on a non-object in /app/code/core/Mage/Wishlist/Model/Wishlist.php on line 95" while reading response header from upstream, client: 127.0.0.1, server: www.example.com, request: "POST /index.php/admin/sales_order_create/loadBlock/key/6b6b15a2f212013a5e09a87fc4915456/block/data?isAjax=true HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "www.example.com", referrer: "http://www.example.com/index.php/admin/sales_order_create/index/key/77cb0182ed34467e216b34c8d56e52ee/"

I'm also seeing the following error in my browsers console:

  Failed to load resource: the server responded with a status of 503 (Service Unavailable) -http://www.example.com/index.php/admin/sales_order_create/loadBlock/key/54f74380de40f378caabe0adbdd6b4c3/block/data?isAjax=true

Can anyone help please?


texts: Shopping cart page, update quantity by ajax

texts:
Issue:-

Is there a ready solution to update shopping cart page by ajax url/checkout/cart/?

I found similar questions but there is no working solution, but as for me, it's very useful feature and should be some implementation.

I not ready to provide a code, trying to implement this solution for my needs
https://magento.stackexchange.com/questions/187226/ajax-cart-validation-on-change-qty?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa


texts: Magento 2 select one color swatch and disable click?

texts:
I want to disable click on magento 2 color swatch but they are not working if one color is here i use this code in swatch-renderer.js file but they are not working
      // Connect Tooltip
        container
            .find('[option-type="1"], [option-type="2"], [option-type="0"], [option-type="3"]')
            .SwatchRendererTooltip();

        // Hide all elements below more button
        $('.' + classes.moreButton).nextAll().hide();

        // Handle events like click or change
        $widget._EventListener();

        // Rewind options
        $widget._Rewind(container);

        //Emulate click on all swatches from Request
        $widget._EmulateSelected($.parseQuery());
        $widget._EmulateSelected($widget._getSelectedAttributes());

        var swatchLength = $('.swatch-option.color').length; // if color attribute
        if(swatchLength == 1){
           if($('.swatch-attribute').hasClass("color")){

             $('.swatch-option.color').first().click();
            $('.swatch-option.color').prop('disabled',true)
            }
        }
    },


texts: How can I select 'Shipping' step on checkout page after updating product item from minicart

texts:
How can I select Shipping step on checkout page after updating product item from minicart?

when I am on Review & Payment step, at that time if I click on incremental of mini cart then page does a refresh & lands me back on 'Review & Payment' step, I want it to land on step 1 i.e. 'Shipping' step


texts: Required field not being required in some orders

texts: The phone number field is required in my store during checkout but some orders are coming in without a phone number. Can anyone help with this issue?


texts:
We're using Varnish as Page Cache, but we need to make a Ajax-Request on every page view to load the dynamic Stuff. In our case it's:

global messages
mini Cart
form key

We reduced the amount of ajax request on a page by merging everything to a single ajax request, but my hope would be to avoid any hit on Magento for a varnish cached Page. I have some ideas to accomplish this and hope someone has already experience and give me some tips.

My Ideas for:

Global Messages

Rewrite the Core and save a serialized object with the messages in a cookie. With JS I'am able to read the cookie and render the messages.

Mini Cart

quite the same like my idea for global messages. If there is a change in the quote, I save a serialized object with all needed data in a cookie and render the cart with JS. The problem I see is, that the Object could be bigger then the allowed cookie size of ~4000 bytes. A solution could be to reduce the size of displayed products in the mini cart.
The second problem I see is to have the same expire date for the custom cookie and the frontend cookie.

Form-Key

actually I have no idea to solve this, but maybe there is no solution,

Problems I have with ESI:
There are still Magento hits and if I get it right, the page load is slower, because the request have to wait for the ESI Block. But maybe it could be a solution for the form_keys and the global messages, because the rendering ist quite fast.
Another reason I try to avoid ESI for the mini cart is, we do a lot of stuff in the card like adding free products and do custom price calculations. It took on average 150ms to render the mini cart.

//EDIT
I have read more about ESI and I actually don't see the benefit. Technically its the same like a ajax request. In Magento you have to create a controller to return the HTML of the block and include it in your template. Varnish call this URL exactly the same like a user would do. For that reason you have to pass the Varnish cache for this URL and you have a Cache MISS for that URL


texts: Check Customer and product against order

texts:
I want to check the customer and specific product against any order.Like if it exist then i want to show this customer purchased product.I am trying this code but no luck.

$orders = Mage::getModel("sales/order")->getCollection()
                            ->addAttributeToSelect('*')
                            ->addFieldToFilter('customer_id', $CustomerId());

$data = $orders->getData();
                echo $data['increment_id'],">>>";
                print_r($data);
               $order = Mage::getModel('sales/order')->loadByIncrementID($data[0]['increment_id']);
#get all items
$items = $order->getAllItems();
$itemcount= count($items);
$data = array();
$i=0;
#loop for all order items
foreach ($items as $itemId => $item)
{
  $data[$i]['name'] = $item->getName();
  $data[$i]['id'] = $item->getProductId();
}

As there any way where i can adjust both customer and proudct on same filter.Thanks in advance


texts: Magento2 use default password validation in custom module

texts:
Can anyone let me know how to use default magento server side validation for password field in my custom module password string?I have dealer registration form and i have password field there and i want to use magento password server side validation there.

I tried to use checkPasswordStrength() function of core Magento by calling that function in my module but it throws following error:
few argument passed in __construct() method.

Please let me know which extra arguments i will have to pass or any other way?