texts: Magento save method not working with Customer Model Object

texts:
I have used below code to update the custom column in customer_entity table, but the values are not updating in database.

$customer = Mage::getModel('customer/customer')->load($customerId);
                    $customer->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
                    $customer->setLoginActive(0);

                    $customer->save();

It seems to be the save() is Failing. I have checked by Clearing the var/cache folder too.


texts: Is there any default options available to create a websocket connection?

texts: i want to pop up  notification to the admin when a customer creates an order. how to do this using web socket connection.


texts:
Here am trying to override a admin page, but it cannot override,
here is admin path:

/public_html/vendor/magento/module-shipping/view/frontend/templates/tracking/details.phtml

Override path :

/public_html/app/design/adminhtml/Magento/Magento_Shipping/adminhtml/templates/tracking/details.phtml

OR

/public_html/app/design/adminhtml/Magento/Magento_Shipping/templates/tracking/details.phtml

Where am doing wrong, Can I get help? Thank you in advance.


texts: Identify translation string and disadvantages of inline translation

texts:
I have successfully translated Magento 2 by following this video:
https://www.youtube.com/watch?v=wtVperaeOac

The translation pack that I downloaded was not perfect but a good start and I have added translation strings to the csv file that I uploaded under
/applications/mvjskrbmgy/public_html/app/i18n/myname/sv_se
and it have worked as soon as I have reindexed and flushed the cache.

However I cant find some of the untranslated strings in the file and I wonder  if there is a way to identify the specific string. I know I can use inline translation but when I have done that in the past it often leads to other strings malfunction, I dont know why and would love to know about the difference between inline translation and translating by using the csv file. I know that inline translation only works for the current storeview but is there any other difference?

An example of a string that I cant find in the translation csv file is the label "Details" of the product page. See image. How can I identify that string?


texts: How adding a custom select attribute with translated label depending on a language on frontend

texts:
I would like to have a dropdown attribute on product, which has a translatable label depending on the language in backend and in frontend. I managed to display the dropdown in the backend with a translated label depending on the language, but the field is not displayed in search in frontend.

Thanks for your help

I create a mysql setup in app/code/local/Custom/Shared/sql/upgrade-x.x.x-x.x.x.php

$installer->addAttribute('catalog_product', 'robustness', array(
    'filterable' => true,
    'filterable_in_search' => true,
    'group' => 'Custom',
    'input' => 'select',
    'label' => 'Robustness',
    'required' => true,
    'searchable' => true,
    'source' => 'custom/attribute_source_robustness',
    'type' => 'int',
    'user_defined' => true,
    'used_in_product_listing' => true,
    'visible_in_advanced_search' => true,
    'visible_on_front' => true
));

I also create a Source model in app/code/local/Custom/Shared/Model/Attribute/Source/Robustness.php

class Custom_Shared_Model_Attribute_Source_Robustness extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
{
    /**
     * {@inheritdoc}
     */
    public function getAllOptions()
    {
        if (!$this->_options) {
            $this->_options = array(
                0 => array(
                    'value' => 0,
                    'label' => Mage::helper('custom')->__('No')
                ),
                1 => array(
                    'value' => 1,
                    'label' => Mage::helper('custom')->__('Yes')
                )
            );
        }

        return $this->_options;
    }
}

The config in app/code/local/Custom/Shared/etc/config.xml

<global>
    ...

    <helpers>
        <custom>
            <class>Custom_Shared_Helper</class>
        </custom>
    </helpers>

    <models>
        <custom>
            <class>Custom_Shared_Model</class>
        </custom>
    </models>
</global>


texts: Set registry data only for the custom page

texts:
I have a custom page created by our module. I am registering a registery in our controller as below

Mage::register('customPage', 'customPage');

After the visit to this page, while go to the other pages, it's still in registered condition. I need to unset this registery in all other pages. How to do it?


texts: Magento 2 : How to Add Google Analytics when Item Added to Minicart

texts:
I want to track google analytics when user add item to minicart.
I noticed that it make an ajax call to
customer/section/load. So I want to add my google analytics code when these ajax success.

But I am not able to find proper file.


texts: Persistent Shopping Cart & session.gc_maxlifetime

texts:
I've received some conflicting information online about this, but when enabling Magento's native Persistent Shopping Cart is it necessary to also modify the php value for session.gc_maxlifetime to match the time in seconds?

For example, if you look at this third party module on GitHub:

clockworkgeek/Magento-Remember-Me

You'll see it mentions:

  This extension works by extending the lifetime of cookies, in all
  likelihood your server will also need to extend the lifetime of it's
  sessions. To do this add the following to the site's .htaccess file:

php_value session.gc_maxlifetime 2592000

Do I need to change the PHP value, or will it function regardless?


texts: How to add tabs in custom module in magento 2

texts:
I am creating a custom module. In module created a block view (phtml) and trying to add the custom tabs.
I have tried below:

How can I download eBooks?

What format are Bookstore eBooks?

Once you complete your eBook purchase, the download link for your eBook will be available in your account.

Bookstore eBooks can be downloaded as a PDF, EPUB or MOBI file. They can also be viewed online.

Also tried the

