texts: Stellar and Owl Carousel randomly show up as not a function

texts:
I'm using the Porto Theme (of course - Porto is making trouble), and I randomly get console errors for both $(...).owlCarousel is not a function and $(...).stellar is not a function.
under design/porto_child I created requirejs-config.js which looks like this
var config = {
    paths: {
        'js/jquery.stellar.min':'js/jquery.stellar.min',
        'owl.carousel/owl.carousel.min': 'Smartwave_Porto/js/owl.carousel.min'
    },
    shim: {
        'js/jquery.stellar.min': {
            deps: ['jquery']
        },
        'owl.carousel/owl.carousel.min': {
            deps: ['jquery']
        },
    },
    mixins: {
        'mage/collapsible': {
            'js/collapsible-mixin': true
        }
    }
};

This didn't change anything.
This is what's calling the Stellar function
require([
    'jquery',
    'js/jquery.stellar.min'
], function ($) {
    $(document).ready(function(){
        $(window).stellar({
            responsive: true,
            scrollProperty: 'scroll',
            parallaxElements: false,
            horizontalScrolling: false,
            horizontalOffset: 0,
            verticalOffset: 0
        });
    });
});

Any idea what else I can do?
Thank you


texts: Magento 2 multistore website codes caching

texts:
Changed the website/store codes on a multistore installation to something more meaningful/relevant.
These new codes are saved in the database OK.

When i try to access websites/stores other than the default, i get a NoSuchEntityException error on the page thrown in the file:
    vendor/magento/module-store/Model/WebsiteRepository.php:80
The error info shows that it is still trying to use the old codes.

I have ran all the usual CLI commands:
setup:upgrade, setup:di:compile, cache:flush, cache:clean, indexer:reindex
Ive deleted all the relevant folders in /var and /pub/static before running those commands
Restarted the server and run all the above again
Searched the server files and the database for references to the old codes

But the error still persists. Does anyone know what could be causing this? Where is it sourcing the old codes from? What do I need to do to get the new codes in the database to be used/recognised?


texts: Grouped Products: Filter based on simple products

texts:
The problem

I'm currently building a Magento 2 store which sells items in boxes and as singles (eg. a single item or a sealed box of 12). The product page has a grid which lets you add any number of boxes and any number of singles to your basket in one go.

I've currently got this set up with grouped/simple products - one product called FOO-GROUP which is placed into the relevant categories (but not given any attributes such as colour, size, etc) then individual products called FOO-L-ONE, FOO-L-BOX, FOO-M-ONE and so on which have the attributes set on them.

Grouped products are set to show up in Catalog and Search, while the simple products are set not to show up individually.

The problem is that on the category listing page, there are no filters for colour, size, price etc. because the grouped products don't have those attributes - the simple products do, but those simple products are set not to show in the catalog listing.

The planned solution

I'm trying to find where the layered navigation gets its products from, then iterate over those products to check if each one is a grouped product. If so, I'd like to inject its child products instead of the group.

I've found a Magento.SE post which seems to be doing the same thing for Magento 1, but can't find anything on how to do this in Magento 2. I've looked through the Layered Navigation module, the Catalog module and the Grouped Product module but not been able to figure out what I need to change where.

Help

There are two ways this could go (that I can think of).

I might be trying to do this the correct way and not being able to find the right bit of code - if so, any suggestions on where I should be looking are much appreciated.

It's also entirely possible that I'm doing something fundamentally wrong, and perhaps shouldn't be using grouped products or shouldn't be doing something else that I am. If that's the case, please suggest how you'd set up the same situation and I can try that.


texts: Magento Admin thrown error after applying SUPEE 7405 security patch

texts:
When i open admin url, I see this error

  Fatal error: Call to a member function getUsername() on a non-object
  in /app/design/adminhtml/default/default/template/page/header.phtml on
  line 33 Any ideas?


texts:
Anyone have any suggestions on how to edit the below to exclude 1 particular category? (ID - 1511)

Any help would be appreciated :) thanks

<?php
class Sinch_Tonerconfigurator_Helper_Category extends Mage_Catalog_Helper_Category
{

    public function canShow($category)
     {
         if (is_int($category)) {
             $category = Mage::getModel('catalog/category')->load($category);
         }

         if (!$category->getId()) {
             return false;
         }

         if (!$category->getIsActive()) {
             return false;
         }
         if (!$category->isInRootCategoryList()) {
 //            return false;
         }

         return true;
     }

}
?>

    public function loadDropdownAction(){
        $this->getResponse()->setHeader('Content-type', 'application/json');
        $catid = $this->getRequest()->getParam('catid', null);
        $lastlevel = $this->getRequest()->getParam('lastlevel', 0);
        if(!$catid){
            $this->getResponse()->setBody('{ "success": false, "subcategories": [] }');
            return;
        }
        $category = Mage::getModel('catalog/category')->load($catid);
        if(!$category->hasChildren()){
            $this->getResponse()->setBody('{ "success": false, "subcategories": [] }');
            return;
        }
        $children = (Mage::getSingleton('tonerconfigurator/category')->isRootCategory($catid) ? Mage::getSingleton('tonerconfigurator/category')->getRootSubcatColl() : $category->getChildrenCategories());
        $response = array();
        $response['success'] = false;
        $response['subcategories'] = array();
        foreach($children as $child){
            $childArray = array();
            $childArray['name'] = $child->getName();
            if($lastlevel){
                $childArray['URL'] = $child->getUrl();
            }else {
                $childArray['id'] = $child->getId();
            }
            $response['subcategories'][] = $childArray;
        }
        if(!empty($response['subcategories'])){
            $response['success'] = true;
        }
        $this->getResponse()->setBody(json_encode($response));
        return;
    }
}


texts:
I want to fetch price of selected Bundles Items on checkout_cart_product_add_after event. Is it possible to fetch ? How ?

For better idea of my query I am posting an image here.Please have a look.

Is there any way to change the price of sub bundle items on addtocart ?? In this case I want to change price of Camera,Case and Memory prices


texts: Should Providers be Multi-Sources or Configurations in configurable product?

texts:
I have a store where

showing catalog from my vendors I don't have actual inventory
end-customer is not aware of my vendors (so it is not multi-vendor store)
currently, I am using the configurable product for all product info and simple-product(configration) that is linked to the configurable and has (cost, qty, price, and vendorID)

configrations are auto-selected based on cost so the customer does not select which product from which vendor because he is not aware of my vendors

Today I found this (multi-source-inventory-in-magento-2.3)
https://www.mageplaza.com/kb/multi-source-inventory-in-magento-2.html

and now I am confused did I did the wrong implementation?
I read about it but I am still confused

how MSI handles different costs from different sources?
how to handle different selling prices?


texts: Create afterRevokeCustomerAccessToken plugin magento 2

texts:
di.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd">
    <type name="Magento\Integration\Model\CustomerTokenService">
        <plugin name="segment_logout_plugin" type="New\Hm\Plugin\RevokeCustomerToken" />
    </type>
</config>

Plugin
<?php

namespace New\Hm\Plugin;

class RevokeCustomerToken
{

    protected $logger;
    public function __construct(\Psr\Log\LoggerInterface $logger)
    {
        $this->logger = $logger;
    }
    public function afterRevokeCustomerAccessToken(\Magento\Integration\Model\CustomerTokenService $subject, $result,$customerId) {

        $writer = new \Zend\Log\Writer\Stream(BP . '/var/log/RevokeCustomerToken.log');
        $logger = new \Zend\Log\Logger();
        $logger->addWriter($writer);
        $logger->info($customerId);
    }

}

I am trying to add a afterplugin on revokeCustomerAccessToken() from app/code/Magento/Integration/Api/CustomerTokenServiceInterface.php
But it does not seems to be working.
Any correction needed ?


texts: Use of non-amd jquery plugins with requirejs without modifying them?

texts:
I recently searched a lot on use of non-amd jquery code with requirejs but couldn't find a proper way to do it.

To be more specific, I want to use pana-accordion.js found at below mentioned url.

https://www.jqueryscript.net/accordion/Horizontal-Accordion-Slider-Plugin-with-jQuery-Pana-Accordion.html

But the problem is that it is not amd aware and nor it exports anything out of it.So far I have created my custom.phtml and called it on homepage through admin area.Below is my custom.phtml

And Here is configuration for pana-accordion.js javascript module in requirejs-config.js

var config = {
    'map': {
        '*': {
            'panaaccordion': 'js/pana-accordion'
        }
    },
    'shim': {
        'panaaccordion': {
            deps: ['jquery'],
            exports: 'accordion'
        }
    }
}

Below is some code lines for pana-acordion plugin

