texts: How can i change the default title of back-end pages. On which block / page file i need to edit. I am new Magento, so if you could explain it from scratch , it would be a great help. Thanks in advance.


texts: How to load category tree with category image

texts:
I need load category image for the category tree. Currently I found a method to load category tree. But its not showing image of the category.

    public function getCategoryTree()
    {
        $model = Mage::getModel('catalog/category_api');
        $treeData = $model->tree();
        return $this->_sendJsonRespond('success', $treeData, null, null);
    }


texts:
So normally my payment options showed correctly, now for some reason we can't find out why, a credit card form is overlaying over the options like so:

Can even see it happening on Firefox, some reason its not happening on Chrome.
Anyone have an idea why?


texts: I am having a problem with my categories I have delete all products in the categories but it shows me that it y to 10 products in the categories so that it has nothing


texts: How can I make admin form field ($form->addField()) use PageBuilder editor?

texts:
I'm using Amasty's Landing Pages extension. On the Landing Pages edit form there's a content field that uses the default WYSIWYG editor. I need to make this field use the PageBuilder editor instead. I do have PageBuilder enabled. Thanks.
This is the code that adds the field:
$layoutFieldset->addField(
        'layout_top_description',
        'editor',
            [
               'name' => 'layout_top_description',
               'label' => __('Top Description'),
               'title' => __('Top Description'),
               'style' => 'width:725px;height:360px',
               'force_load' => true,
               'config' => $this->_wysiwygConfig->getConfig()
            ]
    );


texts: config_id under core_config_data - important?

texts:
I have my production and development sites. They have had different history of installing/uninstalling extensions therefore under core_config_data the config_id does not match unfortunately.

I am wanting to copy over a bunch of settings from the dev site to production however it seems like I'll be skipping a 50 or so ID numbers when I export and import. Does this matter? I am thinking it should be fine as long as there are no overlaps.


texts: Why is Fooman PDF Image generation so slow?

texts:
I'm using FoomanPDF on a Magento 1.9 shop. In the mypdf file i found the following function:

        if ($productImage
        && $productImage != "no_selection"
        && file_exists(Mage::getBaseDir('media').$imagePath)
    ) {
        $imageAttr = $product->getImage() ? 'image' : 'small_image';
        $imageHelper = Mage::helper('catalog/image')->init($product, $imageAttr)->resize(100);
        return (string)$imageHelper;
    }

However this way of adding the images becomes utterly slow when you have more then 5 products in a single PDF. Is there a way to improve the speed? Or make sure Magento is not resizing the initial 1920x1080 images into some small 500px image? I think it's using up a large amount of memory this way.Result, 504, gateway timeout!

Any thoughts?


texts:
Earlier on, I asked this question:
Loading a custom block into Magento but I still couldn't work out what was wrong.

I've just now noticed that if I add:

<block type="interested/interested" name="interested" as="interested" template="interested/interested.phtml">

to my catalog.xml file and inside my product view.phtml:

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

I now see my extension working as it should, so the question is, why isn't it possible to load my extension into the home page via CMS using:

{{block type="interested/interested" name="interested" as="interested" template="interested/interested.phtml"}}

Does the CMS have restrictions on loading custom extensions or is there more that I have to specify in my core/local files?

Thanks,

Liam


texts: Change stock availability of products based on qty

texts:
I'm looking for a query to get all my products that have "qty > 2 and 'stock availability = 0'" and change the stock availability to 1.
A crash on my inventory update routine did a mess on my inventory and there are more than 7000 products, impossible to check one by one. :(


texts: can't override a column in a block by preference

texts:
in my case i want to delete a column 'Status' ,my problem is that i can't remove it by preference in di.xml

the preference override it works fine with other methods but this method no , i dont know why

  this file is Mymodule\Dealer\Block\Adminhtml\Dealer\Grid\Reports

protected function _prepareColumns()
    {
        $this->addColumn('m_increment_id', array(
            'header'       => __('Order #'),
            'width'        => '100',
            'index'        => 'm_increment_id',
            'filter_index' => 'main_table.increment_id',
        ));

        $this->addColumn('m_created_at', array(
            'header'       => __('Purchase On'),
            'index'        => 'm_created_at',
            'type'         => 'm_datetime',
            'filter_index' => 'main_table.created_at',
        ));

          //$this->addColumn('status', array(
           // 'header'       => __('Status'),
           // 'index'        => 'm_status',
           // 'filter_index' => 'main_table.status',
           // 'type'         => 'options',
            //'width'        => '70px',
//            'options'      => Mage::getSingleton('sales/order_config')->getStatuses(),
       // ));

        return parent::_prepareColumns();
    }

  the file for override in di.xml

<preference for="\Amasty\Perm\Block\Adminhtml\Dealer\Grid\Reports"
                type="Mymodule\Dealer\Block\Adminhtml\Dealer\Grid\Reports" />

can anyone help me please ?


texts: WYSIWYG editor always return  or by default

texts:
When i click show/hide editor then WYSIWYG editor returns <"ul"> and <"p"> element.

How to stop these elements?

Thanks


texts: for the CE Magento 1.9.1.0 where to download the locale language of Germany,France and other language? Are there the official language packs?


texts: Magento 2 customer is saved as guest even if he logged-in in quote table

texts: We have an issue that if a customer is logged-in and add product to cart, in quote table we have a column as customer_is_guest, it is saving as 1, even if the customer is logged-in, it is showing as guest. Due to this case, we are getting an error as "Invalid customer addresses id". We have upgraded magento from 2.2.6 to 2.2.8. Is there any solution for that? Please let me know.


texts:
I'm trying to create a custom language module to change cart to basket.

The following code currently sits is app/code/atharna/en_us.

The code I have created so far is as follows:

composer.json

{
    "name": "atharna/en_us",
    "description": "English",
    "version": "100.0.1",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],
    "require": {
        "magento/framework": "100.0.*"
    },
    "type": "magento-language",
    "autoload": {
        "files": [
            "registration.php"
        ]
    }
}

en_US.csv

"Add to Cart","Add to Basket"
"Shopping Cart","Shopping Basket"
"You added %1 to your shopping cart.","You added %1 to your shopping Basket."
"Shopping Cart Items","Shopping Basket Items"
"My Cart (1 item)","My Basket (1 item)"
"My Cart (%1 items)","My Basket (%1 items)"
"My Cart","My Basket"
"We cannot add this item to your shopping cart","We cannot add this item to your shopping Basket"
"%1 was updated in your shopping cart.","%1 was updated in your shopping Basket."
"We cannot update the shopping cart.","We cannot update the shopping Basket."
"Display number of items in cart","Display number of items in Basket"
"Update Shopping Cart","Update Shopping Basket"
"Clear Shopping Cart","Clear Shopping Basket"
"Update Cart","Update Basket"
"Items in Cart","Items in Basket"
"You have no items in your shopping cart.","You have no items in your shopping Basket."
"Cart Subtotal","Basket Subtotal"
"View cart","View Basket"
"Edit Your Cart","Edit Your Basket"
"After Adding a Product Redirect to Shopping Cart","After Adding a Product Redirect to Shopping Basket"
"My Cart Link","My Basket Link"
"Display Cart Summary","Display Basket Summary"
"Shopping Cart Sidebar","Shopping Basket Sidebar"
"Display Shopping Cart Sidebar","Display Shopping Basket Sidebar"

language.xml

<?xml version="1.0"?>
<language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/Language/package.xsd">
    en_US
    <vendor>atharna</vendor>
    <package>en_us</package>
</language>

regisration.php

<?php

\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::LANGUAGE,
    'atharna_en_us',
    __DIR__
);

Any ideas as to what I'm doing wrong?


texts: How to show image in custom email. Magento 2

texts:
I'm getting my custom data from email function and also I'm getting the Product image URL to show it in mail now I tried many ways to show my image in email but its not working for me my custom email code is

    {{template config_path="design/email/header_template"}}

Name: {{trans "%name" name=$name}}

Email: {{trans "%email" email=$email}}

Phone Number: {{trans "%pnumber" pnumber=$pnumber}}

Offer Amount: {{trans "%offeramount" offeramount=$offeramount}}

Message: {{trans "%message" message=$message}}

Product Name: {{trans "%product_name" product_name=$product_name}}

Product Price: {{trans "%product_price" product_price=$product_price}}

URL: {{trans '%imgUrl' imgUrl=$imgUrl}}

{{template config_path="design/email/footer_template"}}

I get the code from net which is

but now my question is how can I set Dynamic URL in place of fixed URL e.g in place of this URL images/email/youtube.jpg I want to set my URL


texts: Magento 2.3.4 - How to add css for a specific group of cms pages

texts:
I am going through hard times. After the latest updates, there is no more the Layout Update XML field in the admin panel (Magento 2.3.4).
I needed to create a custom layout for some types of cms pages, so I thought of creating one by adding to my child theme:

/app/design/frontend/Vendor/Theme/Magento_Theme/page_layout/examplepage.xml

containing:

<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
        <head>
           <css src="css/csspagine.css"/>
            </head>
    <referenceContainer name="sidebar.additional">
        <block class="Magento\Cms\Block\Block" name="exampleblock">
            <arguments>
                <argument name="block_id" xsi:type="string">exampleblock</argument>
            </arguments>
        </block>
    </referenceContainer>
    </layout>

and under /app/design/frontend/Vendor/Theme/Magento_Theme/page_layout/layouts.xml

    <layout id="examplepage">
        <label translate="true">Page Example</label>
    </layout>
</page_layouts>

finally I added the css file csspagine.css

/app/design/frontend/Vendor/Theme/web/css/

The pages are correctly set in the Magento backend, but the CSS is not loaded. I can't find a solution. Can you help me?

It is important for me that this Css is loaded only on this group of pages and not on the whole site.

thank you all


texts:
I'm trying to write up a tutorial explaining how to install Magento 2 only via composer, and use that tutorial as an in to exploring how third party composer repositories work.  Looking at the current Magento 2 development setup, there's a few pieces of information I'm missing and I hope the community can fill them in.

Specifically, the composer.json in the Magento 2 GitHub repository lists the Magento package name as magento/magento2ce.  However, this package does not exist in packagist, nor does it exist in packages.magento.com.

This means I can't just do a

composer require magento/magento2ce

and have Magento 2 automatically install.

Is there a Magento 2 provided package end-users can use to install that latest stable version of Magento two without checking out the source from GitHub?


texts: Getting price to display if New, or Reconditioned