require([
    'jquery',
    'mage/tabs'
], function($){

Even added the CSS directly in phtml (testing only).

<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">

But they are not working.
Am I missing anything? Please let me guide.


texts: How get customers that didn't bought in last X months in Magento?

texts:
I want to get customers list that didn't bought in last X months in magento 1  or 2?

Like:

Last 12 months

Last 9 months

Last 20 months

Last 36 months


texts:
I created my first widget but it's very simple and i want to create my widget with layout(using phtml page).

my widget :

Code inapp/code/local/AP/AD/Block/AD.php:

<?php
class AP_AD_Block_AD
extends Mage_Core_Block_Template
implements Mage_Widget_Block_Interface
{
  protected function _toHtml()
  {
    $searchCollection = Mage::getModel('catalogsearch/query')
    ->getResourceCollection()
    ->setOrder('popularity', 'desc');
    $searchCollection->getSelect()->limit(3,0);
    $html  = '
' ;
    $html  = '<input type="text" id="validNumber"/>' ;
    $html  = '<input type="submit" id="validNumber"/>' ;
    $html .= '
Top Searches
';
    foreach($searchCollection as $search){
     $html .= '
' . $search->query_text . "
";
   }
   $html .= "
";

   return $html ;
 }

};

Code in app/code/local/AP/AD/etc/config.xml:

<?xml version="1.0"?>
<config>
  <modules>
    <AP_AD>
      <version>0.1.0</version>
    </AP_AD>
  </modules>
  <global>
    <blocks>
      <AD>
        <class>AP_AD_Block</class>
      </AD>
    </blocks>
    <helpers>
      <AD>
        <class>AP_AD_Helper</class>
      </AD>
    </helpers>
  </global>
</config>

in app/code/local/AP/AD/etc/widget.xml

<?xml version="1.0"?>
<widgets>
    <AD_topsearches type="AD/adslValidate">
        <name>AD Validations</name>
        <description type="desc">Check Validate AD</description>
    </AD_topsearches>
</widgets>

<referenceContainer name="content.top">
    <block class="Magento\Catalog\Block\Category\Widget\Link" name="demoBlock" template="widget/static_block/default.phtml">
        <action method="setData">
            <argument name="id_path" xsi:type="string">category/20</argument>
            <argument name="title" xsi:type="string">Demo Category Title</argument>
            <argument name="template" xsi:type="string">category/widget/link/link_inline.phtml</argument>
        </action>
    </block>
</referenceContainer>

in app/code/local/AP/AD/Helper/data.php

<?php
class AP_AD_Helper_Data
extends Mage_Core_Helper_Abstract
{
}

in app/code/etc/modules/AP_AD.xml

<?xml version="1.0" ?>
<config>
    <modules>
        <AP_AD>
            <active>true</active>
            <codePool>local</codePool>
            <depends>
                <Mage_Cms />
            </depends>
        </AP_AD>
    </modules>
</config>


texts: Magento 2.3 cleanest way to remove MSI to speed up store

texts:
My question is simple.  What is the cleanest way to speed up Magento 2.3.x by removing MSI.

In my opinion this is a B2B feature and most small merchants won't be interested in this feature. IMHO it is adding MySQL overhead.

Has anyone had any success disabling this without causing issues?


texts: One Admin, two websites, one with tax in Euro and one without tax in Dollar?

texts:
we have one store in which we have tax and sell in Euros. I would like to setup a second website, not store view, and then have prices in Dollar and without tax.
The Dollar price should not be recalculated automatically. I have different dollar prices that shouldn't get converted from Euro.

For example Product ABC is
Website Store Europe = 199,- Euro incl. Tax
Website Store USA = 179,- Dollar excl. Tax

The price should be shown on the Product Details Page.
Is this possible out of the box?

Thanks.


texts: AddFieldToFilter And inside OR condition

texts:
I want to achieve the following query in magento custom model.

select * form calendar where date >='2015-04-13' AND start_date <='2015-04-14' AND (is_available != 1 or  (is_available == 1 and rooms_avil<=0))

How to achieve this in magento with AddFieldToFilter ? Not AddAttributeToFilter.


texts:
I would like to change a little the way how is my table will look like and behave but I can't locate the class/function which is generating tables. Can anyone please tell me where to look at?
All I wanted to achieve was make my table sortable (vertically).
So loaded jQuery.ui, added .js into layout and problem solved.
Now my module allow me to set Brands order quickly just using drag/drop mechanism.

I can use it on any menu to change order as I want ;)


texts:
How can I change the color of confirmation button (forgot password option) on email?

I tried from css, but I think it doesn't support. I'm trying to find where is the main .less file for this.


texts: get configuration scope selector for custom module

texts:
I'm working on a module where I need to save the records based on the scope of website and store. For that I need to have the select box as its in the system->configuration.

How can I get that select box in my form and save the website/store value in database so that it can be displayed in the specific store/website? Any suggestions on it?
Now I'm trying it breaking into two fields -> website and store. Now, how can I change the options in store based on the website selected?


texts: Magento 2: Configurable product dropdown attributes on category listing page

texts:
I am looking for an option to get the configurable product attributes with each product on category listing page.

Magento 2 defaults to swatches only. How can we change it to dropdown?

Thanks


texts: Continue Button not moving from Billing address to next section

texts: I am currently developing a website but have a problem with the create an account page. When you have filled out the billing information, and select the Ship to the Address option and press continue, it doesn't do anything. When you select "Ship to a different address" it will go to the Shipping address pane. The website is still in development, but can't get passed this page.


texts: There has been an error processing your request. Exception printing is disabled by default for security reasons. Error log record number:

texts:
I get an error page in Magento that states:

  There has been an error processing your request

  Exception printing is disabled by default for security reasons.

  Error log record number: [some long number]

What can I do to fix the problem?


texts:
I have created cms page name : contact us identifier: contact-us,
my layout:
<referenceBlock name="contactForm" template="Vendor_Block::form.phtml">
    <block class="Vendor\Module\Block\Fields" template="Vendor_Block::fields.phtml" name="contact.fields" />
    <block class="Magento\Cms\Block\Block" name="cms.contact.us">
        <arguments>
            <argument name="block_id" xsi:type="string">contact-us</argument>
        </arguments>
    </block>
</referenceBlock>

I am getting following error on localhost/magento/contact-us
We're sorry, an error has occurred while generating this content.


texts: Loading just an attribute from a model and saving it

texts: What is the most efficient way (using Magento methods) to load just a customer attribute, changing its value and saving it.


texts: How to re-order My Account navigation links

texts:
My question might be possibly duplicate of Magento 2 - How to rearrange Customer "My Account" links
but I really have no idea why my code is not working as expected

My current links order is:

My Account
My Orders
My Downloadable Products
My Wish List
...
...
Newsletter Subscriptions
My Current Designs
Preview Order Artwork
My Saved Quotes
My Credit Cards (eWAY)

I want it like :

My Account
My Orders
My Current Designs
Preview Order Artwork
My Saved Quotes
My Wish List
...
...
Newsletter Subscriptions
My Credit Cards (eWAY)

This is my code

  app/design/frontend/Vendor/module/Magento_Customer/layout/customer_account.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
   <body>
     <referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true" />
     <move element="customer-account-navigation-my-designs" destination="customer_account_navigation" after="customer-account-navigation-orders-link" />
     <move element="customer-account-navigation-mycard" destination="customer_account_navigation" after="customer-account-navigation-my-designs" />
     <move element="customer-account-navigation-my-saved-cards" destination="customer_account_navigation" after="customer-account-navigation-mycard" />
   </body>
</page>

but my output is this.


texts:
suddenly I am getting this

  Fatal error: Call to a member function getBackend() on a non-object"

in Magento ver. 1.9.2.4. I am just a beginner of Magento.

My site is working fine but suddenly arriving below fatal error. nothing change into code.

  Fatal error: Call to a member function getBackend() on a non-object in /code/core/Mage/Eav/Model/Entity/Abstract.php on line 816

any one have idea about this?


texts:
I have this custom payment method:

        <input type="radio"
               name="payment[method]"
               class="radio"
               data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/>

                <button class="action primary checkout"
                        type="submit"
                        data-bind="
                        click: placeOrder,
                        attr: {title: $t('Place Order')},
                        css: {disabled: !isPlaceOrderActionAllowed()},
                        enable: (getCode() == isChecked())
                        "
                        disabled>

                </button>

Everything works fine but it does not show the billing address selector, see red square below from other payment method:

Any clue on why this is happening?
Thanks !


texts:
I created a script that opens the minicart. Now adding product is made using JS/Ajax and I don't refresh the page. Now the problem is the Basket count is not being updated when I add to cart. Is there a way to manually triggers the headerCartUpdate function from Magento_Theme headerBasket.js?

So basically I want to call it after the ajaxSubmit of the catalog-add-to-cart.js


texts: Call Wordpress Page into CMS page with Fishpig extension

texts: Does anyone know the proper code to load a Page from Wordpress into a CMS page using the Fishpig extension? I have seen postings regarding how to load Posts from Wordpress but nothing about Pages.


texts: Loading a product collection by a specific attribute drop-down value

texts:
I am trying to load a specific virtual products with its custom options, but instead I keep getting an empty array.

My attribute is 'part_identifier' in the attribute set 'boat_part' It is a drop-down type attribute with several options. The option I am trying to pull by is 'Look'.

Here is my code:

$attribute = 'msh_boat_part_identifier';

$boatLookProducts = Mage::getModel('catalog/product')
    ->getCollection()
    ->addAttributeToSelect('*')
    ->addAttributeToFilter($attribute, array('like'=>'Look'))
    ->load()
    ->getItems();

foreach($boatLookProducts as $boatLookProduct)
{
    $return[] = array(
        "id" => (int)$boatLookProduct->getEntityId(),
        "name" => $boatLookProduct->getName(),
        "type" => "profile",
        "shortDesc" => $boatLookProduct->getShortDescription(),
        "desc" => $boatLookProduct->getDescription(),
        "active" => ($boatLookProduct->getStatus() === "2" ? false : true)
    );
}
echo Mage::helper('pb')->ConvertToJson($return);

In my query for the collection, if I change the array to

->addAttributeToFilter($attribute, array('like'=>'%%'))

it will successfully return all proructs, but I cant get the specific one I want!


texts: How to get Filters on custom products listing?

texts:
I have created a cms page on which i am showing all the products which are on sale now i need filters on the same page but it filters are not coming here.

I have tried placing the filter block in Layout Update XML of CMS Page but it didn't work.

Hope anyone knows the solution.

Thanks in advance


texts: Magento 2 - Uncheck Billing and Shipping are the same for selected Payment Method

texts:
I'm trying to uncheck Billing and Shipping Address are the same but for only one payment method and leave all the other with this option selected but I'm unable to do it with this solution bellow. The bellow solution will uncheck all boxes for all payment methods and I want to uncheck just one. Does anyone have an idea on how to do that?

Copy the following file to your theme:

vendor/magento/module-checkout/view/frontend/web/js/model/checkout-data-resolver.js

applyBillingAddress: function () {
    var shippingAddress;

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

        return;
    }
    shippingAddress = quote.shippingAddress();

    if (shippingAddress &&
        shippingAddress.canUseForBilling() &&
        (shippingAddress.isDefaultShipping() || !quote.isVirtual())
    ) {
        if(quote.shippingMethod()['method_code']=='store pick_up code'){
           //uncheck here
        }else{
           //check here
           selectBillingAddress(quote.shippingAddress());
        }
    }
}

And also copy the following file to your theme:

vendor/magento/module-checkout/view/frontend/web/js/model/shipping-save-processor/default.js

saveShippingInformation: function () {
    var payload;

    if (!quote.billingAddress()) {
        if(quote.shippingMethod()['method_code']=='store pick_up code'){
           //uncheck here
        }else{
           //check here
           selectBillingAddress(quote.shippingAddress());
        }
    }

    payload = {
        addressInformation: {
            'shipping_address': quote.shippingAddress(),
            'billing_address': quote.billingAddress(),
            'shipping_method_code': quote.shippingMethod()['method_code'],
            'shipping_carrier_code': quote.shippingMethod()['carrier_code']
        }
    };

    payloadExtender(payload);

    fullScreenLoader.startLoader();

    return storage.post(
        resourceUrlManager.getUrlForSetShippingInformation(quote),
        JSON.stringify(payload)
    ).done(
        function (response) {
            quote.setTotals(response.totals);
            paymentService.setPaymentMethods(methodConverter(response['payment_methods']));
            fullScreenLoader.stopLoader();
        }
    ).fail(
        function (response) {
            errorProcessor.process(response);
            fullScreenLoader.stopLoader();
        }
    );
}

Don't forget to run static-content:deploy and cache flush.


texts:
I am using Magento 2.2.5 and I have 3 tax zones for Switzerland, one with 0%, one with 19% and one with 7%.

I also have a tax rule which includes there 3 tax zones. Anyway, whenever I go to the checkout and choose Switzerland as country, the price still includes 19% tax.

ANything setup the wrong way?


texts:
I have a question about filterSearch. While I type '27000000002'. It doesn't work properly. (See below picture)

This is my setting on the .xml file.

  <dataSource name="acer_pushorderstatus_grid_data_source" component="Magento_Ui/js/grid/provider">
    <argument name="dataProvider" xsi:type="configurableObject">
        <!--class is for php-->
        <argument name="class" xsi:type="string">Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider</argument>
        <argument name="name" xsi:type="string">acer_pushorderstatus_grid_data_source</argument>
        <argument name="primaryFieldName" xsi:type="string">id</argument>
        <argument name="requestFieldName" xsi:type="string">id</argument>
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="update_url" xsi:type="url" path="mui/index/render"/>
                <item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
            </item>
            <item name="storageConfig" xsi:type="array">
                <item name="indexField" xsi:type="string">order_number</item>
            </item>
        </argument>
    </argument>
</dataSource>

And filterSearch code is below

<listingToolbar name="listing_top">
    <bookmark name="bookmarks"/>
    <columnsControls name="columns_controls"/>
    <exportButton name="export_button"/>
    **<filterSearch name="fulltext"/>**
    <filters name="listing_filters"/>
    <paging name="listing_paging"/>
</listingToolbar>

Is anyone knows how to solve this problem?


texts:
What does RWD theme name stands for?

Just wondering what does it mean?

I keep reading it as 'rear wheel drive' in my head, help.


texts:
I have 2 store views, 1 in dutch and 1 in english

As far as i can tele magento offers only 1 subscription option

anyway, we would like to use mailchimp for newsletter sending

i was hoping to be able to set a newsletter subscription for the dutch store view and one for the english store view and than use magemonkey from ebizmart to sync it all

Is that possible?

Or would i better create the lists i need in Mailchimp, get the code for the subscription and paste that in a block for each store view (and of course turn newsletter in magento off)

any advise?

thanks


texts: Magento2: What are the complete steps to Install security Patchs in magento2

texts: Can anyone please share the complete steps to Install & revert security Patches safely in magento2.


texts:
I am trying to write a plugin that will block a payment and place order based on a condition.

I have this:

  Vendor/Module/etc/di.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
              <virtualType name="Magento\Sales\Model\ResourceModel\Order\Grid" type="Magento\Sales\Model\ResourceModel\Grid">
                  <arguments>
                      <argument name="columns">
                          <item name="veratad_action" xsi:type="string">sales_order.veratad_action</item>
                      </argument>
                  </arguments>
              </virtualType>
              <type name="Magento\Checkout\Model\PaymentInformationManagement">
                      <plugin name="veratad_ageverification_before_order" type="Veratad\AgeVerification\Plugin\Ageverification" sortOrder="10" disabled="false"/>
                </type>
    </config>

  Vendor/Module/Plugin/Ageverification.php