var accordion= {
    init: function(options){
        var that=this;
        options = $.extend(true,{
            expandWidth: 500,
            itemWidth: 100,
            extpand: 0,
            autoPlay: true,
            delay: 3000,
            animateTime: 400,
            borderWidth: 1,
            autoPlay: true,
            deviator: 30,
            bounce:"-50px"
        },options);
    .....

As you can see, it doesn't wrap code inside define() nor it exports or return anything.Rather accordion object is declared globally.

So far I have following questions (those marked as bold sorry for bad formatting but I am trying to improve it).

If I wrap the code inside define like below,

  define(['jquery'],function($){
            //pana-accordion plugin code
            });

Still, there is an error in console that says  Uncaught TypeError: Cannot read property 'init' of undefined even though I created exports entry in shim configuration.
But error resolves when I finally write return statement after accordion object.

return accordion;

What is purpose of using shim if we have to manually write return statement from plugin for object for example?

Second, Do I have to write whole path for shim configuration? If I map alias panaaccordion for file located at 'js/pana-accordion', still I have to use 'js/pana-accordion' for shim configuration otherwise there are some loading order issues.

Third- Can I use such non-amd plugins with requirejs without modifying a single line from them?? If yes, How?


texts:
After updating my extensions and also the symlink link in the di.xml file
My site has lost its appearance, the slides, products, buttons and all the links do not work.
Frontend: http://prntscr.com/wfvfl9
Backend: http://prntscr.com/wfvenp
http://prntscr.com/wfwg1b


texts: how to use tinymce to admin custom module in magento2?

texts:
I have custom module with custom-template.phtml.

i custom-template.phtml i want use tinymce for tags texarea.

i tried code.

 <input type="button" class="action-default scalable" onClick="toggleEditor()" value="Show/Hide editor" />
    <input type='button' onClick='MediabrowserUtility.openDialog(&#39<?php echo $block->getImageUrl()?>target_element_id/custom-html-data&#39)' class='scalable action-default action-add-image plugin' value='Insert Image...' />
    <textarea  rows="15" id="custom-html-data"></textarea>
    <script type="text/javascript">
    function toggleEditor() {
      if (tinyMCE.getInstanceById('custom-html-data') == null) {
        tinyMCE.init({
            mode : "exact",
            elements: "custom-html-data",
            theme_advanced_toolbar_align : "left",
            theme_advanced_path_location : "bottom",
            extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
            theme_advanced_resize_horizontal : 'true',
            theme_advanced_resizing : 'true',
            apply_source_formatting : 'true',
            convert_urls : 'true',
            force_br_newlines : 'true',
            width : '100%',
            min_width: 0,
            doctype : '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'
               });
      }else{
        tinymce.getInstanceById('custom-html-data').remove();
      }
   }

when i insert image it return to textare

<img src="{{media url="wysiwyg/xam-o1.png"}}" alt="" />

but when i click show/hide editor url image error.

how to use true tinymce editor in magento2 and how to fix it?
Many thanks


texts: Complex UI component, using dynamic rows in admin, for a product attribute, is not saving when removing all rows

texts:
I created a complex product attribute entry in product admin, which uses dynamic rows.

Same idea as this core one:

UI works fine, but if you remove all rows, and save, the attribute does not update, and reloads back to the rows prior to removed. So, basically, you cannot clear out the rows/entries.

However, this example core one works 100%.

My entry is adjusted using UI Components modifiers, exactly like this core attribute is done.

https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/AdvancedPricing.php#L433

(they used a derived UI component called Magento_Catalog/js/components/dynamic-rows-tier-price in place of Magento_Catalog/js/components/dynamic-rows, but they are essentially the same. Tested as well by making my component use the same, which did not solve the issue (just in case)

So, essentially, we have ability to build these complex input components, but they cannot be cleared.


texts: Discount tax is applied to the total quote

texts:
A client of us had a very annoying bug which we can't figure out. It involves discount and tax in the quote.

It happens when an item in the cart get discount applied.
The discount will be applied as it should.
But the tax of the discount is also given as a extra discount.

Example:

When ordering 2 items of 29,95 euro a discount of 4,95 euro is applied.
This results in a total of 25 euro * 2 items.  Including tax. this is correct.

When the cart is updated in any way for some reason the item price is now 24.14 euro. while the price and discount stay the same.

this is a difference of 0,86 euro. Which happens as follows:
4,95 euro discount is considered including tax (121%)
0,86 is the amount of tax on the discount
0,86 euro  = (4,95 / 1.21) * 0.21

This tax should not be removed from the total price. But for some reason is removed. The total when proceeding is 48,28 euro including tax

The settings are to apply tax after discount.

What we have tried

Both coupons and pricerules apply
Customer group does not matter
Both the frontend and the backend have this problem.
The problem appeared when we updated from magento 1.9.0.1 to 1.9.2.0
All prices are including tax
All settings are checked at all levels
Turn off all modules

Can anybody help me?


texts: Does any body knows how to change the Payment information name of Custom Payment Module.


texts: Where Does Magento use Composer's `type` Attribute -- Is this Required?

texts:
In my experiments with Magento 2 composer packages, I've been able to get a package up and running without using composer's type attribute.

However, this class file

#File: vendor/magento/framework/Composer/ComposerInformation.php
const THEME_PACKAGE_TYPE = 'magento2-theme';

/**
 * Magento2 module type
 */
const MODULE_PACKAGE_TYPE = 'magento2-module';

/**
 * Magento2 language type
 */
const LANGUAGE_PACKAGE_TYPE = 'magento2-language';

/**
 * Magento2 metapackage type
 */
const METAPACKAGE_PACKAGE_TYPE = 'metapackage';

/**
 * Magento2 library type
 */
const LIBRARY_PACKAGE_TYPE = 'magento2-library';

/**
 * Magento2 component type
 */
const COMPONENT_PACKAGE_TYPE = 'magento2-component';

hints at the fact there's times where Magento 2 is parsing composer.json files, and looking at the type attribute.

Does anyone know where/why Magento 2 does this, with an eye towards figuring out if type is a required attribute or not for general (i.e. non Marketplace) distribution of extensions?


texts: Magento 2: Can't get item ids on sales_order_save_after event

texts:
I need something to do using order item ids when order is created.

I tried sales_order_place_after and sales_order_save_after events, but unfortunately. Items from $observer->getEvent()->getOrder()->getAllVisibleItems() do not have Ids.

Which way should I go to achieve my needs? Also I need to avoid use of checkout controller events, because my code should work on the admin scope too.


texts: Order Summary is not Showing on pull Down

texts: Order Summary is not showing any information on pulldown. All of a sudden it stopped working. Any ideas why?


texts: Counting amount of products in category not working

texts:
Currently I am making a custom RWD theme, with the Madison Island sample data. The category 'Women' contains 51 products in total. These products are divided in several different subcategories, for example 'Tops & Blouses'.

I looked around the internet for a piece of code that will help me display the amount of product within a category, and all answers came down to this code:

$categoryId = '4';
$products_count = Mage::getModel('catalog/category')->load($categoryId)->getProductCount();
echo $products_count;

Where 4 is the category ID of the category 'Women'. The problem is, is that  this snippet echoes '3'. But I don't have 3 product, I have 51. Why is this?


texts:
I have a problem regarding the sorting with the "name" attribute. When i sort by Name the table is changing but it's not sorted by name.

In app/core/Mage/Catalog/Block/Product/List/Toolbar.php i made an output in the set collection method.

/**
 * Set collection to pager
 *
 * @param Varien_Data_Collection $collection
 * @return Mage_Catalog_Block_Product_List_Toolbar
 */
public function setCollection($collection)
{
    $this->_collection = $collection;

    $this->_collection->setCurPage($this->getCurrentPage());

    // we need to set pagination only if passed value integer and more that 0
    $limit = (int)$this->getLimit();
    if ($limit) {
        $this->_collection->setPageSize($limit);
    }
    if ($this->getCurrentOrder()) {
        $this->_collection->setOrder($this->getCurrentOrder(), $this->getCurrentDirection());
    }
    return $this;
}

The setOrder method is called with "name" as first parameter i've checked that. But when i output the query after that.

echo $this->_collection->getSelect();

i get the following output:

SELECT `e`.*, `cat_index`.`position` AS `cat_index_position`, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price` FROM `catalog_product_entity` AS `e` INNER JOIN `catalog_category_product_index` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=1 AND cat_index.visibility IN(2, 4) AND cat_index.category_id = '17' INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.website_id = '1' AND price_index.customer_group_id = 0

i can't see a sort by the name field.

/xxxx/xxx.html?dir=asc&order=name

That URL is called. But the output is not sorted by name it's in a random order. The products are all "simple" products and the attribute is a "global" attribute because we have some shops that share the name.

I've read a lot but can't find a solution. Perhaps someone an help me to find the correct file and line or know that problem.

Edit:

Some more informations:

$this->_productCollection->addAttributeToSort("name");
echo $this->_productCollection->getSelect();

If i do that some really wired is extended to my query:

AND stock_qty.website_id=1 ORDER BY `salable` DESC, `qty` DESC

So why is "salable" added if i try to sort by name?


texts: Magento 2 Change Default OrderBy Parameter for Search Results

texts:
How can I change the default order by value and direction for search results listing page?

The default is set to Relevance but I want to change this permanently to something else i.e. Price for example.


texts: Unable to process binding order summary at cart page Magneto 2.1.7

texts:
Having below error at my cart and checkout page and shipping cost, in summary, is continuous loading.

  knockout.js:3012 Uncaught ReferenceError: Unable to process binding
  "foreach: function(){return $parent.getRatesForGroup($data) }"
  Message: Unable to process binding "css: function(){return {'field
  choice item':available,'message error':!available} }" Message:
  available is not defined
      at css (eval at createBindingsStringEvaluator (knockout.js:2624), :3:84)
      at update (knockout.js:3803)
      at ko.dependentObservable.disposeWhenNodeIsRemoved (knockout.js:3004)
      at evaluateImmediate (knockout.js:1737)
      at Object.ko.computed.ko.dependentObservable (knockout.js:1946)
      at knockout.js:3002
      at Object.arrayForEach (knockout.js:151)
      at applyBindingsToNodeInternal (knockout.js:2974)
      at applyBindingsToNodeAndDescendantsInternal (knockout.js:2854)
      at Object.ko.applyBindings (knockout.js:3065)


texts: Contact us form content change in magento 1.9.2.4

texts:
I am new to Magento and I am trying to add some content in contact-us form.

I changed some text in the following file and cleared the cache, but its don't reflecting.

Please help me.

app/design/frontend/theme/default/template/contacts/form.phtml


texts: How to write additional CSS in Magento 2?

texts: Where can I add additional CSS in Magento 2 which will not be removed by upgrades?


texts:
As a UK Retailer who ships to customers worldwide we need some help figuring out how to setup VAT in Magento. We need the following things done:

1 > All prices on the site to be inclusive of VAT

2 > Anyone buying our products from outside the UK & EU to have 20% removed off the shopping cart total as a VAT deduction.

How do we set this up? it must be standard for every UK retailer to have the same settings so why is there no clear cut information or process in doing this?


texts:
Recently, our client got an email from PayPal regarding their service upgrade. I know about the SSL upgrade which took place around December 2014 due to poodle attack

I am unaware about this new upgrade, also i don't know if it will affect the payments on Magento website.

I read the documentation for System Upgrade provided by them. It suggests changes in the API and other stuffs. But i am not sure if these changes will affect Magento - PayPal integration.

If yes, will there be any upgrade patch released? I am sure, till now there is no upgrade patch released.

The mail my client received is as below:

  PayPal service upgrades for merchants: You may need to take action.

  We're contacting our merchants with some important information in
  response to an industry-wide security upgrade, not unique to PayPal.
  This change involves upgrading Secure Sockets Layer (SSL) certificates
  over the course of 2015 and 2016.

  Since these changes are technical in nature, we advise you to consult
  your partner, website provider, or the people responsible for your
  PayPal integration. They will be able to identify if any changes will
  be needed. If you don't have a technology team, you should change
  this, and we can work with them to ensure that you continue to process
  payments through your current integration with PayPal. Full technical
  details can be found in our Merchant Security System Upgrade Guide. In
  addition, our 2015-2016 SSL Certificate Change microsite contains a
  schedule of our service upgrade plan.

  If you have any questions, please contact our Merchant Technical
  Support team for technical support.

  Thanks for your patience as we continue to improve our services.

It would be of great help, if someone can provide an insight on it.

EIDT

  Our client got another email regarding it. The mail content is as
  below:

  As we have previously communicated to you, PayPal is upgrading the
  certificate for www.paypal.com to SHA-256. This endpoint is also used
  by merchants using the Instant Payment Notification (IPN) product.

  This upgrade is scheduled for 30/9/2015; however, we may need to
  change this date on short notice to you to align to the industry
  security standard.

  You’re receiving this notification because you’ve been identified as a
  merchant who has used IPN endpoints within the past year. If you have
  not made the necessary changes, we urge you to do so right away to
  avoid a disruption of your service!

  Because these changes are technical in nature, we advise that you
  consult with your individuals responsible for your PayPal integration.
  They will be able to identify what, if any, changes are needed. Please
  share this email and the hyperlinks below with your technical contact
  for evaluation.

  Testing in the Sandbox is one of the best ways to make sure your
  integrations work. Sandbox endpoints have been upgraded to accept
  secure connections by the SHA-256 Certificates.

  Full technical details can be found in our Merchant Security System
  Upgrade Guide. In addition, our 2015-2016 SSL Certificate Change
  microsite contains a schedule of our service upgrade plan.

  Thanks for your patience as we continue to improve our services.

I am really confused if this in any way effect the integration of PayPal Standard or Express checkout with Magento. I am not a server expert to figure it out.

Can anyone please provide an insight on it.


texts: How do I disable guest checkout for recurring product in Magento. Its very strange that magento allows Guest Checkout for recurring products and it doesn't work.


texts: Magento Transactional E-mails sent, except NEW ORDER e-mail

texts:
I have read the following solutions, but all of these seems not to work for my case:

New order email confirmation not being sent

Magento 1.9.2 not sending new order confirmation emails

New Order Email Notification not working

My problem is, all of my transactional e-mails are being sent out, EXCEPT, the NEW ORDER e-mail.

My cron is also working properly.

I have disabled all 3rd party modules as well, but the "new order" email is not being sent. All the rest of the e-mails like invoice, shipping, order updates, are being sent. The only problem is the new order e-mail.

I hope somebody here encountered the same problem.


texts: How to Initiate a callout to an eternal system on an event happening in Magento2

texts:
I have a magento2 installed. I would like to know where and what changes do we make to initiate a callout from Magento to the external service with the event details.

e.g Suppose a Product is sold. And I need to send all corresponding information related to this deal to an external system. How would this made be possible. Assuming the external system can be built to accept the request.


texts: How to get custom response response at my own after add to cart(I want redirect to custom page after add to cart )

texts:
I am working with magento2, I want to create custom functionality after add to cart how to get a response on my own.
I need to redirect to custom page after add to cart product.

if (!$block->isRedirectToCartEnabled()) : ?>
    <script type="text/x-magento-init">
        {
        "[data-role=tocart-form], .form.map.checkout": {
        "catalogAddToCart": {}
        }
        }
    </script>
<?php endif; ?>

Please give me response about this


texts: Magento 2.1.6 Unable to write file into directory \D:/XAMPP/htdocs/magento/pub/media/catalog/product\cache

texts:
The error message appears every time I upload image on a product.

The complete message is:

  Unable to write file into directory \D:/XAMPP/htdocs/magento/pub/media/catalog/product\cache\914b1ba9268f8c1d0e58a8e7ce614488/s/o. Access forbidden.

The version of Magento I installed is 2.1.6, on XAMPP for Windows. The version of PHP installed in XAMPP is PHP 5.6.20.

I've tried:

Editing vendor/magento/module-catalog/Model/View/Asset/Image.php as stated in this answer, that is, replacing all occurrences of DIRECTORY_SEPARATOR with '/' and editing getRelativePath function
...and this answer, that instructs to remove DIRECTORY_SEPARATOR in line 226
chmod -R 777 ./ on /XAMPP/htdocs/magento/pub/media/catalog/product with Bash, in case it has something to do with the permission

And nothing above has worked for me, except that the first option I tried give me a new error when I upload image on a product:

  The file "D:/XAMPP/htdocs/magento/pub/media/tmp/catalog/product/s/o/test_image.png" doesn't exist or not a file

But when I check the file, it exists there!:

Is there anything I can do to solve this problem?
Any help would be appreciated. Thanks!


texts: Magento2.2.7 PLP sorting breaks after we place orders

texts:
Whenever we place an order on store front and come back to any category page, the sorting is not working(sorting breaks) . To fix this we needed to run a reindex on the below indexers and clear the cache

php bin/magento indexer:reindex catalog_product_attribute
php bin/magento indexer:reindex catalog_product_price
php bin/magento indexer:reindex catalog_product_flat

After running these commands , sorting works fine. But if we place next order, again it breaks and this continues.


texts: setCurrentCategory producing error when use it for get FilterableAttributeList in magento 2

texts:
setCurrentCategory producing below an error when uses it for getting FilterableAttributeList in a custom module via API.

$this->_layerResolver->setCurrentCategory($categoryId);

Error:

{
  "message": "No such entity with %fieldName = %fieldValue",
  "parameters": {
    "fieldName": "id",
    "fieldValue": "0"
  },
  "trace": "#0 /var/www/html/emc3/vendor/magento/module-catalog/Model/CategoryRepository.php(141): Magento\\Framework\\Exception\\NoSuchEntityException::singleField('id', '0')\n#1


texts: How to get sidemenu based on category id in magento 1.9?

texts:
I am working on Porto theme and on Magento -1.9.1 version website

On the homepage, I am getting my category menu at left side. On this page, i want to add subcategory slider section also. For that slider, i want to add that particular category's sub categories. As of now, i added these categories static instead of dynamic. So, My requirement is, How to get the sidemenu based on that particular category id?

My sidemenu.phtml code is as follows:

<?php $menuHelper = Mage::helper('megamenu'); ?>
<?php $menuData = $menuHelper->getMenuData(); extract($menuData); ?>
<ul class="menu side-menu">
    <?php echo $menuHelper->getMenuContent(); ?>
</ul>
<script type="text/javascript">
//<![CDATA[
var SW_MENU_POPUP_WIDTH = <?php echo $_popupWidth; ?>;
jQuery(function($){
    $('.menu.side-menu').et_menu({
        type: "default"
    });
});
//]]>
</script>

Like this, I want to add sidemenu for the category sliders which are existed.
So, how to add side menu based on the some category id?


texts: MAGENTO 2 How to Get Current page layout

texts: How do I get current category "page_layout" value? e.g "1 column" or "2 column" and so on. The values from Layout screen shoot bellow.


texts: magento javascript 2, does not load properly

texts: I need help. Does magento have a problem with javascript or derivatives ?. Everything I do that uses javascript or jquery always creates problems of not loading direct, it only loads a few times, and it is necessary to keep updating the page until the content appears. The magento content itself that uses javascript does not load correctly in my store. Can someone help me?


texts: installation problem, magento 1.9.2 BLANK PAGE

texts:
i am trying to install magento 1.9.2 on cpanel (/public_html)
 but page xyz.com/index.php/install/       is blank.

please let me know what folder and file needs to be changed or anything ?

please advise so i can run installation.


texts: Upload csv file with products. not working

texts:
i have a job of making a new shop for a client. He has an existing shop in another platform - Dandomain

The client has over 1000 products, so clearly i want to make an product import.

Dandomain have a export product to csv function, but magento wont accept the csv file.

How can i make magento accept it? :)


texts: How to forward all the 404 Magento pages to the front page?

texts:
I have a simple question...I had an old store and people bookmarked specific product pages in their browsers as well as Google search points to some specific pages. I have now installed a new version of Magento (1.9.1) and some of these URLs will not longer work (they will show the standard 404 not found Magento page).

What would be the best way to forward all these hits to the front page?


texts: Magento 2 adminhtml layout.xml not loading

texts:
The Controller File works fine, die('dasdsa') works. But i am not getting any result on the Backend Page except the Title Change within the Controller.

I Guess it's  just something simple :X

Classy/Runrate/Controller/Adminhtml/Index/Index.php

<?php
namespace Classy\Runrate\Controller\Adminhtml\Index;

use Magento\Backend\App\Action\Context;
use Magento\Framework\View\Result\PageFactory;

class Index extends \Magento\Backend\App\Action
{
  protected $resultPageFactory;

  public function __construct(Context $context, PageFactory $resultPageFactory)
  {
    parent::__construct($context);
    $this->resultPageFactory = $resultPageFactory;
  }

  /**
   * Load the page defined in view/adminhtml/layout/runrate_index_index.xml
   *
   */

  public function execute()
  {
    $resultPage = $this->resultPageFactory->create();
    $resultPage->setActiveMenu('Classy_Runrate::runrate');
    $resultPage->getConfig()->getTitle()->prepend(__('Runrate'));

    return $resultPage;
  }
}

Classy/Runrate/view/adminhtml/layout/runrate_index_index.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
    <update handle="styles"/>
    <body>
      <referenceContainer name="content">
          <block class="Magento\Backend\Block\Template" template="Classy_Runrate::index.phtml"/>
      </referenceContainer>
    </body>
</page>

Classy/Runrate/view/adminhtml/templates/index.phtml

hello world


texts:
Here am trying to add some condition before customer login. but I'm not able put plugin for Login.
Here is my code
app/code/Praveenn/Pvnn/etc/di.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Customer\Controller\Account\LoginPost">
        <plugin name="MyCucomtLoginAccountLoginPost" type="Praveenn\Pvnn\Plugin\Customer\LoginPost" sortOrder="10" disabled="false"/>
    </type>
</config>

Plugin code
<?php

namespace Praveenn\Pvnn\Plugin\Customer;

class LoginPost
{
    public function aroundExecute(\Magento\Customer\Controller\Account\LoginPost $subject,$result)
    {
        $writer = new \Zend\Log\Writer\Stream(BP . '/var/log/PRAVLogin.log');
        $logger = new \Zend\Log\Logger(); $logger->addWriter($writer);
        $logger->info('here');
    }
}

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


texts:
How to put www in front of my website
now we are getting like https://vitalticks.in

if we enter www.vitalticks.in we are getting below error


texts:
When I select the payment method and return back to the site, cart is cleared.
I am testing this on Mollie payments but it works fine for all payments. If I go to the payment page, select a payment method, click "Place Order" and return without paying, then my selected products will be reset.
Is there some way to get around this?


texts: Uncheck billing and shipping address are same checkbox in magento2 if pickup store is enabled

texts:
I have installed a store pick up module.

So, I am trying to uncheck the checkbox of "My billing and shipping address are same" once the module is enabled.

I have refered the below link, this will uncheck the checkbox always regardless of which shipping method selected.

How to uncheck "My billing and shipping address are the same" checkbox during checkout? One Page/Magento2

Can we uncheck only when store pick up is selected as "Yes" or when the particular shipping method is selected during the checkout?

Can this be achieved? Please anyone look into this and update me your Answers.

Thanks in advance!!!


texts:
Is there any reason why Attribute sets are hardcoded in magento 2 in interfaces?

Example in Magento\Customer\Api\CustomerMetadataInterface has const ATTRIBUTE_SET_ID_CUSTOMER=1

Magento\Rma\Api\RmaAttributesManagementInterface has it too as ATTRIBUTE_SET_ID=9

Because of that - when you have non standard attribute set Ids (i.e. after data migration from M1) - you cannot save any custom attributes as they belong somewhere else

Example:

Customer entity save in admin happens in
\Magento\Customer\Controller\Adminhtml\Index\Save

and data from request is populated using data object helper

$this->dataObjectHelper->populateWithArray(
       $customer,
       $customerData,
       '\Magento\Customer\Api\Data\CustomerInterface'
       );

and that helper is trying to load all custom attributes using

Magento\Customer\Model\Metadata\CustomerMetadata method getAllAttributesMetadata()

public function getAllAttributesMetadata()
    {
        /** @var AbstractAttribute[] $attribute */
        $attributeCodes = $this->attributeMetadataDataProvider->getAllAttributeCodes(
            self::ENTITY_TYPE_CUSTOMER,
            self::ATTRIBUTE_SET_ID_CUSTOMER
        );

        $attributesMetadata = [];

        foreach ($attributeCodes as $attributeCode) {
            try {
                $attributesMetadata[] = $this->getAttributeMetadata($attributeCode);
            } catch (NoSuchEntityException $e) {
                //If no such entity, skip
            }
        }

        return $attributesMetadata;
    }

As you can see if your attribute set Id is non default one, all custom attributes will not be included there, so no data will be populated.

eav_entity_table has column for default_attribute_set_id per entity and it is not hardcoded there


texts: Magento 2 I want to get order increment id and update all item of sales_order_item table order wise in below observer. How can i do that

texts:
I want to get order increment id and update all item of sales_order_item table order wise in below observer. How can i do that

    namespace Namespace\Moduename\Observer;
use Magento\Framework\Event\ObserverInterface;

class OrderSaveAfter implements ObserverInterface {

    protected $connector;
    protected $_itemFactory;
    protected $logger;

    public function __construct(
    \Magento\Sales\Model\ResourceModel\Order\Item $itemFactory,
    \Psr\Log\LoggerInterface $logger
    ) {
        $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
        $this->_itemFactory = $itemFactory;
        $this->logger = $logger;
    }

    public function execute(\Magento\Framework\Event\Observer $observer) {
        $order = $observer->getEvent()->getOrder();

    }

}


texts: Magento configurable product with Multiple select option, not drop down

texts: I have configurable products list in category page. Here there is option of color swatch. In Magento, by default, there is no option of multiple select of color attribute during color attribute creation for configurable product. But my client's requirement is that it will be color swatches and it will also be multyple select (max 4). The reference site is http://www.shoreprojects.com/collections/gift-box. I need the functionality, StepI, StepII, And StepIII in magento 1.9 like the reference site. I can't understand how to solve this requirement. I have googled by searching configurable product with attribute (color=>multiple select option). But there is no helpful result.If any one know about this type of requirement, then reply me or give a clue by which I will be helpful. Thank You.


texts:
I have this code, that return collection to my phtml template - work perfectly:

class Namespace_Tabs_Block_Content extends Mage_Core_Block_Template

public function getProducts()
{
    $collection = Mage::getModel('catalog/product')->getCollection()
                    ->addAttributeToSelect('*')

                    ->addAttributeToFilter('color', array('in' => array(27, 26, 20)))

                    ->addFieldToFilter('status','1')
                    ->addFieldToFilter('visibility', array('in' => array(2,4)));

    return $collection;
}

and this part of phtml :

<?php $_items = $this->getProducts() ?>

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

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

    <?php endforeach; ?>

but when im trying to display each collection for color attribute - my inner foreeach shows nothink. this code, where somethink wrong

public function getProducts()
{
    $collection = Mage::getModel('catalog/product')->getCollection()
                    ->addAttributeToSelect('*');

    $productsByColor = array('red' => $collection->addAttributeToFilter('color', array('eq' => 26)),
                             'blue' => $collection->addAttributeToFilter('color', array('eq' => 27)),
                             'black' => $collection->addAttributeToFilter('color', array('eq' => 20)),
                            );
    return $productsByColor;
}

phtml

<?php $products = $this->getProducts() ?>

<?php foreach ($products as $color => $_items): ?>

    <div class="block-content table" id="<?php echo $color ?>" >

 <?php echo $color ?>

        <?php foreach ($_items as $_item): ?>
           ... nothink here ...
        <?php endforeach; ?>

<?php endforeach; ?>


texts: How do I modify the code in this extension to run the export function via cron after each order

texts:
I am currently using the Bulk Import+Export Orders to CSV extension that is available at:

https://www.magentocommerce.com/magento-connect/bulk-import-export-orders-to-csv.html

The main function that I need is the export orders function, which is working fine. As this lets me import my magento orders into the order processing system which is being used for shipping out the products.

What I am trying to achieve is having the export function run automatically, preferably after every order is received. If not at least at certain times of the day.

I have looked around can't seem to find the information on what i need to look for to modify this to allow the cron functionality. The csv file that is generated is perfect for my processing system, order extensions do not format the files as i need.

I'm not the most experience, but am learning as I go along. Please can someone point me to where i need to look to allow the export function to available via a cron job.

All the advice is appreciated, the website is running on magento 1.9.2.2.


texts: Magento 2 Get order details on success page?

texts: I need to get the order information (shipping details, item SKU's) in order to send it over to the Amazon API for easy FBA shipping.  Ideally I will be able to capture this information upon a successful payment.  How do you get this information?


texts: How to find the files in magento directory

texts:
I want to get the list of taxes to display on cart page..
The code that is using to display the tax is :

This block is showing tax information:

$this->renderTotals();

while this block is shwoing grand total:

<?php echo $this->renderTotals('footer'); ?>

But i need to made some changes... please tell me which file i have to look for so i can make the changes...

I tried all the files adn check the coding.. but no success...
Please help me....


texts:
I hate to be that guy... but... yeah.
I cannot figure out the URL to log in, I googled and it said to run a script. I dont know where to run a script nor if I have permissions to do so, nor what directory to run the script or if the script is the one suggested (looks like dosbox)
I have attempted to figure it out on my own and run into brick walls.
I am using 5cloudhost on their inexpensive option and just need a simple site to get products to connect to my paypal account, one would think this would be a very very common use case... or am I mistaken?
anyhow I just need to throw some pictures up (without having to remove the background) and get SSL set up and have a 1 or 2 page store that can be a landing page for promotion.
I had to have someone at the hosting company install magento because something went wrong on the backend somewhere and it broke the site.
now it appears to be showing correctly, however I can see nowhere to begin.
I last coded sites in 2002 and I just copied and pasted HTML as I could at least make sense of where things come from and go, now everything has changed and I can't even begin.


texts: magento 2 multiple store views with sub domain url

texts:
I am trying to have two different store views with different themes but has the same catalog and settings.

default store view: website.co.uk
second store view should have: migrate.website.co.uk

Both the store views share the same website and store.
it is only the front end which changes.

I have created a sub domain of the main domain
I have copied .htaccess and index.php from website.co.uk to migrate.website.co.uk and modified index.php file as below:

<?php
$params = $_SERVER;
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = 'migrate';
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'store';
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params);
$app = $bootstrap->createApplication('Magento\Framework\App\Http');
$bootstrap->run($app);
?>

replacing

$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER);
/** @var \Magento\Framework\App\Http $app */
$app = $bootstrap->createApplication('Magento\Framework\App\Http');
$bootstrap->run($app);

.

I have also added two lines at the start of htaccess file:

SetEnvIf Host .migrate.website.co.uk. MAGE_RUN_CODE=migrate
SetEnvIf Host .migrate.website.co.uk. MAGE_RUN_TYPE=store

when check the migrate.website.co.uk it shows me a blank page with 500 error.
what is wrong in the code?


texts: Magento 2.2.6 installation error in Docker

texts:
I am facing this error when trying to install magento 2.2.6.

  Fatal error: Uncaught Exception: Deprecated Functionality: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/m226/vendor/colinmollenhour/cache-backend-file/File.php on line 81 in /var/www/html/m226/vendor/magento/framework/App/ErrorHandler.php:61 Stack trace: #0 [internal function]: Magento\Framework\App\ErrorHandler->handler(8192, 'The each() func...', '/var/www/html/m...', 81, Array) #1 /var/www/html/m226/vendor/colinmollenhour/cache-backend-file/File.php(81): each(Array) #2 /var/www/html/m226/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array) #3 /var/www/html/m226/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true) #4 /var/www/html/m226/vendor/magento/framework/App/Cache/Frontend/Factory.php(156): Zend_Cache::factory('Magento\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true) #5 /var/www/html/m226/vendor/magento/framework/Cache/Fron in /var/www/html/m226/vendor/magento/framework/App/ErrorHandler.php on line 61

Does anyone have any idea?


texts:
I had displayed images from my custom module database on modules template. and  applied pagination on it. on frontend it showing the pagination block but pagination is not working it shows all  images.

here is code of my  block file:-

public function __construct()
{
    parent::__construct();
    $collection = Mage::getModel('brand/brand')->getCollection();
    $this->setCollection($collection);
}

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

    $pager = $this->getLayout()->createBlock('page/html_pager', 'custom.pager');
        $pager->setAvailableLimit(array(5=>5,10=>10,20=>20,'all'=>'all'));
        $pager->setCollection($this->getCollection());
        $this->setChild('pager', $pager);
        $this->getCollection()->load();
        return $this;
    }

    public function getPagerHtml()
    {
    return $this->getChildHtml('pager');
    }

and my phtml file code is:

<?php
$data = Mage::getModel('brand/brand')->getCollection();
$name =$data->getData('title');
$image = $data->getData('filename');
echo $this->getPagerHtml();
foreach ($data as $dt)
{
    $name =$dt['title'];
    $image = $dt['filename'];

    echo $frontimage= '<img height="60px" width="80px" src="'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).$image . '" />;
}

?>


texts: Magneto2 : How to show brand name in product page

texts:
I want to show brand name in product details page above product name.So I want to write code in title.phtml.I wrote like this

      $objectManager = \Magento\Framework\App\ObjectManager::getInstance();

      $productBlock = $objectManager->create('\Magento\Catalog\Block\Product\View\AbstractView');
      $product = $productBlock->getProduct();

      $product->getAttributeText('manufacturer');

but nothing shows.
How do I achieve this?


texts:
I would like to select and bulk edit attributes in magento 1.9. Like as we do in Products.
Scenario is to set selected attributes filterable at once.

Currently magento allows to go one by one on attribute manually  and edit and save.

Is there some free extension out, or please suggest me which class in mage need to be rewrite to support bulk edit of attributes.

Thanks


texts: Moving /setting position of custom tab in Magento 2

texts:
I have added a custom tab to a magento 2 store, however I am unable to set the position. I want it between the reviews tab and the description tab.
I am able to add the tab with in the catalog_product_view.xml file, but not able to set order.

I can't seem to find any documentation on how to set order.
When I try to add after="" or before="" it does not seem to make a difference.


texts: how to filter products collection by updated_at field in descending order in magento 2?

texts:
Actually i am trying to filter products using updated_at field in
  magento 2?? but its not giving the result.If anyone have idea please help me.

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$productCollection = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\Collection');

$collection = $productCollection->addAttributeToSelect('*')
                ->setPageSize(4)
                ->addFieldToFilter('is_favour',1)
                ->addAttributeToFilter('updated_at', 'desc')->load();


texts: Adding custom attribute to customer registration form

texts:
I needed to create two new customer attributes. I have followed the guide from:
http://www.fontis.com.au/blog/magento/know-more-about-your-customers-adding-custom-signup-attributes

to create these attributes. I have checked the 'eav_attribute' table in the database and can confirm that both attribute exists. The only thing was that I didn't know how to create a checkbox attribute so I have created both attributes as 'Yes/No'.

from following the code on how to display the field on the registration form I have done:

    <?php echo $this->__('Publisher Offer') ?>*

    <input type="checkbox" name="publisheroffer" id="publisheroffer" value="<?php echo $this->htmlEscape($this->getFormData()->getPublisheroffer()) ?>" title="<?php echo $this->__('Publisher Offer') ?>" class="input-text" />

Where the attribute id is 'publisheroffer'. When the account is created it creates fine but the custom attribute fields don't change.

How do I display this attribute as a checkbox on the registration page, and how to process the values.

Thanks for all the help in advance.


texts: Delete products is not working inside table, but working fine outside

texts:
we are using following code to "Delete Products"

<form action="<?php echo $this->getUrl('marketplace/marketplaceaccount/massdeletesellerpro') ?>" method="post" id="formmassdelete" name="formmassdelete">
                            <input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
                            <button class="button" title="<?php echo $helper->__('Delete Products') ?>" type="submit" style="float: left;padding: 5px 5px 5px 0;"  id="mass_delete_butn">
                                <?php echo $helper->__('Delete Products') ?>
                            </button>

Its working fine. but when we used this code inside table, its not working.
even The above code have  tag. and even Table also included in  tag. is that the reason ?

<form action="<?php echo Mage::helper('core/url')->getCurrentUrl();?>" method="post">

                                    <?php echo $helper->__('Product Name') ?>
                                    <?php echo $helper->__('Date') ?>

                                        <input type="text" class="input-text" name="s" placeholder='<?php echo $helper->__('Search by product name') ?>' value="<?php echo $this->getRequest()->getParam('s')?>"/>

                            <form action="<?php echo $this->getUrl('marketplace/marketplaceaccount/massdeletesellerpro') ?>" method="post" id="formmassdelete" name="formmassdelete">
                            <input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
                            <button class="button" title="<?php echo $helper->__('Delete Products') ?>" type="submit" style="float: left;padding: 5px 5px 5px 0;"  id="mass_delete_butn">
                                <?php echo $helper->__('Delete Products') ?>
                            </button>

                    </form>


texts: Change 5 stars rating to 10 star rating in Magento 1.9.x

texts:
I want to change how many stars a product rating is out of? Obviously the default is out of 5, I would like to change it to 10.

I want this so that I can output 'half stars' on five stars in the review details for individual rating.

any suggestion are welcome.


texts:
Firstly,

I added one address, then added another one in new call.

It removed the old one and have only one address.

Secondly, I added two addresses on one call

then added another new one in second call
It removed the all addresses and have the last one address only in my
address book

please let me know if anyone have solution.


texts: Patch SUPEE-7405 v1.1 release, is it same as we had 7405 earlier?

texts:
It's not been long since I had applied SUPEE-7405 and magento says there is another one available. I am not sure if this is the same as before.

  Today, we are distributing updates that improve our most recent
  security release. SUPEE-7405 v1.1, Enterprise Edition 1.14.2.4, and
  Community Edition 1.9.2.4 add support for PHP 5.3 and address issues
  with upload file permissions, merging carts, and SOAP APIs experienced
  with the original release. They DO NOT address any new security
  issues.

What interest me is what does this mean?

They DO NOT address any new security issues.

I am sure I am not upgrading at this moment, but what's the main reason of this patch?

What files should I look in to? I have got lot of extension.


texts: Get only the in stock simple products of a configurable product

texts:
I am trying to get all the in stock simple products of a configurable product in magento2.

Below code gets all in stock and out of stock products of configurable product, But I need only the in stock products

$configProduct = $this->_product->load($currentProduct->getId());
$_children = $configProduct->getTypeInstance()->getUsedProducts($configProduct);

How can we filter this by in stock?


texts: Magento 2.3.x: Display address field on registration form?

texts:
I'm looking for a way to display address fields on the customer registration form. In previous versions of Magento 2, I was able to add them using the below snippet in the customer_account_create.xml file:

<argument name="show.address.fields" xsi:type="boolean">true</argument>

Since the release of Magento 2.3.1, this snippet doesn't seem to have any impact, has anyone come across how to now achieve this?


texts:
When i create newsletter and apply for queue, then it stuck in sending. You can find more information in screenshot attached bellow.

Magento 1.9.2.4

Thanks.


texts:
When I go to "Index management" and try to process show message "There was a problem reindexing process" why?

When i had problem I try to resolve with many magento forum for support with "Category Flat Data"
Note: I Look at Magento forum that go to var/locks, after clear all but it do not process.


texts: Error during the Installation of Magento 1.14

texts:
When installing the latest Magento EE version, I receive the following error

  Fatal Error: Call to member function append() on a non-object in /path/to/magento/app/code/core/Mage/Install/controllers/WizardController.php

http://f.cl.ly/items/2c0Z0e102O0r1O3D0B3H/magento-install-error.png

Is this a problem with EE, or is it a problem with this specific system?


texts: Magento 2 Load UI grid only after filter search

texts:
I have created custom module. In that I am displaying product collection in Ui grid. I have extend \Magento\Catalog\Ui\DataProvider\Product\ProductDataProvider to display collections.

What is my requirement :
I want to display(load) collection only after user search anything from filter.

The UI grid should not display any product until user search anything from filter.

My code For this file
app/code/Company/module/Ui/DataProvider/Product/Vendor/ProductDataProvider.php

<?php
/**
 * Copyright © 2015 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Company\module\Ui\DataProvider\Product\Vendor;

use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory;

/**
 * Class ProductDataProvider
 */
class ProductDataProvider extends \Magento\Catalog\Ui\DataProvider\Product\ProductDataProvider
{

    /**
     * Construct
     *
     * @param string $name
     * @param string $primaryFieldName
     * @param string $requestFieldName
     * @param CollectionFactory $collectionFactory
     * @param \Magento\Ui\DataProvider\AddFieldToCollectionInterface[] $addFieldStrategies
     * @param \Magento\Ui\DataProvider\AddFilterToCollectionInterface[] $addFilterStrategies
     * @param array $meta
     * @param array $data
     */
    public function __construct(
        $name,
        $primaryFieldName,
        $requestFieldName,
        CollectionFactory $collectionFactory,
        array $addFieldStrategies = [],
        array $addFilterStrategies = [],
        array $meta = [],
        array $data = []
    ) {
        parent::__construct($name, $primaryFieldName, $requestFieldName, $collectionFactory, $addFieldStrategies, $addFilterStrategies, $meta, $data);
        $this->collection->addAttributeToFilter('type_id', 'configurable');
        $this->collection->addAttributeToFilter('has_options', '1');
        $this->collection->joinField(
            'qty',
            'cataloginventory_stock_item',
            'qty',
            'product_id=entity_id',
            '{{table}}.stock_id=1',
            'left'
        );
    }
}


texts: Translate line tool some words I can't translate

texts:
I'm using the translate line tool it's working fine but there are some words  that I can't translate. Where the translate line tool save the words? most words I can't translate are javascript/jquery Messages
Is there another way to translate javascript massages?


texts:
I want to update just the prices of all products in my Magento 2 store and to do this quickly and easily i have a CSV with sku and price and was hoping price could be updated using sku as an identifier.

Using the default magento import process however i am being asked for extra fields including product_type,attribute_set_code,name ect.

Is there a quick and easy way to do this with just sku and price as none of these other fields need modifying?


texts: $this->getIsHomePage() - Fix for Store Views

texts:
I am trying to use this code, found here, in the header.phtml file on my Magento 1.9.x website. For some reason, even on the home page at .com/ or .com/?SID= it is still applying H3 where it should be H1.

Does anyone know why this might be happening? Do I need other info on the page?

<?php if ($this->getIsHomePage()):?>

<?php echo $this->getLogoAlt(); ?>

  <?php else: ?>

<?php echo $this->getLogoAlt(); ?>

  <?php endif ?>

This code is also running to test against false positives - This code works but is only doing an echo on the code, not actually rendering it to provide the alt text:

  <?php if($routeName == 'cms' && $identifier == 'home') { echo 'You are in Homepage!'; } else { echo 'You are NOT in Homepage!'; } ?>


texts: Magento 2.3.1 : Validation exception in developer mode

texts: When switching from production mode to developer in Magento 2.3.1 the enclosed exception occurs. I have tried to find a solution for 2 days. From what I've read this is probably caused by a .xml file that needs to be changed but I can't find any hint as to what .xml file to look at.


texts: Import product using async rest bulk API and RabbitMQ

texts:
We are working on a shop with about 7k products that are provided by several messy CSV. We decided to parse data from all these CSV and try to use async bulk api for import products, basically following these tutorials

https://devdocs.magento.com/guides/v2.3/rest/tutorials/bulk-configurable-product/config-product-intro.html
https://github.com/magento/inventory/wiki/Create-a-configurable-product-%5BWeb-API-Tutorial%5D (this reference doesn't use bulk api but was useful to understand better how to build Json)

We chose this way because we read great things about performance use this method and since we are working on a Magento Cloud Pro we asked to enable RabbitMq service.

After launch the import process we found however that the queue processing is very slow (about 1 product/sec)

Furthermore after sending the list of all products we perform two more api calls to configure configurable products but it happens that this queue is being process with the previous one and the system tries to associate some products that maybe are still not imported.

It's the first time that we use RabbitMq and this approach for import and we are sure that there is something wrong in pur procedure.

Did someone have experience on bulk api and point us to the right direction?
Are there some settings Magento side or RabbitMq side that are suggested? (we left all with default settings)
How is possible to have a  graphic interface for rabbit mq to monitor queues on Magento Cloud?

I hope someone could help us because it's seem strange that for importing 7k products, 3-4 hours are necessary... or maybe all that glitters is not gold and async bulk api are not so great as they told!


texts: var/importexport cannot be used with directory pub/media/

texts:
I have a problem with import/export products. When i select entity type = "Product", select my .scv file and click "Start Import". System show me error like in the picutre below.
In exception.log
 main.CRITICAL: Path "/var/www/html/mytheme/var/importexport//file.csv" cannot be used with directory "/var/www/html/mytheme/pub/media/" {"exception":"[object] (Magento\\Framework\\Exception\\ValidatorException(code: 0): Path \"/var/www/html/mytheme/var/importexport//file.csv\" cannot be used with directory \"/var/www/html/mytheme/pub/media/\" at /var/www/html/mytheme/vendor/magento/framework/Filesystem/Directory/PathValidator.php:63)"} []

I found this soultion
Import/Export cannot be used with directory
But it's not good for me because I have beta and production version, and in beta version import/export works well without any changes but in production i have this error. I was looking for differences between beta and production version but i have not found. Please help me.


texts:
I want to upgrade magento 2.1.6 to 2.1.9 ?How to upgrate it?

Bellow admin site display message .

  Important Magento Open Source 2.1.9 and 2.0.16 Security Enhancements –
  9/14/2017

  Magento Open Source 2.1.9 and 2.0.16 include critical security
  enhancements and address the September 1 changes to USPS shipping.
  Please update your s ite as soon as possible. More information is
  available in the release notes:


texts:
I created a new theme which extends from magento luma. I try to develope with less instead of css.

I need to enable CSS Source maps, so that I can debug my less, it helps to see in which less files the css of certain elements are stored, otherwise It will only show "styles-l.css" or "styles-m.css".

I followed the steps from the documentation.

What I did:

enabled css source maps in chrome.
Enabled "Server-side Less compilation" in magento backend
Added my theme company_base to local-themes.js:

dev/tools/grunt/configs/local-themes.js

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

'use strict';

/**
 * Define Themes
 *
 * area: area, one of (frontend|adminhtml|doc),
 * name: theme name in format Vendor/theme-name,
 * locale: locale,
 * files: [
 * 'css/styles-m',
 * 'css/styles-l'
 * ],
 * dsl: dynamic stylesheet language (less|sass)
 *
 */
module.exports = {
    company_base: {
        area: 'frontend',
        name: 'Company/Base',
        locale: 'de_DE',
        files: [
            'css/styles-m',
            'css/styles-l'
        ],
        dsl: 'less'
    },
};

Executed grunt exec
Executed grunt less
Executed grunt clean
Executed php bin/magento cache:flush full_page
Executed grunt watch
Then I opened chrome developer tools and inspected some elements, but it still shows "styles-l.css" instead of the actual .less filename.


texts:
I am trying to show data of order/sales by country into admin grid, so I am joining two tables sales_order_grid and sales_order_address in my Collection.php

Here is my code

 use Magento\Framework\Data\Collection\Db\FetchStrategyInterface as FetchStrategy;
 use Magento\Framework\Data\Collection\EntityFactoryInterface as EntityFactory;
 use Magento\Framework\Event\ManagerInterface as EventManager;
 use Magento\Eav\Model\Entity\Collection\AbstractCollection;
 use Psr\Log\LoggerInterface as Logger;
 use Magento\Framework\App\ResourceConnection;

 class Collection extends \Magento\Sales\Model\ResourceModel\Order\Grid\Collection
{
protected $_resource;
/**
 * Initialize dependencies.
 *
 * @param EntityFactory $entityFactory
 * @param Logger $logger
 * @param FetchStrategy $fetchStrategy
 * @param EventManager $eventManager
 * @param string $mainTable
 * @param string $resourceModel
 */
public function __construct(
    EntityFactory $entityFactory,
    Logger $logger,
    AbstractCollection $_resource,
    FetchStrategy $fetchStrategy,
    EventManager $eventManager,
    $mainTable = 'sales_order_grid',
    $resourceModel = \Magento\Sales\Model\ResourceModel\Order::class
) {
    parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $mainTable, $resourceModel);
    $this->_resource = $_resource;
}

/**
 * @inheritdoc
 */
protected function _initSelect()
{
    parent::_initSelect();

    $tableDescription = $this->getConnection()->describeTable($this->getMainTable());
    $tableDescription->addAttributeToSelect('*');
    $joinConditions = 'e.customer_id = s.customer_id';
    $tableDescription->addAttributeToSelect('*');
    $tableDescription->getSelect()->join(
        ['s' => 'sales_order_address'],
        $joinConditions,
        []
    )->columns("s.country_id");
    foreach ($tableDescription as $columnInfo) {
        $this->addFilterToMap($columnInfo['COLUMN_NAME'], 'main_table.' . $columnInfo['COLUMN_NAME']);
    }
    return $this;
}

its still showing only sales_order_grid's column, country_id still blank in my admin grid.


texts: I have Magento version 1.9.1.0. Is it possible to do a fresh install of 1.9.2.1 on the same server and just connect the 1.9.1.0 database to it?

texts:
I have Magento version 1.9.1.0.
I installed a custom theme, one calendar and another calendar. The new calendar company had to tweak it a bit and somewhere along the line - things got messed up (like - I cannot display the contents of my categories in Admin and therefore cannot edit them or add new categories). I was thinking - is it possible to do a fresh install of 1.9.2.1 on the same VPS server and just connect the 1.9.1.0 database from the existing installation to the new 1.9.2.1 install? I appreciate any suggestions.


texts: how to get specific product attribute list and option?

texts: How can i get specific product attribute list and price with product id ? is it possible to get product options like color , size and ... only with product id ? i want to add a php code to root of magento on host and when call it from browser it`s show me details of product .


texts: How to change position of attributes in compare products

texts:
Magento 2.1 in the "More Information" of products page position. It's okay but when I compare position it incorrect
such as the product page  attribute positions 1 2 3 4 but in compare 2 3 4 1.

1 is my new attribute and 2 3 4 are my old attributes.


texts: Add customer attribute with yes/no option

texts:
I need to create custom Customer Attribute with Yes/No option. I successfully created ones with Text input previously. What I need now is, create a separate attribute for set if Customer is on Hold or not. I've used mage2gen.com's module generator and I can see the attribute in backend. (When I tried to create new customer or edit customer). But thing is I'm not sure that data has been saved into the database. Basically what I need is,

Create customer module with yes/no or dropdown with two options. It should only be visible from admin area.no need to display anything in frontend.
check whether data is saved when customer is saved/updated.
Retrieve created customer attribute data using ObjectManager

Please help me out with this


texts: magento2 send email programmatically without template

texts:
I want to send custom email programmatically without any template.

In magento 1, I used below script to do same thing.

$mail = Mage::getModel('core/email');
$mail->setToName('xxx');
$mail->settoemail('xxx@yyy.com');
$mail->setBody($html);
$mail->setSubject('Test email : '.$fieldss['o']);
$mail->setfromemail('from@yopmail.com');
$mail->setType('html');// YOu can use Html or text as Mail format
$mail->setBodyHTML($html);  // your content or message
try{
    $mail->send();
}catch (Exception $e) {
    echo $e->getMessage();exit;
}

Here, In magento 2 I used below code but it gives error.

$objectManager = $this->getObjectManager();
$transport = $objectManager->get('Magento\Framework\Mail\Template\TransportBuilder');
$transport->addTo('xxx@yyy.com', 'Hiren Shah');
//$transport->settoemail('hiren.shah@healthtrader.com');
//$transport->setBody($html);
$transport->setSubject('Test email : '.$fieldss['o']);
$transport->setFrom('from@yopmail.com');
$transport->setType('html');// YOu can use Html or text as Mail format
$transport->setBodyHTML($html);  // your content or message
$transport->getTransport();
try {
    $transport->sendMessage();
} catch (Exception $e) {
    echo $e->getMessage();exit;
}

But this gives me error Call to undefined method Magento\Framework\Mail\Template\TransportBuilder\Interceptor::setSubject()

How to send custom email without template? Please give me code sample.


texts:
I am trying to change Magento2.2.2 admin logo.
But no success.
This is what I have done:

This file app/design/adminhtml/XXX/yyy/theme.xml contains:

<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
   <title>Xy_Theme</title>
   <parent>Magento/backend</parent>
</theme>

This file app/design/adminhtml/XXX/yyy/registration.php contains:

<?php
  \Magento\Framework\Component\ComponentRegistrar::register(
  \Magento\Framework\Component\ComponentRegistrar::THEME,
  'adminhtml/XXX/yyy',
  __DIR__
);

This file app/design/adminhtml/XXX/yyy/Magento_Theme/layout/default.xml contains:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
  <title>Admin Title</title>
</head>
<body>
  <referenceContainer name="header">
    <block class="Magento\Backend\Block\Page\Header" name="logo" before="-">
      <arguments>
        <argument name="show_part" xsi:type="string">logo</argument>
        <argument name="edition" translate="true" xsi:type="string">Community Edition</argument>
        <argument name="logo_image_src" xsi:type="string">images/my-logo.svg</argument>
        <argument name="logo_alt" xsi:type="string">My Admin</argument>
      </arguments>
    </block>
  </referenceContainer>
</body>

And finally my logo image is in
app/design/adminhtml/XXX/yyy/web/images/my-logo.svg


texts:
I just moved a Magento 2.3.4 website to a new server and now I am getting an error that says

Uncaught Error: Class 'Mage' not found in /var/www/index.php:59

The index.php file looks like the below (which works on another machine)

try {
   require __DIR__ . '/app/bootstrap.php';
} catch (\Exception $e)
{
echo <<getMessage()}

HTML;
exit(1);
}

//$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER);
/** @var \Magento\Framework\App\Http $app */
//$app = $bootstrap->createApplication(\Magento\Framework\App\Http::class);
//$bootstrap->run($app);

switch ($_SERVER['HTTP_HOST']) {
case 'stagesite.domaina.com':
$params = $_SERVER;
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = 'ydsite';
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'store';
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params);
$app = $bootstrap->createApplication('Magento\Framework\App\Http');
$bootstrap->run($app);
break;
case 'stagesite.domainb.com':
$params = $_SERVER;
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = 'default';
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'store';
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params);
$app = $bootstrap->createApplication('Magento\Framework\App\Http');
$bootstrap->run($app);
break;
default:
 Mage::run();
 break;
}


