texts: How can I see where my orders are coming from?

texts:
I am using m2e to sync my products with ebay and amazon I also have 3 store fronts...

All going well however I can't see where my orders are coming from whether it was ebay or amazon or direct...

How can I access this information? Would be good to see statistics on where all orders are coming from right?

I can't find it on the dashboard, I've had a google and nothing there either!

What am I missing?

Thanks for your time!


texts: What methods to replace in helper for Compare Products

texts:
I am trying to replace the helper that provides the compare box with the list of products added to it. My helper is going to get the product ids from a cookie instead of from Magentos session.

My own class in app/code/local/Mynamespace/Mymodule/Helper/Data.php extends  Mage_Core_Helper_Abstract.

When looking at list.phtml and sidebar.phtml in app/design/frontend/base/default/template/catalog/product/compare/ they seem to be calling different methods when getting the compare products collection. sidebar.phtml seems to be calling Mage_Catalog_Block_Product_Compare_Sidebar->helper('catalog/product_compare')->getItemCollection() and list.phtml seems to be calling Mage_Catalog_Block_Product_Compare_List->getItems().

What method(s) do I need to be replacing and in what classes are they present?


texts: Magento 2: Want to add versioning in style.css

texts: I want to add style.css?v=1.1 but when i add these version it call at the end of all other css files which distort website design. so what should i do?


texts: Which CSV-file to edit for correct translation for item TAX

texts:
I'm changing Magento invoice (translation & coloring) and everything went well
i.e. Mage_tax.csv contains 'Grand Total (Incl. Tax)' and I can translate it into Ducth. But I can locate the correct file which contains the word TAX. I found severall and I've translated it but it didn't show up in the invoice. Can somebody please point me to the rifght file to edit?


texts: Magento 2 CLI doesn't work and frontend give error 500

texts:
suddenly my magento admin and frontend give me error 500. when I check using Putty, the command didn't return anything.

as I remember, I didn't do anything for a while.
already tried to set file perms 755 for d and 644 for f, didn't work.
any solution? I'm very new to magento by the way. Magento CE 2.0.4


texts: Frontend Links are not working properly - M2

texts:
I have issue in website frontend links, When i am opening any URL, that is considering as base url. For example
My base url is www.xyz.com and categories url are green and red, both are parent categories..
now when i click on green category then url is fine like
www.xyz.com/green
and after when i click on red category then url is coming wrong like this.
www.xyz.com/green/red
but actual URL should be like this
www.xyz.com/red
For more understanding: After open any category if i'll click on any other page/category then that page/category slug should come after current url not after base url.
Kindly help me, how to I can resolve this issue ?
Thanks & Regards


texts:
is there any way for redirecting magento home page on a external link using magento admin url rewrite functionality. What I tried so far you can see in picture.

Update:- My question was never related to what are the other option to do this. My question was related to Magento url rewrite like home page redirection to external website is possible or not.


texts: Difference between class constant and class static variable with array as a value in php7?

texts:
Example:

class Test
    {
        const URLS = [
            'http://example.com/',
            'http://example1.com/'
        ];

        public static $urls = [
            'http://example.com/',
            'http://example1.com/'
        ];
    }

Whats difference in the above $urls and URLS w.r.t PHP7?


texts: Magento2 : how to use phtml jquery functions and vars from another phtml jquery script

texts:
I have created a new page containing several blocks :

Simplified Block 1 phtml :

<form id="form" class="form " name="form">

        <select class="selector" name="yesno" id="input-yesno">
            <option value="yes">Yes</option>
            <option value="no" selected="selected">No</option>
        </select>

</form>

simplified block 2 phtml:

I would like to be able to call the updateViewer function from doajax() and that updateViewer() access var DATA.

How can I do that?

Thank you for your help,


texts: How do i use a different header for each page

texts:
I'm new to Magento i have a bit of a problem i have 4 pages e.g home about etc... all these pages use the same header, i have created another header and updated in the page.xml file, from what i gathered the header and all the other stuff are being called from 1column.phtml. How do i do this so when you click a different page it can change header.

basically i want this code underneath to change when a different page is loaded.

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

to

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

this is the part of the page.xml file which i have modified.

 <block type="page/html_header" name="header" as="header">
            <block type="page/template_links" name="top.links" as="topLinks"/>
            <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
            <block type="core/text_list" name="top.menu" as="topMenu" translate="label">
                Navigation Bar
                <block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
            </block>
            <block type="page/html_wrapper" name="top.container" as="topContainer" translate="label">
                Page Header
                <action method="setElementClass"><value>top-container</value></action>
            </block>
            <block type="page/html_welcome" name="welcome" as="welcome"/>
        </block>

                    <block type="page/html_header" name="header-about" as="header-about">
            <block type="page/template_links" name="top.links" as="topLinks"/>
            <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
            <block type="core/text_list" name="top.menu" as="topMenu" translate="label">
                Navigation Bar
                <block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
            </block>
            <block type="page/html_wrapper" name="top.container" as="topContainer" translate="label">
                Page Header
                <action method="setElementClass"><value>top-container</value></action>
            </block>
            <block type="page/html_welcome" name="welcome" as="welcome"/>
        </block>


texts: Magento ver. 1.9.3.2 - Order Emails Are Not Sending

texts:
I noticed my email queue is stuck.

There are 2 tables in the database core_email_queue and core_email_recipients.

core_email_queue contains all the emails to be sent.
core_email_recipients contains who to send those emails to.

I am wondering how i can resolve this ?  Also just 3 days before I was changing my host, and all my customers received order confirmation.

Please suggest, should i manually clear all dates from "core_email_queue" ?

Also can i also delete all cleared all data from core_email_recipients?

I'd be grateful if you can share your views or solution for my issue.

Thank you


texts:
I am trying to install site offline which is currently online.

But admin panel coming without css and js.

Any help.

In chrome console I got this

Resource interpreted as Stylesheet but transferred with MIME type text/html: "https://localhost/venky/admin/".
localhost/:7 Resource interpreted as Stylesheet but transferred with MIME type text/html: "https://localhost/venky/admin/".
(index):1Uncaught SyntaxError: Unexpected token <
(index):1Uncaught SyntaxError: Unexpected token <
(index):1 Uncaught SyntaxError: Unexpected token <
(index):1 Uncaught SyntaxError: Unexpected token <
(index):1 Uncaught SyntaxError: Unexpected token <
(index):45 Uncaught ReferenceError: varienForm is not defined(anonymous function) @ (index):45

I tried 'view page source'

I got code

When I click on css or js links they just reload the page.

In firefox I got this console

This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.[Learn More] localhost
The stylesheet https://localhost/venky/admin/ was not loaded because its MIME type, "text/html", is not "text/css".


texts:
I have a Magento 2.2.1 application. I want to show the product attributes(Size, Color and Brand) below the Product Price for Simple Products. I currently shows at More Information for Simple Products, and it also shows at the desired location for Configured Products, how do i move it below the Product Price or Before the Add to Cart Button for just Simple Products.

How do I show the attributes(Color, Size or Brand) on the Products Page two?


texts: Override order item view phtml in Admin Section

texts:
I need to rewrite the code for sales/order item view in Admin which is located in here:

app/design/adminhtml/default/default/template/sales/items/column/name.phtml

i need to completely rewrite the phtml code, is there a way to this?

what i've done so far:

phtml location:

app/design/adminhtml/default/default/template/namespace/module/name.phtml

layout location:

app/design/adminhtml/default/default/layout/namespace/module/module.xml

layout code:

<?xml version="1.0" ?>
<layout>
  <adminhtml_sales_order_view>
      <reference name="order_items">
          <action method="addColumnRender">
              <column>name</column>
              <block>adminhtml/sales_items_column_name</block>
              <template>namespace/module/name.phtml</template>
          </action>
          <action method="addColumnRender">
              <column>name</column>
              <block>adminhtml/sales_items_column_name_grouped</block>
              <template>namespace/module/name.phtml</template>
              <type>grouped</type>
          </action>
      </reference>
  </adminhtml_sales_order_view>
</layout>


texts: multi store view sitemap.xml url rewrite

texts:
I have magento multi store view installation with structure like this:

example.com/it
example.com/fr
example.com/de

I wan't to configure sitemap.xml for every store view. Sitemap.xml files are generated in

example.com/sitemaps/it
example.com/sitemaps/fr
example.com/sitemaps/de

maps, which I did created manually.

Now I wan't to have sitemap.xml files accessible (for google webmaster tools) like this:

example.com/it/sitemap.xml
example.com/fr/sitemap.xml
example.com/de/sitemap.xml

Any suggestions hot to achieve this? Or maybe some better approach for my problem?

Thanks.


texts: Magento 2 - amounts are not rounded in sales_order_payment table

texts:
I have a payment method, which at the time of doing the place order, is saved in the table sales_order_payment the amounts wrong. I attach an image.

The last 4 decimals of the amount_paid field, is not the same as base_amount_ordered

In order to save the order, I get this: $ order-> getGrandTotal () = 31.0755 when it should be 31.0800

I have tried to modify it in this way:

1)

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$quoteFactory = $objectManager->create('\Magento\Quote\Model\QuoteFactory');
$quote = $quoteFactory->create()->load($order->getQuoteId());

$order->setBaseGrandTotal(31.0800);
$order->setGrandTotal(31.0800);

2)

$order->setSubtotal(31.0800)
       ->setBaseSubtotal(31.0800)
       ->setGrandTotal(31.0800)
       ->setBaseGrandTotal(31.0800);
$quote->setSubtotal(31.0800)
        ->setBaseSubtotal(31.0800)
        ->setGrandTotal(31.0800)
        ->setBaseGrandTotal(31.0800);
$quote->save();
$quote->collectTotals()->save();

3)

$this->_checkoutSession->getQuote()->setSubtotal(31.0800);
$this->_checkoutSession->getQuote()->setBaseSubtotal(31.0800);
$this->_checkoutSession->getQuote()->setGrandTotal(31.0800);
$this->_checkoutSession->getQuote()->setBaseGrandTotal(31.0800);
$quote->save($quote->collectTotals());
$this->_checkoutSession->getQuote()->collectTotals()->save();

but in no way I have managed to set the correct value, can you give me an idea or help me in how can I do ?