namespace Veratad\AgeVerification\Plugin;

      use Magento\Checkout\Model\PaymentInformationManagement as CheckoutPaymentInformationManagement;

      class Ageverification {

          public function beforeSavePaymentInformationAndPlaceOrder(
          CheckoutPaymentInformationManagement $subject,
          $cartId,
          \Magento\Quote\Api\Data\PaymentInterface $paymentMethod,
          \Magento\Quote\Api\Data\AddressInterface $billingAddress
          ) {

            $action = "FAIL";

            if($action != "PASS"){

                throw new \Magento\Framework\Exception\CouldNotSaveException(
                  __('Your order has been blocked.')
                );
              }
            }

          }

The exception is not firing and the order is being placed. Can anyone see what I am doing wrong?


texts: Display breadcrumbs on a custom phtml page

texts:
I try to display my breadcrumbs on a custom phtml file.

In a custom controller I have defined an indexAction. After calling http://my-shop.com/auctionlist my page is displayed.

Controller:

class MyNamespace_AuctionExtend_IndexController extends Mage_Core_Controller_Front_Action {
    public function indexAction() {
        $this->loadLayout();
        $block = $this->getLayout()->createBlock(
            'Mage_Core_Block_Template',
            'auctionlist',
            array('template' => 'auctionlist/auctionlist.phtml')
        );

        $this->getLayout()->getBlock('root')->setTemplate('page/2columns-right.phtml');
        $this->getLayout()->getBlock('content')->setTitle(Mage::helper('core')->__('Auktionsliste'))->append($block);
        $this->getLayout()->getBlock('head')->setTitle(Mage::helper('core')->__('Auktionsliste'));
        $this->_initLayoutMessages('core/session');
        $this->renderLayout();
    }
}

In my local.xml file I manage all breadcrumb definitions like:

<customer_account_login>
    <reference name="breadcrumbs">
        <action method="addCrumb">
            <crumbName>Home</crumbName>
            <crumbInfo>
                <label>Home</label>
                <title>Home</title>
                <link>/</link>
            </crumbInfo>
        </action>
    </reference>
</customer_account_login>

How can I call my custom auctionlist file in the local.xml to display the breadcrumbs? This is what I try to get:

<auctionlist_index>
    <reference name="breadcrumbs">
        <action method="addCrumb">
            ...
        </action>
    </reference>
</auctionlist_index>

(I already tryed that but it doesnt work.)


texts: Is it possible to push the modified css or js file without changing static version number into the customer browser?

texts: At present when we modify the JS or CSS file, the only way to update the Customers browser is to change the sign for static files globally by running static-content:deploy or at most we can give --no-css or --no-javascript option for css or js respectively. Now my question is can we change the version number for the file only which was modified, like suppose i changed Test_Example::web/css/test.css file, then only test.css file changes should be pushed to the customers browser. Please give me solution for this requirement if anyone has already done this similar kind of solution. The reason for this requirement is that using the static-content:deploy totally flushes the customer cache files as the version number changes, and it takes time for the data to load into cache of the customer when he loads the site for first time after static-content:deploy command ran.


texts: How do I send the data from a form to my company mail?

texts:
I want to make a form for users and in that form i want to be  name, tel and email. And i want to make a script that should take the name, tel and email and sent to my emai. But i don t know how and where should i put the php code.

<!DOCTYPE html>

Send e-mail to someone@example.com:

<form action="mailto:someone@example.com" method="post" enctype="text/plain">
Name:

<input type="text" name="name">

E-mail:

<input type="text" name="mail">

Comment:

<input type="text" name="comment" size="50">

<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>


texts: Third party js not loading in Magento 2.3.4

texts:
I am trying to load 2 third party js files in my module,

Followed below steps.

Vendor/Module/view/frontend/layout/default.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

    <referenceContainer name="after.body.start">
        <block class="Magento\Framework\View\Element\Template"
            name="mobile-megamenu.file"
            before="-"
            template="Vendor_Module::custom.phtml"
        />
    </referenceContainer>

Vendor/Module/view/frontend/templates/custom.phtml

                    <button class="dl-trigger">More</button>

                            Test

Test

Test

Test

Test

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

var config = {
   map: {
      '*': {
      dlmenu: 'Vendor_Module/js/jquery.dlmenu',
      modernizr:'Vendor_Module/js/modernizr.custom'
     }
   }
};

I have Moved both the js files here,

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

I am getting the following errors in console.

  require.js:166 Uncaught Error: Script error for: dlmenu.

  Uncaught ReferenceError: Cannot read property 'prefixed' of undefined

Can someone help me on this please. Thanks!!


texts: Magento 2: Why some images aren't showing in Luma theme product page?

texts:
I've installed a Luma theme on my local and it is ok but when I open product page the images not showing.

The console gives errors like this:

GET http://localhost/m-2/pub/media/catalog/product//cache/f073062f50e48eb0f0998593e568d857/m/j/mj12-orange_main.jpg 404 (Not Found)


texts: Magento 2 : How to get order collection group by customer?

texts:
To get order collection by customer wise i.e.., customer A and customer B have placed order and it should retrieve by customer wise per collection?

public function getOrdersByCustomer() {

    $collect = $this->_orderCollectionFactory->create()->addFieldToSelect('*');

    $collection = $collect->getSelect()->group('customer_id');

    return $collection;
}

The above returns null.Thanks in advance


texts: Magento 2 Ajax add to cart related products

texts:
So I've found the location to turn on ajax add to cart in the product page. I've also found where the;

  $showCart: true

Lives to enable the related products to have an add to cart button on them.

My question is, is there a way i can add an ajax add to cart for the related products? I've not seen it anywhere in the code. And I've looked. I thought by adding the ajax request to the product page may work, but looks like it is working off of the form id.

Now I know that the button for the related doesn't submit a form, it submits itself. So is there actually a way to ajax this?

$postDataHelper->getPostData($block->getAddToCartUrl($_item), ['product' => $_item->getEntityId()])

This is what i posts, but does Magento have ajax built in for this, or do i need to create a custom module?

Thanks.


texts: 'Thank You' page doesnt show up in every purchase

texts:
This is for my client's website which is built in Magento 2 open source.
Thank You page doesn't show up during all purchases, which is why all conversions are not tracked properly.
4 out of 5 times, on successful transaction, ccavenue page goes back to brand/cart.html page
It doesnt go to brand/thankyou.html
Any solution for this?
Will buying Thank You extension help?
Also, I want to add script tag code in the thank you page for purchase value tracking, so values are dynamically passed back after a successful transaction. Would anyone know anything on this.
Any help is appreciated.


texts: How can I add the number of products of a specific category to a CMS?

texts:
I am creating a CMS page through Magento's admin page.

I want to display the number of products of a specific category. Any ideas of how can I achieve this?


texts: Problems with Magento 2.3.4 and Elasticsearch

texts:
I am having an issue with my company's test site's Elasticsearch. Every time I try to do a reindex, the Catalog Search has the following error:

Catalog Search indexer process unknown error:

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Enabling [_all] is disabled in 6.0. As a replacement, you can use [copy_to] on mapping fields to create your own catch all field."}],"type":"illegal_argument_exception","reason":"Enabling [_all] is disabled in 6.0. As a replacement, you can use [copy_to] on mapping fields to create your own catch all field."},"status":400}

And this error occurs when I have set the Catalog Search on my site's Magento Admin panel to either Elasticsearch or Elasticsearch 6.0+. Now, I tried many different ideas to solve the above error. For example, setting the {"index.blocks.read_only_allow_delete": false} (and this solved an earlier problem). So, any suggestions would be helpful?

Now, here is my Magento site setup:

PHP version: 7.2.27

Magento version: 2.3.4 community edition

OS: CentOS 7.7.1908

Elasticsearch: 6.8.7-1

Also, I recently performed an in-place upgrade where I created the test site from a base Magento 2.3.4. Then, added all of the modules I needed. Finally, I copied over a backup of my company's production database and ran the Magento upgrade and compile commands (e.g., "magento setup:upgrade" and "magento setup:di:compile"). And note the production database was based-on Magento 2.3.1.

Thanks in advance for your help.

Regards,

Alvaro


texts: Moving Products from 1.4 to 1.7 - dilemma

texts:
I've to move a lot of products from an old Magento site (v. 1.4) to a new one (1.7) with fresh new theme with new modules it's also a multisite, infact there' already a lot of stuff I configured in order to make it work right. so if I change the database it probably will stop working.

So, before start moving... what do you guys suggest me is better. Move only the Products + images or move the entire database? I read a lot of docs. And saw it's a long work upgrading Magento from such an old version to a newer one. Plus at the end the stuff I guess, I need from the old site are only the products and maybe some info like name, phone etc. (but that could be added by hand)

what you think I should do?!


texts:
I would like to know if it possible to give certain customers privileges, that not all customers can get. For example Customers A and B may access this part of the website, by following a link. But Customer C gets a message, stating that he does not have these privileges. I thought maybe through giving certain users different 'user-groups' or so.

Is this possible with Magento?


texts: magento 1.9 where is function getBaseShippingAmount() defined

texts: in app/code/core/Mage/Sales/Model/order.php there's a method getBaseShippingAmount(); I want to know where is this function defined?


texts: Custom Shipping Method - creates error in cart update

texts:
I followed the suggestions in the following question, The answer was perfect except for the fact I now have this error when I update my shopping cart no of items. If I press back the cart updates but I dont want this error.

Error :

  There has been an error processing your request    Error log no :
  xxxxxxxxx (some numbers)

I followed the inchoo method of creating my own shipping method.

The error log indicates a problem on line 5 of the php file :
   extends Mage_Shipping_Model_Carrier_Abstract

Hmm... not sure ?


texts: Magento 2: Add custom button in Product Detail Page

texts:
I want to add button in PDP page which would redirect to the desired location.
But it does not capture the size and other customize attributes.

Can anybody help me?

How to add a custom button to Magento 2 product page

  View/frontend/templates/catalog/product/view/addtocart.phtml

            <button type="submit"
                    title="<?= /* @escapeNotVerified */ $buttonTitle ?>"
                    class="action default tocart"
                    id="product-addtocart-button">
                <?= /* @escapeNotVerified */ $buttonTitle ?>
            </button>
            <?= $block->getChildHtml('', true) ?>
            <?php /*if($cusdesignLink):?>
              <a href="<?php echo $cusdesignLink; ?>"><?php echo __('Customize Your Design'); ?>
            <?php endif */ ?>
            <a href="<?php echo $this->getUrl($cusdesignLink); ?>" title="<?php /* @escapeNotVerified */ echo __($buttonTitle) ?>" id="custom" target="_blank" class="action primary">
                <?php /* @escapeNotVerified */ echo __($custombuttonTitle) ?>

  Creation of button Method 2 where it works as Add to cart and does not replace Form action
    View/frontend/web/js/custom.js