texts:
I have website related to Hair Wigs & i am using Magento2 & Configurable Product

There are product with Size and Color attributes... now i added quantity for Products ..say 20 ... and size and color products are more then main product ...say 30 items

Hair Wigs >> Normal Color & Normal Size >> $10 Price.... 20 Quantity

Hair Wigs >> Black Color & Size 14 >> $30 Price.... 30 Quantity

Now, what happen is
where my main product quantity is 20 and all sold out ... my product HAIR WIGS ..shows SOLD OUT...but i still have stock available with size and color which i have 30 quantity.

I want to show my products show IN STOCK where it is available with size and color.

Please help!


texts: Magento get Customer Data from session id

texts:
I've create a login function that make the customer login by email and password and return below response

{
    "status": "success",
    "message": {
        "id": "1",
        "name": "username",
        "firstname": "firstname",
        "lastname": "lastname",
        "email": "mail@mail.com",
        "session_id": "7ead152bcd78c30b3f7415c985ab3d0b",
        "info": {
            "postcode": "1300",
            "city": "city",
            "street": "street",
            "telephone": "1234567890",
            "fax": null,
            "country": "USA",
            "region": null
        }
    }
}

So i want to get the customer data from the session id above but it's not working.

$sess = Mage::getSingleton('customer/session', array( 'value' => $sessId ));
print_r($sess);