texts:
I have manage to retrieve the value for an attribute relative to a particular product

 $store_id = Mage::app()->getStore()->getStoreId();
 $attribute_code = 'code';
 $value =  Mage::getResourceModel('catalog/product')
        ->getAttributeRawValue($prod_id, $attribute_code, $store_id);

What I miss here is the label associated to the attribute value.

How can I get it, without load the full product object ?


texts:
we have installed several extensions and bits and pieces of code to optimize Magento htaccess. Now I see the code has gotte quite long and I am not sure this is all conflicting or supporting ...

So this is what we have so far. What are the best settings?

############################################
## http://www.magentocommerce.com/wiki/groups/227/allowed_memory_size_exhausted
## Increase memory limit according to Magento
php_value memory_limit 64M
php_value max_execution_time 18000

############################################
## enable resulting html compression of php output
php_flag zlib.output_compression on

############################################
## enable apache served files compression (not php, html/images/css/js
## http://developer.yahoo.com/performance/rules.html#gzip

<IfModule mod_deflate.c>
# Insert filter on all content
SetOutputFilter DEFLATE
# Insert filter on selected content types only
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</IfModule>

############################################
## Enable keep-alives to reduce # http requests
## http://yoast.com/magento-performance-hosting/

<ifModule mod_headers.c>
    Header set Connection keep-alive
</ifModule>

############################################
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 14 days"
</IfModule>

and as I understand the next improvement is moving all these rules in htaccess to the virtualhost configuration directives mentioned here:

http://markshust.com/2012/01/11/removing-htaccess-files-magento-and-moving-contents-apache-configuration


texts: Cron not working and Cron log showing Fatal error: Allowed memory size of 33554432 bytes exhausted

texts:
I have getting this error in magento 2.

  Fatal error: Allowed memory size of 33554432 bytes exhausted (tried
  to allocate 28672 bytes) in

/home/www/public_html/website.com/vendor/composer/composer/src/Composer/Package/Dumper/ArrayDumper.php

  on line 89

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 425984 bytes) in

/home/www/public_html/website.com/vendor/composer/composer/src/Composer/Json/JsonFile.php

  on line 93

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 425984 bytes) in

  /home/www/public_html/website.com/vendor/composer/composer/src/Composer/Json/JsonFile.php
  on line 93

Please help me to solve this issue. thanks in advance.


texts: Managing large number of customer groups and Products

texts:
I am working on a store where i need to import products on a daily basis and the number of products may go up to more then 1,90,000. The Store discount heavily depends on the customer groups which are around 8800 including the core ones in number.

The Products are imported seamlessly, but when trying to reindex the Catalog Product Price index, it inserts 130 million records in catalog_product_index_price_final_idx table which takes huge time to complete.

Also the customer groups does not have any alternative. because catalog price rules, and tier prices depend heavily on them.

130 million records are a very huge amount of data on a mysql installations.

Note We have 15000 products as of now, but it is expected to increase to 1,90,000. so the number of records in catalog_product_index_price_final_idx table may got up to 1.65 billion records.

Note: The infrastructure of the server is optimized for high performance, with SSD for storage and MySQL configured using percona db.


texts: How to import products from Woocommerce to Magento 1.9

texts: I want to import products from Woocommerce to Magento in my local setup.Is there any extension or Tutorial available?..Please help me.


texts: How to get customer custom dropdown value with text in magento2?

texts:
I have created customer custom attribute 'segments' with the below options:

Options: SME, Reseller, Others

I want get segments value with text based on the customer id in magento2.

How to achieve this.

Thanks in Advance :-)


texts:
I'm essentially trying to create a multi-pack listing where the customer can choose their colour options of up to 4 items and assign a discount using a cart price rule.
I've set up the cart price rule so that when a customer has 2 of the simple products in their basket they receive 5% off, have 3 in the basket receive 10% off and have 4 in the basket receive 15% off.
Now, these discounts work fine on the single products but when trying to have them work them for my bundled item I would expect that when a customer adds 1 of each colour the discount would be applied however it seems as though the system is treating the bundle product as a single item so in order for the discount to apply I have to add 2 more bundles.
Anyone had this same issue in the past and found a way around it?


texts: Magento 1.9.0. getimagesize(): Read error!

texts:
Does anybody know:

  2019-02-21T19:45:40+00:00 ERR (3): Notice: getimagesize(): Read error!
  in /pub/app/code/core/Mage/Catalog/Model/Product/Image.php on line 221
  2019-02-21T19:45:40+00:00 ERR (3): Notice: getimagesize(): Read error!
  in /pub/lib/Varien/Image/Adapter/Abstract.php on line 87
  2019-02-21T19:45:40+00:00 ERR (3): Notice: getimagesize(): Read error!
  in /pub/lib/Varien/Image/Adapter/Gd2.php on line 91

and

  2019-02-21T19:39:01+00:00 ERR (3): Warning: imagecreatetruecolor()
  expects parameter 1 to be long, string given  in
  /pub/lib/Varien/Image/Adapter/Gd2.php on line 402
  2019-02-21T19:39:01+00:00 ERR (3): Warning: imagecolorallocate()
  expects parameter 1 to be resource, null given  in
  /pub/lib/Varien/Image/Adapter/Gd2.php on line 289
  2019-02-21T19:39:01+00:00 ERR (3): Warning: imagefill() expects
  parameter 1 to be resource, null given  in
  /pub/lib/Varien/Image/Adapter/Gd2.php on line 290

Thanks in advance !


texts:
I am trying to add refer a friend link in the customer account page.
I followed these links.

Add new link to customer account page
Magento 2 Custom Tab on Customer Account

It doesnt work for me
customer_account.xml
 <referenceBlock name="customer_account_navigation">
    <block class="Magento\Framework\View\Element\Html\Link\Current" name="refer-a-friend">
      <arguments>
       <argument name="path" xsi:type="string">customer/refer</argument>
       <argument name="label" xsi:type="string">Refer a Friend</argument>
      </arguments>
    </block>
 </referenceBlock>

routes.xml in app/code/YX/Customer/etc/frontend/routes.xml
<?xml version="1.0" ?>
 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
   <router id="standard">
     <route frontName="yx_customer" id="yx_customer">
         <module name="YX_Customer"/>
     </route>
  </router>
</config>

customer_refer_index.xml in app/code/Vendor/Module/view/frontend/layout/customer_refer_index.xml
 <?xml version="1.0" ?>
  <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  <update handle="customer_account"/>
   <body>
     <referenceContainer name="content">
         <block class="YX\Customer\Block\Friend"
               name="referFriend"
              template="Magento_Customer::account/refer_a_friend.phtml"
        />
    </referenceContainer>
 </body>

Block file in app/code/YX/Customer/Block/Friend
class Friend extends Template
 {

   public function __construct(Context $context)
    {
      parent::__construct($context);
    }
 }

Controller app/code/YX/Customer/Controller/Refer/Index.php
class Index extends \Magento\Framework\App\Action\Action
 {

   protected $resultPageFactory;

   public function __construct(
      \Magento\Framework\App\Action\Context $context,
      \Magento\Framework\View\Result\PageFactory $resultPageFactory
  ) {
      $this->resultPageFactory = $resultPageFactory;
      parent::__construct($context);
   }

   public function execute()
   {
      return $this->resultPageFactory->create();
   }
 }

refer-a-friend.phtml
<div > Hello this is my template. I can do anything inside this file.</div>

I have no idea what I am doing wrong.


texts: I'm trying to get a very basic understanding of when I should use a Page vs. Static Block to create content for the site. Can someone provide examples of where they might be used? Or scenarios where you use the two together?


texts: Email sending stopped after installing SUPEE 8788, 9767, 9652

texts:
Recently i install some SUPEE as described above,
After installing those magento can't able to send email to customers.
But server sending normal mail with simple PHP mail.

Anyone facing same issue ??
Please help me out.
My magento version is 1.9.2.4 CE.


texts:
Summary

I have been working on connecting Magento 2 to Shipworks (3rd party shipping software) via their module and Rest API. Both attempts have returned an error saying

  The remote server returned an error: (401) Unauthorized.

I've worked with the Shipworks support and concluded that the issue is not with their software but with my setup.
Additionally I have PayPal Pro setup to allow me to take Debit/Credit card on the website without opening their virtual terminal and it is also returning an unauthorized message.