define([
        'jquery'
    ], function ($) {
        "use strict";
        return function (config, element) {
            $(element).click(function () {
                var form = $(config.form);
              var baseUrl = form.attr('action'),
                 buyNowUrl = baseUrl.replace('checkout/cart/add', 'custom/index/index');
              form.attr('action', 'custom/index/index');
                return false;
            });
        }
    });

  view/frontend/templates/custom.phtml

<?php $addtocartId = "Test"; ?>
<?php $buttonTitle = "Test"; ?>
<?php $formId = $addtocartId ? $addtocartId : "product_addtocart_form"; ?>

    <button type="submit" title="<?php /* @escapeNotVerified */ echo __($buttonTitle) ?>" id="custom" class="action primary" data-mage-init='
    {
        "Maan_Custom/js/custom": {
            "form": "#<?php echo $formId; ?>"
        }
    }
    '>
        <?php /* @escapeNotVerified */ echo __($buttonTitle) ?>
    </button>

Actually I have not created button i have added link to display it as a button and have passed link via helper. Had got code for creating button but it does not replace form action instead it gets added to  "Add to cart" section


texts: Magento session loss after 3D secure redirect

texts: I'm using Magento 1.9.3.10 with the Ebizmarts SagePay Free extension (direct integration) running and have encountered with the situation when the customer loses their session when redirecting from the 3D secure form to Ebizmarts_SagePaySuite_DirectPaymentController::callback3dAction.


texts: Magento 2 : composer update giving this error

texts:
I am using magento version 2.3.1
When I have updated composer via command
php composer update

I get this error

Package container-interop/container-interop is abandoned, you should
avoid using it. Use psr/container instead.
Package phpunit/phpunit-mock-objects is abandoned, you should avoid
using it. No replacement was suggested.

please anyone guide me how to solve this error
currently not working any command, giving same error when run command
thanks in advance


texts: Different Time in Database and Collection

texts:
I am Facing a Strange issue.i have some data in report_viewed_product_index table

You can see this

I have created a Model for this table and Getting Data

But in Collection, I am getting a different time

Anyone please help me to solve this Issue

My Laptop Time Zone and Store time Zone is the same...


texts: how to move newsletter block from footer to left in magento

texts:
Originally, I had the newsletter block in the footer, this is code:

<div>{{block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"}}</div>

I then pasted the above code into the left column instead. After this, I deleted it from the footer but, it is still persisting in footer for some reason.

How do I remove the newsletter block from the footer, since deleting it didn't seem to remove it? Any help would be appreciated.


texts: Magento 2: Create Custom Shipping Extension to Change Customer Group

texts:
I need to create new shipping method that also change price rules for the customer.

Lets say, I have several customer groups, one of them is Government. I want customer to choose at shipping level whether he is a normal cusotmer (= normal shipping, DHL, FEdEx, ..) or if he's a Federal (= Gov-Shipping).

If the customer chooses Gov Shipping he should see different prices - net instead of gross, however, shipping should be always gross.

How can I do that by creating a new shipping method? Any other possibilities to does that?


texts: Is it practical to use transparent PNGs instead of JPGs for product shots?

texts:
I know this might get closed as too subjective, but let's give it a shot as it's probably relevant to a lot of Magento stores out there and given a certain set of constraints, there is probably a reasonably clear answer as to the best overall solution.

I'm wondering whether it's a good idea to use transparent PNGs for product shots instead of JPGs.  I've read (https://stackoverflow.com/a/7752936/1117286) that PNG-24 file size can be as much as 5X that of a similarly compressed JPG file, but I'm not sure if that figure is accurate or up-to-date with current compression tools out there.

Obviously for a merchant that can place products against a white background and doesn't plan on changing that any time soon, JPGs would make a lot more sense.

In our case, we have some product shots that are against a textured background and others that are against a white background.  The product shots that are against a textured background we just use one gigantic image for the whole thing.

So there would be a clear benefit to transparent PNGs in those cases.  And even for the other images that are currently against a white background, we may want to place them also against a textured background at some point in the future - so transparent PNGs would give us some nice future-proofing.

We're also responsive and we get a fair amount of mobile traffic, so we want to keep that in mind.

Given this set of constraints, is using transparent PNGs a reasonable solution?  I've yet to find any eCommerce sites out there using transparent PNGs, would be interesting if anyone could post links to them.


texts: Magento 2: Hide payment methods depends on shipping method

texts:
I have created custom shipping method "Pick up at the store" and payment method "Pay in store" and I would like to hide all other payment methods, when I choose "Pick up at the store" shipping method.

I know, that payment method class has function "isAvailable", but it isn't a good idea to create special conditions for all available methods.

Please advice how I can hide all other payment method except "Pay in store", when "Pick up at the store" shipping method is choose. Thanks.


texts: How can I fetch the options or details of the shipping method configured in the admin side?


texts: What does frequency and start time means in Magento admin log cleaning section?

texts:
I want to know what does frequency and start time means in Magento admin log cleaning section?

I want to clean the logs every month. If I am setting start time 03:00:00,  Frequency : monthly  and the save log days to 29. Will it be working correctly?


texts:
I am using onclick function in my template file,
here is my html

 <div class="input-box">
            <input type="checkbox" name="change_password" id="change_password" value="1" onclick="setPasswordForm(this.checked)" title="<?php echo 'Change Password'; ?>"<?php if($_user->getChangePassword()==1): ?> checked="checked"<?php endif; ?> class="checkbox" />
        </div>

Below is my javascript code

<script>
 require([
     'jquery',
     'mage/mage'
  ], function($){
 function setPasswordForm(arg){
    if(arg){
        $('current_password').up(4).show();
        $('current_password').addClassName('required-entry');
        $('password').addClassName('required-entry');
        $('confirmation').addClassName('required-entry');

    }else{
        $('current_password').up(4).hide();
        $('current_password').removeClassName('required-entry');
        $('password').removeClassName('required-entry');
        $('confirmation').removeClassName('required-entry');
    }
}
<?php if($_user->getChangePassword()): ?>
    setPasswordForm(true);
<?php endif; ?>

});

</script>

How to use it in magento2? It is working fine in m1.

I am getting below error when used above code

Uncaught ReferenceError: setPasswordForm is not defined


texts: Magento Version 1.6.2.0 - Configurable Products be Master for Minimum Order Quantity

texts:
I am facing a problem. Maybe one of you has an idea how to solve the same.

a) I have created several configurable products consisting of simple products associated.

b) The stock amount goes by the associated simple products as our logistics software has to work with the same.

c) Now I am using the configurable product as kind of a bundle offer and clients should only be able to purchase minimum 25 items of this configurable product. Price is given a forced by the Configurable product settings already. But I would also like to force a minimum order quantity to this specific product.

d) It is no option to set the MOQ per simple individual products, as there is a MOQ already given (5 items, we are wholesaler)

In short: I want to force Magento to use the minimum quantity defined in the configurable product when buying Options from the same.

Excuse my english. It is not my native language. Hope I could be kind of clear, for what I am looking for.

Best regards

Ben


texts: Add extra charge if gift messge with checkbox added on Cart Page in magento 2

texts: I want to add one checkbox for the Gift wrap with Gift Message on Cart Page. If checkbox is enable then want to add extra fee to order. Please give me some solution.


texts: Magento 2.3 Configurable Product drop down price calculated wrong

texts:
The base comparison price for a configurable product seems to be the cheapest price excluding tax.
Then the extra price added by the each configurable product in a Magento 2.3 dropdown is calculated including tax.
This makes even the cheapest option appear as it has an extra cost, which is only the tax.

See the screenshot below where the actual price of option "Test 1" is $62.50, but option "Test 1" still appears to be $12.50 more expensive than the cheapest/base alternative. the +$12.50 shouldn't be there, since its already the cheapest alternative.


texts: Attribute is not being displayed on page product

texts:
I want to display a custom attribute on my product view page. It's a dropdown menu with 2 options 'LRG' and 'SML'.

The idea is that user can select one of these options. This is the link:

http://store.hbros.co.uk/chicken-wrap.html

I've already selected the 'Visible on Product View Page on Front-end' to 'Yes' but it's not being displayed.

What could I do?


texts:
I am having issues with the zoom option on my product pages.

Some of the products have the ability to zoom and some products it doesn't even give you the option.

We are looking to go live with the site in the next couple of weeks.


texts:
I'd like to customize the SKU auto generation based on product name. Something like... given a product name, SKU should be generated in this way:

Replacing space with _
Removing vowels
etc...

How can I achieve this?


texts: How I add attribute with product title in magento

texts:
This is my code of title.phtml. Here I want to show attribute when I select dropdown value and hide when I didnot select any value from my attribute dropdown list.
Here in code I added span with class rx, I want to show attribute value in this code. My attribute code is also "rx"
Thanks in Advance
  <?php
    /**
     * Copyright © Magento, Inc. All rights reserved.
     * See COPYING.txt for license details.
     */

    /**
     * @var $block \Magento\Theme\Block\Html\Title
     */
    $cssClass = $block->getCssClass() ? ' ' . $block->getCssClass() : '';
    $titleHtml = '';
    if (trim($block->getPageHeading())) {
        $titleHtml = 'getAddBaseAttribute()
            . '>'
            . $block->escapeHtml($block->getPageHeading())
            . '';
    }
    ?>
    <?php if ($titleHtml) : ?>
    <div class="page-title-wrapper<?= $block->escapeHtmlAttr($cssClass) ?>">
        <h1 class="page-title"
            <?php if ($block->getId()) : ?> id="<?= $block->escapeHtmlAttr($block->getId()) ?>" <?php endif; ?>
            <?php if ($block->getAddBaseAttributeAria()) : ?>
                aria-labelledby="<?= $block->escapeHtmlAttr($block->getAddBaseAttributeAria()) ?>"
            <?php endif; ?>>
            <?= /* @noEscape */ $titleHtml ?>

        <?= $block->getChildHtml() ?>

    <?php endif; ?>


texts:
This is link jquery in my local

../pub/static/frontend/../../en_US/jquery/jquery.min.js

and I want change to

https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js

Anyone help me?