My Questions:

1- How i can get the customer data from session id?

2- how i can logout the customer from the session id?

NB: This request from mobile app.


texts: Change Category thumbnail with swatch which is not from gallery

texts:
I have hidden my thumbnail from the gallery as what I display in the category listing is not the same image as what I want to show in the gallery (it has extra bits in it).

In the JsonConfig object, I got from the swatch, I have the list of the images from the Gallery but not my thumbnail.

How can I modify the JsonConfig object to add an item to it?

Do I extend the question to "how to add another image role in the JsonConfig object? (i.e. not only the thumbnail)"


texts:
Every product has a link to browse other products by the same brand.  When the link is clicked it goes back to the homepage instead of the brand page.

How can I configure it to work?

Browse other
Earthly Body products

Website has adult products for sale*
http://www.lubezilla.com/earthly-body-flavored-edible-massage-oil-sampler-5-pack.html

When You click Earthly body is when it goes to the homepage but when we click the logo it works fine.  The Logo has a different URL when clicks which is accurate.  How do I change the brand URL to go there as well?


texts: Show Product Out of Stock if Related Item Out of Stock

texts: Is there a way in Magento 2.2.1 to mark a product out of stock if the related item is out of stock?


texts: Is there a module to split payment methods

texts:
I'm trying to see if a module or any code exists to allow a customer to pay with more than one method.  Or any other way to do this.

