texts: Editing an Order on Magento's admin panel

texts: Sometimes we have customers that order the incorrect products.  I need to be able to edit their order to reflect the correct product so that when they view their order history the correct product shows and not the incorrect product.  However, when I go to the order in question and choose edit, I get the "are you sure? this will cancel this order and start a new one" message.  I choose ok and it creates a new order, however it doesn't do anything to the original order.  It leaves it open and pending/processing.  Should it work this way, or should it actually cancel the original order?


texts: Links are not working on Magento 2 on Front End theme

texts:
I installed quickstart Magento with Venus Floristy theme on cPanel. Everything is running fine except for links there. When I go to homepage mydomain.co.uk its working fine and store is opening.

But when I click on menu links, Magento is giving error. Let say I am going to contact page so on clicking contact in menu its giving error and making link as

  http://mydomain.co.uken/contact/?SID=ocv7q4bfjnf8r6ura9bpvsnmh3

And links are not working. Magento is automatically adding en in domain as you can see above and page is not opening but when I manually modily en like

  http://mydomain.co.uk/en/contact/?SID=ocv7q4bfjnf8r6ura9bpvsnmh3

now page is opening and working fine. Can you tell me what going wrong there.

And store is also not working when I try to go www.mydomain.co.uk


texts: Adding a function to "Add to cart" button

texts:
I want "add to cart" button to be visible for all visitors, but work just for customers. And when visitors (who didn't login) press "Add to Cart" button i want to show them a popup or redirect them into a cms page which is going to tell them that they need to login to use this function.

Is that possible?


texts: How to add custom form on cash on delivery payment method using layout in checkout_index_index.xml Magento 2

texts:
I want to add form in cash on delivery payment method only on checkout page Magento 2. I want to add it using layout checkout_index_index.xml.

Can anyone please tell me how to add form using layout file on checkout page Magento 2?


texts: Magento 2 Some configurable products not shown on frontend

texts:
I have noticed some of my configurable is not showing on the frontend, nor searchable. However, the product page is accessible directly with URL.

These products which are not showing on the frontend (but accessible with URL), have exactly the same setup as those are displayed correctly.

I have tried the following, but it didn't help.

I tried to clear cache php bin/Magento cache:flush

I tried to reindex php bin/magento indexer:reindex

I tried to deploy static content php bin/magento setup:static-content:deploy

And in admin, I have made sure the products are enabled, and Visibility set to Catalog, search.

I have made sure that the child products is in_stock, and both child products and parent product are assigned to the correct website and categories.

What did I miss?


texts: Why does magento do if statements like this if ($_attributeType && $_attributeType == 'value')?

texts:
What is the benefit of checking first if the variable is not empty before checking the value? Is it a speed improvement?

Is it a best practice to always check it like this in php?

$_attributeType = $block->getAtType();
if ($_attributeType && $_attributeType == 'text') {
...
}


texts: Magento 1.9 Storing JWT in Server to Server communication

texts:
Storing JWT in the server side is a bad practice. But most of the time we say that in the context when the API calls are made from the client side.

Currently I am doing an implementation where from my backend I need to generate JWT token and use in API calls in the server side itself. (Documentation which I am following (Flipkart))

Here the expiry time of my JWT will be 1000 seconds (16.67 minutes).

Problem: Where should I store my JWT once created so that all the multiple client hits use the same JWT until it expires.

Possible Approaches :

Store in the database, which I think will be a very bad decision considering it has to renew every 16 minutes.
Store in the client cookie. But here since its a server to server calls, different client at the same time will have different JWT tokens.
I am using Magento 1.9, and we can store values in sessions, customer-sessions etc. It has same problem as 2nd.

Thus, I am looking for possible approaches which can be followed in this case.


texts:
I used a module for category slider. To call this in static block I used below the line.

{{block type="vsourz_catproduct/productslider" category_id="6" title="Product Slider" template="vsourz/products/productslider.phtml" product_count="12"}}

Everything is working perfect, actually, i want to learn how values are passed as category_id="6" or title="Product Slider" in above call.

How to achieve this if I want to make my own modules.

There is function in block

<?php
class Vsourz_Catproduct_Block_Productslider extends Mage_Catalog_Block_Product_Abstract{
    public function getProducts(){
        --> $catId = $this->getCategoryId();
        $prodCnt = $this->getProductCount();
        $_productCollection = Mage::getModel("vsourz_catproduct/productslider")->getItemCollection($catId,$prodCnt);
        return $_productCollection;
    }
}

Is this function get the category_id.
Kindly suggest.


texts: Stock is not updating after update the product quantity Magento 1.9?

texts:
I am facing an error in Magento 1.9. I have changed the product quantity from Magento admin panel but the stock did not update.
I have clean cache already but it still showing out of stock.
Can anyone please help me to solve it.


texts:
In Cart page I would like to modify the tax label.

Suppose for some rules I've set VAT rate 8% and my English label is 8% VAT

So in cart page it's appearing like 8% VAT (8%)

So How can I remove (8%) from the last??


texts: Problems extending core review block helper

texts:
I'm trying to extend the review block helper located at /app/code/core/core/Mage/Review/Block/Helper.php. I've created a new module at /app/code/local/MyModule/Review/Block/Helper.php which includes and extends the parent class as follows:

include('Mage/Review/Block/Helper.php');

class Mymodule_Review_Block_Helper extends Mage_Review_Block_Helper
{

I've also created a config.xml file at app/code/local/Mymodule/etc/config.xml which contains the following:

<?xml version="1.0"?>
<config>
    <modules>
       <Mymodule>
            <version&gt;1.0.1</version>
       <;/Mymodule>
   </modules>
   <global>
      <blocks>
       <review>
         <rewrite>
           <mage_review_block_helper>Mymodule_Review_Block_Helper</mage_review_block_helper>
         </rewrite>
        </review>
      </blocks>
   </global>
</config>

However, any method changes that I drop into my file I not being implemented on the front end, with or without flushing the cache.

I suspect it's something as simple as the keys in the XML not being correct but I can't work out what that correct nesting should be.

Any help would be appreciated.

Thanks


texts: Magento 2 - How to create a custom module with admin config?

texts:
How could I create a simple module to Magento 2 with admin configuration, like Porto theme or Amasty modules?

Store > Configuration


texts: Multistore Add to Cart 302 redirect loop

texts:
This is an urgent need to fix issue: a two language magento store, english store: add to cart creates a loop with a 302 error. Only happens in english language. website:

  http://negreshop.com

what you think is happening?


texts: Why is site faster without Full Page Cache on?

texts:
We recently had to do a code deployment to a server cluster. We turn off cache before the deployment. We forgot to turn the cache back on but then after looking at NewRelic we noticed the response time of the site is faster without FPC?

Can anyone think of a reason? We are using Object Rocket from Rackspace for the caching.


texts:
I have around 1500 customers which I need to import into Magento from another CMS. The passwords in the old CMS are hashed therefore we have no idea of what they are.

Does anyone know of a way or an extension that will allow me to import the 1500 customer and also email them all to set a new password. Please note I dont want new passwords to be emailed to customers as this is bad practice. The ideal solution would be the customer would get an email with a link to click and then they enter their own new password on the site


texts: People from Russia making fake accounts in our Magento 1.9.x store - why?

texts:
Magento 1.9.1 and 1.9.3.7
Porto theme

We have 2 Magento installations each with multiple domains/websites. I have noticed recently in the CUSTOMERS --) MANAGE CUSTOMERS area that there are customers with Russian Email addresses there (they never bought anything just registered).

Why would someone do that and is there any kind of a security risk involved? Shall I delete those accounts?

We have had problems with being blacklisted on different blacklists recently even though we NEVER EVER sent any spam whatsover! Could this be connected?

UPDATE ON October 16th, 2018:

We now have 136 348 new accounts. I have activated the Magento CAPTCHA yesterday for both new accounts and Guest Orders but I don't think that worked as we have 700 new fake accounts today alone (and it's only 13:33 MST).
What else do I need to do to stop this? I am so desperate I'm even thinking to temporarily stop sending Emails after customer registers. Please help...


texts: Why are html tags appearing in meta description for all my products?

texts:
My meta description for all my products looks something like this:

meta name="description" content="
免費附贈專用腳踏幫浦一支

可使用標準嬰兒床單

安全護欄設計避免幼兒摔落

Why is it including the
 tags? When I enter the products via admin console, I manually type it in in HTML format. But I didn't expect for it to appear in the meta description.

I certainly hope this doesn't show up in search engine listings.

AND, when I share to a social network, even the tags are being shared too.

Anybody know why this is happening?


texts: Adding existing data, e.g. customers, sales into new Magento Install DB

texts:
After breaking our site we are looking at a fresh install however do not want to lose customer data, such as customer logins and sales data, products etc.

Would it possible to take this information out of our existing database without including directories that were broken (from uninstalling a theme / module incorrectly)

Thanks a lot,
William


texts: Redirect back to measurement form once customer logs in

texts:
I've a href link on product page which link to a measurement form in customer's dashboard. If customer is logged in, measurement form will appear otherwise it will redirect to login page. Once customer logs in again it should re-direct to my measurement form.

In measurement form I've condition Mage::getModel('customer/session')->isLoggedIn() and showing form or re-direction them to login page based on whether they are logged-in or not.
When they are re-directed to login page and logs-in how I can re-direct them again to measurement form in this particular case?

Note: I don't want to re-direct them to measurement form if they are logging-in from any other place like wishlist, checkout etc.


texts: 503 Service Unavailable Error in Magento Admin

texts:
I am getting "503 Service Unavailable" error only in magento admin. The error is displayed on admin user login, when navigating to any of the pages and while saving the configs.
The error is intermittent and upon refreshing the page the error goes away and the page is loaded and displayed.

The site is not in maintenance mode and  I don't see maintenance.flag in root or var folder.

Any ideas/solutions to get rid of this problem ??


texts: How to Create Tier Price type structure in System Configuration? Magento2

texts:
How to Create Tier Price type structure in System Configuration?
I need to this Tier price type max and mix price to Qty set in system config how can I do? any idea about it?


texts: Get Simple products price of configurable products of current category in magento 2?

texts:
I am trying to get all simple products of configurable products and display it according to categories. I am using :

<?php
    $attributes = $objectManager->create('Magento\Catalog\Model\ResourceModel\CollectionFactory');
    $attributes = $productCollection->create()->addAttributeToSelect('*')->load();
    foreach ($collection as $product){
            echo 'Name  =  '.$product->getName().' - Price  =  '.$product->getPrice(). '<br>';
        }