texts:
Just a quick question about opening any product in new IE tab.
For example
Go to this site
Then try to click on any product, new IE tab will be created with the product page.

Is there any setting relate to this request?
Or adding a piece of code?


texts:
For some reason, I'm having issues with a fresh install of M2, though, things seem to sort themselves out if I update the file and folder permissions on the server.

Unfortuntely, if I re-deploy the static content, or flush the cache, I need to re-update the folder permissions on the server.

Has anyone else experienced the same issue?


texts: How can you remove or add JS to the theme based on criteria?

texts:
I tried adding the code to template/page/html/head.phtml

if (Mage::helper('mobiledetect')->isMobile()){
  $this->addItem('js', 'js/mobile_jsscript.js');
  $this->getLayout()->getBlock('head')->removeItem('js', 'js/normal_js_script.js');
}

Is this the correct way to add and remove js based on criteria?


texts: Get child categories tree when Flat Catalog Category is enabled in admin in Magento 2

texts:
How to get child categories from selected parent category when "Use
  Flat Catalog Category" is enabled?

I need to create a small menu which displays all sub-categories of current category in a custom menu.

To get sub-categories of the current category, I extended class Magento\Catalog\Block\Navigation and created a method which returns sub-categories (identifier of the current category is passed in $parent parameter):

namespace Company\MyNav\Block;
class MyNav extends \Magento\Catalog\Block\Navigation
{
    public function getCategoryChildren($parent)
    {
        $category = ObjectManager::getInstance()->create('Magento\Catalog\Model\Category');
        $subCategories = $category->getCategories($parent);
        return $subCategories;
    }
    // ...
}

It all works great, method getCategories from Magento\Catalog\Model\Category returns all sub-categories (also from all lower levels) of the selected parent category.

But as soon as I enable "Use Flat Catalog Category" option in admin, method getCategories returns entire tree of categories instead of only the children of the selected category.

Shouldn't the same code give the same results no matter if flat categories are enabled or disabled? Is this a bug in Magento 2?
Are there any additional steps needed to make this code work even flat categories field is enabled?


texts: How to get currency Symbol in magento 2?

texts:
I want currency Symbol using currency code in magento 2. so any one help me?

I have tried below code but I got error  Class Magento\Directory\Model\CurrencyFactory does not exist

$_objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$currencyManager = $_objectManager->create('Magento\Directory\Model\CurrencyFactory')->create()->getResource();
echo $currencySymbol = $currencyManager->getCurrencyCodeFromToCurrency($_code);


texts: Magento and HTTP/2 : what is the current status?

texts:
As some of you may know, HTTP/2 was recently born.

From what I understood, it has been developed to just work with existing websites, which suggests that there is nothing to do to make Magento compatible with it.

However all the browsers have decided to only implement HTTP/2 for TLS (https) connections.

That said here are my questions:

what should I consider if I want to serve Magento over HTTP/2 ?
would enabling https for all pages (using secure URLs) be enough ?
if not, is there any core changes to be made to do so?

I'm looking for an answer for both Magento 1 and 2.


texts:
I would like to get Cart List with specific customer ID.
I get cart info with cart id but i can't find with customer ID.


texts: Magento 2 Review & Payment Page UI modification

texts:
I am trying to do some small modifications on the Magento 2's review and payment page - to change the image, and some wordings, as circled in the image.

What are the Magento files to modify in order to get the job done? I used the path hints, but these paths are not shown.

Thank you!


texts: Can you help me with Magento Design Work Flow for Better UI and UX

texts: Magento UX design is about enabling user interface in Magento websites that work on all browsers and processes with the same and efficient response.


texts: Setting up proxy for constructor arguments vs. etc areas