Ideally these cases would work:
Lets say they want to pay x on credit card A, and y on credit card B.
Lets say they want to pay x on credit card A, and y via Check.

Thanks!


texts: How can i get the reviews of product by customer in magento 2 programatically?

texts:
In the below code i am getting the rating percentage .How can i get the review title, description, nickname and submitted date.

public function ProductReview()
 {
    $_productID = 70;
    $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
    $_product= $objectManager->create("Magento\Catalog\Model\Product")->load($_productID);
    $_review=$objectManager->create("Magento\Review\Model\Review");
    $_reviewFact=$objectManager->get("Magento\Review\Model\ReviewFactory");
    $_reviewFact->create()->getEntitySummary($_product, 1);
     // Below code will get the rating summary
  $rat=$_product->getRatingSummary()->getRatingSummary();
 return $rat;
 }


texts: The "contacts" menu in magento configuration under general is missing

texts: The "contacts" menu in my magento 1.9 configuration under general tab is missing. Can anyone help me understand why it is missing and where can i find it?


texts: Trigger function on close in window.js Magento 1.9

texts:
I am using window.js to show a popup.
In pop up i used a phtml file

       <button class="reviewBtn">Write a Review</button>

Inside a div, I called phtml file

<?php  echo  $this->getLayout()->createBlock('core/template')
    ->setTemplate('instagramapi/signupform.phtml')->toHtml();?>