All the users currently have full admin privileges. The server has the default suggested permissions 755-folders 644-files. There are no server errors or exception or system log errors.
When the error was traced in Shipworks it returned

  {"message":"The consumer isn't authorized to access
  %resources.","parameters":{"resources":"Magento_Sales::actions_view"},"trace":"#0
  /home/buyglasswoodstov/public_html/vendor/magento/module-webapi/Controller/Rest/RequestValidator.php(68):

What could be causing these authentication issues? I've been researching and working on this issue for 3 weeks.

Preconditions

Magento 2.3.1, Php 7.2


texts: Magento 2.3 same product with different custom options is not showing separate in the cart?

texts:
I am adding the same product in the cart with different custom options but the product is merging with the first one and item quantity increased in the cart only.
I want to show separate same products if they have different custom options. Increased quantity if they have same custom options.
How can I fix the issue?


texts: Can a Magento 2 Theme Modify the Layout?

texts:
In Magento 1, themes had a special file named local.xml.  Through this file, a Magento 1 theme could directly modify the layout without needing to replace a specific layout update XML file.

Does Magento 2 have a similar mechanism?  I know a Magento 2 theme can replace a layout handle XML file from a module -- what I want to know is does Magento 2 have a way for a theme to add layout rules that are specific to that theme.

If not, are there classes/methods provided that would allow a module developer to only add certain layout rules when a certain theme is added?


texts: I would like to disable the product only from search. The product should be enabled and can be seen in category page and everywhere except in search page.


texts: How do I add products to the page.phtml?

texts: I have an array with the product ID in my block, how do I get the product list on the page like this:


texts: Create/Enable Option For Different Store View

texts:
I have an extension that practically when I change store view I no longer have the possibility to change the text or options.

Look at the photo.

in the main website there are all the options, but when I move to a different store view, in the case of the "English" photo the options are no longer available, is there a way to enable them in all the store views? Thank you!


texts: Set up Magento 2 sites on the same server with another Magento 1 site

texts:
I already have a Magento 1 site but now I want to set up an additional Magento 2 site on the same server with that Magento 1 site.

Is it possible to do this thing?


texts:
I have a very strange problem with my magento production environment. When I want to edit, add or remove a CMS page. The system gives me the following error:

  A Page with the same URL already exists

Even when I want to edit a page to add new content.


texts: Magento 2 Checkout page shipping address and billing address make to radio button

texts:
In onestepcheckout page i want to create one one address form select if shipping address and billing address. So i want make to radio button.

Please  help me.
Thanks.


texts: Show price filter in sidebar of product page

texts:
I want to show price filter in sidebar of product page. I set price attribute to show in front end but nothing happen!!!

How can I show it in product page?


texts: Is it possible to change logo per category

texts: My website has four categories and I have four different color of website's logo. How can I load the different logo file per category(considering their sub and products)?


texts: Magento 2 - Drop down Customer select list

texts:
I need to grab a list with all customers in etc\adminhtml\system.xml, but I am not sure how.

I checked the solution here that refers to the categories, but both solutions show me a blank page (I don't have enough reputation to comment on these replies)


texts: WYSIWYG image not working on tab content page detail

texts:
I am having problem with the WYSIWYG editor. When I try to put image, and save it and check the site, its not working although the image is there on the editor.

Try to firebug it, this what I've found

<img alt="WD My Cloud" wdsfmycloud.jpg"}}"="" product_images="" wysiwyg="" src="{{media url=" title="WD My Cloud" style="float: right;">

How can I fix it?

Please help


texts: How to get the version of Magento via JavaScript?

texts: Is there a native way to get the version of the currently installed Magento via JavaScript?


texts: Add label for street and house number on address field in checkout Magento 2

texts:
I have the address field in Magento 2 Onepage Checkout changed to two lines.
By default only the first line of this group has a label ("address")
Now I want the first field to have the label "street" and the second field to have a label "house number"
I added a plugin via di.xml
    <type name="Magento\Checkout\Block\Checkout\LayoutProcessor">
        <plugin name="street_labels" type="Vendor\Module\Plugin\Block\LayoutProcessor" sortOrder="1"/>
    </type>

For first test I used this simple code which is based on a solution I found here:
namespace Vendor\Module\Plugin\Block;

class LayoutProcessor
{
    public function aroundProcess(
        \Magento\Checkout\Block\Checkout\LayoutProcessor $subject,
        \Closure $proceed,
        array $jsLayout
    )
    {
        $jsLayoutResult = $proceed($jsLayout);

        $shippingAddress = &$jsLayoutResult['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children'];

        unset($shippingAddress['street']['label']);

        // Shipping fields street labels
        $shippingAddress['street']['children']['0']['label'] = __('Street name');
        $shippingAddress['street']['children']['1']['label'] = __('House number');
        $shippingAddress['street']['children']['2']['label'] = __('Addition');

        return $jsLayoutResult;
    }
}

for my understanding, checking with the debugger, this is being called and changes the values as intended.
The only effect on the frontend however is, that the label gets removed, no new labels are being shown.
What am I missing?


texts: Correct event to get order information after successful order

texts: My requirement is to change order status when an order is placed successfully  in Magento 2  .what is the event can I use so that I can change order status ,I have tried sales_order_save_after event but it will triggers whenever an order is saved ,I can't use this event and my orders are placed through cron also I mean if I use checkout_submit_all_after event it will only triggers only from frontend .can I know what is the best event to do this job.please suggest me  .


texts: CMS not taking email while creating new customer

texts:
I am creating different clients on the CMS part of Magento 1.9

There is only 1 email address that is not recording, everytime I try to create a new client with the email address. It just goes back to the Manage Customers page, without throwing any error.

Is only one specific email address.

Should I just give it some time and come back later. Like I said it does not show any error message at all.

Any advise?


texts: installed project on local and have an error

texts:
I installed project on local , used dump in the database but I have an error

{"0":"The website with code base that was requested wasn't found. Verify the website and try again.","1":"<pre>#1 Magento\\Store\\Model\\StoreResolver\\Website->getDefaultStoreId() called at [vendor\/magento\/module-store\/App\/FrontController\/Plugin\/DefaultStore.php:70]\n#2 Magento\\Store\\App\\FrontController\\Plugin\\DefaultStore->beforeDispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:121]\n#3 Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#4 Magento\\Framework\\App\\FrontController\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php:26]\n#5 Magento\\Framework\\App\\FrontController\\Interceptor->dispatch() called at [vendor\/magento\/framework\/App\/Http.php:137]\n#6 Magento\\Framework\\App\\Http->launch() called at [generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php:24]\n#7 Magento\\Framework\\App\\Http\\Interceptor->launch() called at [vendor\/magento\/framework\/App\/Bootstrap.php:261]\n#8 Magento\\Framework\\App\\Bootstrap->run() called at [pub\/index.php:40]\n<\/pre>","url":"\/admin","script_name":"\/index.php"}

Tried :
dockergento composer dump-autoload

docker exec -it -u 0 hp_redis_1 bash

redis-cli flushall.
cleared cache and removed generated code but no success.

still an error .


texts: Magento Developer mode not working - still trying to load pub/static

texts:
Enabling developer mode in magento is giving some errors for me, it is still trying to load all my static content. Ive disabled the "sign static content" option.

Also, when I put my Magento environment in production mode, the fonts in my design/frontend/vendor/theme/web/fonts folder are not moved to the static content.

Any thoughts?


texts: Magento add tabs to custom module show content in left side

texts:
Like you can see in the picture, in my custom module I am trying to create edit action with tabs, but I cannot make it right.
Here is my code :

**Form : **

class .._Block_Adminhtml_Slide_Edit_Form
    extends Mage_Adminhtml_Block_Widget_Form
{

    protected function _prepareForm()
    {
        // instantiate a new form to display our brand for editing
        $form = new Varien_Data_Form(array(
            'id' => 'edit_form',
            'action' => $this->getUrl(
                '.._admin/slide/edit',
                array(
                    '_current' => true,
                    'continue' => 0,
                )
            ),
            'method' => 'post',
            'enctype' => 'multipart/form-data'
        ));
        $form->setUseContainer(true);
        $this->setForm($form);

        return parent::_prepareForm();
    }
}

and last one : form.php (inside Tab folder)

class Iwp_Slideshow_Block_Adminhtml_Slide_Edit_Tab_Form
    extends Mage_Adminhtml_Block_Widget_Form
{

    protected function _prepareForm()
{
    ... return $this;
}

Solved!

The problem was that I created the form twice, first in edit->form.php and second in edit->tab->form.php with the same id. So I had js error in the admin area.


texts: Shipment emails not being sent even though other emails are working

texts:
I'm running into an issue where Magento is not sending the shipment confirmation email after I enter the shipment for an order.  I've tried entering the shipment in the Admin page, and also entering the shipment through the API.  In both cases, the shipment confirmation email is not sent after the shipment is entered.  I do have
"Shipment" emails enabled under Stores > Configuration > Sales > Sales Emails.

If I go into the Admin page, go to Sales > Orders, pull up the shipment, and then click "Send Tracking Information", the email is sent.

When I place an order, the order confirmation email is sent correctly.

When I invoice the order, the invoice email is sent correctly.

Why are the shipment emails not being sent when a shipment is entered?


texts: Magento 2: Display list of specific categories on Home Page

texts:
I need to show 6 specific categories on my Magento home page. I have the  category ids with me. I want to display both the category image and name of that specific category. I have created a category.phtml and have the following code in this file.

<?php
  $categoryHelper = $this->helper('Magento\Catalog\Helper\Category');
  foreach($categoryHelper->getStoreCategories() as $category):
?>

    <a href="<?php echo $categoryHelper->getCategoryUrl($category) ?>">
      <?php echo $category->getName() ?>

<?php endforeach; ?>

And called this phtml in cms home page as:

{{block class="Magento\Framework\View\Element\Template" template="Vendor_Theme::category.phtml"}}

But it is showing only the root categories. Please help.


texts:
I see that a lot of the models in Magento 2 implement Magento\Framework\DataObject\IdentityInterface.
This interface has a single method called getIdentities
The implementations of the method usually return return [self::CACHE_TAG . '_' . $this->getId()];.

An example can be found here
What is this used for?


texts: I want to Layered navigation with following Result

texts:
I have used magento layered navigation but its to lazy work. when i selected any one attribute from layer its hide all other. and just display clear all link.

but i want to this type on result. display all attribute as it is.


texts: Layout handle sales_email_order_items seems to be not triggered in custom module

texts:
What I need to do is to change the template on block named "tax" of type "tax/sales_order_tax" on all places where it appears exclude the admin, using custom module. The problem is that I cant make it change the template for the email elsewhere it is changed as expected.

That is what I have at the moment done:

My module depends on the following modules not only for that reason but as it has more functionality in it. It is configured in the local code pool.

<depends>
    <Mage_Adminhtml/>
    <Mage_Catalog/>
    <Mage_Tax/>
    <Mage_Customer/>
    <Mage_Sales/>
</depends>

It has configured custom frontend layout file, with the following content:

<?xml version="1.0"?>
<layout version="0.1.0">
    <change_tax_template>
        <reference name="tax">
            <action method="setTemplate"><template>Company/Modifier/tax/order/tax.phtml</template></action>
        </reference>
    </change_tax_template>

    <sales_order_view>
        <update handle="change_tax_template"/>
    </sales_order_view>

    <sales_order_invoice>
        <update handle="change_tax_template"/>
    </sales_order_invoice>

    <sales_order_creditmemo>
        <update handle="change_tax_template"/>
    </sales_order_creditmemo>

    <sales_order_print>
        <update handle="change_tax_template"/>
    </sales_order_print>

    <sales_order_printinvoice>
        <update handle="change_tax_template"/>
    </sales_order_printinvoice>

    <sales_order_printcreditmemo>
        <update handle="change_tax_template"/>
    </sales_order_printcreditmemo>

    <sales_email_order_items>
        <update handle="change_tax_template"/>
    </sales_email_order_items>

    <sales_email_order_invoice_items>
        <update handle="change_tax_template"/>
    </sales_email_order_invoice_items>

    <sales_email_order_creditmemo_items>
        <update handle="change_tax_template"/>
    </sales_email_order_creditmemo_items>

    <sales_guest_view>
        <update handle="change_tax_template"/>
    </sales_guest_view>

    <sales_guest_invoice>
        <update handle="change_tax_template"/>
    </sales_guest_invoice>

    <sales_guest_creditmemo>
        <update handle="change_tax_template"/>
    </sales_guest_creditmemo>

    <sales_guest_print>
        <update handle="change_tax_template"/>
    </sales_guest_print>

    <sales_guest_printinvoice>
        <update handle="change_tax_template"/>
    </sales_guest_printinvoice>

    <sales_guest_printcreditmemo>
        <update handle="change_tax_template"/>
    </sales_guest_printcreditmemo>
</layout>

I will not post the configuration for this layout file as I know it is working because the template for the "tax" block is changed as it supposed everywhere except in the emails and exactly for the new order email for sure.

I cant figure out why the template is not changing for the new order template but is for the whole frontend of the website.

If you need more information about the configurations or code of the module to figure out what may be wrong, please ask.


texts:
I have moved my magento2 website from apache server to ngix server and cleared the cache and recompile but it's not loading files correctly.

website is completely falling apart. Below is the screenshot of my homepage.

see image

How to resolve this issue ?


texts:
I have this problem,by migrating magento 1 to magento 2.

What i'm doing wrong?

php bin/magento migrate:data --reset vendor/magento/data-migration-tool/etc/ce-to-ce/1.9.3.1/config.xml
Reset the current position of migration to start from the beginning

  [Zend_Db_Statement_Exception]
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'angoloj4_amboim.eav_attribute_set' doesn't exist, query was: SELECT COUNT(*) FROM `eav_attribute_set`

  [PDOException]
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'angoloj4_amboim.eav_attribute_set' doesn't exist

migrate:data [-r|--reset] config


texts: Create Multi Website/Stores in magento 2

texts: Can you please provide the source/procedures to create a multi websites in magento 2. I have a google it regarding this,but none of the source/procedure didn't provide the path to create multi website/store.


texts:
i have created

  role as vendor with product and sales grid access
  custom product attributes as vendor_id and assign a particular vendor to products using this
  custom order attributes as vendor_id (i have spit the order based on vendor and assign vendor_id using custom order attributes)

when any user login as vendor i want to show only associated products and order in grids, is thare any conman class or anything from where i can filter for this.


texts: how to get multiple categories and subcategories for a product in a custom script in magento

texts:
i'm trying to build a feed generator based on this post https://stackoverflow.com/questions/17956930/magento-product-data-extraction-for-product-feed. for the time beeing my problem is with the categories and subcategories of the product.
my code:

<?php
error_reporting(E_ALL | E_STRICT);
ini_set("display_errors", 1);

define('SAVE_FEED_LOCATION','feed/compari.csv');

//$objDateTime = new DateTime('NOW');

require 'app/Mage.php';
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);

$products = Mage::getModel('catalog/product')->getCollection();
$products->addAttributeToFilter('status', 1); //1 is set to select product in stock
$products->addAttributeToFilter('visibility', 4); //4 is set to select active products
$products->addAttributeToSelect('*');
$prodIds=$products->getAllIds();

$product = Mage::getModel('catalog/product');
$counter = 0;
$feedaray=[];

foreach($prodIds as $productId) {
if (++$counter < 500000){

    $product->load($productId);

    $title_temp = $product->getName();
    if (strlen($title_temp) > 255){
        $title_temp = str_replace("Supply", "", $title_temp);
        $title_temp = str_replace("  ", " ", $title_temp);
    } //$title_temp will hold the product name

    $maincat = $subcats = '';
    $categoryCollection = $product->getCategoryCollection();

if i do a var_dump($title_temp.' categorie: '.$categorie_id);

    foreach($categoryCollection as $cat){

        $categorie_id=$cat->getData()['entity_id'];
        $_cat_ac = Mage::getModel('catalog/category')->load($categorie_id);

        if($subcats_ac == ''){
            $maincat_ac = $subcats_ac = $_cat_ac->getName();
        }else {
            $subcats_ac .= ">".$_cat_ac->getName();
        }

        echo '<pre>';
        var_dump($title_temp.' categorie: '.$categorie_id);
        echo '</pre>';
    }

i'm geting the corect result:

string(59) "product 1 categorie: 3" - prime    category
string(60) "product 1 categorie: 37" - sub category
string(45) "product 2 categorie: 4" - prime category
string(46) "product 2 categorie: 21" - sub category

further i need to prepare the data for exporting to csv, and i do it like this:

        $stock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($productId);

    $product_data = array();
    $product_data['ProductID'] = $productId;
    $product_data['ProductName'] = substr(iconv("UTF-8","UTF-8//IGNORE",$title_temp), 0, 255);
    $product_data['SKUnumber'] = $product->getSku();
    $product_data['PrimaryCategory'] = $maincat_ac; //this is spitting same data for all products
    $product_data['SecondaryCategory'] = $subcats_ac;  //this is spitting same data for all products
    $product_data['ProductURL'] = $StoreURL.$product->getUrlPath(); //$StroeURL is set as a string
    $product_data['ProductImageURL'] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'catalog/product'.$product->getImage();
    $product_data['ShortProductDescription'] = substr(iconv("UTF-8","UTF-8//IGNORE",$product->getDescription()), 0, 80)."...";
    $product_data['LongProductDescription'] = substr(iconv("UTF-8","UTF-8//IGNORE",$product->getDescription()), 0, 2000);
    $product_data['SalePrice'] = round($product->getFinalPrice(),2);
    $product_data['RetailPrice'] = round($product->getPrice(),2);
    $product_data['ManufacturerName'] =$product->getAttributeText('manufacturer');
    $product_data['Quantity'] = round($stock->getQty(),2);
    $product_data['Currency'] = Mage::app()->getStore()->getCurrentCurrencyCode();

    foreach($product_data as $k=>$val){
        $bad=array('"',"\r\n","\n","\r","\t");
        $good=array(""," "," "," ","");
        $product_data[$k] = str_replace($bad,$good,$val);
    }

    $feedaray[]=$product_data;
    echo $counter  . " ";
 }
}
$handle=fopen(SAVE_FEED_LOCATION, 'w');
foreach ($feedaray as $fields) {
   fputcsv($handle, $fields);
}
fclose($handle);
?>

the problem is with the maincat_ac and subcat_ac that are not displaing corect data.


texts: Bulk apply store categories to a range of products

texts:
I am new to Magento and I deleted all the store categories the previous store owner had put in and I created all new store categories that I preferred.  I didn't realise this would make all my products invisible until I assigned them categories!

Is there a way I can apply selected store categories to a range of products?

Say for example I have a range of products:

Holden Commodore potato peeler red
Holden Commodore potato peeler blue
Holden Commodore potato peeler orange

And I wanted to put all of them in parent category Holden, sub-category peeler.  Is there a way I can select all my Holden Commodore potato peelers and add them to these categories?

I was hoping to avoid having to add them to categories one by one as we have over 7000 items in our Magento store...

Thanks!


texts: How to hide specific attribute in product edit form general tabs

texts: I need to hide a product attribute in the General tab while editing the product. How can I do it?


texts:
How to get product grid in my custom module using grid serialization in magento 2??

How to do Grid serialization in magento 2


texts: Magento 2 admin grid join query not working with date filter

texts:
I have joined two tables like below in my ResourceModel Collection file.
 protected function _initSelect() {
        $this->addFilterToMap('entity_id', 'main_table.entity_id');
        $this->addFilterToMap('increment_id', 'main_table.entity_id');
        $this->addFilterToMap('created_at', 'main_table.entity_id');
        parent::_initSelect();
        $this->getSelect()->joinLeft(
            ['secondTable' => $this->getTable('sales_order_grid')], //2nd table name by which you want to join mail table
            'main_table.entity_id = secondTable.entity_id', // common column which available in both table
            '*' // '*' define that you want all column of 2nd table. if you want some particular column then you can define as ['column1','column2']
        );
    }

Where my mainTable is sales_order
I have called created date in ui_component like below.
    <column name="created_at" class="Magento\Ui\Component\Listing\Columns\Date" >
               <argument name="data" xsi:type="array">
                   <item name="config" xsi:type="array">
                       <item name="filter" xsi:type="string">dateRange</item>
                       <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/date</item>
                       <item name="dataType" xsi:type="string">date</item>
                       <item name="label" xsi:type="string" translate="true">Order Date</item>
                       <!-- <item name="dateFormat" xsi:type="string">MMM dd, YYYY</item> //set date format as per your requirement -->
                   </item>
               </argument>
     </column>

But if I filter by the date the results are wrong. I'm searching for the year 2020 it is showing for 2016.


texts: Magento 2: How to add multiple locally stored fonts?

texts:
I want add one locally stored font in my custom theme folder. I followed the instructions here:

http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-topics/using-fonts.html

But the following code makes my store loads with no styles at all:

.lib-font-face(
    @family-name:'myfontname',
    @font-path: '@{baseDir}fonts/myfontname',
    @font-weight: normal,
    @font-style: normal
)

Why does this code break all styles?
And if this code is used to add one custom font, how to add two or more fonts locally stored?


texts: Hi, I am new to magento, I want to generate a Coupon, which would work only if the cart amount is say 200 bucks

texts: I have tried setting the rule but did'nt get to work. The condition that I want is , cart amount should me minimum of 2000 INR.


texts:
My site there is display price like 20,00 CA$ but i want like this CA$ 20,00

i find the code on

  vendor/magento/module-catalog/view/base/templates/product/price/amount/default.phtml

can any buddy suggest which code i change it for

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

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

    <?php if ($block->hasAdjustmentsHtml()): ?>
        <?= $block->getAdjustmentsHtml() ?>
    <?php endif; ?>
    <?php if ($block->getSchema()): ?>
        <meta itemprop="price" content="<?= /* @escapeNotVerified */ $block->getDisplayValue() ?>" />
        <meta itemprop="priceCurrency" content="<?= /* @escapeNotVerified */ $block->getDisplayCurrencyCode() ?>" />

    <?php endif; ?>


texts:
By default the limiter's select options are 5 10 15 25. How I can change them to like 3 9 15 24 for all categories.

Any hint is greatly appreciated.


texts:
Like Laravel and Yii, do Magento 2 has CRUD generator?

There would a lot of efforts save if Magento 2 has it's own CRUD generator, so that everytime I will create a new module related to a table I don't want to create all the files manually, there should be a crud generator.


texts:
We have a Magento installation that has 2 websites (IDs 1 & 2 in core_website), each has 1 store (IDs 1 & 2 in core_store), with the ID's of the stores matching the ID of the website it's associated with. I recently noticed that we have occurrences of customers who's website_id doesn't match their store_id in the customer_entity table. It's only ~0.05% of customers, but I can't work out how this could be possible. If somebody is registering from Store 2 this should surely necessitate that they are registering from Website 2.

Can anybody shed some light on how this might occur and perhaps more importantly whether it can lead to any problems?


texts: Getting this ERROR, PHP V 7.3 and Magento ver. 2.3.5-p1

texts:
1 exception(s):
Exception #0 (Exception): Deprecated Functionality: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in E:\xampp\htdocs\magento\vendor\magento\framework\View\Element\Template\File\Validator.php on line 141
Exception #0 (Exception): Deprecated Functionality: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in E:\xampp\htdocs\magento\vendor\magento\framework\View\Element\Template\File\Validator.php on line 141
#1 strpos('E:\xampp\htdocs\...', false) called at [vendor\magento\framework\View\Element\Template\File\Validator.php:141]
#2 Magento\Framework\View\Element\Template\File\Validator->isPathInDirectories('E:/xampp/htdocs/...', array('E:/xampp/htdocs/...')) called at [vendor\magento\framework\View\Element\Template\File\Validator.php:117]
#3 Magento\Framework\View\Element\Template\File\Validator->isValid('E:/xampp/htdocs/...') called at [vendor\magento\framework\View\Element\Template.php:268]
#4 Magento\Framework\View\Element\Template->fetchView('E:/xampp/htdocs/...') called at [vendor\magento\framework\View\Element\Template.php:301]
#5 Magento\Framework\View\Element\Template->_toHtml() called at [vendor\magento\framework\View\Element\AbstractBlock.php:1100]
#6 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor\magento\framework\View\Element\AbstractBlock.php:1104]
#7 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor\magento\framework\View\Element\AbstractBlock.php:674]
#8 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor\magento\framework\View\Result\Page.php:249]
#9 Magento\Framework\View\Result\Page->render(&Magento\Framework\App\Response\Http\Interceptor#0000000065a055b9000000007e9c8a07#) called at [vendor\magento\framework\View\Result\Layout.php:171]
#10 Magento\Framework\View\Result\Layout->renderResult(&Magento\Framework\App\Response\Http\Interceptor#0000000065a055b9000000007e9c8a07#) called at [vendor\magento\framework\Interception\Interceptor.php:58]
#11 Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', array(&Magento\Framework\App\Response\Http\Interceptor#0000000065a055b9000000007e9c8a07#)) called at [vendor\magento\framework\Interception\Interceptor.php:138]
#12 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Response\Http\Interceptor#0000000065a055b9000000007e9c8a07#) called at [vendor\magento\framework\Interception\Interceptor.php:153]
#13 Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', array(&Magento\Framework\App\Response\Http\Interceptor#0000000065a055b9000000007e9c8a07#), array(array('result-messages', 'result-builtin-c...', 'result-varnish-c...'))) called at [generated\code\Magento\Framework\View\Result\Page\Interceptor.php:130]
#14 Magento\Framework\View\Result\Page\Interceptor->renderResult(&Magento\Framework\App\Response\Http\Interceptor#0000000065a055b9000000007e9c8a07#) called at [vendor\magento\framework\App\Http.php:120]
#15 Magento\Framework\App\Http->launch() called at [generated\code\Magento\Framework\App\Http\Interceptor.php:24]
#16 Magento\Framework\App\Http\Interceptor->launch() called at [vendor\magento\framework\App\Bootstrap.php:261]
#17 Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#0000000065a055a2000000007e9c8a07#) called at [index.php:39]


texts:
How to get product based on conditions on catalog rule in magento2?

By product model products are received but how to apply filter to get only those product based on conditions.

Any help will be appreciated.

Thanks,


texts: Magento 2.3.5-p1 inventory changes only after shipping not with sale transaction

texts:
we upgraded our test system from 2.3.4 to 2.3.5-p1 on PHP 7.3.
we use the out of the box inventory function with simple products. After the successful sale transaction the inventory count remains unchanged and is only reduced after we "ship" per backend admin.
This is wrong/buggy from my perspective as it opens the door to sell more than you have in stock and then be unable to satisfy customers.
Any idea how to fix that?
many thanks
JR


texts:
I'm currently running Magento 1.7 with Varnish Turpentine.

I have noticed a strange behavior on cached content - Varnish returns same content for mobile and tablet(iPad), although in Magento back-end I have set design exceptions for matched expressions (iPad should use default, mobiles use mobi) and it works like a charm until varnish default.vcl is applied.

After checking around I found out that varnish use device detection and normalizes user-agent as per following:

if (req.http.User-Agent ~ "iP(?:hone|ad|od)|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera (?:Mini|Mobi)") {
set req.http.X-Normalized-User-Agent = "mobile";

Well, fair enough... clearly mobiles and tablets will return same cache hit as both are normalized as mobile ... lets separate iPad I though

if (req.http.User-Agent ~ "iP(?:hone|od)|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera (?:Mini|Mobi)") {
set req.http.X-Normalized-User-Agent = "mobile";
else if (req.http.User-Agent ~ "iPad") {
set req.http.X-Normalized-User-Agent = "ipad";

A big surprise after this change was that varnish still returns same cached content.

I have tried to use different varnish device-detects but all unfortunately failed.

Have anybody has a smallest clue what could be the issue?


texts: Magento marketplace extension submission issue

texts:
Magento marketplace is rejecting my module giving the reason but I do not know how to overcome this issue I tested EQP everything but did not find the error please suggest if anyone has solved this.

Issue :-


texts:
I'm creating configurable product, but when i create the product i have 2 simple product to associate.

I make this code to create the product(resume):

$mprodc = Mage::getModel('catalog/product');
$mprodc->setTypeId(Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE);
//setting other attributes(not improtant)
...
//here's the important part
$mprodc->setConfigurableProductsData($simple);
$mprodc->setConfigurableAttributesData($attributeData);
$mprodc->setCanSaveConfigurableAttributes(true);
$mprodc->save();

Ok its work like a charm, on $simple and $attributeData i should pass the apropriate formated array to works but i figure it without trouble.
Until this part i create the configurable product associated with other 2 simple product and set the attribute and price difference(if it have) properly.

The problem is when i need to add one or more simple product on this already created product configurable.
I can't use the same code that i used to create the product (don't know why but doens't work)

So i'm using this code:

$sku = 123; //sku from the simple product i'll associate
$config = $collection->getFirstItem();
$ct = Mage::getResourceSingleton('catalog/product_type_configurable');
$idsSimple = $ct->getChildrenIds($config->getId());//get the id's from the already associated products
$productChild = Mage::getModel('catalog/product')->loadByAttribute('sku',$sku);
$idf = $productChild->getId();
$idsS[0][$idf] = (string)$idf;
$idsS = $idsS[0];
$ct->saveProducts($config, $idsS);

But i can't figure how i set the price difference to this new products, i know how i can do that directy on the database, but isn't a good pratice.

Someone can help?


texts: How to get current currency symbol in magento 2?

texts:
I want to get current currency symbol in header, but it is not displaying anthing.

I am using below code:

<?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$storeManager = $objectManager->get('Magento\Store\Model\StoreManagerInterface');
$currencyCode = $storeManager->getStore()->getCurrentCurrencyCode();
$currency = $objectManager->create('Magento\Directory\Model\CurrencyFactory')->create()->load($currencyCode);
echo $currencySymbol = $currency->getCurrencySymbol(); ?>


texts: Magento2 use Multiple LIKE operator in Join Query

texts:
I have used Join query,in which i'm able to fetch only one row by below query
where $productId = 10

$collection->getSelect()->where('paproduct.product_id = (?)', $productId);

I want to use multiple $productId in array (May be with LIKE operator).
How can i do it?

$collection->getSelect()->where('paproduct.product_id LIKE ?', $productId);


texts: Contact page route /contacts/index gives 404 error, but works with /index.php/contacts/index

texts:
So, up until about an hour ago, my magento contact page was working fine.

Then, all of a sudden, the server immediately serves a 404 error.

The rest of the site's pages are fine, but this one breaks.

It works fine though if I prepend the URL with /index.php/, which makes me think this is a .htaccess/mod_rewrite problem, but its stumping me as to why its only affecting one page.

URL for reference: http://industrywest.cobblehilldigital.com/contacts/index/

It seems to be searching for contacts.xml/index, according to the 404 error thats thrown, but I cant be sure thats not how magento does things normally ).

DISCLAIMER: I am NOT by any means a magento expert, but any help would be greatly appreciated. I am relatively well versed in working with apache and linux though, in case I need to be.


texts: IWD One Step Checkout - Magento 1 Issues with Streelines and telephone field

texts:
I am testing IWD Checkout Suite for Magento 1 (I am using OpenMage 1.9 which is a fork of Magento 1)
I am with 3 little issues:
1 - When I use translation inline to name streelines 3 and 4 as "Neiborhood" and "Complement",
it does not matter, they are all translated with the same name as "number"
2 - I cannot move sort order of checkout fields form, let's say, put zip code field before Address which is common in Brazil
3 - I cannot change telephone field from "Required" to "Optional", I have edited a lot of files shipping.phtml, billing.phtml and Abstract.php fields but it still requires the telephone number and does not proceed to the 2and step.


texts: Pass Data From PHTML To Block Controller

texts:
It seems wrong to me to put methods in the PHTML file. I need to loop through products in a PHTML file, but I want to call a method inside the foreach loop:

<?php
$lastOrder = $this->getLatestOrder();
$orderItems = $lastOrder->getAllItems();
?>

<?php foreach($orderItems as $item): ?>
    html stuff...
    <?php $this->getCategoryNames($item->getId()); // this doesn't work ?>
<?php endforeach; ?>

Using the code above, the getId() is always NULL in the block controller.

What is the best way to do this? Does the logic belong in the PHTML file? Should I use the Mage::registry 'globals'? I've tried setData and getData, but they don't seem to work inside a loop (reassignment issues). Thanks!


texts: Create customer address in magento2 by customerId

texts:
I am using below code to create customer address using customerId

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$addresss = $objectManager->get('\Magento\Customer\Model\AddressFactory');
$address = $addresss->create();

$address->setCustomerId(1256)
        ->setFirstname('test')
        ->setLastname('test')
        ->setCountryId('GB')
        ->setPostcode('NW p7j')
        ->setCity('test')
        ->setTelephone('1232323')
        ->setStreet('test')
        ->setIsDefaultBilling('1')
        ->setSaveInAddressBook('1');
        try{
            $address->save();
        }catch (\Exception $e) {
            Zend_Debug::dump($e->getMessage());
        }

I have two lines for street, how can i set that?  Right now street is storing with one line. also how can we update address if that customer already has any address?


texts: Magento generate coupon codes programmatically

texts:
I would like to create unique coupon codes automatically.

I have tried the following - when using setCouponCode() to generate coupon code, i must set static code. Example:

$code = "abc";
setCouponCode($code);

I would like this to be a unique random string instead.


texts: magento 2: get review summary in homepage

texts:
I have call new product block using  widget grid in cms homepage. All data are available except review summary. How to display review summary details in product list in homepage.
Below function not working.

  echo $block->getReviewsSummaryHtml();


texts:
New to Magento trying to upload Magento 2 CE onto my localhost to learn.
Installed XAMPP, downloaded Magento, unzipped entire folder to htdocs.

Getting an error:

  Fatal error: Uncaught Magento\Framework\Exception\FileSystemException: The "/opt/lampp/htdocs/magento2/var/.regenerate" file can't be deleted. Warning!unlink(/opt/lampp/htdocs/magento2/var/.regenerate): Permission denied in /opt/lampp/htdocs/magento2/vendor/magento/framework/Filesystem/Driver/File.php:384 Stack trace: #0 /opt/lampp/htdocs/magento2/vendor/magento/framework/Filesystem/Directory/Write.php(188): Magento\Framework\Filesystem\Driver\File->deleteFile('/opt/lampp/htdo...') #1 /opt/lampp/htdocs/magento2/vendor/magento/framework/Code/GeneratedFiles.php(99): Magento\Framework\Filesystem\Directory\Write->delete('/var/.regenerat...') #2 /opt/lampp/htdocs/magento2/vendor/magento/framework/App/ObjectManagerFactory.php(111): Magento\Framework\Code\GeneratedFiles->cleanGeneratedFiles() #3 /opt/lampp/htdocs/magento2/vendor/magento/framework/App/Bootstrap.php(210): Magento\Framework\App\ObjectManagerFactory->create(Array) #4 /opt/lampp/htdocs/magento2/vendor/magento/framework/App/Bootstrap.php(125): Magento\Framework\App\Bo in /opt/lampp/htdocs/magento2/vendor/magento/framework/Filesystem/Driver/File.php on line 384

Any help would be welcome


texts: Magento 2 - integrating Tawk.to chat issue

texts:
I'm trying to integrate Tawk.to chat widget into my Magento 2 site hosted on a shared server environment. And I downloaded the extension files following the guidelines given here: https://www.tawk.to/knowledgebase/plugins-and-modules/magento-2-integration/. After extracting and copying the files to the root directory of my website, I requested my web host to run the needed command lines. After that my site went blank, and I got back to the hosting provider. The web host informed me that, in their own words, "The installation is being halted as it's asking for a http://repo.magento.com username and password." I then provided them with my Magento.com username and password, but yet, nothing has been done by them.

My web host finally sent the following error message that was generated during the aborted:

=============
[root@sixteen ~]# cd /home/hosting_username/public_html
[root@sixteen public_html]# php composer.phar require tawk/widget

Authentication required (repo.magento.com):
  Username: my_magento.com_email_address
  Password: my_magento.com_password

[Composer\Downloader\TransportException]
Invalid credentials for 'https://repo.magento.com/packages.json', aborting.

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...

[root@sixteen public_html]#

==================

Does anyone know why this happened and what is the fix?

Any insight would be much appreciated, as always. Thanks.


texts: how to get the featured image in wordpress post view fishpig integration dynamically

texts:
I am currently using the following xml to try and display a banner image at the top of the post view in the fishpig integration of magento and wordpress.

 <wordpress_post_view>
        <reference name="top.menu">
            <block type="wordpress/post_view" name="bannerslider" template="wordpress/post/banner.phtml">
        </reference>
 </wordpress_post_view>

how would I retrieve the url of the featured image in either the banner.phtml file or in the xml above so that I can display a dynamic featured image at the top of the wordpress post view page.
Thanks


texts: Magento 2.3.3 - Blank White Screen on Frontend (All Pages)

texts:
I am getting a white screen returned for all front end pages on Magento 2.3.3. I am using a third party theme (Sahara Fashion 3), which I have extended from. The theme itself was loaded properly before this white screen started occurring after I added one less file (style.less) in web/css/.

In system.log, I got the following:

[2020-03-17 15:31:51] main.CRITICAL: Warning: file_put_contents(pub/static/frontend/extended_theme/base/en_US/css/style.css): failed to open stream: No such file or directory in vendor/wikimedia/less.php/lessc.inc.php on line 177 [] []
[2020-03-17 16:00:44] main.CRITICAL: Warning: file_put_contents(pub/static/frontend/extended_theme/base/en_US/css/style.css): failed to open stream: No such file or directory in vendor/wikimedia/less.php/lessc.inc.php on line 177 [] []

I got around that by removing a function call from the phtml file that seemed to be redundant. In case not, this is what I commented: $block->renderFileLessToCss();.

Still receiving a white screen with no errors. I can see the HTML being rendered in the element inspector yet I have a blank page.

I have reset permissions, resolved all error and critical items in system.log, flushed the caches, removed the static content manually, force deployed static content, switched to production and back to developer, but no changes at all. Still just a white screen.

What did I miss?


texts: What do "#@+" & "#@-" strings mean in the comments?

texts:
I see a lot of "#@+" & "#@-" strings in the comments of the some Magento 2 classes.
\Magento\Customer\Api\Data\AttributeMetadataInterface

interface AttributeMetadataInterface extends \Magento\Framework\Api\MetadataObjectInterface
{
    /**#@+
     * Constants used as keys of data array
     */
    const ATTRIBUTE_CODE = 'attribute_code';
    ...
    const IS_SEARCHABLE_IN_GRID = 'is_searchable_in_grid';
    /**#@-*/
    ...
}

What is the purpose of these markers?


texts:
want to show static value from system setting in admin grid using UI component
This field not in collection

<column name="taxcode" sortOrder="42" class="Stream\Sage\Ui\Component\Listing\Column\Taxcode">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="filter" xsi:type="string">false</item>
                    <item name="label" xsi:type="string" translate="true">Tax code</item>
                </item>
            </argument>
        </column>


texts: Magento 2.2 - How to redirect url with store code to url without store code?

texts:
The site is been indexed on Google with Store Code for each store view (it/en/gb/au) now the store codes are been removed from url, so all the links end up in a 404 error.
How can I set an automatic redirect to the new links without store code for all the catalog? It may be possible with the .htaccess file?

From
https://example.com/en/{something}.html
to
https://example.com/{something}.html


texts: How to get simple product qty via configurable using Observer?

texts:
I’m using the observer event called checkout_cart_product_add_after, but when I use this method below to get the quantity in stock I just can get the configurable product stock quantity, my simple product is working though.

$quoteItem = $observer->getEvent()->getQuoteItem();
$product = $quoteItem->getProduct();
$typeId = $product->getTypeId();

$productStockData = $product->getExtensionAttributes()->getStockItem();

$productQty = (int) $productStockData->getQty();

$message = __(
   '%1 may require a lead time.',
    $product->getName()
);
if ($product->getManageStock() && $productQty <= 0) {
    $this->messageManager->addWarningMessage($message);
}


texts:
I'm using Magento 1.9.1. I tried to migrate from http://www.example.com to http://www.example2.com/subfolder/shop/, and I changed the records web/unsecure/base_url and web/secure/base_url in table core_config_data to http://www.example2.com/subfolder/shop/. I then refreshed the indexes and caches in Magento CMS.

However, when I try to add products to cart, it requested this URL: http://www.example.com/checkout/cart/add/ instead of http://www.example2.com/subfolder/shop/checkout/cart/add/.

Which config did I miss?

UPDATE I found out that the form action URL of the product list page is set to /checkout/cart/add/ instead of checkout/cart/add/, which makes the form submission URL is incorrect. How do I resolve?


texts: Where can I restructure the html for the magento 2 product view page?

texts:
I am trying to theme my product view page but I cannot find the correct file to override in order to pull in all of the data where I want it.

in my /app/design/frontend/theme/Magento_Catalog/templates/product/view I can see a lot of different template files for some of the items being brought in, like Add to cart and details.

What I am looking for is a file where those are being pulled in from, so that If I wanted to I could wrap details.phtml and addtocart.phtml into two divs side by side.


texts: Magento 2.2: Unable to unserialize value

texts:
After running

composer require magento/product-community-edition 2.2.0 --no-update
composer update

I ran

bin/magento setup:upgrade

But while running this command I get the following error:

Updating modules:
Unable to unserialize value.
[InvalidArgumentException]
Unable to unserialize value.

I read that multiple developers had this problem after upgrading to Magento 2.2 and it could be a problem with installed extension, but for me there isn't any entry in the log files of Magento, PHP or MySQL.


texts:
I have a eCommerce portal https://ninobambino.in/,and I want to connect it a erp system.
When I browse https://ninobambino.in/index.php/api/v2_soap/index/wsdl/1/, I am getting valid XML data.
but When browsing https://ninobambino.in/index.php/api/v2_soap/index/ gives me “0 SOAP extension is not loaded”.
 I am using magento 1.9 .
Please help me.


texts:
I used below code in breadcrumb template to display the notice and messages

            <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>

It is working for voucher code messages and add to cart messages
but Newsletter error message not displayed in this template.

I need to display newsletter messages in same breadcrumb template


texts:
I am installing Magento 2.3.1 but installation stops at 76% what an issue

https://imgur.com/a/sMvKOJa


texts: Remove product page tabs and show all content

texts:
I'm using Magento 2.3.5-p1 with default Luma theme. Since, for what I understood, tabs are bad SEO practice, I like to avoid using them.

How can I remove all tabs and show all their content in the product page? Is there a better way to do it than use css?


texts: Turn off magento 2.3.2-p2 newsletter confirmation

texts:
I am looking for a way to disable the automatic magento newsletter confirmation email, i have seen many ways done before on lower magento versions but not one way describing a way to disable this email notification in 2.3.2-p2 or higher.
I hope you could help me.


texts: Magento 2 Leverage Browser Caching for Images, CSS and JS not any effect

texts:
As in Magento 1 to increase the page speed score and Y-slow score we have used
Leverage Browser Caching for Images, CSS and JS  code in .htaccess file but same script in Magento2 is not working.

below is the code of browser cache:

# Leverage browser caching using mod_expires #
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType application/pdf "access plus 1 month"
    ExpiresByType text/x-javascript "access plus 1 month"
    ExpiresByType application/x-shockwave-flash "access plus 1 month"
    ExpiresByType image/x-icon "access plus 1 year"
    ExpiresDefault "access plus 2 days"
</IfModule>
# End of Leverage browser caching using mod_expires #

Why Magento 2 is not considering this code.?

If anything is wrong in code please share the code so we can optimize the code.


texts:
I want to submit my form on the same page :

<form action="<?php echo Mage::helper('checkout/cart')->getAddUrl(Mage::registry('current_product')); ?>" method="post" id="seller_addtocart_form1" class="ma">
    <button id="<?php echo $seller->getMpassignproductId() ?>" class="button btn-cart customaddtocart" title="<?php echo $this->__('Add to Cart')?>" onclick="<?php echo $currentUrl = Mage::helper('core/url')->getCurrentUrl();?>">
    <?php echo $this->__('Add to Bag')?></button>
</form>

Form is submitted in cart page so I use onclick() function in button but it won't work.

Can anyone please guide me, what's wrong in my code ?


texts: "Reset" Serializer for Adminhtml Product Widget Chooser

texts:
I have a custom module where in the managerial interface, the user can select products from a Grid (rendered in a modal) to add to a list specific to the Module's functionality. This part is working great!

I am encountering a bit of a weird issue with how the serializer works in that I can't seem to figure out how to "reset" it along with the Grid. This is a very simple problem but hard to explain, so bear with me!

Steps to reproduce:

User opens Product Chooser Modal Window and selects a few products (for example, lets say product ids 8, 10 and 15 are selected)
via the checkboxes in the grid. The user clicks "Add Products" and
the products are added to their list, the modal window closes. All good.
The user needs to add another set of products, so they re-open the
modal window. I programmatically reload the Grid before the modal
appears, and manually empty the serializer's hidden
selected_products input before the modal window is rendered, as
so:

var varienGrid      = this.getVarienGridJsObject(),
    serializerInput = $('input[name="selected_products"]');

// logs "8&10&15" i.e., previously selected product id's
console.info('before grid reload products', serializerInput.val());

// reload the grid with empty params as to not re-select products
varienGrid.reloadParams = {};
varienGrid.reload();

// attempting to "reset" the serializer by null'ing the input field
serializerInput.val(null);

// now this will log out empty, which is intended
console.info('after grid reload products', serializerInput.val());

Now the Grid is reloaded for the User to select their new set of products to add to the Module's product list. However, as soon as the select a single product in this freshly loaded grid, the serializer input field "magically" contains all of the previously selected product ids! So if the user selected product id "20", the serializer's input would contain "8&10&15&20" i.e., the new selection, plus all of the product id's selected before the Grid was reloaded and the hidden input was emptied.

What I've Tried

Aside from the above "solution" that didn't end up working, I dug into the varienGrid JS object and found that in the setCheckboxChecked method a callback is invoked which is, as far as I can tell, what handles updating the selected_products input field with new values, as commenting this callback out results in the input field not getting updated. I thought the solution would be to override the getCheckboxCheckCallback method to provide my own method (e.g., MyJsObject.handleCheckboxChange) in my Grid class which extends Mage_Adminhtml_Block_Catalog_Product_Widget_Chooser but doing so still results in the hidden field being updated.

Any help regarding how to "reset" the Mage_Adminhtml_Block_Catalog_Product_Widget_Chooser serializer would be awesome, thank you and please let me know if I can clarify anything or provide any additional information!


texts:
I'm working on a Magento site locally and would like to see the media folder contents to get a good representation of how the website looks.
But the media folder is 124GB.
For local development I'd like to simply point to the live site's media folder.
I found this but can't get it to work:
RewriteEngine on
RedirectMatch 301 ^/media/(.*) https://speider-sport.no/media/$1

The htaccess files are complex. Can anybody help?


texts: How to override custom css by parent css using local.xml?

texts:
I have a simple local.xml that attempts to include a custom wc_styles.css in my head block, to apply for all pages in my site.

<?xml version="1.0"?>
<layout>
    <default>

    <reference name="head">
        <action method="addItem">
            <type>skin_css</type>
            <file>css/wc_styles.css</file>
        </action>

        <action method="addCss"><stylesheet>css/wc_styles.css</stylesheet></action>

    </reference>

    </default>
</layout>

When viewing the source of my website, wc_styles.css is being included above all the parent themes css files (all within the HTML head tag), so my custom css rules get canceled out basically.

What is the proper way of getting a custom css to work?

Edit Note:

I'm merely trying to make look & feel changes to the Magento 1.9 RWD theme.
I've created the folders for my subtheme at

\app\design\frontend\wc\default

\skin\frontend\wc\default

My local.xml is placed at:

\app\design\frontend\warecompare\default\layout

My wc_styles.css is placed at:

\skin\frontend\warecompare\default\css

This is what the source code of my site looks like where u see my wc_styles.css appearing above the parents styles.css

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Home page</title>
<meta name="description" content="Default Description" />
<meta name="keywords" content="Magento, Varien, E-commerce" />
<meta name="robots" content="INDEX,FOLLOW" />
<link rel="icon" href="http://localhost/mg1/skin/frontend/base/default/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="http://localhost/mg1/skin/frontend/base/default/favicon.ico" type="image/x-icon" />
<!--[if lt IE 7]>
<script type="text/javascript">
//<![CDATA[
    var BLANK_URL = 'http://localhost/mg1/js/blank.html';
    var BLANK_IMG = 'http://localhost/mg1/js/spacer.gif';
//]]>
</script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="http://localhost/mg1/skin/frontend/base/default/css/et_advancedcompare/noreload.css" media="all" />
<link rel="stylesheet" type="text/css" href="http://localhost/mg1/skin/frontend/wc/default/css/wc_styles.css" media="all" />
<!-- big heap of javascript includes here-->
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Raleway:300,400,500,700,600" />
<!--[if  (lte IE 8) & (!IEMobile)]>
<link rel="stylesheet" type="text/css" href="http://localhost/mg1/skin/frontend/rwd/default/css/styles-ie8.css" media="all" />
<link rel="stylesheet" type="text/css" href="http://localhost/mg1/skin/frontend/rwd/default/css/madisonisland-ie8.css" media="all" />
<![endif]-->
<!--[if (gte IE 9) | (IEMobile)]><!-->
<link rel="stylesheet" type="text/css" href="http://localhost/mg1/skin/frontend/rwd/default/css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" href="http://localhost/mg1/skin/frontend/rwd/default/css/madisonisland.css" media="all" />
<!--<![endif]-->

Note:
I actually have this as a duplicate question on StackOverflow before realizing that there as a Magento subdomain of StackExchange to ask this question on. Not sure how to delete the original question
https://stackoverflow.com/questions/25156808/magento-custom-css-overridden-by-parent-css-using-local-xml


texts:
I have configured the cron by refering this link, yes I have successfully configured. now I can able to see newly created three cron logs file they are

magento.cron.log, it is logging like

Ran jobs by schedule.

setup.cron.log still now it is empty

update.cron.log, it is logging like

readiness check failed

in log file they just print message every minutes, I felt not much details present in the log.

my question is what is the use of cron and cron logs, is it helpful to debug?

please suggest neat and simple way to understand cron and cron logs?


texts:
I'm trying to make a fresh install of Magento 2.4.0. I want to say in advance I didn't have any problem at all in installing Magento 2.3.5 with PHP 7.3.20. Anyway...

Here's my config:

Debian 10
Apache 2.4.38
PHP 7.4.8
MariaDB 10.4.13
Composer 1.10.10

The installation process

I tried either method: by uploading all files directly and by using Composer:
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition magento

After that, I set the permissions:
chmod 775 -R /var/www/magento && chown -R www-data:www-data /var/www/magento && cd /var/www/magento && find . var generated vendor pub/static pub/media app/etc app/code app/design -type f -exec chmod g+w {} + && find var generated vendor pub/static pub/media app/etc app/code app/design -type d -exec chmod g+ws {} + && chown -R :www-data . && chmod u+x bin/magento

Then I run the installation command:
magento setup:install --base-url=https://dev.example.com --db-host=localhost --db-name=magento --db-user=magento --db-password=mypassoword --admin-firstname=admin --admin-lastname=admin --admin-email=myuser@gmail.com --admin-user=admin --admin-password=mypassword --language=en_US --currency=USD --timezone=Europe/Rome --use-rewrites=1

and I received some errors:
Module 'Magento_ComposerRootUpdatePlugin':
Installing data... Reading /<magento_root>/composer.json
Loading config file /<magento_root>/composer.json
Failed to initialize global composer: Composer could not find the config file: /<magento_root>/var/composer_home/composer.json
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section

Then I tried to reach the frontend and I got this error:
An error has happened during application run. See exception log for details.

And this is the var/log/exception.log
main.CRITICAL: Class Magento\Framework\App\Http\Interceptor does not exist {"exception":"[object] (ReflectionException(code: -1): Class Magento\\Framework\\App\\Http\\Interceptor does not exist at /var/www/magento/vendor/magento/framework/Code/Reader/ClassReader.php:26)"} []

What I tried

I tried to recompile, flush the cache, deploy...
I replaced MariaDB 10.4.13 with Mysql 8.0.21...

Any ideas?


texts: How to get product image full file path directory in magento 2?

texts:
I have a custom extension that needs the full path directory file of the product image not the URL of the product image, for example:
/var/www/Mage2Dir/pub/media/catalog/product/d/i/base_image_product.jpg

how can i achieve this if i have only product id?


texts:
I made a theme that inherits from Luma and am trying to increase the logo size, but it's not working. I already checked Luma sub theme - can't change logo size and it did not apply to me.
I've tried changing the logo_file and the logo changed, so I know the file is being read.
Here is my code to app/design/frontend/boreal/Borealuma/Magento_Theme/layout/default.xml:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="logo">
            <arguments>
                <argument name="logo_file" xsi:type="string">images/logo_boreal.png</argument>
                <argument name="logo_alt" xsi:type="string">Logo Boreal</argument>
                <argument name="logo_img_width" xsi:type="number">7000</argument>
                <argument name="logo_img_height" xsi:type="number">1000</argument>
            </arguments>
        </referenceBlock>
    </body>
</page>


texts: Why checkout_onepage_controller_success_action is dispatched after the layout is loaded?

texts:
Is there any reason checkout_onepage_controller_success_action event is dispatched after the layout is loaded. Here is an extract from Mage_Checkout_OnepageController::successAction:

    $session->clear();
    $this->loadLayout();
    $this->_initLayoutMessages('checkout/session');
    Mage::dispatchEvent('checkout_onepage_controller_success_action', array('order_ids' => array($lastOrderId)));
    $this->renderLayout();


texts: How to integrate Croatian Language pack for my magento site?

texts:
I have just installed yestheme for magento and customizing it. But now i have a issue for Croatian Language install in magento, i searched for pack but whenever i tried to install it.

And this is Croatian Language for for magento, i tried to install.

And the error showing on magento connect manager:

I would like to install Croatian Language pack, so looking forward to your help.


texts: Magento 2 Place orders directly from shopping cart page

texts:
I have a Magento 2 website for Business to Agents. All agents (customers) need to be registered first in order to place an order.

I want to skip the checkout page as when an agent logged in on Frontend, system already know their billing address and delivery address. And orders will be paid by invoces, so no online payment needed.

Is that possbble to make a "Place order" button on shopping cart page (example.com/checkout/cart), so when customer click on it, an order will be placed without going through checkout page(example.com/checkout)?


texts: Using url key as the only url of product

texts:
In Mage/Catalog/Model/Product/Url.php, at the end of function  getUrl, I added:

/// Added
if($product->getUrlKey()) {
    $routeParams['_direct'] = $product->getUrlKey();
}
///

return $this->getUrlInstance()->setStore($storeId)
            ->getUrl($routePath, $routeParams);

In eav_attribute table, I've set url_key to unique, so editors won't accidentally set same key for multiple products.

And it works, all products have simple url (http://example.com/some-url-key), canonical urls are correct, links in catalog, cart e.t.c. are correct.

I can't find any flaws of this, is it really that simple? Do you know any issues that can appear because of such change?

Thank you.


texts: Magento 2: Get root path in url, when the domain name doesn't match with magento folder name

texts:
I have domain name for my magento 2 site something like https://abcxyz.com/index.php, and my project folder name is something like shop.xyz.com (folder name). Now I have added an external file test.php inside magento 2 folder. I want something like https://abcxyz.com/test.php.
How can I get like this in magento header phtml file ?? Thanks for the help in advance.


texts: Promotion Impossible: Buy 6 each of 6 designs, get 10% off. But we have 1000 designs

texts:
I'm trying to create a promotion where a customer gets a 10% discount if they buy 6 units of 6 different designs. This is out of 250 possible designs. With the promotion rules in standard Magento limited to conditional blocks I am having a hard time figuring this one out.

As it is, I would need to set an overall "any" condition and then below that check all of the possible combinations of 6 using "all" conditions. The problem with this is that in a pool of 250 total items there are 319195444750 possible combinations of 6 (250choose6).

It would not be possible for me to click all of those into the condition section of the promotion.

Is there an extension that might help? Is there a way to get "if 6 of the following are true" instead of "if all/any of the following are true"? That would bring it down to 250 things to check instead of 319195444750.


texts:
i'm install news module, and want to show latest news on main page in cms page content. In the module xml i'm find

 <reference name="right">
            <block type="clnews/settings" name="right.clnews.menu" before="-">
                <action method="setTemplate" ifconfig="clnews/news/showrightblock">
                    <template>clnews/menu.phtml</template>
                </action>
            </block>
            <block type="clnews/news" name="right.clnews.latest" after="right.clnews.menu">
                <action method="setTemplate" ifconfig="clnews/news/showlatestnews">
                    <template>clnews/latest.phtml</template>
                </action>
            </block>
        </reference>

in the end of file i added

<cms_index_index>

     <block type="clnews/news" name="right.clnews.latest">
                <action method="setTemplate" ifconfig="clnews/news/showlatestnews">
                    <template>clnews/latest.phtml</template>
                </action>
            </block>

</cms_index_index>

in cms page i wrote

{{block type="clnews/news" name="right.clnews.latest" template="clnews/latest.phtml"}}

but in main page i d'not see my block, what the problem?

p/s latest news config is enable


texts: Update meta title and description for multiple stores

texts:
I have 2 stores. In each store, the products have different metadata titles and descriptions. Now I want to erase the product metadata title and description from store 2 and check "use default value". So that store 2 is using the metadata from store 1.
The problem is , I have 3780 products... so manually isnt an option.
Who can help me?
regards


texts: how can I save the value from a select element in custom config field in magento2

texts:
I'm trying to add a custom configuration field in system.xml like this where one of the columns will be a select element instead of a simple input element and will load values dynamically from the database.

Afterwards I want to save the serialized value in the database.

By reading the various tutorials online I understand that I have to actually create a custom field and create the custom frontend_model and backend_model

So I am trying with the following relevant parts of code which create the interface I want

system.xml

            <field id="availability_map" translate="label" sortOrder="10" showInDefault="1" showInStore="1" showInWebsite="1">
                <label>Availability Map</label>
                <frontend_model>Namespace\Module\Block\Adminhtml\Form\Field\AvailabilityMap</frontend_model>
                <backend_model>Namespace\Module\Config\Backend\AvailabilityMap</backend_model>
            </field>

Then I utilize the Select element class to render my option array in the first column.

Field/AvailabilityMap.php

class AvailabilityMap extends AbstractFieldArray{

    protected function _prepareToRender()
    {
        $availabilityAttributeCode = $this->defaultHelper->getPartialConfig('stock/availability_attribute');
        $this->productAttributeOption->setAttributeCode($availabilityAttributeCode);
        $options = $this->productAttributeOption->toOptionArray();

        $attributeOptionRenderer = $this->getLayout()
            ->createBlock(Select::class)
        ;
        $attributeOptionRenderer->setOptions($options);
        $this->addColumn('availability_option', [
            'label' => __('Availability Option'),
            'renderer' => $attributeOptionRenderer,
        ]);
        $this->addColumn('custom_availability_option', ['label' => __('Custom Availability Option'), 'class' => 'required-entry']);
        $this->_addAfter = false;
        $this->_addButtonLabel = __('Add Correlation');
    }
}

But I'm unable to save the values correctly. I tried this in my backend_model

Backend/AvailabilityMap.php

use Magento\Framework\App\Config\Value as ConfigValue;
use Magento\Framework\Serialize\SerializerInterface;

class AvailabilityMap extends ConfigValue
{
    /**
     * Json Serializer
     *
     * @var \Magento\Framework\Serialize\SerializerInterface
     */
    protected $serializer;

    public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\App\Config\ScopeConfigInterface $config, \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList, SerializerInterface $serializer, ?\Magento\Framework\Model\ResourceModel\AbstractResource $resource = null, ?\Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, array $data = [])
    {
        $this->serializer = $serializer;
        parent::__construct($context, $registry, $config, $cacheTypeList, $resource, $resourceCollection, $data);
    }

    /**
     * Prepare data before save
     *
     * @return void
     */
    public function beforeSave()
    {
        /** @var array $value */
        $value = $this->getValue();
        unset($value['__empty']);
        $encodedValue = $this->serializer->serialize($value);

        $this->setValue($encodedValue);
    }

    /**
     * Process data after load
     *
     * @return void
     */
    protected function _afterLoad()
    {
        /** @var string $value */
        $value = $this->getValue();
        if(empty($value)){
            $this->setValue(null);
        }
        else{
            $decodedValue = $this->serializer->unserialize($value);
            $this->setValue($decodedValue);
        }
    }

}

And the final result only saves the text input. I'm probably missing something in the way to transform the submitted data to the array I need to save.

Any help is appreciated.


texts: Magento 1: is there a reason enabled = yes/no and visibility = [1,2,3,4] is not stored in catalog_product_entity

texts:
Magento 1: is there a reason status enabled = yes/no and visibility = [1,2,3,4] is not stored in catalog_product_entity
When trying to improve performance one could argue that table catalog_product_entity is at the top of the product hierarchy (also explained here https://fishpig.co.uk/magento/tutorials/eav-database-structure/) and that when trying to improve performance one would want to index status enabled = yes/no and visibility = [1,2,3,4]
Is there a way to split the catalog_product_entity based on these parameters (say split catalog_product_entity based on its status being enabled or disabled)?


texts: Free shipping with the shopping cart rule, on X subtotal AFTER discount

texts:
We offer Free Shipping over X (NOK 1000)amount, but the shopping cart rule doesn't allow me to set the amount to be the subtotal amount AFTER given discounts.

If customer shops with for instance a discount code, Magento gives the free shipping even if the subtotal after discounts amounts to for example NOK 850.

Is there anywhere in the shopping cart rule I can adjust this? (I have looked around for quite some time now...)


texts: magento 2 mini cart dropdown hide if we click on my account tab

texts: I have used default Magento 2 mini cart dropdown and my account dropdown it's working fine. But I'm facing the issue if we click my account tab mini cart dropdown still open I want to hide when we click my account tab.


texts: Magento 2.2.1 Product Import Not Updating Assigned Categories

texts:
When updating my products via the add/update import process, the assigned product categories are not being updated.  If I update by selecting "replace", it works.  Example

Product-A currently has the categories of "Shirts/Blue,Shorts/Blue"

I want to remove Shorts/Blue, so in my csv file, I have

Product-A,"Shirts/Blue"  (all other fields intentionally left out of this post, but they are in my file)

Other fields are being updated just fine.  Its only the category field that isnt removing previously assigned categories.

If I assign a new category, it assigns it, but still doesnt remove the previously assigned categories.  Example:  If my file has

Product-A,"Shirts/Blue,Pants/Blue"

After import and reindexing, Product-A now has Shirts/Blue,Shorts/Blue,Pants/Blue categories assigned.