texts:
Generally it is prefereable to set .xml configuration files only for areas that will use it. I want to set some proxy object for my classes__construct()` arguments.

In case of models it can be not so sure and maybe it is better to use etc\di.xml, but maybe in case of blocks and controllers one can be more specific?

Is it enough, then if I will set proxy for frontend blocks and controllers in etc\frontend\di.xml or I should do it in etc\di.xml?


texts: Echo custom attribute with getResource() ->getAttribute

texts:
I'm trying to show all available sizes for one product on list.phtml

I've set up a custom attribute size_age (id:142) but when I try use the code

$attributeLabel = $customer->getResource() ->getAttribute('size_age') ->getFrontend() ->getAttribute() ->getFrontendLabel();

I get this error:

  Fatal error: Call to a member function getResource() on null

UPDATE:

thank you for your answers. I changed the code to:

$attributeLabel = $_product->getResource() ->getAttribute('size_age') ->getFrontend() ->getAttribute() ->getFrontendLabel();

I dont have any error right now.

But I dont get any output. I'm trying to echo all available sizes for the product.


texts: Send email after placing an order in magento2

texts:
I want to send an email to customer after placing an order in Magento 2.

Please send/tell me how to extend the functionality in Magento 2

Edit:

I have created my new module Roshan_Checkout inside app/code and in etc folder I created a event.xml file and call a method from there which is defined in my observer.

But, I'm not able to reach there in my observer and don't know how to extend the checkout functionality.

Would be greatful to you if you tell the step by step procedure to do the same. Thanks in advanced.


texts: Magento 2 + how to remove character limit from meta keyword field in product

texts: How to remove 255 characters limit from meta keywords field in product in admin while saving or updating existing ?


texts: How to reload checkout page after applying the coupon code or removing the coupon code magento 2?

texts:
I am facing an issue related page  refresh on checkout page and it is
  solving after refreshing page when discount applied or removed.


texts: Magento admin users - multiple users for employees?

texts:
Currently there are working 4 employees on our magento shop, they are mainly creating new products.

Is it neccessary to create a unique user for every employee or is it ok to use just one admin user for every employee?

The core of the question is: is it harmful to the shops performance if different employees use one account? Or are there any other problems that could occur?


texts: Order Grid is not showing in Customer->Customer Information(Orders) Admin Panel in Magento-2.1?

texts:
Order Grid is not showing in Customer->Customer Information(Orders Tab) on admin Panel in Magento-2.1?Please check screenshot  https://i.stack.imgur.com/j0kJq.png
What is issue in this? Please guide me.


texts: Magento 2 : How to get data from headers?

texts:
I am passing "id" in headers & trying to get its value in custom script.
using below code
$objectManager =  \Magento\Framework\App\ObjectManager::getInstance();
$response = $objectManager->get('Magento\Framework\App\ResponseInterface');
$request = $objectManager->get('Magento\Framework\App\Request\Http');
print_r($request->getPost()); exit;

But i am not getting any data..
any thoughts what i am missing ?


texts: Magento2.3 How to duplicate categories programmatically for different website

texts: I have my all categories in my main website. Now I want to duplicate some of its category to my 2nd Website. I want to do this with script, Is it possible ?


texts: Not able to create color swatches Magento ver. 2.2.4

texts:
Preconditions

Magento ver. 2.2.4
Developer mode/Production Mode

Steps to reproduce

Add your own colors

Expected result

You should be able to add as many colors as you want.

Actual result

After 39 color swatches, new colors are not saved even though you still get the "You saved the product attribute." success message.


texts: Magento 2.3 data insert using Data patch

texts:
I have created a new table and added a few data using Data patch
 setup/patch/data/.

Now I want to add some more data and want to update few data's so can anyone please help me or guide me that how can I do that?

Thanks


texts: Magento2 admin panel product list page attribute is not showing in list

texts:
I added attributes like warehouse, shipping_charge,school,class in Product Attributes.

In listing ( i selected in filter options)
warehouse and shipping_charge is displaying.
school,class is not displaying.

all 4 entries are same Please help me on this.


texts:
How can i new field in admin filed that contain mailto functionality

$fieldset->addField('email', 'link', array(
    'label'     => Mage::helper('mumodule')->__('Email'),
    "target"=>"_blank",
    'mailto' => Mage::registry('mumodule')->getData('email'),
    'class'     => 'required-entry',
    'required'  => true,
    'name'      => 'title',
    ));

using this way i cant add functionality.

is it possible to add new filed with mailto functionality?


texts: How to get the custom attribute values in my catalog category list block

texts:
I have added a custom attribute to my category.
On category product listing page i want to retrieve the values of that custom attribute.
When i got Mage/Catalog/Block/Product/List.php i can find this protected function _getProductCollection() function. Is this function that is getting the collection from the db?
If yes how to get my custom attribute values in that method?

Or else which is the method that is responsible for getting collection from db and how to get the attribute value in that method?

EDIT:
The purpose is to add some more skus to that collection based on the custom attribute value


texts: Including tax in Magento subtotal and shipping on order email

texts:
Is it possible to include tax in the subtotal and shipping totals on a Magento order email?

The list of items includes tax in the price, and my store settings are set to include tax on all prices, but for some reason on the order email the subtotal and shipping are excluding tax with tax added later.

Image attached to show the totals block. This is for a product that costs £1 including 20% VAT and shipping that costs £0.95 including VAT. The grand total includes the tax, but I can't figure out how to show subtotal and shipping inclusive of tax.


texts:
Something gone bad and all tables related to categories were empty.

catalog_category_entity, catalog_category_entity_varchar etc...

also

catalog_product_entity and catalog_product_entity_index.

I restored all of them but now the Onepage does not load... it doesn't display the buttons and the addresses etc.

Are there any tables related to checkout or onepage that i must restore?


texts:
I'm new on Magento. today I install Magento. in my tasks I have to create a new company. I don't have company tab/section in my admin panel! I search in google and in all results there is an option under Customers tab called manage company. some questions...

whats the meaning of company in magento ? is it a module ?
how can I create a company or enable company tab/section in admin panel ?


texts: Paypal Express review page buttons not working

texts:
I have one weird issue using Paypal Express Checkout.
When the paypal redirect back to Mangeto on paypal/express/review page , it do not allow me to  place order, the Place order button is showing disable and no action clicking on "update order data" button .

I trace the code and I found that  on file skin/theme/default/js/checkout/review.js
line number  144 its always pass the value true . i.e. the validateform is always returning false.

this._updateOrderSubmit(!this._validateForm());

I check with the form and all the data are added correctly.
Its not showing any error as well.
Its also not showing any error if i remove any require field value .

FYI , we have not added billing agreement checkbox on the form.

What could be the issue ?

Thanks


texts: How do I change the Magento default invoice

texts:
I have been told it is not possible to display my company name, registration and VAT number at the bottom of the Magento default invoice. I'm sure this is rubbish but I'm not sure where to make the changes.
Could someone possibly show me the code for the default magento invoice with the following included
"Company name and reg line 1" and
Company VAT line 2"

Much appreciated.


texts: magento customer table join query group by make problem in pagination

texts:
I wrote the join query with customer table. the query is, when I execute this query they will return 5 records:

$collection = $this->getCollection()
    ->addAttributeToSelect('userid')
    ->addAttributeToSelect('firstname')
    ->addAttributeToSelect('lastname')
    ->addAttributeToSelect('profile_image')
    ->addAttributeToSelect('specialist')
    ->addAttributeToFilter('group_id', 5);
$collection->getSelect()
    ->joinLeft(
        array('rating' => 'flrating'),
        'e.entity_id = rating.reviewed_user_id',
        array('total_rating' => 'count(rating.review_id)')
    );
$collection->getSelect()
    ->group('e.entity_id');

But when I execute the simple query they will return correct result (6 records):

$collection = $this->getCollection()
    ->addAttributeToSelect('userid')
    ->addAttributeToSelect('firstname')
    ->addAttributeToSelect('lastname')
    ->addAttributeToSelect('profile_image')
    ->addAttributeToSelect('specialist')
    ->addAttributeToFilter('group_id', 5);
return $collection;

Even I put the following code in collection table also the code is:

public function getSelectCountSql()
{
    $countSelect = parent::getSelectCountSql();
    $countSelect->reset(Zend_Db_Select::GROUP);
    return $countSelect;
}

Can you please explain what is my problem and how to overcome the pagination issue, for your further information see the below screen:

Result with join query:

Result with simple query:


texts: Fotorama - change nav arrows in navigation?

texts:
I need my gallery to look like this:

I struggle to find out, how I can change the navigation so that the arrows are not overlapping the thumbnails:

It should be more like this:

and how can I change the arrow icons?

The template where the gallery is showing is here:

vendor\magento\module-catalog\view\frontend\templates\product\view\gallery.phtml

<?php
    $images = $block->getGalleryImages()->getItems();
    $mainImage = current(array_filter($images, function ($img) use ($block) {
        return $block->isMainImage($img);
    }));

    if (!empty($images) && empty($mainImage)) {
        $mainImage = $block->getGalleryImages()->getFirstItem();
    }

    $helper = $block->getData('imageHelper');
    $mainImageData = $mainImage ?
        $mainImage->getData('medium_image_url') :
        $helper->getDefaultPlaceholderUrl('image');
?>

<div class="gallery-placeholder _block-content-loading" data-gallery-role="gallery-placeholder">
    <img
        alt="main product photo"
        class="gallery-placeholder__image"
        src="<?= /* @noEscape */ $mainImageData ?>"
    />
</div>

<script type="text/x-magento-init">
    {
        "[data-gallery-role=gallery-placeholder]": {
            "mage/gallery/gallery": {
                "mixins":["magnifier/magnify"],
                "magnifierOpts": <?= /* @escapeNotVerified */ $block->getMagnifier() ?>,
                "data": <?= /* @escapeNotVerified */ $block->getGalleryImagesJson() ?>,
                "options": <?= /* @noEscape */ $block->getGalleryOptions()->getOptionsJson() ?>,
                "fullscreen": <?= /* @noEscape */ $block->getGalleryOptions()->getFSOptionsJson() ?>,
                "breakpoints": <?= /* @escapeNotVerified */ $block->getBreakpoints() ?>
            }
        }
    }
</script>

There is only some javascript where some options are passed as JSON object.

You can change the options here in the file:

vendor\magento\theme-frontend-luma\etc\view.xml

    <!-- Gallery and magnifier theme settings. Start -->
    <var name="gallery">
        <var name="nav">thumbs</var> <!-- Gallery navigation style (false/thumbs/dots) -->
        <var name="loop">true</var> <!-- Gallery navigation loop (true/false) -->
        <var name="keyboard">true</var> <!-- Turn on/off keyboard arrows navigation (true/false) -->

...

Here is a list of all options which you can pass.
(Not all options are supported by magento by default though, you have to extend the block class Magento\Catalog\Block\Product\View\GalleryOptions to add support for the missing options)

But I can't find a way to change the thumbnail nav arrow icon or change the position of them.

Do I have to write a hacky JS/CSS workaround, or is it possible to do this by changing options?

PS: Of course I did all the changes in my own theme, and not in the core.


texts: How to get custom customer address attribute in checkout billing section?

texts:
I try this $this->getAddress()->getNickName() but not working,
It working in edit page.

In checkout billing page I got validation class in text field.

$this->helper('customer/address')->getAttributeValidationClass('nick_name');


texts: Increment and Decrement qty button on order review page

texts: Can any one tell me how  to add qty increment and decrement button on order review page in magento 1.9.?


texts: Elastix extension for Asterisk based SIP on Magento 2?

texts:
I've tried and looked everywhere for this kind of plugin where:

User calls our number: xxx-xxx-xxx
If any customer service agent is currently online in the platform a popup appears on the screen regarding the call.
The popup will have all the information regarding the customer (if they have their information already registered via the mobile / phone number they are currently calling from)
In most cases this is called a Dialer integration. However I'd like do do this with Magento 2 and Asterisk based SIP with either Elastix or any other software.


texts: Magmi Multi-Store Categories Import Error

texts:
I need to assign categories for my multistore,

CSV :

Store :

Magmi Error:


texts: magento product resized image optimization

texts:
I have optimized product images: when I upload those in admin they remain as optimized. However, in fronted when I resize images with cache, these already optimized images need to be optimized.
How can I keep images optimized after resize?

Will be gratified for solutions.


texts: Move out of stock products to the end of the catalog product list

texts:
I need to push out of stock products to the end of catalog list

Please guide me how to solve this problem, or that file to dig

so far I found Toolbar.php, and working around it


texts: Magento Payflow pro https://pilot-payflowlink.paypal.com API call

texts: Anyone know about how magento 2 https://pilot-payflowlink.paypal.com run paypal API and which argument we need to pass in iframe or form.


texts: Site search return value after long time

texts: SIte search return value after long time, may result show or not.


texts: Magento secure and unsecure url redirection issue

texts:
I am facing issue regarding redirection.

My system has been already live.Google already cached all pages with https .

In past my secure url and unsecured were both https://www.example.com.

But now

secure url is https://www.example.com
unsecured  url is http://www.example.com

Now, I  want to and trying to configure url like this

checkout and customer urls are open   with https://www.example.com(Woking )
other all urls are open like http://www.example.com(Working)

Issue:

As my all pages are cached as https in google so,
my other all urls are open with https

But,i want to redirect https non checkout and non customer  url to http
Using htaccess

all pages is cache in google with https.That if an non-customer/non-checkout url is coming with https, then it should be redirect to http

Here, i have done the following changed  in admin:

Base URL>secure url>https://www.abc.com
Base URL>unsecure url>http://www.abc.com
Use Secure URLs in Frontend=yes


texts: Activated SSL on magento , but now JS resources doesn't load

texts: I'm using magento 2.0.7, and I've activated the SSL , and now when I go on the website , it loads with https, but it doesn't load anymore the js resources.


texts: Magento 2 ElasticSearch Empty Categories

texts:
I am running Magento 2.3.5-p1 with ElasticSearch 7.
When ElasticSearch is set as the search engine, all my categories are shown empty. This happens with every version of ElasticSearch. When the search engine is set back to MySQL, the products show in categories as normal.
I tried the fix outlined here but my categories still display empty whenever ElasticSearch is enabled.


texts:
I am trying to run

  php bin/magento setup:upgrade

but every time I am getting the below error.

Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for Magento\Setup\Mvc\Bootstrap\InitParamListener

The same error is also coming while running setup:di:compile. I have also run composer upgrade, but no success at all.


texts:
<reference name="root">
        <action method="addBodyClass" ifconfig="ultimo_design/effects/shadow"><className>shadow</className></action>
        <action method="addBodyClass" ifconfig="ultimo_layout/responsive/responsive"><className>responsive</className></action>

        <block type="core/text_list" name="main_before_top" as="main_before_top" translate="label">
            Preface, Full-width
        </block>
        <block type="core/text_list" name="preface" as="preface" translate="label">
            Preface
        </block>
        <block type="core/text_list" name="left_first" as="left_first" translate="label">
            Left Column First (shows above main column on smaller screens)
        </block>
        <block type="core/text_list" name="postscript" as="postscript" translate="label">
            Postscript
        </block>
    </reference>

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


texts: Magento2: change the icon in my custom module

texts:
I need to change the icon in my custom module, I did all steps but nothing change?

Menu.xml

<?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
        <menu>
          <add id="Abir_Conversation::greetings" title="Conversation" translate="title" module="Abir_Conversation" sortOrder="3" dependsOnModule="Abir_Conversation" action="conversation/helloworld" resource="Abir_Conversation::greetings"/>
        </menu>
    </config>

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">
  <head>
       <css src="Abir_Conversation::css/styles.css"/>
  </head>
</page>

styles.css

       @font-face {
    font-family:'Abir';
    src:url('../fonts/Abir.eot');
    src:url('../fonts/Abir.eot?#iefix') format('embedded-opentype'),url('../fonts/Abir.woff') format('woff'),url('../fonts/Abir.ttf') format('truetype'),url('../fonts/Abir.svg') format('svg');font-weight:normal;font-style:normal
}

      .admin__menu .level-0.item-greetings > a::before {
         content: '\e9d9';
         font-size: 3.0rem;
         padding-top: 0.1rem;
         font-family:'Abir';
         }


texts: Fixing Broken Indexer Process: Table Truncation Safety

texts:
Earlier today, I had a (third party) product price indexer that consistently failed with the following message:

  "Product Prices Index process is working now. Please try run this process later."

First, I attempted to remove the lock files from /var/locks.  This did not resolve the issue.  Next, I manually truncated the following tables:

catalog_product_index_price
catalog_product_index_price_bundle_idx
catalog_product_index_price_bundle_opt_idx
catalog_product_index_price_bundle_opt_tmp
catalog_product_index_price_bundle_sel_idx
catalog_product_index_price_bundle_sel_tmp
catalog_product_index_price_bundle_tmp
catalog_product_index_price_cfg_opt_agr_idx
catalog_product_index_price_cfg_opt_agr_tmp
catalog_product_index_price_cfg_opt_idx
catalog_product_index_price_cfg_opt_tmp
catalog_product_index_price_downlod_idx
catalog_product_index_price_downlod_tmp
catalog_product_index_price_final_idx
catalog_product_index_price_final_tmp
catalog_product_index_price_idx
catalog_product_index_price_opt_agr_idx
catalog_product_index_price_opt_agr_tmp
catalog_product_index_price_opt_idx
catalog_product_index_price_opt_tmp
catalog_product_index_price_tmp
catalog_product_index_tier_price

This did seem to resolve the issue.

My question is this: Are there any hidden consequences of truncating these tables that might show up later?  Is this a safe operation to perform on a live database?  If so, I will be creating a tool for the project administration to use in the future.

Thanks for your time.


texts: Custom Attribute and value not Appearing in Flat Product table if Attribute is not in...Product Listing,Product Listing,Layered Navigation

texts:
Basically I installed one market place module in my website......that have a validation attribute...but which is not ...Product Listing,Product Listing,Layered Navigation...so when I use Flat Product ...its attributes and its value is not going in flat product tables...so due to not availability of attribute I can not validate my setting....

My attributes setting values..
----------------------------

class VES_VendorsProduct_Model_Source_Approval extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
{
    const STATUS_NOT_SUBMITED   = 0;
    const STATUS_PENDING        = 1;
    const STATUS_APPROVED       = 2;
    const STATUS_UNAPPROVED     = 3;

    static public function getOptionArray()
    {
        return array(
            self::STATUS_NOT_SUBMITED   => Mage::helper('vendors')->__('Not Submited'),
            self::STATUS_PENDING        => Mage::helper('vendors')->__('Pending'),
            self::STATUS_APPROVED       => Mage::helper('vendors')->__('Approved'),
            self::STATUS_UNAPPROVED     => Mage::helper('vendors')->__('Not Approved')
        );
    }

    public function getAllOptions()
    {
        return array(
            array(
                'label' => Mage::helper('vendors')->__('Not Submited'),
                'value' =>  self::STATUS_NOT_SUBMITED
            ),
            array(
                'label' => Mage::helper('vendors')->__('Pending'),
                'value' =>  self::STATUS_PENDING
            ),
            array(
                'label' => Mage::helper('vendors')->__('Approved'),
                'value' =>  self::STATUS_APPROVED
            ),
            array(
                'label' => Mage::helper('vendors')->__('Not Approved'),
                'value' =>  self::STATUS_UNAPPROVED
            ),
        );
    }
}

My validation In List.php block
---------------------------------
$collection->addAttributeToFilter('approval',VES_VendorsProduct_Model_Source_Approval::STATUS_APPROVED);

so problem is this ...the value of this is not avail in flat table....its working fine  with eav...but not fine with flat tables.....so how can i solve this issue...how can i get attribute value by product id...with query..or any solution

setting of attribute..
----------------------


texts: Running php bin/magento setup:upgrade stuck

texts:
I am running php bin/magento setup:upgrade
command after migration from one aws instance to another Instance and It is hanged and stuck  not moving forward??


texts: How to get subcategories on one page and products on another page?

texts:
I have category seating and I have some subcategories (sofa,chair) in it.
I want one category page that shows list of sub categories and another page which shows all the products of the seating.
We can add Id or some parameter to differentiate both the page.


texts: Magento 2.2.2 .htaccess Internal Server Error

texts:
I have uploaded 2.2.2 file on my server and wanted to install it but it gives Internal Server Error.
I have checked the cPanel error.log and found following error log

  [Thu Dec 28 22:35:40.272102 2017] [core:alert] [pid 28738] [client
  103.38.161.68:41924] /public_html/.htaccess: Invalid command ' < IfVersion', perhaps misspelled or defined by a module not included in the server configuration

How can I do?

Thank you


texts: Configurable product price stays on $0 after choosing option

texts:
When I choose an option at a configurable product on our webshop. The price stays on $0 while clearly the associated simple products have amounts. Anyone know what might be the problem?

Running Magento CE 1.9.2.4
Using SCP (from github abcfyk updated for 1.9.2.4)
Disabled 3rd party modules
Flushed cache
Reindexed everything
I've also tried to put configurable product as the same price like the cheapeast associated product. But then it keeps showing the cheapest price.

For example:

Configurable product: €46.24 [shows on front-end]
Associated product 1: €46.24
Associated product 2: €83.96 [choosing this one, keeps €46.24 showing]

Adding associated product 2 to cart, takes price of the main product instead of product 2.


texts: Get Voucher when you enter email address on a page

texts:
I want to give voucher code if user enters email address

soon as they enter the email (Discount should be showed in page)
I want to set cart rule for the voucher

Is this possible?


texts: Reduce number of js request in magento 2

texts: I already merged js files and set production mode, but all js files still loading in the head section along with merged js file.


texts:
I have already looked at the following post
magento checkout change TAX to VAT
I've done this part:
You can change this by going into you Magento Admin. From there go Sales -> Tax -> Manage Tax Rules. Then rename the name of your Tax Rules from "Tax" to "VAT"

I've also done a Search in All the Themes in app\design\frontend\ For 'TAX' _('TAX') and every conceivable search for TAX and manged to change the following URL /checkout/cart/:

BASKET TOTALS

Total Excl. VAT £83.33

Tax   £16.67

Total Incl. VAT £100.00

The part in bold I can't seem to alter no matter what I can't find where to change it???

in app\design\frontend\base\default\template\tax\checkout\grandtotal.phtml

line 40 is this bit of code

    <?php echo $this->renderTotals('taxes', $this->getColspan()); ?>

This is the part what displays it, but not sure which file, database table it is pulling from, If anyone knows it would be much appreciated.

Thanks


texts: Free shipping - minimum order value without tax

texts:
is there a way to declare the minimum order value in system->configuration->shipping->free shipping without tax?

Thanks for your help.


texts: I have upgrade to 1.9.3 and now i realized i have to apply SUPEE 8788 before upgrade. is there any way to apply patch now?

texts:
I have upgrade to 1.9.3 and now i realized i have to apply SUPEE 8788 before upgrade. Is there any way to apply patch now?

I can't see any SUPEE 8788 patch for 1.9.3

Is it advisable to apply last version of patch?


texts: Magento2 how to create a module and displayed a template is on the front page

texts:
I created a module, but I do not know how to show a template module to the home page, I also purchased the Smartwave theme. Can anyone help me here.

smartwave is my installed theme


texts: magento custom module keep throwing error even after deleting all files

texts:
i created a module in magento 1.9 CE to override list.php, and there was some issue, then i removed all the files for that module (the xml under module and all files under app/local/mycompany/), but the xml file keeps coming back with the following error:

    exception 'Mage_Core_Exception' with message
'Invalid block type: MyCompany_MyCustomModule' in /Applications/MAMP/htdocs/magento/app/Mage.php:595

there is no MyCustomerModule anymore, but the system keep throwing the exception.

thanks a lot.

EDITED:

I did the following:

added these files:

app/etc/modules/MyCompany_CatalogList.xml

app/code/local/MyCompany/Catalog/etc/config.xml

app/code/local/MyCompany/Catalog/Block/Product/List/list.php

Then I reload the product category page, no products show (there should be some products). Then i went to the the above directory and deleted all the files.

Every time i try to load the page again, got that exception, but all the files are gone. I am confused.


texts:
I'm currently trying to get Owl Carousel working with Magento 1.7 and getting this error in console. googling i can't seem to find anything about it.

Uncaught TypeError: this._core.$element.on is not a function
at new Lazy (owl.slider.js:1874)
at Owl.<anonymous> (owl.slider.js:183)
at Function.c (jquery-1.4.2.min.js:16)
at Function.each (jquery-1.4.2.min.js:16)
at new Owl (owl.slider.js:181)
at HTMLUListElement.<anonymous> (owl.slider.js:1797)
at Function.each (jquery-1.4.2.min.js:16)
at init.each (jquery-1.4.2.min.js:16)
at init.$.fn.owlSlider (owl.slider.js:1795)
at HTMLDocument.<anonymous> ((index):315)


texts: Checkout page - Check if guest is already subscribed to Newsletter

texts:
In Checkout page, there's a checkbox that allows guests to subscribe to Newsletter by placing their order.

But there is no control over already subscribed emails. If guest's email is already included in newsletter subscribers list, guest receives the "Thank you for your Newsletter Subscription" email again.

Is there a way to display an error message in checkout page or even hide the newsletter checkbox, in case the customer's email is already included in newsletter subscribers?


texts:
I have loaded the category and sub-category, now I need to load image as well but I'm not sure how to do that.

Below is the code I have used:

In block file:

public function getStoreCategories($sorted = false, $asCollection = false, $toLoad = true)
    {
        return $this->_categoryHelper->getStoreCategories($sorted , $asCollection, $toLoad);
    }

    public function getCategoryById($categoryId)
    {
        return $this->_categoryRepository->get($categoryId);

    }

In phtm file:

              Login

              Sign Up

          <?php
          $categories = $block->getStoreCategories();
          foreach ($categories as $category):

          ?>

<a href="<?php echo $category->getRequestPath();?>"><?php echo $category->getName(); ?>

            <?php
            $subCategories = $block->getCategoryById($category->getId());
            foreach ($subCategories->getChildrenCategories() as $subCategory):
            ?>

<a href="<?php echo $subCategory->getRequestPath();?>"><?php echo $subCategory->getName(); ?>

          <?php endforeach; ?>

        <?php echo $block->getSubcategories($subCategories); ?>
        <?php endforeach; ?>

Can you please help me with this?


texts: Create a coupon on specific category in cart page

texts:
I am working on magento 1.9.1.

I am offering free shipping if customer chooses a product from particular category (Say Category B).

In the cart page, the customer have added other category products too.

Ex:

Product 1 - Category A, Product 2 - Category C, Product 3 - Category B

Now, the coupon must not apply if Other category products are added (Say Category A & C).

Is there a method for this to happen?


texts: Magento 2.4 marketplace - What server requirements and setup

texts:
I am about setting up a Marketplace with Magento 2.4 and I am short of server requirements and configuration to follow.
Your knowledgeable advice is welcome.
Documents or guides will be excellent as well
I already have a server with 32GB ram, 8 cpu cores, 500 ssd, 50TB at 1GB port running on centos 7.

Is a cluster the way forward?

Should I get more servers of similar specs or higher?

Caching on one server (ram and cpu?)and elasticsearch on another (server requirements)

Database on another server (what ram and cpu?).

Caching on
Thanks.


texts: Magento auto-generated sitemap is different with URL Rewrite

texts:
When Magento generated my sitemap.xml, the total amount of links are much fewer than the URL Rewrite links. Of course I understand that in URL Rewrite Management page, many of the links are redundant.

That's why I truncated the core_url_rewrite first then run the reindex. So now all the links are System generated links, not Custom links. But still the total amount of links in URL Rewrite Management is much more than the sitemap.xml.

I've enabled Product, Category and CMS Pages in System-Configuration-Google Sitemap. But still the total amount of links in sitemap.xml is much fewer. I would expect the same or not too many different.

Any reason why?


texts: Customer Login within Agent Login Instance

texts: Is it possible to have an agent login to Magento sales portal and then have customer's login & logout for assisted sales within the Agent's login instance?


texts: if same email id is already used in newsletter a pop should come user already registered?but it is showing pop thank you for subscribtion

texts:
jQuery(document).ready(function(){

        jQuery(".news_button").click(function() {
        if (newsletterSubscriberFormDetail.validator.validate())
        {
            jQuery.ajax({
                url: "<?php echo $this->getFormActionUrl() ?>",
                type: "POST",
                data:  jQuery("#newsletter-validate-detail").serialize(),
                success: function(data){
                if(data == 1) {
                jQuery('.news-popup').reveal({
                    animation: 'fade',                   // fade, fadeAndPop, none
                    animationspeed: 200,                       // how fast animtions are
                    closeonbackgroundclick: true,              // if you click background will modal close?
                    dismissmodalclass: 'close'
                });
                jQuery('#newsletter').val('');
                } else {
                jQuery('.news-popup-error').html('<img style="padding-top: 10px;" src="<?php echo $this->getSkinUrl('images/headerlogo.png') ?>" alt="header logo" /><img src="<?php echo $this->getSkinurl('images/btn-remove.png'); ?>" /><?php echo $this->__('This email has already been registered for our newsletter subscription, please try with another email')?>');
                jQuery('.news-popup-error').reveal({
                    animation: 'fade',                   // fade, fadeAndPop, none
                    animationspeed: 200,                       // how fast animtions are
                    closeonbackgroundclick: true,              // if you click background will modal close?
                    dismissmodalclass: 'close'
                });
                }
                }
            });
        }
        });

});


texts: Send contact us emails to multiple recipients

texts: Is there an easy way to send the contact us to multiple recipients?  javascript validation appears to limit to one email address.


texts: "No alive nodes found in your cluster" error in magento 2.1.6 after elasticsearch

texts:
Every time I save a new product I get that error

  "No alive nodes found in your cluster"

My version of magento is 2.1.6 and the problem appeared after installing the elasticsearch module

What could be a solution to this problem? this also does not let me delete products or change their data


texts: Products won't save after Upgrade to 1.7.0.2

texts:
I recently upgraded a clients website from 1.5.0.1 to 1.7.0.2 and I have noticed I am getting the following error message when trying to save a product. I am stumped as to how I would fix this.
My Upgrade process included a fresh install of Magento which updated the old DB.

  SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or
  update a child row: a foreign key constraint fails
  (clientupgrade/catalogrule_group_website, CONSTRAINT
  FK_CATRULE_GROUP_WS_RULE_ID_CATRULE_RULE_ID FOREIGN KEY (rule_id)
  REFERENCES catalogrule (rule_id) ON DELETE CASCADE ON UPDATE CA)

I hope you guys can help.


texts: I'm Looking for a sample CSV product file to import into test store

texts:
I have my first Magento test site running and I'm looking for a sample CSV product file to import for testing. Does anybody know where I can download one? Ideally I'd like the file to contain lots of items so I can test the speed of search.

Thank you,
Eric


texts:
The "magento/magento-composer-installer" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
The "magento/inventory-composer-installer" plugin was skipped because it requires a Plugin API version ("^1.1") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.

I am facing the above issue, I need to downgrade Magento2 composer version. How can i downgrade composer version 2 to 1.


texts: How can I add same value added tax for all countries in Magento 2?

texts: I wanna add 10% tax value for all countries in Magento 2. I can make them 1 by 1 for each country by adding Tax rules under Tax Zones but there should be more effective way which I couldnt find after searching an hour.


texts:
We have imported simple products into magento 2 without url_key earlier. front-end also working fine.

https://prnt.sc/mia64k

But we would like to generate url_keys for those products.

  Observations :

While saving product from magento admin end the url_key has been generating and associating to the product. but we have around 1000 products.
Tried with programmatically to save the product but not getting expected result.

<?php
use Magento\Framework\App\Bootstrap;
require __DIR__ . '/app/bootstrap.php';
$bootstrap = Bootstrap::create(BP, $_SERVER);
$objectManager = $bootstrap->getObjectManager();
$state = $objectManager->get('Magento\Framework\App\State'); $state->setAreaCode('frontend');
$product_id = 1036;
$product = $objectManager->get('Magento\Catalog\Model\Product')->load($product_id);
$product->save();
echo "Product Saved Successfully ====>".$product_id;

How do we overcome this issue.? Please advise.


texts: Magento 2 CE Customer update REST API for email address update not validating the password

texts:
Magento2 CE REST API for customer information update not validating the given password with actual password, it accepts everything.

Content-Type : application/json
Authorization: Bearer "customerToken"

Method: PUT <base_url>/rest/V1/customers/:customerID

Request:
{
  "customer": {
    "id": "45338",
    "email": "test230720195@yopmail.com",
    "firstname": "Updatetest",
    "lastname": "Testing",
    "websiteId": 1
  },
  "password": "qawsedrf!"
}

Is any other API exist to update customer information with password validation?


texts: how to display different description for each virtual product which was create with configurable products?

texts:
In Magento 2 , when we create configurable product its child product also created, we can provide different description for child products too.

> 1. How to access description of each child product on product page?
> 2. can we make it throw on change of fields , like if we changes color on product
     page, so it will show description of that color child product?

Any help will thank full.


texts: Magento Migration Tool mapping files for config.xml

texts:
So I am configuring the Magento Migration Tool as a separate module, as recommended in the documentation. I have followed all the instructions and got to the point of providing some table ignores within the map.xml file I moved to the module. I'm happy that is fine and have updated the location within config.xml, once again in the module.
I don't need to do any other "excludes" or "transforms" etc... so I don't need to edit any further XML files for mapping. However, in config.xml there are a number of other files mentioned, with the .dist extension, which I have NOT moved to the module. Even if not editing these files am I required to move them to the module like I have done with map.xml? Do I just delete the entries I am not editing from the config file? The extract I am talking about is as follows:
    <options>
      <map_file>etc/opensource-to-opensource/1.9.4.5/map.xml</map_file>
      <eav_map_file>etc/opensource-to-opensource/map-eav.xml.dist</eav_map_file>
      <eav_document_groups_file>etc/opensource-to-opensource/eav-document-groups.xml.dist</eav_document_groups_file>
      <eav_attribute_groups_file>etc/opensource-to-opensource/eav-attribute-groups.xml.dist</eav_attribute_groups_file>
      <log_map_file>etc/opensource-to-opensource/map-log.xml.dist</log_map_file>
      <log_document_groups_file>etc/opensource-to-opensource/log-document-groups.xml.dist</log_document_groups_file>
      <settings_map_file>etc/opensource-to-opensource/settings.xml.dist</settings_map_file>
      <customer_map_file>etc/opensource-to-opensource/map-customer.xml.dist</customer_map_file>
      <customer_document_groups_file>etc/opensource-to-opensource/customer-document-groups.xml.dist</customer_document_groups_file>
      <customer_attribute_groups_file>etc/opensource-to-opensource/customer-attribute-groups.xml.dist</customer_attribute_groups_file>
      <delta_document_groups_file>etc/opensource-to-opensource/deltalog.xml.dist</delta_document_groups_file>
      <order_grids_document_groups_file>etc/opensource-to-opensource/order-grids-document-groups.xml.dist</order_grids_document_groups_file>
      <map_document_groups>etc/opensource-to-opensource/map-document-groups.xml.dist</map_document_groups>
      <class_map>etc/opensource-to-opensource/class-map.xml.dist</class_map>
      <tier_price_map_file>etc/opensource-to-opensource/1.9.4.5/map-tier-price.xml.dist</tier_price_map_file>
      <stores_map_file>etc/opensource-to-opensource/map-stores.xml.dist</stores_map_file>

Any advice is much appreciated. I don't want to finish up the config for the Migration Tool and run it without being sure I've set-up the files in the right place etc...
Many thanks in advance!


texts:
My question is, i have a Overview as a Product for vices. This page is used to store 130 vices in one page. The problem is, i need to remove the price and the order button for this overview page. How can i do this without modifying the products page für every product?

http://duritec.ch/magento/din-931.html


texts: Magento 2: How I can add Configurable products to cart from category view with selected options

texts:
Currently simple products added to cart works from category view. I want same it for configurable products with selected options should be add to cart from category view page.

Currently when I select configurable with options and click to add to cart button it will redirect to detail page.

How it can be done in Magento-2 ? Any have completed ?

Thanks.


texts: Magento 2 : How to Save Quote Data after order placed

texts:
1. Observer Class

<?php
namespace Simple\Module\Observer;

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

class Quote implements ObserverInterface {
    protected $_objectManager;
    public function __construct(
        \Magento\Framework\ObjectManagerInterface $objectManager,
        \Psr\Log\LoggerInterface $logger
    ) {

        $this->_objectManager = $objectManager;
        $this->logger = $logger;
    }

    /**
     *
     * @param \Magento\Framework\Event\Observer $observer
     * @return void
     */
    public function execute(\Magento\Framework\Event\Observer $observer) {
        //Quote
        $quoteId = $order->getQuoteId();
        // $payment = $order->getPayment()->getData('additional_data','custom_field');;
        $quote = $this->quoteFactory->create()->load($quoteId);
    }

}

2. events.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
     <event name="sales_order_save_after">
         <observer name="save_data" instance="Vendor\Module\Observer\AddCustomFieldValue"  />
</config>


texts:
I recently bought a template and I want to customize it.

I spoke with the help center and they said it's not necessary to use a child theme.

What is the best way to do that.


texts: Is it possible to get the QuoteId that was used once an OrderId has been created

texts: I'm tracking customer movements through the order process by using their QuoteId  Mage::helper('checkout/cart')->getQuote()  - which is created as soon as a customer ads a product to the cart, however once an order is placed (eg on the sucess page) the QuoteId is no longer available (because the cart doesn't exist anymore) and an OrderId becomes available. Is it possible to get the QuoteId that was used to create the OrderId from the OrderId?