I want to run a function when user click on close button


texts: Configurable product is not added to cart in catalog page Magento 2.2.2

texts:
I recently created a configurable product, when I select any of the size and color from catalog page then click add to cart button, it will redirect to the cart page.

Not Added any item in my Cart.

So any suggestions please?


texts: Magento 2.3.0 How to override wishlist & compare product list page using plugin

texts:
I want to override wishlist & compare product grid using plugin. after that i would like to append custom div under class="product-image-container".

I try & search a lot but no luck. is there any way to achieve thing?

I try below way for wishlist grid.

  Namespace/Modulename/etc/forntend/di.xml

<type name="Magento\Wishlist\Block\Customer\Wishlist\Items">
    <plugin name="Namespace_Modulename::wishlistProduct" type="namespace\Modulename\Plugin\Customer\Wishlist\Items" sortOrder="18" />
</type>

  Namespace/Modulename/Plugin/Customer/Wishlist/items.php

namespace Namespace\Modulename\Plugin\Customer\Wishlist;

class Items
{
/**
 * @var \Magento\Framework\View\LayoutInterface
 */
protected $layout;
public function __construct(
    \Magento\Framework\View\LayoutInterface $layout
) { //die('test called');
    $this->layout = $layout;
}

public function afterGetColumns(\Magento\Wishlist\Block\Customer\Wishlist\Items  $subject, $result
) {
    var_dump($subject->getProduct());die('called');
    $labelHtml = $this->layout->createBlock('Namespace\Modulename\Block\Label')->setProduct($product)->setTemplate('Namespace_Modulename::product/label.phtml')->toHtml();
    return $result.$labelHtml;
}
}