texts: So I am trying to create a function that states that if the product is new in stock then display price, or if the product is not new but reconditioned then I want it to display the reconditioned price, and lastly if there is none of the product in stock to display a "call for pricing" message. I am looking to do this in the price.phtml file and would like to know how to do this, I have an idea of what I want to do but I'm not entirely sure how to execute this code, please help! The image added is essentially what I would like to be done with code.


texts:
I am trying to sort a product collection by SKU based on the order that the SKUs appear in the $skus array passed into the addAttributeToFilter method in the collection below:

    $skus = explode(",",$this->getRequest()->getParam('skus'));

    $collection = Mage::getModel('catalog/product')->getCollection()
                    ->addAttributeToSelect('*')
                    ->addAttributeToFilter('sku',array('in'=>$skus))
                    ->addAttributeToFilter('visibility',array('gt'=>array(Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE)))
                    ->addAttributeToFilter('status',array('eq'=> Mage_Catalog_Model_Product_Status::STATUS_ENABLED))
                    ->addUrlRewrite()
    ;

How can I sort this collection so that the products appear in the same order as their skus inside the $skus array?


texts: Order top level categories without using drag and drop admin function

texts:
Currently need to position a new category between two existing top level categories.

Can't use the drag and drop feature in the admin as it seems to cause rewrite and duplication issues. Is their a way I can sort these top level categories?

My top.phtml appears as :

<?php $_menu = $this->renderCategoriesMenuHtml(0,'level-top') ?>

<?php if($_menu): ?>

           <?php echo $_menu ?>

<?php endif ?>


texts: Two "catalog_product_flat" identical products, is this normal?

texts:
Here is my intallation, 1 website (1 domain) with 2 store and each store view. "Use Flat Catalog Category" and "Use Flat Catalog Product" are enabled.

In my database, I therefore following tables:
catalog_category_flat_store_1
catalog_category_flat_store_2
catalog_product_flat_1
catalog_product_flat_2

In each table "catalog_category_flat_store" I have the corresponding categories for each store, store 1: Categories of my store 1 & 2 store: the category of my store 2 No worries..

But in my table "catalog_product_flat" I have all my products present in both tables, they are not dispatched in one or other of the two store based on their membership. Is this normal or am I missing a setting somewhere? Suddenly it increases the size of the database.

Thank you in advance


texts: How to make the shipping address fields mandatory Magento 2?

texts:
Magento allows you to add up to 4 fields for the address.
I need to make the fields of the form for submission mandatory, they are 3 text fields and also modify their labels
Any ideas?


texts:
Fatal error: Class 'DOMDocument' not found in app/code/core/Zend/Xml/Security.php on line 82

How to solve this issue? DOM extension enabled in cPanel.


texts: How can I create language pack for magento 2

texts:
I am trying to create language pack for Norway,

but I do not know how to create this .

I am unable to find any Magento extension for Norwegian language .

Please help me.


texts: Cant access images in /pub/media/customer

texts: I have added custom attribute for profile image upload. Now when i access customer image on front end it shows 404 error and donot access images in this folder /pub/media/customer .


texts: Dynamically added products not displaying correctly

texts:
I have a script that mass creates products from a remote database to my Magento database. I'm sure I have created entries into every table required for the product to exist in Magento, but when I go to view the product, I can see the product page, but the product options like Color, Size, and the price do not display, along with the Add to cart button. When I go in the backend and save the product manually and go back to the product page everything appears like it should and works fine. I then created a php script to go through and save each dynamically added product using magento's save function, it loops through and saves the products, but this doesn't work, they still will not display correctly unless saved through the website.

Tables inserted into to create a product:
catalog_product_entity
catalog_product_entity_int
catalog_product_entity_varchar
catalog_product_entity_text
catalog_product_entity_decimal
catalog_product_entity_datetime
catalog_category_product
catalog_category_product_index
catalog_product_entity_media_gallery
catalog_product_entity_media_gallery_value
cataloginventory_stock_item
cataloginventory_stock_status
catalog_product_index_price
catalog_product_index_eav
catalog_product_website
catalog_product_super_attribute
catalog_product_super_attribute_label
catalog_product_super_attribute_pricing
catalog_product_relation
catalog_product_super_link

When I compare values to a dynamically created product and one that is already in Magento and works they are both the same, I'm just unsure of why it won't show up unless saved through the website. Any help would be appreciated, thanks!


texts: Magento 2 : Expected HIT on the second page load after product price update