?>`

When i am using this code , I am getting all the simple products assigned to configurable product. But I have to display the current category' Product which are assigned to configurable products. Can anybody please help me.


texts: Magento 1.7 - Unable to set custom option values programmatically

texts:
I am using the following code to add custom option programmatically but the values are not getting set while the custom option is

<?php
    require_once 'app/Mage.php';
    require_once 'Zend/Crypt/Hmac.php';

    umask(0);
    Mage::app('default');
    Mage::getSingleton('core/session', array('name' => 'frontend'));

    function getOptions(){
        return array(
            array(
                'title' => 'Option Value 1',
                'price' =>100,
                'price_type' => 'fixed',
                'sort_order' => '1'
            ),
            array(
                'title' => 'Option Value 2',
                'price' =>100,
                'price_type' => 'fixed',
                'sort_order' => '1'
            ),
            array(
                'title' => 'Option Value 3',
                'price' =>100,
                'price_type' => 'fixed',
                'sort_order' => '1'
            )
        );
    }

    $option = array(
        'title' => 'custom option title',
        'type' => 'radio', // could be drop_down ,checkbox , multiple
        'is_require' => 1,
        'sort_order' => 0,
        'values' => getOptions()
    );

    $obj = Mage::getModel('catalog/product');

    $product_id = $obj->getIdBySku('skuid1');
    $product = $obj->load($product_id);
    $optionInstance = $product->getOptionInstance()->unsetOptions();
    $product->setHasOptions(1);
    $optionInstance->addOption($option);
    $optionInstance->setProduct($product);
    $product->save();
    unset($product);
    echo "Done";

    $product_id = $obj->getIdBySku('skuid2');
    $product = $obj->load($product_id);
    $optionInstance = $product->getOptionInstance()->unsetOptions();
    $product->setHasOptions(1);
    $optionInstance->addOption($option);
    $optionInstance->setProduct($product);
    $product->save();
    unset($product);
    echo "Done";

?>

Please help


texts: Associate Products to Categories after Export CSV

texts:
Is there a way to associate products with categories?

I've exported a csv with all the products, images etc (a complete export) then after the import (it wasn't painless) I've noticed 3 things

1) Categories was missing! Removed the products. Uploaded a csv with the categories. Uploaded, again, products but they still not in categories!!!

Do you know a way I can associate those products with categories?

Possibly with a csv? I've tried this (changing it a bit) and read other stuff on the net but no luck.

-

2) Configurable products are not associated, different colors and sizes products are there but not associated with the main product... (didn't fixed it yet)

3) Images was missing in Back & Frond end. fixed. (it wasn't painless)


texts:
I want to get the current type page by echoing its type .I have tried several methods but none has worked.

Screenshot from the Backend
Simply I want to check the Agencement value
Sorry for not providing essays as none has worked

Thanks in advance


texts:
my etc/frontend/routes.xml is :

 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<router id="standard">
    <route id="catalogsearch" frontName="catalogsearch">    <!--front name for the controller-->
        <module name="Tagalys_Tglssearch"/>
    </route>
  </router>
</config>

My controller paths are:

\Tagalys\Tglssearch\Controller\Catalog\Category.php

\Tagalys\Tglssearch\Controller\Catalog\CategoryController.php

\Tagalys\Tglssearch\Controller\CatalogSearch\Result.php

\Tagalys\Tglssearch\Controller\CatalogSearch\ResultController.php

is my layout file name correct ?

catalogsearch_result_index.xml

     <?xml version="1.0"?>
     <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <body>
    <referenceBlock name="catalogsearch.leftnav">
        <arguments>
            <argument name="setTemplate" xsi:type="string">Tagalys_Tglssearch::tagalys_search/filter.phtml</argument>
        </arguments>
    </referenceBlock>
  <referenceBlock name="product_searchlist_toolbar">
        <arguments>
            <argument name="template" xsi:type="string">Tagalys_Tglssearch::tagalys_toolbar/toolbar.phtml</argument>
        </arguments>
     </referenceBlock>
    </body>
  </page>

Because my custom block is not at all getting called

class ListProduct extends \Magento\Catalog\Block\Product\ListProduct

public function __construct(
    /*passing all Constructors parameters to the parent class */
    \Magento\Catalog\Block\Product\Context $context,
    \Magento\Framework\Data\Helper\PostHelper $postDataHelper,
    \Magento\Catalog\Model\Layer\Resolver $layerResolver,
     CategoryRepositoryInterface $categoryRepository,
    \Magento\Framework\Url\Helper\Data $urlHelper,
    /*passing all Constructors parameters to the parent class */

    \Tagalys\Tglssearch\Helper\Data $tglssearchHelper,
    \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $catalogResourceModelProductCollectionFactory,
    \Magento\Catalog\Model\Config $catalogConfig,
    \Magento\Store\Model\StoreManagerInterface $storeManager,
    array $data = []
) {
    $this->tglssearchHelper = $tglssearchHelper;
    $this->catalogResourceModelProductCollectionFactory = $catalogResourceModelProductCollectionFactory;
    $this->catalogConfig = $catalogConfig;
    $this->storeManager = $storeManager;

      parent::__construct(
        $context,
        $postDataHelper,
        $layerResolver,
        $categoryRepository,
        $urlHelper,
        $data
    );
    //$this->tglssearchHelper = $tglssearchHelper;
}
protected function _getProductCollection()
{
         echo 'My block';
}


texts: How to Show product review form in popup Magento2

texts:
I searched a lot to find solution for this problem and seems that many of them are searching for a solution. Finally I did it with a simple workaround it will be helpful to someone.I don't know whether there is a perfect solution.

Thank you


texts: How to Override Mage_Checkout_Block_Cart_Shipping?

texts:
Why can not extend core block with below configs?!

file config.xml modified

  URL : app/code/community/Mycompnay/Mymodule/etc/config.xml

    <config>
        <global>
            <blocks>
                <mymodule>
                    <class>Mycompany_Mymodule_Block</class>
                </mymodule>
                <checkout>
                    <rewrite>
                        <block_cart_shipping>Mycompany_Mymodule_Block_Cart_Shipping</block_cart_shipping>
                    </rewrite>
                </checkout>
            </blocks>
        </global>
     </config>

file Shipping.php to extend

  URL : app/code/community/Mycompany/Mymodule/Block/Cart/Shipping.php

class Mycompany_Mymodule_Block_Cart_Shipping extends Mage_Checkout_Block_Cart_Shipping
{
    public function getCityActive()
    {
        return (bool)Mage::getStoreConfig('carriers/mymodule/active');
    }
}


texts: Method which triggers after change in shipping address

texts:
Is there any knockout method which is triggering after update/edit shipping address on checkout ?
to be in details what I want to achieve is based on city enter, I want to show custom content.
All this working fine when customer has saved address in account but not when customer placing an order first time.
Layout code looks like:
<item name="shippingAdditional" xsi:type="array">
      <item name="component" xsi:type="string">uiComponent</item>
            <item name="displayArea" xsi:type="string">shippingAdditional</item>
                  <item name="children" xsi:type="array">
                        <item name="additional_block" xsi:type="array">
                              <item name="component" xsi:type="string">Vendor_Module/js/view/checkout/shipping/additional-block</item>
                        </item>
            </item>
     </item>

Here's JS file:
define([
    'uiComponent',
    'Magento_Checkout/js/model/quote',
    'mage/url',
    'knockout',
    'jquery'

], function (Component, quote, url, ko, $) {
    'use strict';

    var content = window.checkoutConfig.shipping_method_promotion;
    var status = ko.observable(window.checkoutConfig.dd_status);
    var earliestDeliveryCityLIst = window.checkoutConfig.dd_earliest_city_list;
    var earliestDeliveryCityTime = ko.observable(window.checkoutConfig.dd_earliest_city_time);
    var longetDeliveryCityList = window.checkoutConfig.dd_longer_city_list;
    var longerDeliveryCityTime = window.checkoutConfig.dd_longer_city_time;

    return Component.extend({
       defaults: {
           template: 'Vendor_Module/checkout/shipping/additional-block'
       },
       getCityName: function () {
       var deliveryDays = '';
       $(document).on('change',".city_dropdown",function(){
            console.log('change event listened');
        });
      return deliveryDays;
    },
     getDeliveryDate: function () {
           var cities = earliestDeliveryCityLIst.split(",");
            if ($.inArray(this.getCityName().toLowerCase(),cities) != -1) {
               return earliestDeliveryCityTime;
            } else {
                return content;
            }
        }
    });
});

Template:

Above attempt is working as expected in case of saved address for customer not for new order.
I know that I can write one more method in JS to listen on change method  but how can i pass the value to ko template whenver change happened!?
My bad if you expert noticed any silly mistake i feel approch i used in somewhere incorrect.
Any suggestions !?


texts: controller_action_predispatch event is not firing my observer

texts:
This is the first observer I'm writing. I'm testing the observer with the controller_action_predispatch that should fire when I load a page as an example. This is the files I created:

/app/etc/modules/EPS_CustomizationURL.xml

<?xml version="1.0"?>
<config>
    <modules>
        <EPS_CustomizationURL>
            <codePool>local</codePool>
            <active>true</active>
        </EPS_CustomizationURL>
    </modules>
</config>

/app/code/local/EPS/CustomizationURL/etc/config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <EPS_CustomizationURL>
            <version>0.0.1</version>
        </EPS_CustomizationURL>
    </modules>
    <global>
        <models>
            <epscustomizationurl>
                <class>EPS_CustomizationURL_Model</class>
            </epscustomizationurl>
        </models>
    </global>
    <adminhtml>
        <events>
            <!-- observe the event -->
            <controller_action_predispatch>
                <observers>
                    <epscustomizationurl>
                        <class>epscustomizationurl/observer</class>
                        <method>epsURLCreator</method>
                    </epscustomizationurl>
                </observers>
            </controller_action_predispatch>
        </events>
    </adminhtml>
</config>

/app/code/local/EPS/CustomizationURL/Model/Observer.php

<?php
class EPS_CustomizationURL_Model_Observer {
    public function epsURLCreator($observer) {
        $this->_redirectUrl("http://www.google.com");
    }
}
?>

So, as far as I understand as soon as my page loads or even before it I should be redirected to http://www.google.com. This is the only way I could think of to know if my observer is firing.

What am I missing? Any wrong naming, wrong event or _redirectUrl is not working? I'm on Magento 1.9.

EDIT:
All the caches are disabled so the cache should not be the problem:

I also tried just logging something instead of redirect and changing the event to customer_login:

<?xml version="1.0"?>
<config>
    <modules>
        <EPS_CustomizationURL>
            <version>0.0.1</version>
        </EPS_CustomizationURL>
    </modules>
    <global>
        <models>
            <epscustomizationurl>
                <class>EPS_CustomizationURL_Model</class>
            </epscustomizationurl>
        </models>
        <events>
            <!-- observe the event -->
            <customer_login>
                <observers>
                    <eps_customizationurl_model_observer>
                        <type>model</type>
                        <class>epscustomizationurl/observer</class>
                        <method>epsURLCreator</method>
                    </eps_customizationurl_model_observer>
                </observers>
            </customer_login>
        </events>
    </global>
</config>

And my observer:

<?php
class EPS_CustomizationURL_Model_Observer {
    public function epsURLCreator($observer) {
        Mage::log('I just made an Observer!', null, 'system.log', true);
    }
}

But still can't see anything in /var/log/system.log


texts: Categories are not appearing when click on Manage Categories showing Error Source model in the Admin Panel

texts:
I'm into big trouble today and for the last 24 hours I'm trying to fix it up with one of my production site. I had uploaded a theme but theme didn't work as expected so I deleted the theme and all its attributes. But now I'm into a bigger issue.

When I click on Manage Categories in Admin Panel, it displays below error. Website is perfectly working.

There has been an error processing your request

Source model "porto/category_attribute_source_tab_mode" not found for attribute "sw_product_staticblock_tab_1"

I have already tried to search such file in the DB but I didn't find any file with such name.

Could you please help me resolve this issue?

Where and how to find this file or is there any easy fix that can remove this error.

Please help me...

fyi... I'm using RWD theme.

Waiting for your reply guys..

Thanks
Amit


texts: how do i block top links from being index magento2 using robot text

texts:
Google seems to be indexing Wishlist - Add to Cart, My Account” and “Log In/Log Out” links. is there any ways to have something in robot text to block it?

add to cart seem to be appearing on google site link


texts: How to add the address fields in create account form in magento 2

texts:
I Need to customize create account form to show additional address fields in Magento 2.

I have set true to show address fields & it saves the address information perfectly.

  setShowAddressFields(true);?>

But I need another set of address fields for me to create account form. So I have copied the entire address fields section from register.phtml(Overridden in the custom module) & pasted it in the same phtml file(register.phtml)

But it Failed to show the dropdown field for State/Province for United States.

Please advise me how to handle this?
How do I add additional address fields apart from the default address fields?

Thanks for advance


texts: Is it possibly to remove a category (with no products assigned to it) from the breadcrumbs? It is only necessary as a top level item in the main menu but does not need a page. How can this be achieved?


texts: Magento 2 is not generating the db_schema_whitelist.json file via CLI

texts:
I’m updating a module to Magento 2.3 and need to migrate the old setup install scripts to the new db_schema.xml file (the new declarative schema). The db_schema.xml file was correctly generated after running:

php bin/magento setup:install --convert-old-scripts=1

But now I need to generate the db_schema_whitelist.json file and running the following command does nothing:

php bin/magento setup:db-declaration:generate-whitelist --module-name=[module_name]

I followed all the steps outlined in the docs and checked the permissions of the etc folder.

But the result is always the same: no errors, no response, nothing. Any ideas?


texts: Loading layout on rewritten Mage_Adminhtml_Cms_Wysiwyg_ImagesController, handles empty

texts:
I'm trying to rewrite Mage_Adminhtml_Cms_Wysiwyg_ImagesController to override its indexAction(). I seem to be able to rewrite it successfully as the request is being routed to it, but I've been unable to load layout in the action.

config.xml:

<?xml version="1.0"?>
<config>
  <modules>
    <Mynamespace_Mymodule>
      <version>0.1.0</version>
    </Mynamespace_Mymodule>
  </modules>
  <global>
    <blocks>
      <mynamespace_mymodule>
        <class>Mynamespace_Mymodule_Block</class>
      </mynamespace_mymodule>
    </blocks>
  </global>
  <admin>
    <routers>
        <adminhtml>
          <use>admin</use>
          <args>
            <modules>
              <Mynamespace_Mymodule before="Mage_Adminhtml">Mynamespace_Mymodule_Adminhtml</Mynamespace_Mymodule>
            </modules>
          </args>
        </adminhtml>
    </routers>
  </admin>
  <adminhtml>
        <layout>
            <updates>
                <mynamespace_mymodule>
                    <file>mynamespace/mymodule.xml</file>
                </mynamespace_mymodule>
            </updates>
        </layout>
  </adminhtml>
</config>

mymodule.xml (layout file):

<?xml version="1.0"?>
<layout version="0.1.0">
    <mynamespace_mymodule_adminhtml_cms_wysiwyg_images_index>
        <update handle="adminhtml_cms_wysiwyg_images_index" />
        <reference name="content">
            <block name="mynamespace_mymodule.content"
                type="mynamespace_mymodule/cms_wysiwyg_images_content"
                template="cms/browser/content.phtml"
            />
        </reference>
    </mynamespace_mymodule_adminhtml_cms_wysiwyg_images_index>
</layout>

The controller is instantiated but the block class isn't.

Calling $this->getLayout()->getUpdate()->getHandles() in the controller action results in an empty array; it doesn't seem to have any handles.

Why might this be the case and what should I do to get the handles loaded?


texts: Magento 2 There was no Home CMS page configured or found

texts: I am not able to change home page to another page. also I have changed from magento admin but not showing on frontend. also I have changed home page content but not showing on there. !! Please Help


texts: Magento 1.9 : How do I update all downloadable products for old orders?

texts:
I have a product with downloadable PDFs. I recently updated the PDF with a new version. The problem is that customers who bought the old version continue download the old PDF.

How can I get all old customer orders to download the updated PDF?


texts:
Installed extension vsourz-html-sitemap
And executed

php -dmemory_limit=5G bin/magento setup:upgrade

I am getting this strange issue .

            Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Catalog\Model\ResourceModel\Product\Collection::getEntityPkName() must be an instance of Magento\Eav\Model\Entity\AbstractEntity, instance of Magento\Catalog\Model\ResourceModel\Product\Flat given, called in /home/folder/public_html/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php on line 1369 and defined in /home/folder/public_html/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php:1532 Stack trace: #0 /home/folder/public_html/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(1369): Magento\Catalog\Model\ResourceModel\Product\Collection->getEntityPkName(Object(Magento\Catalog\Model\ResourceModel\Product\Flat)) #1 /home/folder/public_html/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(1476): Magento\Eav\Model\Entity\Collection\AbstractCollection->_addAttributeJoin('status', 'inner') #2 /home/folder/public_html/vendor/magento/module-c in /home/folder/public_html/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php on line 1532

Even compiled and cleaned the cache.

When I comment out addAttributeToFilter code section in both two method
then code run perfectly but with these filters are not function with magento 2?
or any other way to add filters?

public function getProductsAllCollection()
{
    $this->_productsCollection = $this->_productCollectionFactory->create();
    $this->_productsCollection
    ->addAttributeToSelect('name')
    ->addAttributeToSort('name')
    ->setPageSize(0)
    ->addAttributeToFilter(
        [
            ['attribute'=> 'status','eq' => 1]
        ]
    )
    ->addAttributeToFilter(
        [
            [
                'attribute'=> 'visibility',
                'in' => [
                    \Magento\Catalog\Model\Product\Visibility::VISIBILITY_IN_CATALOG,
                    \Magento\Catalog\Model\Product\Visibility::VISIBILITY_IN_SEARCH,
                    \Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH
                ]
            ]
        ]
    );
    return $this->_productsCollection;
}

public function getProductsCollection($char)
{
    $this->_productsCollection = $this->_productCollectionFactory->create();
    $this->_productsCollection
    ->addAttributeToSelect('name')
    ->addAttributeToSort('name')
    ->setPageSize(0)
    ->addAttributeToFilter(
        [
            ['attribute'=> 'status','eq' => 1]
        ]
    )
    ->addAttributeToFilter(
        [
            [
                'attribute'=> 'visibility',
                'in' => [
                    \Magento\Catalog\Model\Product\Visibility::VISIBILITY_IN_CATALOG,
                    \Magento\Catalog\Model\Product\Visibility::VISIBILITY_IN_SEARCH,
                    \Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH
                ]
            ]
        ]
    );
    if ($char == '#') {
        $this->_productsCollection->addAttributeToFilter(
            [
                ['attribute'=> 'name','regexp' => '^[^a-zA-Z]']
            ]
        );
    } else {
        $this->_productsCollection->addAttributeToFilter(
            [
                ['attribute'=> 'name','like' => $char.'%']
            ]
        );
    }

    return $this->_productsCollection;
}


texts: Magento 2: How to insert a custom phtml file in a static block

texts:
I need to insert a phtml file in a static block.
The Location of the file is

app/design/frontend/Pearl/weltpixel_custom/edu/custom.phtml

I use "weltpixel_custom" as my child theme
This is the code in the static block:
{{block class="Magento\Framework\View\Element\Template" template="weltpixel_custom::edu/test.phtml"}}

I got the following error:
Invalid template file: 'weltpixel_custom::edu/test.phtml' in module: '' block's name: 'magento\framework\view\element\template_0'
Do you a solution?
In Magento 1.9 it worked with this code:
{{block type="core/template" template="edu/test.phtml"}}

and following file location:

app/design/frontend/ultimo/edu/template/edu

Thank you for helping!


texts: Magento returns bad gateway on international sales

texts:
We're currently using Magento 1.7 with Authorize.net as a payment gateway.  US orders work as expected, but any orders outside the US receive a bad gateway error.

Nothing shows up in the Magento logs or reports, and no information is sent to Authorize.net.  The only trace of the failed attempt I find in the system is the item in the customer's shopping cart.

Could this be related to our server certificate, or am I on the wrong track?


texts:
i get this error in firebug on my magento home page: ReferenceError: url is not defined
on this line :

return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);


texts: Magento 2 - Change category description, position and name programmatically

texts:
How can I change name desciption, position and image attributes for a category using code. I tried this code for changing the name, but without success:

// $_this->cm is \Magento\Catalog\Model\Category
$c=$this->cm->loadByAttribute("pim_category_id", $pimCategoryId);

        $c->setData("name", "testingNaminho");
        $c->setName("via setName setted");
        $c->setData("description", $description);
        $c->setData("position", $position);
        //$c->setData("image", $name);

        $c->save();


texts:
I have the following question: how can I get data from UI form directly to controller? I saw some ways to save data with button's features, but I don't understand it clearly and I also want to control whole of saving process. Well, I have this UI component:

Are there any solutions to my issue?


texts:
hope someone can help me here

I have 30,000 email subscribers on our new Magento 1.9.1 CE store

It is taking a week to send out all the emails :(    Can I speed up the send out by allowing more emails per Cron send?..  I have searched this on Google & found nothing specific..

What is doubly strange is an earlier Magento CE install 1.7 used to send out newsletters a lot faster..  since the 1.91 upgrade it seems to have gone very slow..

Aside from suggesting to me another newsletter sending service provider like MailChimp?   I do like using the generic News sender in Magento.. I have seen Mailchimps statistics &they are great but not needed..

any ideas?  I am free to any suggestions


texts: How to find the product is going to be displayed under upsell list or not?

texts:
I have been added Callback button and "Contact Number" to products by overriding the price template. While displaying the price of a product, how to check whether that particular product is going to be displayed under upsell list or not?

  (Don't want to display the callback button for Upsell products. Only
  the contact number should be displayed)


texts: Add custom template after_body_start in adminhtml

texts:
How to add a custom template just after body tag in adminhtml in magento?

All working fine if I am trying to add custom template in head but failing if I am doing the same to include custom template in body of adminhtml page.

Here is my code for adminhtml layout file:

<default>
  <reference name="after_body_start">
    <block type="adminhtml/template" template="gtm/after_body_start.phtml" name="after_body_start_script" as="after_body_start_script"/>
  </reference>
</default>

Here is my code for the file present at app/design/adminhtml/default/default/template/gtm/after_body_tag.phtml

<?php
  Mage::log('control coming here', null, 'custom_log_file.log');
?>

If the control logs in my custom log file, It will work for the code I will write in it but I cannot see the log file updating.It seems that either I am using wrong reference for adminhtml to include a custom template after body start or I am missing to include the block to be included somewhere!Please guide me to get this done!


texts: Multi Select Product Attribute - Magento2.1.2

texts:
I have created Multi Select Attribute in my custom module.

UpgradeSchema.php

<?php

namespace Vendor\Module\Setup;

use Magento\Eav\Setup\EavSetupFactory;
use Magento\Framework\Setup\UpgradeSchemaInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;

class UpgradeSchema implements UpgradeSchemaInterface
{
    protected $eavSetupFactory;

    public function __construct(
        EavSetupFactory $eavSetupFactory
    ) {
        $this->eavSetupFactory = $eavSetupFactory;
    }

    public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
    {
        if (version_compare($context->getVersion(), '1.0.1', '<')) {
            $eavSetup->removeAttribute(\Magento\Catalog\Model\Product::ENTITY,'product_tags');
            $eavSetup->addAttribute(
                \Magento\Catalog\Model\Product::ENTITY,
                'product_tags',/* Custom Attribute Code */
                [
                    'group' => 'Product Details',/* Group name in which you want
                                                  to display your custom attribute */
                    'type' => 'text',/* Data type in which formate your value save in database*/
                    'backend' => '',
                    'frontend' => '',
                    'label' => 'Your Custom Attribute Label', /* lablel of your attribute*/
                    'input' => 'multiselect',
                    'class' => '',
                    'source' => 'Vendor/Module/Model/Config/Source/Options',
                                    /* Source of your select type custom attribute options*/
                    'global' => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_GLOBAL,
                                        /*Scope of your attribute */
                    'visible' => false,
                    'required' => trfalseue,
                    'user_defined' => false,
                    'default' => '',
                    'searchable' => false,
                    'filterable' => false,
                    'comparable' => false,
                    'visible_on_front' => false,
                    'used_in_product_listing' => false,
                    'unique' => false
                ]
            );
        }
    }
}

Options.php

<?php
namespace Vendor\Module\Model\Config\Source;

class Options extends \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource
{
    public function getAllOptions()
    {
        $this->_options=[
            ['label'=>'Select Options', 'value'=>''],
            ['label'=>'Option1', 'value'=>'1']
            ['label'=>'Option2', 'value'=>'2']
            ['label'=>'Option3', 'value'=>'3']
         ];
         return $this->_options;
      }
}

Can anyone please tell me what i am doing wrong here. Any help would be appreciated.


texts: How to display different price descriptors after price for all products

texts:
I am new to Magento and am running 1.9.0.1 with a purchased theme that I have reworked. My client's store sells organic seeds with some of products being sold "per 1 LBS", "per 1/2 LBS" or "per 1/4 LBS" which I would like to show behind the price wherever that product is displayed. For instance, broccoli seeds would ideally show "$14.88 per 1/2 LBS".

I can not seem to figure out a way to add the text either as part of the price or as a text block behind the price.  Is there a way to do this inside the admin panel?

Thank you!


texts:
All js script are loaded in footer in magento 1.9. I want them in head.
Can Anyone let how to do this ?


texts: Tying Paypal Settlement Report Back to Specific Order Object

texts:
Is there any known science for tying the information in the PayPal settlement report table

paypal_settlement_report_row

back to a specific Magento order object?


texts: Solved: Magento site crashes every day, after emptying /var/cache/ works fine

texts:
My magento site crashes daily. It comes back online after emptying the cache folder. The crash seems to be happening because the page.xml file changes the external files - js, css, images are all pointed to the default theme, whereas I use a custom theme. Could this be because of file permissions? Permissions for var and cache folder is 755.

Update: The problem is the cache file getting corrupted and the error I was getting was Front controller reached 100 router match iterations


texts: how to do theme intergate in magento 2.3?

texts:
I downloaded a theme using this link

How to used CSS js HTML same theme show in Magento 2.3 frontend side so please tell me what to do in theme integration


texts:
I want to create a lot of informational pages for our site but don't want to have to code html for every page. So things like font, where images go, etc.

How do I go about this? Is there an extension I can use? I'm not much for html coding but I can have the right people do this if it takes some changes somewhere in the magento code.

I'm using magento 1.9


texts:
Unload all simple products from the catalog in the form:

Product name | sku | config number | Config name

What is a "config number" and  "Config name"?
And from which tables to take them ?


texts: How to remove gift options tab from Product edit page in Magento2?

texts: I have to need to remove gift option tab in Product edit page Admin side.


texts: Show products with specific attribute on cms page

texts:
I have a question about a specific product collection on a cms page

I have an amount X of products which have an attribute A which is set to true.

Now I want to have a cms page with some content and then have a number of X products on that page where the attribute is true.

I thought of creating a block and then in that block load the collection and then go through that collection until a certain number is reached

$collection->addFieldToFilter(array(
    array('attribute'=>'is_set','eq'=='true'),
));

Then integrate that block in the cms page

{{block type="custom/list" name="custom_list" template="custom/list.phtml}}

But I want to show X number of products and in 6 columns and wonder how I would achieve this in that way?

Thanks


texts: Magento right way(performance wise) to get simple products from configurable product

texts:
I'm helping a friend out with some REALLY BAD magento code (which placed in a custom-made template).

In a category view I have the following code which should get simple products of a configurable product and query the simple products.

I'm not a big magento expert, but from reading, I have a feeling that looping and loading each product is a bit over-kill.

Any suggestions of how to improve the code and to read about best practices abotu querying and getting only needed data(in this case is simple products images.)

CODE:

$_productCollection=$this->getLoadedProductCollection();
$_helper = $this->helper('catalog/output');
foreach ($_productCollection as $_product):

          <?php
          // Get full product object.
          $conf_product = Mage::getModel('catalog/product')->load($_product->getId());

          // Get all simple products.
          $simple_products = $conf_product->getTypeInstance(true)->getUsedProducts(null, $conf_product);

          // Get default simple product ID.
          $default_simple_product_id = $conf_product->getData('default_configuration_id');
          // If default simple product is not set, get the first one.
          $default_simple_product_id = !$default_simple_product_id ? $simple_products[0]->getId() : $default_simple_product_id;

          // Run through all simple products.
          foreach ($simple_products as $simple_product):
            $simple_product_loaded = Mage::getModel('catalog/product')->load($simple_product->getId());

            if ($simple_product_loaded->getStatus() == 2) {
              // Product is disabled.
              continue;
            }

            // Get color. Replace spaces and ampersands with dashes to support URLs.
            $color = str_replace('&', '-', str_replace(' ', '-', $simple_product->getAttributeText('color')));

            // Get image.
            $product_media_config_model = Mage::getModel('catalog/product_media_config');
            $small_image = $product_media_config_model->getMediaUrl($simple_product->getImage());
            ?>
<div class="one-simple-product<?php echo ($default_simple_product_id == $simple_product->getId() ? ' active' : '') ?>">

    <a href="<?php echo $_product->getProductUrl() . '#' . $color ?>" title="<?php echo $this->stripTags($this->getImageLabel($simple_product, 'small_image'), null, true) ?>" class="product-image">
    <img src="<?php echo $small_image; ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($simple_product, 'small_image'), null, true) ?>" />


texts:
I have this code to get values from select/multiselect attributes

<?php
$attributes = $_product->getAttributes();
$themeColor = $attributes['theme_color']->getFrontend()->getValue($_product);
echo $themeColor;
?>

But it works only for select. When I'm pointing it to multiselect attribute it show nothing.


texts:
I have tried to add the additional option to cart items directly in a custom controller. But the additional options not get saved in quote_item_option table.

Controller :

<?php

namespace Custom\Mod\Controller\Checkout\Cart;

use Magento\Quote\Model\Quote\ItemFactory;

class UpdateOptions extends \Magento\Framework\App\Action\Action
{
    /**
     * @var ItemFactory
     */
    protected $itemFactory;

    /**
     * Constructor
     *
     * @param \Magento\Framework\App\Action\Context  $context
     * @param ItemFactory $itemFactory
     */
    public function __construct(
        \Magento\Framework\App\Action\Context $context,
        ItemFactory $itemFactory
    )
    {
        $this->itemFactory = $itemFactory;
        parent::__construct($context);
    }

    /**
     * Execute view action
     *
     * @return \Magento\Framework\Controller\ResultInterface
     */
    public function execute()
    {
//        $itemId = $this->getRequest()->getParam('item_id');
        $itemFactory = $this->itemFactory->create()->load(145);
        $additionalOptions[] = [
                        'label' => "Custom Text",
                        'value' => "Custom value"
                    ];

        $optionArray = array(
            'code' => 'additional_options',
            'value' => serialize($additionalOptions)
        );

        $itemFactory->addOption($optionArray);
        $itemFactory->save();
    }
}


texts:
When i add product to the cart and click checkout page i am getting below error

  Fatal error: Call to a member function getPrice() on null in
  /vendor/magento/module-configurable-product/Model/Product/Type/Configurable/Price.php
  on line 43

Please help me to fix this issue.


texts: Indian phone number validation with + and -

texts: All I want to make phone number validation.It takes +, - and space. I want to write customized js and where I have written that.


texts:
We use an MG 2.3.4 store and pricing is without tax. German tax is 19%. Today I learned, in Germany, you have to round your tax mathematically correct. So

133.60 x 19% = 25.384 => rounded to 25.38

But our Magento installation calculates a tax of 25.39. How can I change this behavior with a configuration or external component?


texts: get item id from quote after custom product added to cart magento

texts:
I am Having Issues Regarding how to get Item Id of Custom product added to cart programatically as

All the products are Simple products with Custom options
and i can add multiple products with same product id and different options.

If the product id of items are unique then i can find the item by

$quote->getItemByProduct and then onwards geting the item id
but its not matching my case.

Please Help me in getting out of this issue.

Thanks in advance


texts: Magento 2 custom Model in Component not Working

texts:
Ive created a custom component with a template in Magento_Checkout summary :

this is my modal-custom.html:

TEST

<button id="example-modal-button" data-bind="event:{ click: openModal}">
Open modal
</button>

And Here is my js:

define(
    [
        'uiComponent',
        'jquery',
        'Magento_Ui/js/modal/modal',
        'ko'
    ],
    function (Component, $, modal, ko) {
        'use strict';
        var options = {
            autoOpen: true,
            responsive: true,
            clickableOverlay: false,
            modalClass: 'modal-custom',
            title: 'Popup',
            buttons: [{
                text: 'Click Me',
                click: function () {
                    console.log('test')
                }
               }]
            };
        return Component.extend({
            defaults: {
                template: 'Magento_Checkout/view/summary/modal-custom'
            },
            initialize: function (elem) {
                this._super();
                this.startModal();
                return this;
            },
            startModal: function () {
                var ele = $('#modal-content');
                var popup = modal(options, ele); //This is causing the error possibly the ele var;
            },
            openModal: function () {
                $('#modal-content').modal('openModal');
            }

        });
    }
);

It's all fine apart from that when I initialize:

  this.startModal();

it Gives Error: Uncaught TypeError: Cannot read property 'nodeName' of undefined

Any helps why it can't find/fire/initialize the modal $('#modal-content')?thanks.


texts: Mini cart not show product when add product for first time Magento 2.1

texts:
I am using Ultimo Infortis theme. I am facing issue in adding product to mini cart. First time when i click on Add to Cart button, it do not show product in mini cart but on cart page it show added product. If i again add product to cart then mini cart show added products lists.

This is happening form the first day. I disabled magento cache but still the issue is there.

Can anyone suggest me how to fix this issue.


texts:
I have try to enable the pdf extension in the editor with this way https://developersushant.wordpress.com/2015/04/16/magento-enable-pdf-extension-on-wysiwyg/.

Although, this file there is not in the directory it described.

Has anyone try to do something like this?

Do you know any other (free) way to insert pdf attachments in products?

Thanks for your help.


texts: Magento 1.9.3.0 product page design is reverted to base/default

texts:
I have a Magento 1.9.3.0 test shop for which I've created a new theme based on rwd. This shop uses a database that's been cloned from the production environment (Magento 1.8.1.0). Everything works very well except this weird bug:

When I visit a product view page the package/theme gets reverted to base/default from rwd/myCustom.

If I go in Admin and edit the product I was looking at earlier and just hit "Save" or "Save and continue" even without making any change, then refresh the product page again, the correct theme appears (rwd/myCustom)

I don't have many products (~50) so I could just manually go through them and "fix" them but I am more curious what causes this.

None of the products have a custom design set.
I've cleared cache, re-indexed a bunch of times so it's not that.
I've checked under Systems > Design and there's are no entries there.
I've tried a mass attribute update (Select All > Actions: Update
Attributes > Change an attribute for all products > Save) but that
doesn't seem to fix anything.
Logs (magento & apache) show nothing when accessing "bugged" product
pages

Programatically loading and saving a product doesn't fix it.


texts: Magento 1.9 Separate XML sitemap for categories and products

texts:
I am maintaining a Magento 1 store from the SEO perspective and I hope for your help. I have been looking for answers inside the forum and elsewhere. But I have found nothing, what describe clear the process.
Question 1:
In Magento 1.9, how can I have one XML sitemap for products, a second sitemap for categories and one sitemap for the remaining pages, like Company and Service?
Question 2: Currently all products and categories are in one sitemap. Where do I set that "Last-Modified" is not renewed every day for pages that I have not worked on? Currently, the Last Modified date is renewed every day for all products and categories. Which is not true.
I hope you can help me.
Thanks a lot for your help.
Sumsem


texts: Magento 2 - Add Dynamic fields in Customer Account Information

texts:
I want to add multiple emails into customers account information as per below screen-shot.

Any help would be appreciated.


texts: How to modify data of Custom Field before rendering to backend form?

texts:
I have created a simple crud module that renders form with a few basic fields and saves data into database. Module is working fine and saving data correctly in the database.
Issue is before rendering form value I want to add a prefix to URL, something like this.
public function getInstagramLink()
{
    return 'https:'.$this->getData('instagram_link');
}

I have added this method within Model but that doesn't seem to be working
namespace Vendor\Module\Model;

class Instalocator extends \Magento\Framework\Model\AbstractModel
{
    protected function _construct()
    {
        $this->_init(\Vendor\Module\Model\ResourceModel\Instalocator ::class);
    }

    public function getInstagramLink()
    {
        return 'https:'.$this->getData('instagram_link');
    }
}

This doesn't seem to be working. How to do this correctly to set/get value before/after saving into database?


texts: Custom form for getting customer details?

texts: I am using magento 1.9 in my ecommerce site. I had created on page, in that page i have an textbox if i enter customer mail address on that textbox and submit. After that i get customer information. Plz suggest me some idea about this


texts: Overriding a template file from a 3rd party module

texts:
What I know

Overriding a template from vendor/magento/<magento_module> is straight-forward enough. So, to override a magento_catalog file I'd do:

app/design/frontend/<Vendor>/<Child>/Magento_Catalog/...

Where I'm stuck

However, 3rd party modules have a different file structure. If I were to override the below file, what would be my directory structure in app/design?

vendor/ebizmarts/sagepaysuite/view/frontend/web/template/payment/pi-form.html

What I've tried

I've tried a few variations like the ones below, but the override file doesn't seem to get read.

app/design/frontend/<Vendor>/<Child>/Ebizmarts_Sagepaysuite/web/template/payment/pi-form.html
app/design/frontend/<Vendor>/<Child>/Ebizmarts/Sagepaysuite/web/template/payment/pi-form.html
app/design/frontend/<Vendor>/<Child>/Ebizmarts_Sagepaysuite/templates/payment/pi-form.html
app/design/frontend/<Vendor>/<Child>/Ebizmarts/Sagepaysuite/templates/payment/pi-form.html
app/design/frontend/<Vendor>/<Child>/Ebizmarts_SagePaySuite/templates/payment/pi-form.html
app/design/frontend/<Vendor>/<Child>/Ebizmarts_SagePaySuite/web/template/payment/pi-form.html


texts:
After copying and moving my site to a staging.domain.com spot on the same server. The frontend works but all of my secure pages (admin, login, checkout etc) pages return an Nginx 404. I've made an exact copy of my live environment and imported the database, and of course changed the base urls.

What am I missing here?


texts: can't display items in a desired category (V1.9.0.1, Modern Theme)

texts:
After installed the recent security patches, the items in a desired category can't display on the home page using the below code:

{{block type="catalog/product_list" name="home_list" category_id="73" template="catalog/product/myhome_list.phtml"}}

any solution for it?


texts: Passing product attributes to PayPal line items

texts:
With PayPal "Transfer cart line items" set to Yes, is there a way to also transfer some of product attributes?

I've had a look at Paypal/Model/Api and Payment Details Item Type Fields, but Paypal extension's internal cart only seems to be storing only title, qty and amount.

I also tried to test with paypal_prepare_line_items event. Interestingly enough, the whole thing would crash without an error each time I try to var_dump or in any way read content of $observer->getPaypalCart() in the observer method. I haven't been able to move from there.

I was wondering if anyone's had luck adding product attributes to Paypal line items.


texts:
I want to show Ajax suit modules, Ajax login popup on cart page when press checkout button. right now, I used

 $('.modals-wrapper .popup-authentication').addClass("_show")

and it shows magento2 default popup login modal. but i want to change it to Ajax suit login popup.

Can any body guide me ?


texts: Getting the product SKU in the header mini-cart

texts:
I want to be able to display the product SKU in the mini-cart of a Magento 2 site. But I'm not sure how to use KnockoutJS to pull in additional product information. The template that is being called is here:

  vendor/magento/module-checkout/view/frontend/web/template/minicart/item/default.html

And contains code like:

So my direct question would be: where are the values for the product set and how can I change them around to add or remove product details?


texts: Magento2 - Different shipping prices on storeview level

texts:
We have a Magento 2 shop with multiple storeviews (Languages).

Let's say shipping to my country costs USD 7, including tax. We have set this up in the backend with the flat rate shipping method.

The price attribute is in the website scope, unfortunately. Is there a way to change the flat rate shipping costs between the different store views?

If not why has someone made this decision to set the shipping methods price to the website scope?


texts:
Since there is no Flash on Magento2 can we use an iPad for Magento2 admin panel?

The magento doc is only showing browser support for storefront:

  Safari Mobile for iPad 2, iPad Mini, iPad with Retina Display (iOS 7 or later), for desktop storefront
  Safari Mobile for iPhone 4 or later; iOS 7 or later, for mobile storefront

If there is no Flash, why it doesn't support mobile browser for admin?


texts:
We have a Magento2 site, which has Product and Category URL Suffix as / not .html
But in our catalog_product_flat_1 table, the url_path still contains .html which doesn't seem to cause any issues, as the products still load with / at the end.
But for categories, an issue occurs when a category is saved. It changes the URL from / to be .html ending. So in the catalog_category_flat_store_1 table.
If we do a find and replace in the db table for .html to / it saves fine, but then immediately reverts back to the .html ending.
The only issue seems to be on saving of a category, which causes a chain of wrong URLs.
Any ideas on how to start resolving? Happy to provide more information if required.


texts: Show list of simple products by modifying item renderer magento 2

texts:
Modify the way configurable products are rendered in the shopping cart by modifying their item renderer.
Show in the line item a list of all simple product names that are assigned to the configurable in the cart.
I have tried this code in
Vendor/ModifyProductsRender/view/frontend/layout/checkout_cart_index.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
    <referenceBlock class="Magento\Checkout\Block\Cart" name="checkout_cart_form">
        <block class="Magento\Framework\View\Element\RendererList" name="checkout_cart_item_renderers_override" as="renderer_list_custom"/>
        <arguments>
            <argument name="renderer_list_name" xsi:type="string">checkout_cart_item_renderers_override</argument>
        </arguments>
    </referenceBlock>
</body>

Ibrar/ModifyProductsRender/view/frontend/layout/checkout_cart_item_renderers.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
    <referenceBlock name="checkout_cart_item_renderers_override">
        <block class="Magento\Checkout\Block\Cart\Item\Renderer" as="default" template="Custom_Addprofile::cart/item/default.phtml" />

        <block class="Magento\Checkout\Block\Cart\Item\Renderer" as="simple" template="Custom_Addprofile::cart/item/default.phtml" />
    </referenceBlock>
</body>

I need to add .phtml file but dont know how to modify renderer.


texts: Mageplaza navigation layer.js not working

texts:
Mageplaza layer navigation js updated from

  app/code/Mageplaza/LayeredNavigation/view/frontend/web/js/view/layer.js

this location but it is not updated.
but on console js event is showing on below location.

https://staging.ihouzit.com/pub/static/version1574138983/frontend/Smartwave/porto/en_US/Mageplaza_LayeredNavigation/js/view/layer.min.js

please help in this/..


texts: How to show Amazon seller's products in my Magento website?

texts: How do I export all of my products (including FBA products) from my Amazon seller account and import them to my Magento community store.


texts:
I turned on my error log tonight to try to pinpoint what might be dragging down my website. I literally turned it on for 10 seconds then shut it off. In that span, I got the following error 44 times!

ERR (3): Notice: Use of undefined constant boolean - assumed 'boolean'  in /home/MYWEBSITE/public_html/app/code/core/Mage/Core/Model/Config.php on line 1348

I checked the Config.php file and matched it up to a Config.php file from a fresh Magento installation and found no variations. The files were identical, so I'm not sure what is causing this error.


texts: Display Upsell product in Popup magento2

texts:
I need to display the upsel product of the products which are in cart when click go to checkout button in cart page

is there any way to do this using a module. its better to load the product completly popup so i can add the product directly to cart if it is a configurable product too


texts:
Question reagarding magento 2.3.4 base url and base secure url.
Currently I have in both base and secure the same https url. Does this hurt in any way the performance and do I need to change base to http instead of https or should I leave it as is.
Best regards
Vincent


texts: Anyone has the CCAvenue payment gateway extension for 1.9.2.1?

texts:
I have been trying to contact the developer team of the CCAvenue for 3 days now, but they are not replying.

Does anyone have the extension and can upload it for me please?

Would be really grateful.


texts: Trying to hide order with specific status from the sales order grid in Adminhtml

texts:
I am working with Magento 1.9.2 and i am working on a custom extension.

I have created a copy from

  /app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php

Copy to :

  /app/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php

And then in the second one i was modifiyng this function:

protected function _prepareCollection()
{
    $collection = Mage::getResourceModel($this->_getCollectionClass());
    $this->setCollection($collection);
    return parent::_prepareCollection();
}

To this:

protected function _prepareCollection()
{
    $collection = Mage::getModel('sales/order')->getCollection()->addFieldToFilter('status',array('neq' => 'epaycc'));;
    $this->setCollection($collection);
    return parent::_prepareCollection();
}

And now i have other problem.
It seems it is not showing orders with status epaycc as i wanted but now it is not showing the names for the customers who created the order. Take a look:

I think the problem occur because i have not set the filter right.
Where is my mistake, how can i fix it and achieve what i want ?

Thanks in advance!


texts:
I've got a productcollection, which i joined a custom table to. I'd now like to order the collection on the custom joined table row "custom_row_value".

I've tried the below method, but this does not work.

$_category = Mage::registry('current_category');

$_productCollection = Mage::getModel('catalog/product')
->getCollection()
->addAttributeToFilter('entity_id', array('in' => $_collectProductIds));

$_productCollection
->getSelect()
->join('custom_table', 'custom_table.entity_id = e.entity_id', array('custom_row_value'))
->where('custom_table.category_id='.$_category->getId())
->order('custom_table.custom_row_value','desc');

How would i achieve this goal in a neat way?


texts: I am struggling to create magento 2 custom one page checkout like in the screenshots i attached i simple design the page with html and css, but i really dont know how do i implement functionality on it.Here is the design please help me how can i achieve this. Thanks


texts:
Does anyone have an answer for below question?

How to find which query is taking more time to execute in Magento 1 & Magento 2?


texts: Breadcrumbs not displaying on Product Page Magento-2.2.4

texts:
After upgrade breadcrumbs from product page disappear. As suggested, I have updated my breadcrumbs.js but still not showing. Only displaying code like below.

<div class="breadcrumbs" data-mage-init='{
    "breadcrumbs": {
        "categoryUrlSuffix": ".html",
        "useCategoryPathInUrl": 0,
        "product": "Aquasure Dash Series Countertop Drinking  Water System with Micro-Ceramic Filtration"
    }
  }'>
</div>


texts: How do i debug full project in phpstorm via xdebug - magento 2

texts:
I have setup magento localhost

phpstorm project with xdebug

how to  i debug full project

procedure


texts: Future Support of Magento 1.9 - Security issues

texts:
We are developing a B2B platform on Magento 1.x with a lot of custom-built modules. Upgrading on Magento 2 will be an enormous effort. Therefore we would like to develop on Magento 1.x longer than 3 years after Magento 2 is released.

Is it predictable if the security of Magento 1.x systems will be seriously affected when the support ends?


texts:
How can I add a link into an error message from Message Manager ?

I have this :

 $physicalLink = "".$produtToAddName."";
 $this->_messageManager->addErrorMessage($physicalLink);

but the result is

 href='http://www.devtest.com/link.html'>link

i need this to be an usual result (as html link)


texts: Add product with text customisable option to cart using REST

texts:
When using the REST API to add products to the cart, you need to add a product_option.extension_attributes.configurable_item_options object to the cartItem payload (POST-ing to /V1/carts/mine/items). So far I got this working for simple products. Now I need to add products that have customizable options that are text fields, I tried sending that as following:
// product_option.extension_attributes.configurable_item_options
{
    "option_id": "16",
    "option_value": "Some text"
}

This returns the following error message:  "Error occurred during \"product_option\" processing. Error occurred during \"extension_attributes\" processing. Error occurred during \"configurable_item_options\" processing. Error occurred during \"option_value\" processing. The \"Some text\" value's type is invalid. The \"int\" type was expected. Verify and try again."
If I change "Some text" to 0 it complains not all required options are set, and obviously I'm not passing my content anymore.
For reference; this is the actual option_id information retrieved from rest/V1/products/XX/options
{
    "product_sku": "XX",
    "option_id": 16,
    "title": "Text 1st line",
    "type": "field",
    "sort_order": 7,
    "is_require": true,
    "price": 0,
    "price_type": "fixed",
    "sku": "TEXT-ONE",
    "max_characters": 0,
    "image_size_x": 0,
    "image_size_y": 0
},

Also the full payload of the add-item request:
{
  "cartItem": {
    "sku": "HG-03",
    "qty": 1,
    "quote_id": "80",
    "product_option": {
      "extension_attributes": {
        "configurable_item_options": [
          {
            "option_id": "16",
            "option_value": "Some text"
          }
        ]
      }
    }
  }
}

So to sum it up: How to properly send the value for customisable text fields on products using the REST API in Magento 2.3?


texts: Force client-side browser CSS/JS cache reload

texts:
How can I force the client browser to re-fetch JS / CSS files?
I've noticed that when I add to existing .CSS files, the updates are only applied if the user refreshes the page. (In other words, simply navigating to the page will not work).
I've tried flushing the caches (including JS/CSS) as well as rebuilding my minified CSS/JS files. Unfortunately I'm still seeing this behavior in Chrome, Safari & Firefox. (Internet Explorer funnily enough behaved quite well).
I looked at this question on SO:
What is an elegant way to force browsers to reload cached CSS/JS files?
I was wondering if Magento has any built in way of doing this without the necessary addition of source changes / the installation of third party software?


texts: Magento 2 Setup:Upgrade giving error of Cannot add foreign key constraint

texts:
I have moved my website files and DB from one server to another.

Now, When I am running setup:upgrade command. I am getting below error:

Updating modules:
Schema creation/updates:

SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint, query was: ALTER TABLE quote_item MODIFY COLUMN item_id int(10) UNSIGNED NOT NULL  AUTO_INCREMENT COMMENT "Item Id", ADD CONSTRAINT  PRIMARY KEY (item_id), ADD CONSTRAINT QUOTE_ITEM_PARENT_ITEM_ID_QUOTE_ITEM_ITEM_ID FOREIGN KEY (parent_item_id) REFERENCES quote_item (item_id)  ON DELETE CASCADE, ADD CONSTRAINT QUOTE_ITEM_QUOTE_ID_QUOTE_ENTITY_ID FOREIGN KEY (quote_id) REFERENCES quote (entity_id)  ON DELETE CASCADE, ADD CONSTRAINT QUOTE_ITEM_STORE_ID_STORE_STORE_ID FOREIGN KEY (store_id) REFERENCES store (store_id)  ON DELETE SET NULL, ADD INDEX QUOTE_ITEM_PARENT_ITEM_ID (parent_item_id), ADD INDEX QUOTE_ITEM_PRODUCT_ID (product_id), ADD INDEX QUOTE_ITEM_QUOTE_ID (quote_id), ADD INDEX QUOTE_ITEM_STORE_ID (store_id)

Please help to get rid of this error.


texts: Upgraded server to PHP 5.3.28 and Images stopped working

texts:
We upgraded the server to PHP 5.2.28 (Rackspace) and suddenly our full size images stopped working. By stop working I mean it did not render and the page load stopped at the point of the full size image loading. (White screen) No error message in any logs

The site has a custom OnePica image gallery loaded. We are debugging but I am hoping someone as a light bulb light that comes on as soon as they read this :)


texts: Cronjob not working(custom module) in windows in magento2

texts:
I have set my cronjob code and i am running command

php bin/magento setup:cron:run --group="customgroupname_cron"

but getting below error

[Symfony\Component\Console\Exception\RuntimeException]
The "--group" option does not exist.

Can anyone help please?


texts:
I have created custom grid using ui component.

I want to add product sku column in custom grid which contains product skus list from product table.

How to do that ....

If anyone knows please explain me.


texts: Override the customer account creation email template in magento2

texts: How can I override the core email template of customer account creation in magento2 please give solution


texts: Add boolean value of false/0 where order exists in sales_order but not custom table

texts:
The code below I am adding my custom column to the sales_order_grid table. The problem is it only adds the values where order_id in my custom table exists. How  can I add the value of false or 0 to the collection if an order exists but isn't in my custom table? I don't really want to fill the database with data for every order if I can automatically treat any value that doesn't exist as false.
I need this so that I can filter by any order that has a value of true or sometimes false in the sales_order_grid table. Filtering by values of true works as it exists in the table but if I filter by false I don't get any results.
/**
 * @param \Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory $subject
 * @param OrderGridCollection $collection
 * @param $requestName
 * @return mixed
 */
public function afterGetReport($subject, $collection, $requestName)
{
    if ($collection->getMainTable() === $collection->getResource()->getTable('sales_order_grid')) {
        try {
            $orderAddressTableName           = $collection->getResource()->getTable('my_custom_table');
            $collection->getSelect()->joinLeft(
                ['soat' => $orderAddressTableName],
                'soat.order_id = main_table.entity_id',
                ['my_column']
            );

        } catch (\Zend_Db_Select_Exception $selectException) {
            // Do nothing in that case
            $this->logger->log(100, $selectException);
        }
    }

    return $collection;
}


texts: magento2 uicomponent filter on id column on bases of text search

texts:
I created a custom Ui-component grid having one column customer_id.

For Customer_id I created a renderer class that gets the name of customer through customer_id.

uicomponennt Column

        <column name="customer_id" class="Ced\CsMarketplace\Ui\Component\Listing\Column\Vendoremail">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="bodyTmpl" xsi:type="string">ui/grid/cells/html</item>
                    <item name="filter" xsi:type="string">text</item>
                    <item name="label" xsi:type="string" translate="true">Vendor Email</item>
                </item>
            </argument>
        </column>

now When i use filter for this column. it posts customer_id.

I want to search on customer email-id text.


texts: how can a buyer and vendor can video chat with each other

texts: i'm creating a magento 2 store in which my client want me to add a feature where a buyer can video chat with the vendor regarding product details. Can any one tell me how can i do that?


texts: New products not displaying on home page after product bulk upload

texts:
I was trying to bulk upload products in magento before uploading products everything was normal but after uploading my New product block is not displaying on home page http://new.sporteemail.com

I have checked all these but its still not working

The products must be Visible in Catalog.
The products must be Enabled.
Product must have a stock Quantity.
The product must be set to In Stock.
The product must be assigned to the target Category.


texts:
I have problem searching products less than 4 characters using magento built-in search. I try to search and most of it suggest to modify my.cnf. Unfortunately i use sahared hosting and modifying my.cnf isn't possible. In this case how to make searching less than 4 characters possible? Are there any free extensions to do this?

Any help is appreciated.Thanks in advance.
Thank you Agung.


texts: Magento 2.3.0 - Create Product Page H1 title with product name and attribute name

texts:
I have created two phtml files that can be called from within a CMS Block on a product page to echo the product name and an attribute name.

As follows:

Product Name

  {{block class="Vendor\ProductName\Block\ProductName"
  template="Vendor_ProductName::productname.phtml" }}

Attribute Name (Artist)

  {{block class="Magento\Catalog\Block\Product\View" name="artist"
  template="Magento_Catalog::artist.phtml"}}

I want to be able to create a title within the H1 tag for the product name, as follows

  Buy 'Product name' by 'Artist'

The following is the title.phtml code thats currently used.

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

// @codingStandardsIgnoreFile

/**
 * @var $block \Magento\Theme\Block\Html\Title
 */
$cssClass = $block->getCssClass() ? ' ' . $block->getCssClass() : '';
$title = '';
if (trim($block->getPageHeading())) {
    $title = 'getAddBaseAttribute() . '>'
        . $block->escapeHtml($block->getPageHeading()) . '';
}
?>
<?php if ($title): ?>
    <?php if ($this->getRequest()->getFullActionName() == 'catalog_product_view'): ?>

<?= /* @escapeNotVerified */ $title ?>

    <?php else: ?>

And this is how it outputs on the frontend

Terrace of a café at night (Place du Forum)

Is there a way or using the phtml calls that I use in the CMS Blocks to create the product page H1 title?

UPDATE

I used the following to get part of the title

  Buy "Product Name" by

By using the following code,

Changed the H1 Title as follows

title="Buy <?php echo $block->getPageHeading(); ?> by">

This is the code I'm using to get the current product page attribute

<?php
$product = $block->getProduct();
$product_name = $product->getName();
$attr_exists = $product->getResource()->getAttribute('artist');

if ($attr_exists){
    $attr_name = $product->getAttributeText('artist');
}

echo $product->getAttributeText('artist');
?>

How can I use the above code to add the artist name to the H1 title?


texts: Magento 2 add extra column in order grid using extension attribute

texts:
Thanks! for view this post.

I just want to know if there is any feasibility in which we can add extra columns in grid using extension attributes?

Please share your steps with me.

Thanks!


texts:
I have set up my store using associated products and had the weight set to 0. I now want to add a weight to the products in my store, does this mean I will have to go through each product and its associated products individually adding a weight to them or is there a way that I can set the base product weight and it will then update the associated products weight automatically.

The reason I am asking is because I have roughly 20 products in my store at the moment which is manageable to manually update each weight but when you factor in the associated products it goes into the hundreds as you imagine.

I hope this makes sense.


texts: Magento 2 enable merging/bundling after AdvancedJS Bundling

texts: I have recently applied AdvancedJS Bundling on my Magento 2 store, and the performance is quite improved. But for Advanced JS Bundling, the merging, and bundling is disabled. Can I enable that also after AdvancedJS Bundling or it shouldn't be?


texts: What is % in regular expression "%^/(test)-(.*?)-(.*?)$%"?

texts:
I am doing magento2 developer training. I am working on exercise"Create a new router which “understands” URLs like /frontNameactionPath-
action and converts them to /frontName/actionPath/action". In that exercise I come across the code

if (preg_match("%^/(test)-(.*?)-(.*?)$%", $info, $m)) {
    $request->setPathInfo(sprintf("/%s/%s/%s", $m[1], $m[2], $m[3]));
    return $this->actionFactory->create('Magento\Framework\App\Action\Forward',
    ['request' => $request]);
}

I want to know, What is % in regular expression "%^/(test)-(.?)-(.?)$%"?


texts: We need items scheduled for Preview to be secret. Right now if something is scheduled for a preview a week in the future, it still shows for customers when they search for a word in the title. We need to keep preview items off of the website until after they expire from preview. I'm not even sure where to start with troubleshooting this. Any help is greatly appreciated.


texts: Magento 2 REST web Api related question for associate certification

texts:
A module MyModule needs to send notifications to customers only when the account was modified from a mobile app using the REST web APIs. You decided to implement an observer for the customer_save_after_data_object event. In which file do you declare the observer?

A. etc/webapi_rest/events.xml
B. etc/adminhtml/events.xml
C. etc/webapi/rest_events.xml
D. etc/events.xml


texts: Magento 2 wrong paypal express checkout token specified

texts:
i've a problem with paypal checkout, i've configurated all correctly but on checkout return page says "wrong paypal express checkout token specified" attached payment log (all seem's ok but order it's not successful)
I've searched on web but no solution found, the problem is on magento 2.2.5 and 2.3 too

[2018-12-07 10:38:17] main.DEBUG: array (
  'url' => 'https://api-3t.paypal.com/nvp',
  'SetExpressCheckout' =>
  array (
    'PAYMENTACTION' => 'Sale',
    'AMT' => '14.00',
    'CURRENCYCODE' => 'EUR',
    'RETURNURL' => 'http://magento2.gioglipesca.it/paypal/express/return/',
    'CANCELURL' => 'http://magento2.gioglipesca.it/paypal/express/cancel/',
    'INVNUM' => '000000075',
    'SOLUTIONTYPE' => 'Sole',
    'GIROPAYCANCELURL' => 'http://magento2.gioglipesca.it/paypal/express/cancel/',
    'GIROPAYSUCCESSURL' => 'http://magento2.gioglipesca.it/checkout/onepage/success/',
    'BANKTXNPENDINGURL' => 'http://magento2.gioglipesca.it/checkout/onepage/success/',
    'SHIPPINGAMT' => '5.00',
    'ITEMAMT' => '7.38',
    'TAXAMT' => '1.62',
    'BUSINESS' => 'Giogli Pesca',
    'NOTETEXT' => NULL,
    'EMAIL' => '******',
    'FIRSTNAME' => '******',
    'LASTNAME' => '******',
    'MIDDLENAME' => NULL,
    'SALUTATION' => NULL,
    'SUFFIX' => NULL,
    'COUNTRYCODE' => 'IT',
    'STATE' => '******',
    'CITY' => '******',
    'STREET' => '******',
    'ZIP' => '******',
    'PHONENUM' => '******',
    'SHIPTOCOUNTRYCODE' => 'IT',
    'SHIPTOSTATE' => '******',
    'SHIPTOCITY' => '******',
    'SHIPTOSTREET' => '******',
    'SHIPTOZIP' => '******',
    'SHIPTOPHONENUM' => '******',
    'SHIPTOSTREET2' => '',
    'STREET2' => '',
    'SHIPTONAME' => '******',
    'ADDROVERRIDE' => 1,
    'METHOD' => 'SetExpressCheckout',
    'VERSION' => '72.0',
    'USER' => '****',
    'PWD' => '****',
    'SIGNATURE' => '****',
    'BUTTONSOURCE' => 'Magento_Cart_Community',
  ),
  'response' =>
  array (
    'TOKEN' => 'EC-3NE85213955529058',
    'TIMESTAMP' => '2018-12-07T10:38:17Z',
    'CORRELATIONID' => '586972c7a2030',
    'ACK' => 'Success',
    'VERSION' => '72.0',
    'BUILD' => '000000',
  ),
) [] []


texts: Home to skip shipping address step during checkout in Magento 2?

texts:
In case of virtual products, we do not need a shipping step so customer directly goes for payment step during checkout.

I have a simple product and a custom field delivery_type in quote table. delivery_type field's value is updated on the cart page by selecting what is the delivery type (home/store).

If the value of delivery_type is store shipping step is not required and the customer should see only payment step similar to virtual products at checkout. Can anyone guide me on how I should go about customizing it?

I tried changing the value of field is_virtual to 1 in quote and quote_item table manually but it does not make any difference. I have logged window.checkoutConfig.quoteData.is_virtual which still shows 0.


texts: Adding toolbar to magento CMS page product listing

texts:
I have created a CMS page in Magento 2.1.7 back end, and added the following widget:

{{widget type="Magento\CatalogWidget\Block\Product\ProductsList"
show_pager="1" products_per_page="9" products_count="100"
template="product/widget/content/grid.phtml"
conditions_encoded="a:1:[i:1;a:4:[s:4:`type`;s:50:`Magento|CatalogWidget|Model|Rule|Condition|Combine`;s:10:`aggregator`;s:3:`all`;s:5:`value`;s:1:`1`;s:9:`new_child`;s:0:``;]]"
page_var_name="pdfxop"}}

for showing all the products added in website. But in this CMS page the toolbar is not showing up. Pagination is there in the footer. But not toolbar on top of the product listing. How can I do this? Can any one please help me?


texts: Magento 2: Import multiple select attribute values using CSV

texts:
How can we import multiple select attribute values using CSV ?

For example SKU "test" has two values for attribute "xyz" - "val1" and "val2".

When I use both value as val1<space><comma><space>val2 , import throws error:

  Value for 'xyz' attribute contains incorrect value, see acceptable values on settings specified for Admin rows ....


texts: I have faced the problem in using Magento2 with search result commonly search based on SKU but I want to search product using the name of the product  so I want to change the search query in Magento2 but I am not found any option in admin section and code file so can anybody help me to change search query.


texts:
It looks like I do not execute my validation.
I'm inside app/code/Cpy/Customer/view/frontend/templates/address/widget/telephone.phtml
In that template I have this field
<div class="field telephone <?= $block->isRequired() ? 'required' : '' ?>">
    <label for="<?= $type ?>_telephone" class="label">

            <?= $block->escapeHtml(__('Phone Number')) ?>

        <input type="text"
               name="<?= $type ?>[telephone]"
               id="<?= $type ?>_telephone"
               value="<?= $block->escapeHtmlAttr($block->getTelephone()) ?>"
               title="<?= $block->escapeHtmlAttr(__('Phone Number')) ?>"
               class="input-text required-entry phonetendigit"
               aria-required="true"
        >

Then, inside my app/design/frontend/Theme/default/web/mage/validation.js I defined among other things this :
rules = {
    'phonetendigit': [
        function(value) {
            var tel = value.replace(/ /g,"");
            var storeCode = $('#check_store_for_validation').val();
            console.log(storeCode);
            var isSxStore = (storeCode.toLowerCase().indexOf("sx") >= 0);
            console.log(isSxStore);

            if (tel.indexOf("000000") >= 0) {
                return false;
            } else {
                if(isSxStore){
                    return !(tel.length < 7 || tel.length > 13);
                }
                return tel.length > 9 && tel.length < 11
                    && tel.match(/^\d{10}$/);
            }
        },
        $.mage.__('Veuillez spécifier un numéro de téléphone valide à 10 chiffres.')
    ]
};

$.each(rules, function (i, rule) {
    rule.unshift(i);
    $.validator.addMethod.apply($.validator, rule);
});

The problem is that I don't see my logs printed. So obivously the validation isn't working.
I also have a app/design/frontend/Theme/default/Magento_Ui/web/js/lib/validation/rules.js which seems to define the same object, but it seems i'm not going into this one neither.
Fun fact, this is a dev I made a few days ago, and I might have dreamt it, but I'm sure the validation was working at this time. Since then, going back to the same git branch, it's not working anymore.
May that not be code related but I would need to use some command to make it work ?


texts: REST Api Products response not showing extension attributes

texts:
I am making following REST API call to get product list, response for this API has extension_attributes tag, but in response these tags are missing.

  V1/products?searchCriteria[filter_groups][0][filters][0][field]='.$field.'&searchCriteria[filter_groups][0][filters][0][value]='. $value.'&searchCriteria[filter_groups][0][filters][0][condition_type]='.$condition_type;

Response

{"items":[{"id":1,"sku":"24-MB01","name":"Joust Duffle Bag","attribute_set_id":15,"price":34,"status":1,"visibility":4,"type_id":"simple","created_at":"2016-06-26 16:01:55","updated_at":"2016-07-02 06:45:32","product_links":[{"sku":"24-MB01","link_type":"upsell","linked_product_sku":"24-MB03","linked_product_type":"simple","position":null,"extension_attributes":[]},{"sku":"24-MB01","link_type":"upsell","linked_product_sku":"24-MB05","linked_product_type":"simple","position":null,"extension_attributes":[]},{"sku":"24-MB01","link_type":"upsell","linked_product_sku":"24-MB06","linked_product_type":"simple","position":null,"extension_attributes":[]},{"sku":"24-MB01","link_type":"upsell","linked_product_sku":"24-MB02","linked_product_type":"simple","position":null,"extension_attributes":[]},{"sku":"24-MB01","link_type":"upsell","linked_product_sku":"24-UB02","linked_product_type":"simple","position":null,"extension_attributes":[]},{"sku":"24-MB01","link_type":"upsell","linked_product_sku":"24-WB03","linked_product_type":"simple","position":null,"extension_attributes":[]},{"sku":"24-MB01","link_type":"upsell","linked_product_sku":"24-WB07","linked_product_type":"simple","position":null,"extension_attributes":[]},{"sku":"24-MB01","link_type":"upsell","linked_product_sku":"24-WB04","linked_product_type":"simple","position":null,"extension_attributes":[]}],"options":[],"tier_prices":[],"custom_attributes":[{"attribute_code":"description","value":"
The sporty Joust Duffle Bag can't be beat - not in the gym, not on the luggage carousel, not anywhere. Big enough to haul a basketball or soccer ball and some sneakers with plenty of room to spare, it's ideal for athletes with places to go.
\r\n
\r\n
Dual top handles.<\/li>\r\n
Adjustable shoulder strap.<\/li>\r\n
Full-length zipper.<\/li>\r\n
L 29\" x W 13\" x H 11\".<\/li>\r\n<\/ul>"},{"attribute_code":"image","value":"\/m\/b\/mb01-blue-0.jpg"},{"attribute_code":"small_image","value":"\/m\/b\/mb01-blue-0.jpg"},{"attribute_code":"thumbnail","value":"\/m\/b\/mb01-blue-0.jpg"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"required_options","value":"0"},{"attribute_code":"has_options","value":"0"},{"attribute_code":"image_label","value":"Image"},{"attribute_code":"small_image_label","value":"Image"},{"attribute_code":"thumbnail_label","value":"Image"},{"attribute_code":"msrp_display_actual_price_type","value":"0"},{"attribute_code":"url_key","value":"joust-duffle-bag"},{"attribute_code":"tax_class_id","value":"2"},{"attribute_code":"activity","value":"11,19,21,22"},{"attribute_code":"style_bags","value":"25,26,29"},{"attribute_code":"material","value":"37,38"},{"attribute_code":"strap_bags","value":"61,62,63,64,65,66"},{"attribute_code":"features_bags","value":"74,76,79"},{"attribute_code":"eco_collection","value":"0"},{"attribute_code":"performance_fabric","value":"0"},{"attribute_code":"erin_recommends","value":"0"},{"attribute_code":"new","value":"0"},{"attribute_code":"sale","value":"0"}]}],"search_criteria":{"filter_groups":[{"filters":[{"field":"sku","value":"24-MB01","condition_type":"eq"}]}]},"total_count":1}

How can I get extension_attributes in the response? Extension_attributes are available in Product search based on sku.


texts: Having problems with Magento 2.2.4 outgoing email to customers

texts:
Can anybody identify this error message and tell me what it means?

Running Magento 2.2.4

TLS 1.2

Have Campaigner Extension installed

I have problems sending customers emails from Admin panel
and customers are not receiving order email confirmations
Keep getting this error message

thanks for any help


texts: Fatal error in product detail page in Magento 2?

texts:
I am using Magento 2.3.3

I am getting below fatal error in product detail page:

Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Config\ReaderInterface in /chroot/home/a9bd6b11/demo2.com/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50 Stack trace: #0 /chroot/home/a9bd6b11/demo2.com/html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...')
#1 /chroot/home/a9bd6b11/demo2.com/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(160): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...')
#2 /chroot/home/a9bd6b11/demo2.com/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(246): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Framewo...', NULL, 'reader', 'Magento\\Widget\\...') #3 /chroot/home/a9bd6b11/demo2.com/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\Ob in /chroot/home/a9bd6b11/demo2.com/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 50

This error seems to be coming in the product detail page only all other pages are working fine. I have tried many things to solve this issue but I am not able to solve it.

I had tried enabling the production mode. I had deleted the generated/code folder tried running upgrade and compile command but no luck.

Can anyone help look into this issue ?


texts:
How to I redirect the https://www.example.com/home to https://www.example.com

I have tried redirect through URL Rewrite Management

With below details:
Type : Custom
Request path : /home
Target Path : /

but it is not working


texts: Mostly viewed products are not in report_viewed_product_index table in magento 2.3.4

texts:
I want to show the most viewed products but when I look at the backend
  Report->Viewed is empty. Also, I looked at the report_viewed_product_index this table is empty

how I can get mostly viewed products?


texts: Changing Display According to Product Category

texts:
My client wants to change the default title "More Views" for additional images that appear under the main image on individual product pages. The client offers combo packages, and wants that title to read "Included Products" only on combo package product pages.

I've edited the following relevant code in app/design/frontend/base/default/template/catalog/product/view/media.phtml as follows:

<?php if (count($this->getGalleryImages()) > 0): ?>

<?php
    if($category->getID()==12):
?>

<?php echo $this->__('Included Products') ?>

<?php endif; ?>

<?php echo $this->__('More Views') ?>

<?php foreach ($this->getGalleryImages() as $_image): ?>

    <a href="#" onclick="popWin('<?php echo $this->getGalleryUrl($_image) ?>', 'gallery', 'width=300,height=300,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="<?php echo $this->escapeHtml($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>" width="56" height="56" alt="<?php echo $this->escapeHtml($_image->getLabel()) ?>" />

<?php endforeach; ?>

<?php endif; ?>

The current result is that the "More Views" div does not display at all. No exceptions appears in var/log. Also, I'm not altogether certain I should be changing this code here as it may be "hacking core." Any thoughts are appreciated.

I'm running Magento CE 1.8.1.0.


texts:
So I'm writing a module that would rewrite this class: Mage_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Attributes_Special.

It rewrites the getElementHtml() method.

My question is, how do I reference this in my modules main etc/config.xml? I would normally think it would be done like this:

<config>
    <global>
      <blocks>
        <bundle>
            <rewrite>
                <adminhtml_catalog_product_edit_tab_attributes>MyNamespace_MyModuleName_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Attributes</adminhtml_catalog_product_edit_tab_attributes>
            </rewrite>
        </bundle>
      </blocks>
    </global>
</config>

Is that config.xml done correctly? If not, how should I do it?


texts: Detail description of configurable product price

texts:
I have configurable products on my website.

Suppose there is a product whose base price is 100$ now there are two config product associated with it.

1) color - 3$

2) size - 2$

Now what default magento does is it shows 105$ as config price but what i want is, The base price should remain constant and the additional price should be shown separately.

Like : 100$ + 3$ + 5$ : 105$

I tried to locate it from price.phtml but i think its coming from JS. Can anyone suggest how can this be done or from where should i start digging in.

Thanks