What i missing or wrong in above code?

Edit :

How can i create after plugin for class Magento\Catalog\Block\Product\Compare\ListCompare ?

I try with below way but not working.

<type name="Magento\Catalog\Block\Product\Compare\ListCompare">
    <plugin disabled="false" name="Namespace_Modulename::compareProduct" type="Namespace\Modulename\Plugin\Catalog\Product\Compare\ListCompare" sortOrder="19" />
</type>

Any help would be appreciated!


texts:
When the breakpoint is single everything works fine, when I try to add one more breakpoint, it doesn't work. Here is my code from view.xml.
So firstly I need to display nav as vertical thumbs, next break as horizontal and last as dots.


texts: How to apply limit and order by for update function of the adapter in magento?

texts:
I am trying to update a single row of my model. My requirement is I have certain conditions which will return a set of rows and I want to update only the row with the highest id (or latest). I am using the function Update defined in Varien_Db_Adapter_Interface.

Is there a way to pass the limit and order by to the update query.

So far What I have written is following -

$updateCond[]         = $adapter->quoteInto('id in (?)', $ids);
$updateCond[]         = $adapter->quoteInto('test_id in (?)', $test_ids);
$adapter->update($tableName, array("status" => $status), $updateCond);

My $updateCond will return more than one row, But I only want to update a single row. Is there a way to do it ?


texts:
I cannot change theme in content -> configuration -> Default Store View,  I am getting following error:

It always stays --No Theme--, tried changing to Blank Theme and my custom theme.

I am using xampp and C:/xampp/htdocs/magento2new is correct. Not sure what magento is trying to find?


texts: magento 500 error in frontend backend admin working properly

texts:
exception 'Mage_Core_Exception' with message 'Invalid block type: Mage_Ves_Priceslider_Block_Ajax' in /home/eindia1/public_html/app/Mage.php:595

Stack trace:
#0 /home/eindia1/public_html/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Invalid block t...')
#1 /home/eindia1/public_html/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('ves_priceslider...', Array)
#2 /home/eindia1/public_html/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('ves_priceslider...', 'ajaxSlider')
#3 /home/eindia1/public_html/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('ves_priceslider...', 'ajaxSlider')
#4 /home/eindia1/public_html/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#5 /home/eindia1/public_html/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 /home/eindia1/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#7 /home/eindia1/public_html/app/code/core/Mage/Catalog/controllers/CategoryController.php(148): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#8 /home/eindia1/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Catalog_CategoryController->viewAction()
#9 /home/eindia1/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view')
#10 /home/eindia1/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#11 /home/eindia1/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#12 /home/eindia1/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#13 /home/eindia1/public_html/index.php(83): Mage::run('', 'store')
#14 {main}


texts: How to create a front controller that uses an empty layout

texts:
I want my front controller to serve an xml type and for that reason i need that controller to use a layout that doesn't include any html tags.

On my controller class i have the following code:

<?php

namespace Vendor\Module\Controller\Feed;
use Magento\Framework\View\Result\PageFactory;
use Magento\Framework\App\Action\Context;

class Index extends \Magento\Framework\App\Action\Action
{
    protected $pageFactory;
    public function __construct(Context $context, PageFactory $pageFactory)
    {
        $this->pageFactory = $pageFactory;
        return parent::__construct($context);
    }