texts:
I have submitted an extension to Magento Marketplace but they reported below error:

  Expected HIT on the second page load. Expected HIT on the second page
  load after product price update.

  {"command":"Varnish PageCache Test","output":{"Expected HIT on the
  second page load.":["http://magento.local/simple-product-1.html
  page doesn't contain HIT in cache
  header.","http://magento.local/simple-product-2.html page doesn't
  contain HIT in cache
  header.","http://magento.local/simple-product-3.html page doesn't
  contain HIT in cache header.","http://magento.local/category-1.html
  page doesn't contain HIT in cache
  header.","http://magento.local/category-2.html page doesn't contain
  HIT in cache header.","http://magento.local/ page doesn't contain
  HIT in cache header."],"Expected HIT on the second page load after
  product price update.":["http://magento.local/simple-product-1.html
  page doesn't contain HIT in cache
  header.","http://magento.local/simple-product-3.html page doesn't
  contain HIT in cache header."]}

I am not sure what exactly to add to get the package be successfully validated at Magento Marketplace. Please help me if someone have any idea on it.


texts:
I need to increase the width of search box in home page.

With the help of developer tools i have found that block-search (.block-search) class is reason for this and i have checked .block-search in my magento2 directory.

And i have found .block-search class in \pub\static\frontend\Magento\luma\en_US\css\styles-l.css for which i have changed the size and its working fine.

Now in the future to get updates for any css classes i may delete pub/static files. So how to find the core files reason for any css, so that even i delete pub/static files it won't get effected to my changes requirement


texts: Magento 2 sales_order_save_before event getting null value

texts:
I am trying to save custom data through observer , My observer is triggering but inside execute method I am getting null.

Observer class

namespace Vendor\Module\Observer;

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

class PaymentAssignData implements ObserverInterface {

    /**
     * @var ObjectManagerInterface
     */
    protected $_objectManager;

    /**
     * @param \Magento\Framework\ObjectManagerInterface $objectManager
     */
    public function __construct(
    \Magento\Framework\ObjectManagerInterface $objectManager,
            \Psr\Log\LoggerInterface $logger
    ) {
        //die(__METHOD__);
        $this->_objectManager = $objectManager;
        $this->logger = $logger;
    }

    public function execute(Observer $observer) {
      $order = $observer->getEvent()->getOrder();
     $quote = $order->getQuote();

       var_dump($quote);exit;

    }

}


texts: Is there a way to return specific products for a custom search term?

texts:
i.e. create a search term like XYZ123

and have it return only items I specify? Like if I am running a promo on specific items and only want to show those items when people search for XYZ123?


texts: Magento 2 : Best Seller are not updated for imported order

texts:
I have import orders and generate shipment and invoice, But our Statistics are not updated like best seller, Most Viewed, Order Collection, Dashboard Graph.

I have already tried with cron and refresh statistics so please don't suggest this type of solutions.


texts: Home page vertical Nav bar not displaying all the categories

texts:
I have a problem with my site that I'm developing. I have bought a template, and unfortunately, the vertical navbar is not expanding. I have more than the categories displayed in the navbar, but the +Category button is not working, and I can see that chrome says void(0); at the bottom of the page. I tried contacting the template developer, but no luck, and I have no idea how to diagnose this issue. Any suggestions?

Thank you.

In case you wanted to visit the website you can check it out here.


texts:
I am programmatically importing a list of products in Magento 1.8.1.0.

Although the products are enabled they are not showing in the frontend pages (searches, list, ...).

This are my product attributes:
*Grouped Products:

Status: Enabled
Visibility: Catalog, Search
Manage Stock: NO
They are in the correct categories
They are in the Main Website

*Simple Products:

Status: Enabled
Visibility: Not visible individually
Manage Stock: NO
Minimum Qty Allowed in Shopping Cart: 1
Maximum Qty Allowed in Shopping Cart: 10000
The price is set
They are in the Main Website

By manually disabling and then reenabling a product in the backend, the toggled product shows up. I created a script to disable and reenable all products and it seems to work locally (OSX) but not on my server (openSuse 11.4).

Is there something I can check in my import script to make it work without toggling all the product status?

EDIT: In the import script I am setting the store id and website like this:

Mage::app()->setCurrentStore($storeId);
$product = Mage::getModel('catalog/product')->setStoreId($storeId);
$product->setWebsiteIds(array(Mage::app()->getStore(true)->getWebsite()->getId()));

EDIT 2: This is the script that seems to fix the problem (by setting the again the website Ids it work also on the server)

$products = Mage::getModel('catalog/product')->getCollection();

    foreach($products as $product){
        $product->load();
        echo "Disabling product: ".$product->getSku()."\n";
        $product->setStatus(2);

        $product->save();

        $product2 = Mage::getModel('catalog/product')->load($product->getId());
        echo "Enabling product: ".$product->getSku()."\n";
        $product2->setWebsiteIds(array(Mage::app()->getStore(true)->getWebsite()->getId()));
        $product2->setStatus(1);

        $product2->save();
    }


texts: Why Can't Magento Turn Off The Cache When Redis Fails

texts:
I'm working with Magento 1.9.0.1, and every now and again our Redis servers which host the Magento cache, (AWS ElastiCache) will go down. When this happens, Magento fatally errors until Redis is available again.

This might be a difficult question to answer quickly, but what I'm wondering is why can't Magento act like the cache is disabled when it can't connect to Redis, instead of fatally erring?

I'm not aware of any setting or any module that gives Magento this ability, but on the surface it doesn't seem difficult. Magento uses local.xml to figure out how to connect to the database, and the cache backends. It then connects to the database and looks at the cache options to know whether or not to use the cache. If told by the database to use a given cache, it switches some flag (probably a global variable or the property of a singleton,) and uses the cache backend for the rest of the request. Couldn't Magento be made to turn this back off during that request if a connection error occurs?

A slow site is better than a fatal error.

Edit: Evidently some people don't understand what I'm asking or didn't actually read this post.

Is there a module that will give Magento the ability to function
without fatal error when Redis is unavailable, when Redis is being
used as the primary cache storage method.
If not, could someone enlighten me on why this isn't possible or is
very difficult?


texts: Recoverable Error: Argument 1 passed in magento 2

texts:
i have an issue in magento2-cash-on-delivery-fee extension. i have posted a issue in github kindly please verify in the below link.

https://github.com/bragento/magento2-cash-on-delivery-fee/issues/24


texts: Magento 2 sorting configurable products by special_price is not working

texts:
I have simple and configurable products on listing page.

I am using special_price attribute for sorting. It is working for simple products but not working for configurable products.

I have assigned special_price for all associated products of configurable products but still it is not sorting.

I am using Magento 2.3.0. Can anyone suggest how can I do?


texts: How to Find out where it Is made Breadcrumb Array in Magento 2.3.1

texts:
where it Is made Breadcrumb Array in Magento 2.3.1?

In Detail page has show Breadcrumb but i m not able to find where it Is made Breadcrumb Array

Can somebody help me?

Thanks


texts: How can I get assigned products in a category without using soap API

texts: I want to get assigned products in a category with product positions in a category without using SOAP API.I don't want to use $proxy->call($sessionId, 'catalog_category.assignedProducts' .I am making a single file in magento folder for API.any help will be appreciated.


texts: Magento 1: Discount Issue, Problem, Not Refreshing, Not Updating, Price Removing etc

texts: If someone facing any problem regarding discount issue any type of so please contact me I have a customize solution for this 100% tested and working goo


texts: Disable/Remove Sunday and it related date from calendar

texts:
I want to disable/remove Sunday from js calendar and its related dates also.

Can somebody tell me how can I achieve this?

I search from google but all says to hide weekend, I just want to hide only Sunday and its related dates.

Thanks in advanced.


texts: Register user product review not reflecting in My account section

texts:
If any register user (already logged in) write any product review it submitted successfully. but In My account section, My product reviews is empty.

Any clue why reviews are not assigning to logged in user?


texts:
I have been trying to create a Promotions>Shopping Cart Price Rule, of 10% discount for Category A (id=8).  So when 2 products are added to the cart, discount only applies to the product belonging to category id=8.

Rule Information:
Rule Name: 10PercentOff
Parameters set are:
Status: Active
Customer Groups:
- NOT LOGGED IN
- General
- Wholesale
- Retailer
Coupon: Specific Coupon
Uses per Customer: 1

First attempt using conditions Only.
Conditions:
If ANY of these conditions are TRUE:
"+" Product Attribute Combination > If an item is FOUND in the cart with ANY of these conditions true:
Product Attribute>Category Category  is  8.
When I add a product from category 8 and also add another product from another category, the cart discounts both products.
Second attempt using Action Only.
Actions:
If ALL of these conditions are TRUE:
"+" Product Attribute>Category Category is 8.
When I add a product from category 8 and also add another product from another category, the cart produces the message Coupon code "10PercentOff" is not valid.

I should also add this, when both "Conditions" and "Actions" are untouched (no set rules), the discount gets applied. It gets applied to the entire cart.  As seen in the picture below:

How can this be achieved?  How should rules be created for this scenario?


texts: Magento2 certification retake questions same as 1st attempt?

texts: I was failed magento2 professional developer exam, I'm studying on these days to 2nd attempt. Anyone know do we have similar set of questions for 2nd attempt?


texts: Unable to render Configuration page of Mageplaza SMTP extension. Page is rendering as blank page

texts:
I have installed Mageplaza SMTP extension in my Magento site (v 2.3.1). The problem I am facing is that I am unable to see its configuration page when I try to access it from Stores >> Configuration >> Mageplaza >> Smtp

The problem does not happen only with the SMTP extension. I have tried Google Recaptcha of Mageplaza and it is showing me the same issue.

Instead of showing the configuration page in the backend it's showing a blank page.


texts: Magento configurable swatches on product list in custom theme

texts:
I'm trying to get configurable swatches to work in my own custom theme, and have followed these instructions: How to use Magento 1.9.1.0 Configurable Swatches in Default package theme (or a custom theme)?

This works for the product page, but I don't get the swatches showing up in the list view.

The rwd catalog xml file has this entry:

<catalog_category_layered translate="label">
<reference name="content">
    <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
        <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
            <block type="core/text_list" name="product_list.name.after" as="name.after" />
        </block
    </block
</reference>
</catalog_category_layered>

if I add in:

<block type="core/text_list" name="product_list.name.after" as="name.after" />

To my base theme catalog.xml file in the same spot it works, so what do I put in my theme's xml file to get this to work the same? How do I target the block called product_list to add that core/text_list block into it?


texts:
I want to Override List.phtml and for that I'm using this Layout

  Vender/Module/view/frontend/layout/catalog_category_view.xml

    <?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content">
             <block class="Magento\Catalog\Block\Product\ListProduct" name="category.products.list" as="product_list" template="Vender_Module::product/list.phtml"/>
        </referenceContainer>
    </body>
</page>

I also create the custom list.phtml and ListProduct.php in my Module but after that still my module is not running my list.phtml its running its own list.phtml. What is the problem and how can I solve that Thanks in advance.


texts: Magento: how do I mark products that match shopping cart price rules?

texts:
I am using shopping cart price rules in my custom module, everything is working fine. I just want to get product ID's against every rule.

If there are 10 products in cart and on 3 of them had some rules applied, rule #1 on 2 products and rule #2 on 1 products.

How can I mark the products ID's against every rule?


texts:
I'm having a trouble with the opcheckout process.
When all the steps are loaded I can see the payment methods but in the moment that goes from shipping method to payment method in the transport.response I got html null

{"goto_section":"payment","update_section":{"name":"payment-method","html":null}}

So my question is from where got the html?
Because I replaced the opcheckout.js with the copy that I have in local (works correctly in local) and still have the same error.

Thank you.

EDIT:

Debugging OnepageController

public function saveShippingMethodAction(){}

In this part

$result['update_section'] = array(
              'name' => 'payment-method',
              'html' => $this->_getPaymentMethodsHtml()
);

html contains the payment methods.

But in this part

Mage::helper('core')->jsonEncode($result));

There's nothing in the html part


texts:
A site I'm working on (that you guys have helped me hugely on so far) requires a "splash" page which is completely different (and massively more complex) in layout to anything else on the site so I just want to create the page independently with HTML and CSS and then display this as a page. I guess it would be a completely new page template but not displaying any info from the CMS.

How do I go setting this up in the CMS and where do I need to place my template file?

Thank you


texts: How To Reset Test Orders And Dashboard Statistics in Magento 2

texts:
In Magento 1.x we can reset test orders and dashboard statistics by following link. In Magento 2.x may different names when we compare Magento 1.x and Magento 2.x tables.

Any one having solution? to reset test orders and dashboard statistics in Magento 2.


texts: Display email address on the shipment page

texts:
In the Shipment page, where you have the Billing Address and the Shipment Address, the management staff tells me she wants the email to show up there (rather complains that the email is not shown).

I am not sure about the page I have to edit whether it is the shipment page or something like

System > Configuration > Customers > Customer Configuration > Address Templates

and while I code in PHP, I have no idea about Magento syntax so I dont know how to write those 4 or 5 words that would surely display it. For example, this shows address

      <td valign="top" style="font-size:12px;
      {{var order.billing_address.format('html')}}

      &nbsp;

 {{var payment_html}}

My guess is that it would be something like this?

 {{var order.email_address.format('html')}}

But I don't know if it is

{{var order.email_address.format }}

or it should be just

{{var order.email.format('html')}}

UPDATE

On reading other posts
How do I add a customer's email to the sales invoice?

it gives the instructions on how to write the code but it says:

You have to copy the file to the local folder. You cannot do a simple override because it's an abstract class.

Where is that the "local folder", where is the file I have to copy?


texts: Magento Admin panel broke suddenly 1.9.x.x

texts: I logged into to Magento's Admin panel to find it is broken. All the tabs & sub-tabs are appearing in distorted way. I'm attaching screenshot below. How this happened suddenly? Any idea?


texts:
I am using this script for Load More in Magento 2 But it's not working

 <script src ="https://infiniteajaxscroll.com/vendor/jquery-ias/dist/jquery-ias.min.js"></script>
<link src = "https://raw.githubusercontent.com/ravbetsky/infinite-ajax-scroll/master/dist/css/jquery.ias.css"/>
     var ias = jQuery.ias({
    container:  ".test",
    item:       ".products-grid",
    pagination: ".pages-items li",
    next:       ".item a"
});
ias.extension(new IASSpinnerExtension());            // shows a spinner (a.k.a. loader)
ias.extension(new IASTriggerExtension({offset: 3})); // shows a trigger after page 3
ias.extension(new IASNoneLeftExtension({
  text: 'There are no more pages left to load.'      // override text when no pages left
}));

if I go to second scroll, the add to cart button is not working properly.

Please give me some script for Load More Products.


texts:
When we search any text in default magento it shows only products in the search result but I want to show the categories also when someone searches for a query string.
Like if query string is like catalogsearch/result/?q=brother
Then the result should contain category and products.
The result should also be formatted like first we show the category then it's products that match the query string then second category and it's products and so on. If category match not found show only products and if product match is not found then show categories which match the query string.
What I want is the list view which contains both categories and products just like http://www.ldproducts.com/ldpsearch/result/?q=officejet+pro+8000

Goto this URL and scroll till the bottom and you'll see what I exactly want.
Googled a lot but was unable to find the desired answer. I am not supposed to use any extension or make any changes on the phtml file(until it's damn mandatory).

My magento version is 1.9.0.1


texts: Need To Ship Multiple Products with 1 Shipping Cost (by Category or Volume)

texts:
I have multiple products (books) and need to combine shipping cost on checkout.
(example: buy one comic book - shipping costs $5.65 - but I can also fit another 20 items from the same Category in the shipping package with no additional shipping cost)

Some items are small and can be fit into the same shipment for a flat rate at no additional cost, up to a certain number of items / volume of the total package sent.

Currently it is "per product" shipping cost. I do not need to bill customers per product for shipping when I can fit multiple items into one shipment for the same price.

I do not wish to purchase any extensions. I need either a free extension that will solve this, or advice on how to write the code in Magento please.


texts: Magento 2 individual Grid or List view for each category

texts:
I am looking for a way to individually set the default view for each category.

Fo xample Category Shoes should be Grid and Category T-Shirts should be list view.

I found this for M2 but its not changing anything (1. Option)

https://www.webmoves.net/blog/build/specify-grid-or-list-mode-on-a-per-category-basis-in-magento-3190/

<reference name="product_list_toolbar">
  <action method="setCurrentMode">
    <mode>grid</mode>
  </action>
</reference>


texts:
I need to add a text attribute to placed orders, filled by logic in a observer module. Now I used/follow this code before on Magento 2.2 and there it worked like expected. Now, copying the same module to Magento 2.3 doesn't seem to fire the installData at all (I added logging to check, never comes up in the logs), so the required database columns aren't created, thus my order-process is now broken.

Now I've seen and read this about declarative schema, that the installData is being phased out, but I also understand that it should still work in 2.3, and I haven't the time to rewrite the module.

My installData contents are now this (this is the code that worked in 2.2 but not 2.3)

<?php
namespace DC\OrderAttributes\Setup;

use Magento\Framework\Setup\InstallDataInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Sales\Model\Order;

class InstallData implements InstallDataInterface
{
    /**
     * @var \Magento\Sales\Setup\SalesSetupFactory
     */
    protected $salesSetupFactory;

    /**
     * @param \Magento\Sales\Setup\SalesSetupFactory $salesSetupFactory
     */
    public function __construct(
        \Magento\Sales\Setup\SalesSetupFactory $salesSetupFactory
    ) {
        $this->salesSetupFactory = $salesSetupFactory;
    }

    /**
     * {@inheritDoc}
     */
    public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
    {
        $installer = $setup;

        $installer->startSetup();

        $salesSetup = $this->salesSetupFactory->create(['resourceName' => 'sales_setup', 'setup' => $installer]);

        $salesSetup->addAttribute(Order::ENTITY, 'dc_order', [
            'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
            'length'=> 255,
            'visible' => false,
            'nullable' => true
        ]);

        $installer->getConnection()->addColumn(
            $installer->getTable('sales_order_grid'),
            'dc_order',
            [
                'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
                'length' => 255,
                'comment' =>'Order to dc'
            ]
        );

        $installer->endSetup();
    }
}

Can anybody help me figure out why these tables aren't created?
I've uninstalled/removed the module and the corresponding row in setup_module in the database to trigger the install each time; no success.


texts:
I need to modify the _beforeSave function of Mage_Customer_Model_Resource_Customer i created a new file in my module with the new method and put the rewrite in my config.xml

    <models>
        <customer_resource>
            <rewrite>
                <customer>Name_Module_Model_Resource_Customer</customer>
            </rewrite>
        </customer_resource>
    </models>

the new method works on the frontend (register page) but when I try to save a customer in admin it uses the core method what do I need to do to tell the admin about the rewrite?


texts: Magmi image import sets majority of product images, but not all

texts:
I've been using Magmi to do a mass import of both product data and then going over the product data to reference product images via SKU. I've been able to get Magmi to import product data without issue, but have hit a snag with the image import.

Thing is, I've gone through some 10,000 products and was able to assign images to most of them against another CSV containing the product SKU and assigned images. And for a lot of the products, the base image, small image and thumbnails have been correctly assigned and show on the front-end.

However, there are still a significant amount of products that are not showing the small image and thumbnail on the front-end despite having the images assigned in the backend. I've been working most of this day going through reindexing, resetting the product images by overwriting the product data with blank images and redoing the image import, to messing around with the profile settings to see if it is something to do with the configuration.

The header of my image import CSV is as follows:

"sku", "image", "small_image", "thumbnail", "attribute_set", "type", "store", "product_websites", "visibility"

I'm not sure if I'm missing a specific needed field in which I must set in order cover all products on the update, since adding the visibility field seemed to work in getting most of them to display. Most, but not all unfortunately, and so far, the only way I can get a product that has been assigned an image via import to display all the images on the front-end is to manually edit it (set it to no image and then set it back). If I can solve this for the automatic import, then it'll save my client having to go through amending the images manually.

To note, I've made sure to reindex, clear cache, tweak configuration, over and over, whilst checking various support thread both on Stack Exchange and on other forums. So far, no success!

EDIT Nevermind, the solution is simple. Go nuclear and clear the whole catalog and reimport afresh. Images then uploaded and were assigned without issue. Tears of joy...


texts: EE - Warning: include(Mage/Enterprise/Pagecache/Model/Observer.php): failed to open stream: No such file or directory

texts:
In system.log I often find the warning message:

  Warning: include(Mage/Enterprise/Pagecache/Model/Observer.php): failed to open stream: No such file or directory

The FPC Module is deactivated within module config xml.

Any one a hint why magento tries to instance it?

Cheers


texts: Magento2 : How to database schema upgrade

texts:
I am working on magento custom module, in module have Setup\InstallSchema.php file which is installed before. i have added some more database fields in InstallSchema.php so i want to update table structure but table have not applied any changes.

How i can apply schema changes to database table?

I have process cli commands to update schema but not success.

php bin/magento setup:db-schema:upgrade

and

php bin/magento setup:upgrade


texts:
I need a small help. How to pass the values to json with different values.

$params =   array( 'OrderLineId'=>$orderLineId,
                            'MaterialNo'=>$materialNo,
                            'PlanType'=>$planType,
                            'Qty'=>$qty,
                            'UnitPrice'=>$unitPrice,
                            'UnitTax'=>$UnitTax,
                            'DiscountRate'=>$DiscountRate,
                            'Discount'=>$Discount);
$orderData = array('OrderId'=>$orderId,
                            'StoreId'=>$storeId,
                            'PartnerId'=>  $partnerId,
                            'CustomerId'=> $customerId,
                            'OrderType'=> $orderType,
                            'OrderSource'=>  $orderSource,
                            'CurrId'=> $currId,
                            'UserName'=> $userName);

I need to pass the values like

"OrderHeader": { "OrderId": "12", "StoreId": "main_website_store", "PartnerId": "15", "CustomerId": "16", "OrderType": "NEW", "OrderSource": "Megento", "CurrId": "USD", "UserName": "sdfdsfdsf" },
"OrderDetail": [ { "OrderLineId": "string", "MaterialNo": "79c29af7-3cd0-4a6f-b182-a81e31dec84e", "PlanType": "Anual","Qty": 0,"UnitPrice": 0.1, "UnitTax": 0.1,"DiscountRate": 0.1,"Discount": 0.1},{    "OrderLineId": "string", "MaterialNo": "BCESS876","PlanType": "Month","Qty": 2,"UnitPrice": 0.1,"UnitTax": 0.1,"DiscountRate": 0.1,"Discount": 0.1}]}

any one please help me.


texts: SQLSTATE[42000]: Syntax error or access violation: 3057 Incorrect user-level lock name on re indexing

texts:
When I run php indexer.php --reindexall command I get following error.

PDOException: SQLSTATE[42000]: Syntax error or access violation: 3057 Incorrect user-level lock name 'magento_prod.index_process_024cd255-917a-11e9-8262-3bda9350d94f'. in /var/www/html/bradywarehouse/production/lib/Zend/Db/Statement/Pdo.php:228
Stack trace:
#0 /var/www/html/magento/production/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
#1 /var/www/html/magento/production/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#2 /var/www/html/magento/production/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#3 /var/www/html/magento/production/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#4 /var/www/html/magento/production/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT IS_USED_...', Array)
#5 /var/www/html/magento/production/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SELECT IS_USED_...', Array)
#6 /var/www/html/magento/production/app/code/core/Mage/Index/Model/Resource/Helper/Mysql4.php(83): Varien_Db_Adapter_Pdo_Mysql->query('SELECT IS_USED_...', Array)
#7 /var/www/html/magento/production/app/code/core/Mage/Index/Model/Lock/Storage/Db.php(96): Mage_Index_Model_Resource_Helper_Mysql4->isLocked('magento_prod....')
#8 /var/www/html/magento/production/app/code/core/Mage/Index/Model/Lock.php(257): Mage_Index_Model_Lock_Storage_Db->isLockExists('magento_prod....')
#9 /var/www/html/magento/production/app/code/core/Mage/Index/Model/Lock.php(227): Mage_Index_Model_Lock->_isLockExistsDb('index_process_0...')
#10 /var/www/html/magento/production/app/code/core/Mage/Index/Model/Process.php(480): Mage_Index_Model_Lock->isLockExists('index_process_0...', NULL)
#11 /var/www/html/magento/production/app/code/core/Mage/Index/Model/Process.php(184): Mage_Index_Model_Process->isLocked()
#12 /var/www/html/magento/production/app/code/core/Mage/Index/Model/Process.php(260): Mage_Index_Model_Process->reindexAll()
#13 /var/www/html/magento/production/shell/indexer.php(168): Mage_Index_Model_Process->reindexEverything()
#14 /var/www/html/magento/production/shell/indexer.php(216): Mage_Shell_Compiler->run()
#15 {main}

Next Zend_Db_Statement_Exception: SQLSTATE[42000]: Syntax error or access violation: 3057 Incorrect user-level lock name 'magento_prod.index_process_024cd255-917a-11e9-8262-3bda9350d94f'., query was: SELECT IS_USED_LOCK(?); in /var/www/html/magento/production/lib/Zend/Db/Statement/Pdo.php:235
Stack trace:
#0 /var/www/html/magento/production/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)

I am running Magento Enterprise edition 1.14.3.1 and MySQL version 5.7.26

How can I fix it ?


texts: I want to disable all types of rules in specefic product in magento 2.2.2

texts:
If ALL  of these conditions are TRUE :
If an item is FOUND  in the cart with ALL  of these conditions true:
SKU  is  wallet


texts: Magento 1.9 running slow after migrating to new database server

texts:
I migrated our Magento 1.9 to a new mysql and now I noticed that the site is loading super slow.

When I login to mysql and run a show processlist I see a long running query

SELECT `e`.*, IF(at_is_active.value_id > 0, at_is_active.value, at_is_active_default.value) AS `is_a

I am not sure what this query is and why its running so many times in a row and so slow.

Anyone know how to fix. I ssh'ed into the site and reindex'ed via ssh but that did not fix the issue.
The website is a Magento 1.9 on php 7 and have read that the magento database repair toll does not wok with php7. Anyone experience this and able to fix it?


texts: Magento 1.9.3.1 is not sending any order/shipment emails

texts:
I'm running a website on magento 1.9.3.1 and i'm having email issues. I am not using an SMTP as the installation for the SMTP Pro plugin crashed my website. I am trying to send emails through the default magento email sender.

The strange thing is that when a customer signs up for our website, they receive a welcome/confirmation email automatically, but, when they make an order, an order confirmation/shipping email is not sent. Even when I choose to go to the order it's self and click on 'Send Email' they do not receive anything.

It is for this reason that I am sure my email details are entered correctly, the only problem is how magento handles the order/shipment emails themselves.

These are my settings for the order and shipment emails.


texts: Adding custom variable (from config) per store view

texts:
we use 1 set of email templates for multiple stores. Logo and store name come from variables per store.

Now I would to add a short text block with a link (diff per store view), something like:

Follow us on facebook: LINK_TO_FB

Now how would I set a variable LINK_TO_FB that grabs the value set per store?

Thanks!


texts: How to Group Products by Manufacturer or Supplier

texts: I am beginning to load products in my store. I would like to organize the products by manufacturer. There is a column in the product grid for "country of origin", but I don't see any for manufacturer or supplier. Can I add a column to the grid through Magento, or must it be done through phpMyAdmin? Or, maybe it can't or shouldn't be done at all??


texts: Moved magento to new domain, admin URL redirect to old admin URL

texts:
Edit: solved

I moved my magento-installation to a new domain, copied the database, changed the app/etc/local.xml to show to new database, changed the web/unsecure/base_url and  web/secure/base_url and cleared the var/cache directory. The shop itself works with the new domain. But when I want to access the admin panel I get redirect to old url.

  http://newdomain.com -> http://newdomain.com
  http://newdomain.com/admin -> http://olddomain.com/admin

I also checked for system -> config -> admin -> admin BaseURL if there is any user specific settings. -> Its not.

I also checked in htaccess for any redirects. -> none.

What else could cause this redirect? I am out of ideas.


texts: Magento 2: News letter Subscription for the products

texts:
How to send the email to Newsletter subscription users for every product updates, Discounts and offer details.

Is it possible?


texts: Admin setting js minify option is not working

texts: I have enabled the option minify js file in admin panel setting. But after doing these, it doesn't minify any single js file. It has just changed the name of js file to the .min.js and only in webpage. Even if you check file name in FTP it's still name as .js without .min. Not understanding this Option in magento 2. How it works?


texts:
When submitting extension to Magento2 Marketplace gives error "Error During Installation Command returned non-zero exit code".

Environment: Operating System - Centos 7, PHP Version - 5.6.30, Magento Platform - 2.0.13 CE
Command: deploy:mode:set production

While I am able to install and command "deploy:mode:set production" showing no error on my end.

Please help me if anyone encountered the same problem.
Thanks In advance.


texts: How to upgrade magento2.0.0 to 2.1.2 in Local Machine

texts: How to upgrade my website to latest release magento-2.1.2 ?


texts: remove price text from custom option from cart page

texts:
I am using Magento 1.9.3.8, I need some customization in custom options text in cart page.

I want to remove custom option price from cart page.

I want just hide euro 23.99 and euro 12.00 from those custom options no any other extra things to do.

Any help will be appreciated.


texts: Show product image before image in content

texts:
Could anyone help me to show product image before image in content with Magento v2?

My website load is not so bad but the image of products are load after images in content. Thus, visitors think that my website load slowly.

Thanks


texts: 404 Page not found error when I try to access Custom module in Magento 2

texts:
I have created 2 custom module inside vendor folder .This is my layout structure :

-app
  -code
    -Company
      -Blog
      -HelloWorld
        -Controller
          -Hello
            -World.php
        -registration.php
        -etc
          -module.xml
          -frontend
            -routes.xml

Both are enabled .

This is my code for routes.xml for HelloWorld module :

 <?xml version="1.0"?>
 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
  <router id="standard">
    <route id="helloworld" frontName="helloworld">
        <module name="Company_HelloWorld"/>
    </route>
 </router>
</config>

This is my code in module.xml :

 <?xml version="1.0"?>
   <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
    <module name="Company_HelloWorld" setup_version="1.0.0">
   </module>
   </config>

This is my registration.php file :

<?php
   \Magento\Framework\Component\ComponentRegistrar::register(
   \Magento\Framework\Component\ComponentRegistrar::MODULE,
    'Company_HelloWorld',
    __DIR__
);

This is my controller code :

 <?php
 namespace Company\HelloWorld\Controller\Hello;

 class World extends \Magento\Framework\App\Action\Action
 {
   public function __construct(
    \Magento\Framework\App\Action\Context $context)
  {
      return parent::__construct($context);
  }

  public function execute()
  {
    echo 'Hello World';
    exit;
  }
}

This is my layout code :

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

</body>
</page>

& Same for another module. I have already executed setup:upgrade command but still, I am getting 404 error when I try to access any one these modules.


texts:
I need help in adding cart with the additional custom option included on it

I've looked around stackoverflow and stackexchange for the answer but sadly it failed and they only add product simply, and without its custom option.

this however https://stackoverflow.com/questions/13698236/add-product-to-cart-with-custom-options sounds that possibly might work. but my problem is, i do not know the singleTon or Helper declared in the variable $quoteItem

any help will do, thanks! :)

Here's my script just in case:

$cart = Mage::getSingleton('checkout/cart');
$cart->init();

$addItem = array(
                 'product' => $product_id,
                 'qty' => $qty,
                 'options' => array("Color"  => $color)
                );

$_product   = Mage::getSingleton('catalog/product')->load($product_id);
$cart->addProduct($_product, new Varien_Object($addItem));
$cart->save();


texts: One Page Checkout freezes at step 1 and doesn't progress ahead

texts:
I am on Magento 1.9.3 and am facing issue one page checkout. It is not showing any of the steps to be used for checkout.

While checking console, I am getting following errors:

Uncaught TypeError: element.attachEvent is not a function

Uncaught TypeError: $(...).childElements is not a function

Uncaught TypeError: $(...).setAttribute is not a function

Uncaught TypeError: $(...).observe is not a function

Uncaught TypeError: element.dispatchEvent is not a function

Uncaught TypeError: this.toggleElements.toggleSingle is not a function

I have installed some of the extensions and it seems to be conflict issue but I don't know how to solve it.


texts:
I have search google, loads, but with no joy. I am thinking this doesn't exist on the internet, or (more likely) I just don't know the right search terms to find this, so I apologize in advance if this seems like a fairly basic question.

I am just looking for a list of XML Layout tags. I know a few already, and I also know that you (or 3rd parties) can create and define your own custom tags. All I need is a list of the basic layout tags that Magento uses, tags like these:

<default>
<catalog_category_layered>
<catalog_category_default>
<cms_page>
<cms_index_index>

Etc.

Can anyone provide me for a more complete list?

Many thanks!


texts: Unable to set template for default handle in local.xml

texts:
I am trying to set template for root block in default handle in local.xml file.But when I reload the page , nothing appears.After changing default to checkout_cart_index or any other request specific handle, page is rendered.how do i change template in default handle.

Here is my local.xml

<layout>
    <default>
        <block type="page/html" name="root" output="toHtml" template="page/2columns-right.phtml"   />
    </default>
</layout>


texts:
How to get custom local storage value in magento2?

I need to get the custom local storage value in php file .

How to do that

Thanks.


texts: magento2.3 controller won't handle post method

texts:
This is something I used to be able to do in 2.2, but in 2.3 I can't.

A simple controller to handle a POST method, and only receive and send application/json content type.

It works for GET/PUT methods, but if POST, it will render home page (html).

<?php

namespace <vendor>\<module>\Controller\Api;

class MyApi extends \Magento\Framework\App\Action\Action
{

    public function execute()
    {
        $result = $this->createResultJson();

        $result->setData([
            'message' => 'All Good.'
        ]);

        $result->setHttpResponseCode(200);

        return $result;
    }

    /**
     * @return \Magento\Framework\Controller\ResultInterface|\Magento\Framework\Controller\Result\Json
     */
    protected function createResultJson()
    {
        return $this->resultFactory->create(\Magento\Framework\Controller\ResultFactory::TYPE_JSON);
    }

}


texts: Trouble adding JS to before body end without modifying Magento theme

texts:
I need to add javascript to just before the closing body tag. Move all Javascript includes to before </body> has is a solution but it seems to me that overriding page/html/footer.phtml will cause my module to be incompatible many themes and will take away from the automation of a simple install/uninstall.

Any guidance would be greatly appreciated.


texts: I want to move all my products and their attributes to my new store

texts:
What is the best way to accomplish this? Please don't just say "magmi".

Additionally, my dataflow profiles do not work on my local/vagrant build. It just keeps timing out.

Is there a way to do it through a PHP script to export to CSV file or through MySQL.

Any help would be greatly appreciated. Thank you.


texts: How to update the "Total Items Quantity" count in the checkout sidebar when updating the mini cart from checkout page in Magento 2?

texts: I am using Magento version 2.3.5. Here, you can see that my minicart contains qty 3 but my checkout cart summary shows the wrong quantity as 2. This is what happens when I update the qty via minicart from the checkout page.


texts: Creating Bundle Product with REST API issue

texts:
This is my request to rest/V1/products:
{
   "product":{
      "sku":"test4",
      "name":"test json",
      "attribute_set_id":4,
      "price":10,
      "status":1,
      "visibility":4,
      "type_id":"bundle",
      "custom_attributes":[
         {
            "attribute_code":"price_view",
            "value":0
         },
         {
            "attribute_code":"custom_recipe",
            "value":1
         },
         {
            "attribute_code":"url_key",
            "value":"test4"
         }
      ],
      "extension_attributes":{
         "website_ids":[
            1
         ],
         "bundle_product_options":[
            {
               "title":"Container Type",
               "required":true,
               "type":"select",
               "position":0,
               "sku":"test4",
               "product_links":[
                  {
                     "sku":"sku-1",
                     "qty":1,
                     "position":0,
                     "is_default":false,
                     "price":0,
                     "price_type":0,
                     "can_change_quantity":0
                  },
                  {
                     "sku":"sku-2",
                     "qty":1,
                     "position":1,
                     "is_default":false,
                     "price":0,
                     "price_type":0,
                     "can_change_quantity":0
                  }
               ]
            }
         ],
         "stock_item":{
            "qty":1,
            "is_in_stock":true
         }
      }
   },
   "saveOptions":true
}

I have my product saved, but the price fields are missing for the options. See img:

I have another bundle product, where the price option is there. See img:

My question or issue is what should i change in my json request to have the price option ? Thank you


texts: Magento : 2 "Argument passed must be an instance of AuthorizerobinFactory"

texts:
I have two modules, as "AuthorizenetCim" and "AuthorizeRobin".

In "AuthorizenetCim" model file, I want to get collection of "AuthorizeRobin" module.

So my constructor for "AuthorizenetCim" (/model/Gateway.php) is:

public function __construct(
    \ParadoxLabs\TokenBase\Helper\Data $helper,
    \ParadoxLabs\TokenBase\Model\Gateway\Xml $xml,
    \ParadoxLabs\TokenBase\Model\Gateway\ResponseFactory $responseFactory,
    \Magento\Framework\HTTP\ZendClientFactory $httpClientFactory,
    \Magento\Framework\Module\Dir $moduleDir,
    \Magento\Framework\Registry $registry,
    /*Injecting other module's model factory */
    \Neo\Authorizerobin\Model\AuthorizerobinFactory $authorizeRobinFactory,
    /*Injection done*/
    array $data = []
) {
    $this->moduleDir = $moduleDir;
    $this->registry = $registry;
    $this->authorizeRobinFactory = $authorizeRobinFactory;

    parent::__construct(
        $helper,
        $xml,
        $responseFactory,
        $httpClientFactory,
        $data
    );
}

But I am getting following error for my constructor:

    Fatal error:  Uncaught TypeError: Argument 7 passed to ParadoxLabs\Authnetcim\Model\Gateway::__construct
() must be an instance of Neo\Authorizerobin\Model\AuthorizerobinFactory, array given, called in /var
/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 93 and
 defined in /var/www/html/magento2/app/code/ParadoxLabs/Authnetcim/Model/Gateway.php:182

Stack trace:
#0 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): ParadoxLabs
\Authnetcim\Model\Gateway-&gt;__construct(Object(ParadoxLabs\TokenBase\Helper\Data), Object(ParadoxLabs
\TokenBase\Model\Gateway\Xml), Object(ParadoxLabs\TokenBase\Model\Gateway\ResponseFactory), Object(Magento
\Framework\HTTP\ZendClientFactory), Object(Magento\Framework\Module\Dir), Object(Magento\Framework\Registry
), Array)

#1 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/Compiled.php(88): Magento\Framework
\ObjectManager\Factory\AbstractFactory-&gt;createObject('ParadoxLabs\\Aut...', Array)

#2 /var/ in /var/www/html/magento2/app/code/ParadoxLabs/Authnetcim/Model/Gateway.php on line
182

{"messages":{"error":[{"code":500,"message":"Server internal error. See details in report api\/308753050106"
}]}}


texts:
Our Magento database was wiped a few weeks back (long story!) and I used the MySql logs to restore it. That worked for the most part but there was one order I had to restore manually. I thought I had done that successfully but we don't seem to be able to create a Credit Memo for the Order. Specifically, the subtotal column is not being populated correctly - it's showing zero for both item rows. These totals are populate correctly on the order and invoice.

My question is what database table is the subtotal sourced from?


texts: Magento 2 how to make go back button on custom admin page?

texts: I have a custom module with an preview of orders with custom functionality. But on that preview page i want a 'Go Back' button to go back to the main overview of orders. Is there a way to add such a button on the preview.phtml file? I am fairly new to magento 2 so code examples would be awesome.


texts:
I want to add a new section in product edit form with form element(file uploader) for that I created the product_form.xml and added the required fields.to get the input data, I use a catalog_product_save_after observer.issue is data that is input to the form field is not coming in the request.

<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<fieldset name="attachment_products" sortOrder="30">
    <settings>
        <collapsible>true</collapsible>
        Document Attachments
    </settings>

    <field name="attachment_product" sortOrder="110" formElement="fileUploader">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="source" xsi:type="string">product</item>
            </item>
        </argument>
        <settings>
            <elementTmpl>ui/form/element/uploader/image</elementTmpl>
            <dataType>string</dataType>
            file Image
            <visible>true</visible>
            <notice translate="true">Maximum file size: 2 MB.  Allowed file types: JPEG, GIF, PNG, JPG, PDF</notice>
        </settings>
        <formElements>
            <fileUploader>
                <settings>
                    <uploaderConfig>
                        <param xsi:type="url" name="url" path="achmentsadmin/files/upload"/>
                    </uploaderConfig>
                    <allowedExtensions>jpg jpeg gif png pdf</allowedExtensions>
                    <maxFileSize>4194304</maxFileSize>
                </settings>
            </fileUploader>
        </formElements>
    </field></fieldset>
</modal>

but when I add the following code after the form tag and wraps the whole fieldset tag, I can get the data from the post request.

<modal name="advanced_inventory_modal"></modal>

but it adds inside the advance inventory section. I want to add as a separate tab.can you please let me know the issue here
Thanks


texts: Magento2 Uncaught ReferenceError: requirejs is not defined and require.js net::ERR_ABORTED 404 (Not Found)

texts:
when the mode is production then it is generating require.min.js
when the mode is development it is generating require.js
The website is now production mode but it is fetching require.js(but file is present require.min.js on pub)
How to fix this require.js net::ERR_ABORTED 404 (Not Found)?
Using Magento 2.3.5-p1 version
Note: we are getting this issue only on the home page and other pages working fine.


texts: Area Code not set when Model is used while using Upgrade Data Script

texts:
I have following code in UpgradeData.php

protected $test;

public function __construct(
        \Vendor\ModuleName\Model\Test $test
    )
    {
        $this->test = $test;
    }

public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
    {
....
        $this->test->install();
....
}

I have following code in Test.php

  Vendor\ModuleName\Model\Test.php

class Test
{
protected $testmodel;

public function __construct(
        \Vendor\ModuleName\Model\TestModel $testmodel
    )
    {
        $this->testmodel = $testmodel;
    }
}

public function install(){
....
$result = $this->testmodel->getCollection()->addFieldToFilter('testcol','abcd')->getFirstItem();
....
}

Now, when I run

  php bin/magento setup:upgrade

I get following error

When I remove TestModel class from constructor and its usage from install function, the upgrade script runs successfully.

I even tried to use solution mentioned in below link but none of them worked

'Area code not set' issue in custom CLI commands in Magento 2

I'm trying to fetch as well as insert data into database.

Edit #1 :

I even tried to use \Vendor\ModuleName\Model\ResourceModel\TestModel\CollectionFactory instead of \Vendor\ModuleName\Model\TestModel in my Test.php and when I run following command

$result = $this->testmodel->create();

It doesn't give any error on setup:upgrade command,
but as soon as I try to use addFieldToFilter it gives the same error


texts: Which is better Rest or PWA for app development

texts: There few screenshot image for mobile apps that i want to build as app.I want to know should i use PWA and make app using or just go with simple rest Api. I am novice in magento world.


texts: Search customers for specific store Magento 2 REST API

texts:
I am pulling customer data by email like below:
    $url = "https://www.magento2d.com/rest/storecode/V1/customers/search";
    $filters = "?searchCriteria[filterGroups][0][filters][0][field]=email&searchCriteria[filterGroups][0][filters][0][value]=" . urlencode($email) . "&searchCriteria[filterGroups][0][filters][0][condition_type]=equal";
    //$filters2 = "&searchCriteria[filterGroups][0][filters][0][field]=created_in&searchCriteria[filterGroups][0][filters][0][value]=Store%20View&searchCriteria[filterGroups][0][filters][0][condition_type]=equal";
    $response = $this->curlIt("GET", $url . $filters);
    echo $response["total_count"];

This, however, seems to pull customers for both stores. I tried by setting the store code etc in the URL however the same happens and get 2 results for the user in both stores. I have also tried by adding another search criteria inf $filters2 however that seemed to be an OR statement.
The store code seems correct as no error is thrown unlike when I get the store code wrong. Using "default" similarly pulls both users. How do I just get the customers from the 1 store?


texts:
I have created a configurable product with multiple options. When clicking on swatches only the first product swatch image was getting displayed but when we click on the other swatches then also the first product swatch only getting displayed.

Can any one help me on this problem? Any references or suggestions are highly appreciated.

Thanks.


texts: Display all product images instead of carousel in product detail - Magento 2

texts: How can i display all product images in product detail page? I need to display all products images at the same time (no carousel) and mantain magnifier zoom functionalities qnd Swatch image change options


texts: How do I show product details on product page (with modern template/skin)

texts:
When I set the template/skin to modern, the product details disappear.

With default template, I can see the product details. Screen shot below

With Modern template, the product details disappear (Screen shot below)


texts: Does magento clean cl tables on it's own

texts:
In the magento setup we are working on we've noticed some of the _cl tables are insanely huge, one being catalogsearch_fulltext_cl is 0.86GB in size having 30,001,369 records in it

We know that the _cl tables are used by the indexer to know which records need to be updated and they are populated via MySQL triggers so that way plain SQL scripts that stuff that is indexed via the indexer isn't ignored

Now it seems strange to us that the _cl tables aren't cleaned out, we have the indexer kicked off via a cron job every hour or so so I am wondering: Does Magento clean _cl tables on it's own or should we have to do it?


texts: Depend and if/else in transaction emails in Magento 1

texts:
we are investigating some checks in our transactional emails or newsletters and looking at http://merch.docs.magento.com/ce/user_guide/store-operations/email-transactional.html

where we find the code below.

My question: can we use this DEPEND or IF to check the existence or emptiness of a variable? Something like

{{if customer.getFirstname()}}
  {{var customer.firstname}}
{{else}
  {{var customer.name}}
{{/if}}

Example from link

Depend Condition

{{depend order.getIsNotVirtual()}}

{{/depend}}

{{depend salable}}

{{/depend}}

- If Condition

{{if order.getIsNotVirtual()}}

{{else}}

{{/if}}

(else is optional)


texts: How do I enable to "Create Shipping Label" for a custom shipping method?

texts:
I have been developing a Magento 2 plugin based upon the standard format being used here:

https://magenticians.com/create-magento-2-shipping-module-method/

It all seems to be working well, but now we want to be able to take the information from the selected booking option and actually use it to book a shipment for the order.

On doing some research it seems the standard way to do this in Magento 2 is to go through Sales > Orders > View Order > Ship... At that point you can either add a tracking number for a manual shipment or (if it applies like for example the Magento 2 UPS module) select "Create Shipping Label" from the Shipment options and then follow this process through.

I have gone through the UPS module and it looks as though I have found the actual booking logic somewhere between the Carrier.php _doShipmentRequest and _sendShipmentAcceptRequest however I can't seem to find the logic that actually enables this checkbox. Can anyone advise where I should be looking for this?

Thanks


texts: Magento 2.2 Add custom library file TCPDF

texts:
I need to tcpdf (http://tcpdf.org/) library in magento2.2. I have added this library in Magento2.1.9 in lib/internal/TCPDF folder.
In that, I have rename tcpdf.php class to TCPDF.php
and tcpdf class to TCPDF_TCPDF and it was working fine.

But when I have used same in Magento2.2, it is not working and giving me error:

Uncaught Error: Class 'TCPDF_TCPDF' not found

Does any one have any idea that why there is issue with Magento new version and any solution for it ?


texts: How to raise the next increment for customer_id.entity_id in database

texts:
To summarize, I'm attempting to merge two Magento installs. I have a series of customers that I'm trying to incorporate from one instance into another.

With that being said... I would like customer IDs to start at a higher number. To proceed with this, I created a test account and went into the Magento database to see the newest customer_id.entity_id to be 12910. I increased the customer ID by 2000 to make it 14910. I then went back into my store and proceeded to create another test account but after going back to Magento I see that it is 12911 and not 14911. I thought, "maybe I need to clear cache or reindex". Did that, created another account and it was 12912.

So I'm guessing Magento doesn't create customer IDs by adding 1 to the greatest entity_id. How would I successfully increase my increment in customer_entity.entity_id so that the next customer to create an account would see 14911? Another way to say it: How would I manually set what the next entity_id would be?


texts:
Using the php bin/magento and deploying static content does work without throwing errors.  This means that it's just having a problem getting Grunt going.

Processed Area: frontend, Locale: en_US, Theme: Vendor/broadway, File type: less.
-> css/styles-m.less
>> [Magento\Framework\Exception\FileSystemException]
>>   The "/Users/my_username/Sites/sample/dir/dth.dev/" file doesn't exist or not a file

I have read this post How to add new theme name to grunt CLI command to run grunt tool in Magento 2? and have a further question.  What does a typical Gruntfile.js look like so that I can configure Grunt properly?

I am also referring to the dev docs http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-topics/css_debug.html#grunt_prereq.  In my /dev/tools/grunt/configs I have already added my theme there.

broadway: {
    area: 'frontend',
    name: 'Vendor/broadway',
    locale: 'en_US',
    files: [
        'css/styles-m',
        'css/styles-1'
    ],
    dsl: 'less'
},

now this path /Users/my_username/Sites/sample/dir/dth.dev/ is actually where my root Magento is installed.  So it just isn't linking up properly somehow.

grunt exec:broadway
is the command I ran.

  Currently I am inheriting from Luma, but I can also inherit from Blank if needed.


texts:
I am facing one issue i am installed Magento 2.3.5-p2 but after successfull installation it will not display admin side.
so can you please help me.
Thanks In Advance...


texts: Display the product count in categories with static block in magento

texts:
I want to display product count of available in product category. In my website i added H1 title through static block, so i want to know the technique to show product count near to H1 title.

See blow my website image-

Please suggest me how can I product count like below added image -

Please let me know any code to show count


texts:
I'm doing a module with a new type of product using a helper/model for virtual product, and inserting a new attribute via SQL setup (in Module ...)

My helper model:

class ItepCompany_Incomm_Model_Product_Virtual
    extends Mage_Catalog_Model_Product_Type_Virtual
{
}

My pro mysql-install-0.1.0.php code is:

<?php
$this->startSetup();
$this->addAttribute(ItepCompany_Incomm_Model_Product_Virtual::ENTITY, 'terms_of_use', array(
    'group'         => 'General',
    'input'         => 'textarea',
    'type'          => 'text',
    'sort_order' => 4,
    'label'         => 'Terms of use',
    'backend'       => '',
    'visible'       => true,
    'required'      => true,
    'wysiwyg_enabled' => true,
    'visible_on_front' => true,
    'global'        => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
));

$this->endSetup();

Only when accessing the admin panel of the error:

  Fatal error: Undefined class constant 'ENTITY' ... \ sql \ add_product_attribute \ MySQL4-install-0.1.0.php on line 3

Did not generate anything in the log, which caused the problem?


texts:
I have terribly looking templates for customers' emails with new order and new invoice.
In order confirmation I don't even have list of bought items and prices. Is here any good template for it, I have found nothing.

Thank you very much.

BTW I use built in magento templates.


texts: How to add Customer Address Attribute to order API rest/V1/orders - Magento 2

texts:
I want to add Custom Address Attribute field in order api,
The field data is saved in sales_order_address table, but it dosen't show in order api
Anyone have idea how to add it to order api?


texts: how do i query magento for delivery address by order number?

texts:
I need to report order numbers and matching delivery addresses from Magento 1 orders data.

I have no idea where, or how to query for this report.

I have found answers to this question such as :
"enter:

$order->getBillingAddress()->getStreet(1);
$order->getBillingAddress()->getStreet(2);"

But I have no idea WHERE to enter that code!?!? or how to execute it....

Might be a silly question - but we all have to start somewhere ...


texts: Magento 2.1.1 - Improve security with Content Security Policy

texts:
I have a store running fine with the latest version of Magento (currently 2.1.1) and I'm trying to improve security through Content Security Policy on Apache 2.4.7 (Ubuntu 14.04). I had removed all "< script >" tag from the content pages and created separated files.js.

On Apache's security I have set:

  Header set Content-Security-Policy "default-src 'self'"

However, it's not working. It seems Magento itself added some "< script >" tags. Example from the very first source lines:

  < !doctype html >
  < html lang="pt-BR" >
  < head >
  < script >
  var require = {
  "baseUrl": "http://example.com/pub/static/frontend/Magento/luma/pt_BR"
  };
  < /script >

So it seems to me that in order to have CSP configured I'd have to enable "unsafe-inline" which is not real safe after all.

  Header set Content-Security-Policy "default-src 'self' script-src 'self' 'unsafe-inline' 'unsafe-eval'".

Does anyone know how to have Magento properly set with CSP?
Thank you!


texts: Magento 2.2.2 Add Product Attributes Under Custom Tab on Product Page

texts:
I have created a custom tab on product page (just like details, more information, reviews). I want to show product attributes like quantity, color, price etc. under this custom tab.

Any help will be appreciated.

Thanks


texts: Magento 2.3 Customer My Account Custom Tab

texts:
I am trying to create a custom tab in Customer my account area and adding a link in the left bar to it, have followed the code structure similar to this article:
https://www.mageplaza.com/devdocs/add-custom-tab-customer-account-magento-2.html
It shows the link in the left sidebar and when I check profiler, the code shows that my controller executed, but somehow it's not reaching my template phtml file which is already located at its defined directory under the given path in this XML. (bulkAdd is the route name defined in routes.xml)
Below are the codes:

customer_account.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="customer_account_navigation">
            <block class="Magento\Customer\Block\Account\Delimiter" name="customer.account.navigation.plus91.bulk.delimiter.top"
                   template="Magento_Customer::account/navigation-delimiter.phtml">
            </block>
            <block class="Magento\Framework\View\Element\Html\Link\Current"
                   name="customer.account.navigation.bulk.index.index">
                <arguments>
                    <argument name="path" xsi:type="string">bulkAdd/customer</argument>
                    <argument name="label" xsi:type="string" translate="true">Bulk Order</argument>
                </arguments>
            </block>
            <!--<block class="Magento\Framework\View\Element\Template" name="bulk-link"
            template="Plus91_Bulk::account/navigation.phtml" before="-"/> -->
        </referenceBlock>
    </body>
</page>

bulkAdd_customer_index.xml

<?xml version="1.0" ?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <head>
          <css src="css/bulkadd.css" />
          <script src="js/bulkadd.js"/>
     </head>
     <!--<update handle="customer_account"/> -->
    <body>
        <referenceBlock name="page.main.title">
        <action method="setPageTitle">
            <argument translate="true" name="title" xsi:type="string">Bulk Inquiry</argument>
        </action>
        </referenceBlock>
        <referenceContainer name="content">
            <block class="Magento\Framework\View\Element\Template" name="bulkAdd_bulkorder_index" template="Plus91_Bulk::bulkorder/index.phtml" />
        </referenceContainer>
    </body>
</page>

Controller/Customer/Index.php

<?php
namespace Plus91\Bulk\Controller\Customer;
class Index extends \Magento\Framework\App\Action\Action {
 public function execute() {

     $this->_view->loadLayout();
      $this->_view->renderLayout();
 }

}
?>

And the phtml file just contains simple html without any php code.

There is no error in the error log file, profiler shows the controller is being executed and shows the output if I put something there.
Already ran setup:upgrade and cleared cache many times, nothing worked for me.
Any quick help would be appreciated.


texts: Magento 2 Set order attribute via order create api

texts:
I've created a couple of order attributes using the method described here (https://www.yereone.com/blog/magento-2-how-to-add-new-order-attribute/) in order to save some data that is passed into Magento 2 via our legacy application.

Is it possible to pass these values over when creating an order via the API? or is there a better way to achieve the same result? I'm using Magento 2.3 if that has any impact.


texts: i move one domain to another domain getting double slash error

texts:
domain url
i move magento website http://knathangee.com/doctor to http://jomedhealthcare.com//doctor/ getting "// 404 error" what is the issue sir.

I done this perfectly

Sql all link change perfectly

100% correct file uploading


texts: My website has only one store,some times when hitting URL its shows SID with URL, I want to remove session Id from URL.I know  there is admin setting to display in frontend. My store has some API based on front end controller and  when I am setting show SID on frontend to NO ,my mobile APIs are not working properly because they are using session Id , is there a way where we can use SID but hide from URLs?


texts: How to exactly know what event will be triggered when and what data can be captured in observer?

texts: I am quite unsure of how to know which event will occur when. I cannot understand what arguments I should capture in observer unless I find exactly what I want in internet.


texts: How to create "nested component"? If i select item from dropdown will appear other component

texts:
Sorry for my bad english, maybe like this:
===============================
[add1]
  option name : delivery home
  [add2]
     shipping method : flatprice
     shiping method : shd

  option name : pickup store
  [add]
     shipping method : pickup
===============================

if i click add1, will appear 'option name' dropdown, and if i select item on 'option name' dropdown will appear button add2 to show 'shipping method' dropdown.
sorry again for my bad english


texts: Show Deal only if its starting from todays date

texts:
I am working on a daily deal module. The module lists all the deals that are active and have start and end date.

For ex:

Deal One:
Start Date : 31 JULY
End Date : 5 AUG

Deal Two:
Start Date : 3 AUG
End Date : 5 AUG

Here you can see that Deal One has started yesterday, while Deal Two will start on 3 AUG

The date format displayed in array is like below for a deal

[start_date] => 2014-03-06 00:00:00
[end_date] => 2014-05-19 00:00:00

How can I show a deal that will start only from today's date and remain active till its end date, i.e. if a deal has future start date, it won't appear in deal list and will be only shown when its start date matches with today's or current date ?

Multiple deals will be shown on deal listing page.

Will it conflict if I change my system date and time ?

Please Help.

Thanks

Jordan


texts: How to speed up the magento 2.2.5 website in production mode

texts:
How to speed up the Magento 2.2.5 website in production mode

I have tried all default options but still its very slow

website url : [https://www.thedottedi.in/]

please help me out on this

Thanks in advance .


texts: Magento 2 adminhtml directory missing from app/design/

texts:
I have a Magento ver. 2.1.8 install and realised that there is no app/design/adminhtml directory.

I realised that after trying to setup:static-content:deploy as I got this error:

Compilation from source:
adminhtml/Magento/backend/en_US/css/styles.less
Unable to get content for 'adminhtml/Magento/backend/en_US/Magento_Checkout/css/source/module/_checkout.less'

So tried to find the directory but it is not there... Should I be worried? Download and upload any files there?


texts: Can somebody help Solve the below problem

texts:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '154381' for key 'PRIMARY'
Trace:
#0 /home4/cctvmal1/public_html/lib/Zend/Db/Statement.php(283): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home4/cctvmal1/public_html/lib/Zend/Db/Adapter/Abstract.php(457): Zend_Db_Statement->execute(Array)
#2 /home4/cctvmal1/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(230): Zend_Db_Adapter_Abstract->query('INSERT INTO `lo...', Array)
#3 /home4/cctvmal1/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(281): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `lo...', Array)
#4 /home4/cctvmal1/public_html/lib/Zend/Db/Adapter/Abstract.php(535): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `lo...', Array)
#5 /home4/cctvmal1/public_html/app/code/core/Mage/Log/Model/Mysql4/Visitor.php(125): Zend_Db_Adapter_Abstract->insert('log_visitor_inf...', Array)
#6 /home4/cctvmal1/public_html/app/code/core/Mage/Log/Model/Mysql4/Visitor.php(79): Mage_Log_Model_Mysql4_Visitor->_saveVisitorInfo(Object(Mage_Log_Model_Visitor))
#7 /home4/cctvmal1/public_html/app/code/core/Mage/Core/Model/Mysql4/Abstract.php(373): Mage_Log_Model_Mysql4_Visitor->_afterSave(Object(Mage_Log_Model_Visitor))
#8 /home4/cctvmal1/public_html/app/code/core/Mage/Core/Model/Abstract.php(251): Mage_Core_Model_Mysql4_Abstract->save(Object(Mage_Log_Model_Visitor))
#9 /home4/cctvmal1/public_html/app/code/core/Mage/Log/Model/Visitor.php(159): Mage_Core_Model_Abstract->save()
#10 /home4/cctvmal1/public_html/app/code/core/Mage/Core/Model/App.php(1239): Mage_Log_Model_Visitor->initByRequest(Object(Varien_Event_Observer))
#11 /home4/cctvmal1/public_html/app/Mage.php(303): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#12 /home4/cctvmal1/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(454): Mage::dispatchEvent('controller_acti...', Array)
#13 /home4/cctvmal1/public_html/app/code/core/Mage/Core/Controller/Front/Action.php(45): Mage_Core_Controller_Varien_Action->preDispatch()
#14 /home4/cctvmal1/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(365): Mage_Core_Controller_Front_Action->preDispatch()
#15 /home4/cctvmal1/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(248): Mage_Core_Controller_Varien_Action->dispatch('index')
#16 /home4/cctvmal1/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(158): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#17 /home4/cctvmal1/public_html/app/Mage.php(459): Mage_Core_Controller_Varien_Front->dispatch()
#18 /home4/cctvmal1/public_html/index.php(65): Mage::run()
#19 {main}


texts: I wish to add the new div in PDP page after price section in mageno 2

texts:
I have added custom div in /var/www/html/pot/app/design/frontend/pot_customization/Magento_Catalog/templates/product/price/amount/default.phtml.

The div displays for all the products and works fine. But if a product have special price,the div displays two times near price .

Please provide me a solution to add my custom div after the price section.

default.phtml

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

// @codingStandardsIgnoreFile

?>

<?php /** @var \Magento\Framework\Pricing\Render\Amount $block */ ?>

<span class="price-container <?= /* @escapeNotVerified */
$block->getAdjustmentCssClasses() ?>"
    <?= $block->getSchema() ? ' itemprop="offers" itemscope itemtype="http://schema.org/Offer"' : '' ?>>
    Your Price

    <?php if ($block->getDisplayLabel()): ?>
        <?= /* @escapeNotVerified */
            $block->getDisplayLabel() ?>
    <?php endif; ?>
    <span <?php if ($block->getPriceId()): ?> id="<?= /* @escapeNotVerified */
    $block->getPriceId() ?>"<?php endif; ?>
        <?= ($block->getPriceDisplayLabel()) ? 'data-label="' . $block->getPriceDisplayLabel() . $block->getPriceDisplayInclExclTaxes() . '"' : '' ?>
            data-price-amount="<?= /* @escapeNotVerified */
            $block->getDisplayValue() ?>"
            data-price-type="<?= /* @escapeNotVerified */
            $block->getPriceType() ?>"
            class="price-wrapper <?= /* @escapeNotVerified */
            $block->getPriceWrapperCss() ?>"
    ><?= /* @escapeNotVerified */
        $block->formatCurrency($block->getDisplayValue(), (bool)$block->getIncludeContainer()) ?>
    <?php if ($block->hasAdjustmentsHtml()): ?>
        <?= $block->getAdjustmentsHtml() ?>
    <?php endif; ?>
    <?php if ($block->getSchema()): ?>
        <meta itemprop="price" content="<?= /* @escapeNotVerified */
        $block->getDisplayValue() ?>"/>
        <meta itemprop="priceCurrency" content="<?= /* @escapeNotVerified */
        $block->getDisplayCurrencyCode() ?>"/>
    <?php endif; ?>

<?php $helper = $this->helper('x\ProductReview\Helper\Data');
?>

    <a href="<?php echo $helper->getBaseUrlData()."why-shop-with-us" ?>" class="guarantee-link">100 % Price Guarantee

    Loyalty Points 4 Learn more about our <a href="<?php echo $helper->getBaseUrlData()."loyalty-points-program" ?>">loyalty points program


texts: Sagepay (Magenest) - 500 errors when 3d Secure is active

texts:
Hoping someone can help, since we've tried absolutely everything to reproduce and fix this issue, but we're unable to. I'd really love for someone UK based to weigh in here because we're at our wits end.
Our client has recently started reporting that some of their customers are unable to complete their order when paying by SagePay.
We checked out the error log and we discovered this error:
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function getData() on null in /var/www/vhosts/site.com/httpdocs/app/code/Magenest/SagePay/Controller/Direct/PostBack.php:65

{closure}
(Object(Magento\\Framework\\App\\Request\\Http))\n#4 /var...\n', referer: https://secure7.arcot.com/acspage/cap?RID=1111&VAA=A

The line in question:
$payment = $order->getPayment();
Looking into the access log, it looks like all these customers reach this 3D secure page and then get a 500 error. Refreshing the page returns them to checkout. The only thing all these customers have in common is the fact that they're using Chrome (on both desktop and android). Literally there's nothing else tying them together.
The order does get created, but stays at pending (instead of complete). In their SagePay terminal, the transaction is registered, but cancelled because it's awaiting completion and thus expires after 15 minutes.
We've turned off 3D secure checking from the SagePay admin and that seems to have solved the issue, but that's not ideal because the client has to pay to process unsecure transactions.
I would also like to stress this isn't all 3D secure transactions - we've tried this with 3d secure both using Monzo and Barclaycard and they were successful.
So here are the specifics:

Magento 2.3.2 store
MageNest SagePay extension
PHP 7.2

So it's a mighty weird one for sure. I appreciate it's a very specific issue, but if anyone has any experience with getData() issues on the checkout (specifically if it's for 3d secure) then I would be most grateful.
But like I say, we cannot reproduce this no matter what. That's the most frustrating part.
We've contacted the plugin vendors, who are unable to help to a degree because we can't grant them SSH access.
Thanks


texts: My static blocks are not displaying correctly anymore

texts: My static blocks are not displaying within my widget correctly anymore.  They use to display nicely from top to bottom, but now are displaying horizontally instead of vertically.  Basically, I have a widget named "Main Top", and I was displaying 4 static blocks within that widget.  Now if I only display one block within that widget all is fine, but as soon as I add more than one, boom its horizontal placement again.  Any help on this would be much appreciated!


texts: getting all tags for a product in an arbitrary store view

texts:
I'm trying to search for all the tags assigned to a particular product, and using this code to do so:
    $model = Mage::getModel('tag/tag');
    $prod_collection = $model->getResourceCollection()
        ->addPopularity()
        ->addStatusFilter($model->getApprovedStatus())
        ->addProductFilter((int) $productId)
        ->setFlag('relation', true)
        ->addStoreFilter((int) $store['id'])
        ->setActiveFilter()
        ->load();

$store['id'] is 1, and $productId is 13065 (a product that I assigned a couple of tags directly using the backend).
The content of tag_relations if searching for product_id = 13065 is this:

As you can see the product has a couple tags assigned on store = 1, and another one assigned on store = 9.
But the above search returns an empty set. I checked the produced SQL and I see that what I'm getting is:
SELECT `main_table`.*, `summary_store`.* FROM `tag` AS `main_table`
 LEFT JOIN `tag_relation` AS `relation` ON main_table.tag_id = relation.tag_id
 LEFT JOIN `tag_summary` AS `summary_store` ON main_table.tag_id = summary_store.tag_id

 WHERE (main_table.status = 1)
    AND (`relation`.`product_id` = 13065)
    AND (summary_store.store_id IN (1))
    AND (relation.store_id IN (1))
    AND (relation.active = 1)

 GROUP BY `main_table`.`tag_id`, `main_table`.`tag_id`

And I see that it fails because the contents of tag_summary are:

where apparently every summary line is stored with store_id = 0, instead of saving one line per store.
How can I change my search so it doesn't join against tag_summary, and only against tag_relations? Does the content of my tag_summary look alright, or should I have a summary line per each store view?
Update:
It would seem that the problem is that the corresponding summary lines aren't being generated. I created my tags using the admin, in Catalog->Manage Tags, and assigned the tags to arbitrary products, but it only creates the summary lines for Store ID 0... :(


texts: How to display cart item count in custom header using JavaScript?

texts:
I've created a custom header that works fine. I replaced Magento's cart, and instead added a shopping basket icon in the header. Like so:

When pressed it redirects to the cart.
What I want to do is add the number if items in the users cart using JavaScript so that when a user pressed "add to cart" it also updates the number next to the bag showing how many items are in the basket.
I followed the suggestion here: Magento 2 Get Cart Quote Total in minicart.phtml
I placed  in the HTML but got an error getCartParam is undefined
Any ideas where I'm going wrong?