    public function execute()
    {
        // $this->getResponse()->setHeader('Content-Type','text/xml');
        $page_object = $this->pageFactory->create();
        return $page_object;
    }
}

The pageFactory object seems to be including the theme's base layout.
Overriding the <container name="root"> node on this controller-action layout, doesn't stop it from rendering head and body tags.

Is there a different object i should be using in the execute() function? What would be the correct way of getting the front controller to use an empty layout?


texts:
i am using Godaddy share hosting and magento 2.3.0 and i install magento 2.3.0 successfully but when i open my magento admin panel it show an error

  File not Found (404 error)

please give me solution.


texts:
I am searching for an extension admin can able to set the delivery date for the order.
The default order estimation date will be 2 days. If it delays means the admin can change the date of a delivery order in the backend for particular order.
Could Please Suggest Extension for this.
Thanks.


texts: Create address in magento using kasop2 api

texts:
I am able to create a customer using customerCustomerCreate api. But I am not able to create customer address using "customerAddressCreate" api. I am using the below code,

SoapSerializationEnvelope env = new SoapSerializationEnvelope(
                            SoapEnvelope.VER11);

                env.dotNet = false;
                env.xsd = SoapSerializationEnvelope.XSD;
                env.enc = SoapSerializationEnvelope.ENC;

                SoapObject request = new SoapObject(NAMESPACE, "login");

                request.addProperty("username", "user");
                request.addProperty("apiKey", "apikey");

                env.setOutputSoapObject(request);

                HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);

                androidHttpTransport.call("", env);
                Object result = env.getResponse();

                Log.e("sessionId", result.toString());

                String sessionId = result.toString();

   request = new SoapObject(NAMESPACE, "customerAddressCreate");
            request.addProperty("sessionId", sessionId);

            request.addProperty("customerId",custId);

            SoapObject customerEntity = new SoapObject(NAMESPACE, "customerAddressEntityCreate");

            customerEntity.addProperty("city", "bangalore");
            customerEntity.addProperty("company", "outthinking");
            customerEntity.addProperty("country_id", "01");
            customerEntity.addProperty("fax", "08012345");
            customerEntity.addProperty("firstname", "amit");
            customerEntity.addProperty("lastname", "chandra");
            customerEntity.addProperty("middlename", "raj");
            customerEntity.addProperty("postcode", "560007");
            customerEntity.addProperty("prefix", "a");
            customerEntity.addProperty("region_id", 03);
            customerEntity.addProperty("region", "karnataka");
            customerEntity.addProperty("street","Banglore");
            customerEntity.addProperty("suffix", "ac");
            customerEntity.addProperty("telephone", "+91-9962025341");
            customerEntity.addProperty("is_default_billing", false);
            customerEntity.addProperty("is_default_shipping", false);

            request.addProperty("addressdata", customerEntity);

It is throwing error

SoapFault - faultcode: '100' faultstring: 'Please enter the first name.
    Please enter the last name.
    Please enter the street.
    Please enter the city.
    Please enter the telephone number.
    Please enter the zip/postal code.
    Please enter the country.' faultactor: 'null' detail: null

Please let me know what wrong I am doing in this code.


texts: Invalid Form Key. Please refresh the page error occur in magento 2

texts: if i try to pay with paytm am getting this error "Invalid Form Key. Please refresh the page error" How do i fix it


texts: Magento2-Translation not working in js files

texts:
I was trying to make translation in JS files.

I have tried

1

require([
'jquery',
'jquery/ui',
'mage/translate'
], function($){
    $(window).load(function() {
        alert($.mage.__('Your Message'));
    });
});

2

<?php echo __('Create Backup') ?>

But nothing worked. It's working fine for strings added in php code.


texts:
For some odd reason this isn't being extended

The core block is called

class Mage_Checkout_Block_Onepage_Shipping_Method_Available extends Mage_Checkout_Block_Onepage_Abstract

and is located at:

magento/app/code/core/Mage/Checkout/Block/Onepage/Shipping/Method/Available.php

I am extending it with:

class CompanyName_Checkout_Block_Onepage_Shipping_Method_Available extends Mage_Checkout_Block_Onepage_Shipping_Method_Available

located at:

local/Companyname/Checkout/Block/Onepage/Shipping/Method/Available.php

here is what my block config section currently looks like:

<blocks>
    <checkout>
        <rewrite>
       <available>CompanyName_Checkout_Block_Onepage_Shipping_Method_Available</available>
        </rewrite>
    </checkout>
</blocks>

Thanks.


texts:
How do you set indexer to manual in magento2?

I do not see any option under bin/magento


texts:
I have a server where I have two versions of PHP installed (PHP-7.0 and PHP-7.1). I also have two sites one using magento2.1.5 (running PHP-7.0.18) and the other a Code Ignitor project(running PHP-7.1.6).
We all know magento2.1.5 is not compatible with PHP-7.1.6. I am compiling Magento projects using this and it works fine.
Now I need to use Composer, each time i run composer install it shows the following error:

Problem 1
- magento/composer 1.0.3 requires php ~5.5.0|~5.6.0|~7.0.0 -> your PHP version (7.1.6) does not satisfy that requirement.
- magento/composer 1.0.3 requires php ~5.5.0|~5.6.0|~7.0.0 -> your PHP version (7.1.6) does not satisfy that requirement.
- Installation request for magento/composer 1.0.3 -> satisfiable by magento/composer[1.0.3].

Any solution would be appreciated...


texts: Some unwanted random values appending in script tag

texts:
I have removed some malware from a website but my googleads is not approved. I asked them they said there is an issue with javascript tag.

I want to know is that correct or not.

Our default script tag like this,

<script type="text/javascript">

In my site, it's like this,

<script type="97cff6b6a96fb71b51b40788-text/javascript">

That random value is appending in the front and it's dynamically changing whenever site refreshed. Can you please tell what is the difference between these two script tag values? Is this causing of a googleads block?


texts: List of product options with quantity field per option (which is associated product of configurable)

texts:
Most products on this store are configurable products. Each configurable product has associated products, each with it's own quantity set so inventory is tracked.
At the frontend, these configurable products are visible (and the associated products not visible individually) and each configurable product has a dropdown which display the options that the customer can select (these being the associated products).
What we need to modify is for these options to be all visible in a list, each with a quantity field so the custom can enter quantities for multiple options at once and add to cart.
I'm wondering if anyone knows of an extension that can provide this functionality or how you would advise implementing this with the minimal amount of change?
I guess we could use grouped products for this but it would be a royal headache changing how practically every product on the site is set up.
The extensions we've seen so far that offer this functionality only seem to modify the functionality of the 'Custom Options' feature.
Your suggestions are greatly appreciated. Thanks.
Edit
I've just tested this and a Grouped product works perfectly for what we're after. The only problem is this is a multi-store and we only want the options with quantity fields to be on one store only. So unless I'm not mistaken, will require creating two of every product just so that on the retail store, they will be configurable products and on the wholesale store they will be grouped products.
Edit 2
Further testing and the following scenario works:-
Retail Store

Parent Product (00X) <-- This is a configurable

Child Product (00A)
Child Product (00A)
Child Product (00A)

Wholesale Store

Parent Product (00Y) <-- This is a grouped

Child Product (00A)
Child Product (00A)
Child Product (00A)

The three child products under the configurable and the grouped are the same products. This means that only the parent product will have to be duplicated in the catalog (instead of every product).

A parent product (configurable) for the retail store.
A parent product (grouped) for the wholesale store.

I'd be interested to hear if anyone would have approached this differently...


texts: translation only work us other not working for other locale in custom module

texts:
admin panel always do translation from en_US. where did i do wrong?

helper

$helper=Mage::helper('test');
$helper->__('Shipping Method');

config.xml

<frontend>
    <translate>
        <modules>
            <test>
                <files>
                    <default>test_test.csv</default>
                </files>
            </test>
        </modules>
    </translate>
</frontend>
<adminhtml>
    <translate>
        <modules>
            <test>
                <files>
                    <default>test_test.csv</default>
                </files>
            </test>
        </modules>
    </translate>
</adminhtml>

app/locale/en_US/test_test.csv

"Shipping address","Shipping Address"
"Billing address","Billing Address"
"Shipping Method","Shipping Method"

app/locale/ar_SA/test_test.csv

"Shipping address","test"
"Billing address","test1"
"Shipping Method","test2"


texts:
So you can set in the system.xml file of a module a dependency between fields by adding a <depends> tag in one of the fields.

<field1>
    ....
</field1>
<field2>
    ....
    <depends>
       <field1>1</field1>
    </depends>
</field2>

The code above means that field2 will be shown when the value of field1 is 1.
I want to know how/if can I tell Magento to show field2 if the value for field1 is 1 OR 2?


texts: Where's the source code for the Shipping Methods in One Page Checkout?

texts:
I know the Shipping Methods are loaded dynamically, but where is the file that they're loaded from? I want to slightly change the layout and add some classes, but I can't find the file.

It's not /app/design/frontend/base/default/template/checkout/onepage/shipping_method/available.phtml

Could anyone point me in the right direction?

Thank you very much in advance.


texts: How to add a customer programmatically in Magento 2?

texts:
I need to create a customer programmatically in Magento 2, I haven't found much documentation around... basically what I need to do is translate the following code into "Magento 2":

$websiteId = Mage::app()->getWebsite()->getId();
$store = Mage::app()->getStore();

$customer = Mage::getModel("customer/customer");
$customer   ->setWebsiteId($websiteId)
            ->setStore($store)
            ->setFirstname('John')
            ->setLastname('Doe')
            ->setEmail('jd1@ex.com')
            ->setPassword('somepassword');

try{
    $customer->save();
}


texts: Add products to static block widget "Specific Products" list programmatically

texts:
I have a static block widget that is set to display only on specific products. I'm looking to programmatically add products to this list, but can't seem to find where the adminhtml module does this.

The name of the field in the fieldset is

widget_instance[0][all_products][entities]

but a search for this in the source code turns up nothing, so I think it is generated dynamically.

Can anyone point me in the right direction?


texts: Magento2 remove Assign a Customer Group column from action dropdown

texts: I want to remove Assign a Customer Group action from dropdown in customer grid but i cannot override it in custom module, can anyone let me know how to achieve it? i have tried by taking  node and removed that action from my custom module customer_listing.xml but it still displays that action.