texts: How to add new tab to any custom extension?

texts:
I have one previously installed extension which have 3 tabs already added , Now  I want to add new tab below it , How can I achieve this . I want to add new tab regions .

 <adminhtml>
     <rewrite>
    <customer_edit_tabs>Netbiz_Post_Block_Adminhtml_Customer_Edit_Tabs</customer_edit_tabs>
     </rewrite>    </adminhtml>

I have gone through this but not able to figure out what should I place in place of  .

I want to add new tab to aw_blog extension (add post view) .

Please suggest.

Thanks


texts: How to display wishlist item details in admin panel of magento?

texts: I wants to display 'wishlist_item' and 'wishlist' table details on admin panel of magento.


texts: Data disappears/empty from description editor after saving product for few products only

texts: I am trying to add content but it empty after save products. It happened with few of my products. I am using Magento ver. 2.3.4


texts: Magento configurable products prices depending of multiple attributes

texts:
I'm using Magento 1.9.2.1, I'm trying to define a configurable product type that contains two different attributes:

 - Weight
 - Purity

So the user can buy a product selecting

 - 1 Kg, 5 Kg or 15 Kg package
 - 90%, 95% or 99% purity

The price will depend on both attributes combined. E.g.

 - 1 Kg  - 90% -> 1.00$
 - 1 Kg  - 95% -> 1.50$
 - 1 Kg  - 99% -> 1.90$
 - 5 Kg  - 90% -> 4.50$
 - 5 Kg  - 95% -> 6.50$
 - 5 Kg  - 99% -> 7.90$
 - 15 Kg - 90% -> 12.00$
 - 15 Kg - 95% -> 20.00$
 - 15 Kg - 99% -> 25.00$

So for each attribute combination, I have defined a different price for each simple product.
I discovered that in this way Magento ignores the price defined for each simple products and allow only setting different prices for each attribute, without the possibility of combining them.

Is there a way to use the simple product price, instead of the configurable product price?


texts: Want to add wysiwyg message text area extend appearance of pagebuilder Banner

texts: I have updated pagebuilder_banner_form.xml in ui component. And I have updated banner.xml in content_type. Text areas with wysiwig is appeared but these values not save. Can someone please suggest


texts:
I'm using Amasty onestepcheckout on magento 1.
I'm getting issue with shipping rates.
By default i have enable Billing and shipping address same.
Ship to this address option is enable. So, when billing and shipping address are same and i change city or any other address field then shipping rates are not updating.

But when billing and shipping address are different then shipping rates are updating properly.


texts: Cannot instantiate abstract class Magento\Catalog\Block\Product\View\AbstractView

texts:
After Magento 2.1 compilation i have this error when I try to open product page in the frontend (in the backend it work):
in

/var/www/vhosts/mywebsite/httpdocs/mywebsitemarketplace/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:93
Stack trace: #0
/var/www/vhosts/mywebsite/httpdocs/mywebsitemarketplace/vendor/magento/framework/ObjectManager/Factory/Compiled.php(88):
Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Catalog...',
Array)
#1/var/www/vhosts/mywebsite/httpdocs/mywebsitemarketplace/vendor/magento/framework/ObjectManager/Factory/Compiled.php(130):
Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Catalog...')
#2 /var/www/vhosts/mywebsite/httpdocs/mywebsitemarketplace/vendor/magento/framework/ObjectManager/Factory/Compiled.php(67):
Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\\Catalog...')
#3 /var/www/vhosts/mywebsite/httpdocs/mywebsitemarketplace/vendor/magento/framework/ObjectManager/ObjectManager.php(57):
Magento\Framework\Objec in
/var/www/vhosts/mywebsite/httpdocs/mywebsitemarketplace/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php
on line 93


texts:
Currently have an issue with a Magento 2 site that I am developing.

On the category view I have a left sidebar with my product filters which pull data from my product attributes.

The issue I am having is that Magento is placing a Category filter block above all of these and my client would like this to be moved to the bottom.

I cannot find documentation on the best way to do this, any ideas would be appreciated.


texts:
i am writing an payment module but sadly it only supports one currency. i would like to add a message which currency is supported and provide and internal link to the currency setup setting on the admin site.
as if right now i'm not sure how to link to that section, is 'it even possible?
the link would be in the same place as the "more information" link in the amazon pay plugin, but it would take the administrator the "currency setup" portion of the interface


texts:
i get the below error in magento
Exception #0 (Exception): User Deprecated Functionality: Session ID is not used as URL parameter anymore. in /var/www/html/magento.loc/vendor/magento/framework/Url.php on line 763
how can i resolve it? my php version is PHP 7.2.31-1+ubuntu20.04.1+deb.sury.org+1


texts: Running the magento tests from command prompt

texts:
Hi,
I am getting below error,while executing magento test scripts from command prompt.
Environments using:
Installed magento on xampp,windows 10 and running on chrome browser

Thanks,
kumar.


texts: Sorting product collection on category view

texts:
I'm trying to set custom sort for product collection on category view and I'm hitting wall.
I tried simple observer for event:

catalog_block_product_list_collection

with

$collection = $observer->getCollection();
$collection->getSelect()->join(array('options_sort' => 'eav_attribute_option'), 'e.course = options_sort.option_id', array('sort_order' => 'sort_order'));

$collection->getSelect()->reset(Zend_Db_Select::ORDER);
$collection->getSelect()->order('sort_order', 'ASC');

This solution works, when I print the collection query on list.phtml I can see that sorting order was changed, however products are still displaying in the wrong order...

I have also fiddled with layout updates and ended up with something like:

<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
<action method="setSortBy"><value>sort_order</value></action>
<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
   <action method="addOrderToAvailableOrders"><order>sort_order</order><value>Sort order</value></action>
   <action method="setDefaultOrder"><field>sort_order</field></action>
</block>
               <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
           </block>

however it's also not working.
Have anyone knows the answer?


texts: Few questions about developing custom Payment Gateway

texts:
I am creating a custom payment module using Paypal API(Don't want to use any Magento Paypal Module).
I have 2 question while developing the custom module. Please help me to solve it.

My logic is as follows: From magento default cart when a user click check out it is redirecting to my custom module for proceeding to payment using Paypal. Now after successful payment I need increment id to insert the order record in the order table . But how can I get the new increment id for the new order? This is my first question.
After payment, magento storing the payment details in sales_order_payment table. It is storing the payment type in the 'method' field of the table, like ccsave,checkmo. These name are coming from the core_config_data table(which are storing from config.xml file of the module).  But I cannot add my module to the config table(I wrote payment details in config.xml file). That's why while I add my custom payment type to the 'method' field of sales_order_payment table, It is not detecting my payment module.
I am adding my config.xml file content here:

`

 <config>
    <modules>
        <Payment_Form>
            <version>0.1.0</version>
        </Payment_Form>
    </modules>
    <frontend>
        <routers>
            <JustSomeFreeRouterNameHereNo1>
                <use>standard</use>
                <args>
                    <module>Payment_Form</module>
                    <frontName>payment-form</frontName>
                </args>
            </JustSomeFreeRouterNameHereNo1>
        </routers>
    </frontend>
    <default>
        <payment>
            <form>
                <active>1</active>
                <order_status>pending</order_status>
                <title>CUSTOM CARD</title>
                <allowspecific>0</allowspecific>
                <sort_order>1</sort_order>
            </form>
        </payment>
    </default>
</config>

Please help me solving this 2 issues.


texts: Can't get custom attribute for value magento 1.9.4.2

texts:
I have created a Custom Attribute ( attribute id: custom_attribute ) for the category. It shows up in the backend and able to save the value to it. I just wanted to print the value in the Category view.phtml template.

I have tried the following to make this happen. But none of them seems to be working for me.

Reindexed
Flushed cache

Functions I have tried to get the value.

<?php if($_customAttribute = $this->getCurrentCategory()->getCustomAttribute('custom_attribute')): ?>
   <?php echo $_helper->categoryAttribute($_category, $_customAttribute, 'custom_attribute') ?>
<?php else: ?> Output: Condition false
Mage::getModel('catalog/category')->load($_category->getId())->getData('custom_attribute')
Output: Null
Mage::getResourceModel('catalog/category')->getAttributeRawValue($_category->getId(), "name", Mage::app()->getStore()->getId()); Output: bool(false)

I have used silksoftware to create a custom attribute


texts: Magento Enterprise 1.13.1 REDIS cluster with failover automation

texts:
One of the answers above mentions the use of:

Cache hosts (by parhamr)
There are two hosts running Redis in a master-slave configuration with automated failover. Three Redis instances are used to increase throughput and provide fine-tuning of persistence behaviors.

I can't seem to figure out a way to add more than just 1 redis instance using native magento enterprise 1.13.1 integration methods. How do you set this up in the config files to fail over from one redis instance to another or do you do read/write separation? I can't figure out a way unless I use dynamic dns entry or an additional load balancer?
Dynamic DNS won't do any good if one of the instances goes down, load balancer on the other hand will continuously monitor and utilize only "active" instances, but is there a solution on a code/config level that i can utilize out of the box?
Thank you.


texts: magento 2 we can't generate sitemap right now

texts:
i have tried this link but nothing happens.
my magento version is 2.1.5 and hEre is image

PLEASE ANY HELP WOULD BE APPRECIATED


texts: Remove "pub" from media URL in Magento 2.3.1

texts:
How can we remove "pub" from the media URL? Like below:
www.xyz.com/media/catalog/product from www.xyz.com/pub/media/catalog/product . we have googled but not found any solution. Any help will be appreciated. Thanks in advance.

Magento version 2.3.1.


texts: Magento 2 shell shows production mode, but still in developer mode

texts:
I have a problem turning the webshop into production mode. When I change mode to production all seems fine and production mode is enabled without any problem in ssh.

[admin@server public_html]$  php bin/magento deploy:mode:set production
Maintenance mode already enabled
Starting compilation
Compilation was started.
%message% 0/7 [>---------------------------]   0% ---------------------------]   0% ---------------------------]   0% -----------------------]  14% -----------------------]  14% -------------------]  28% 19 secs 184.0 MiB
Service data attributes generation... 2/7 [========>-------------------]  28% 19 secs 184.0 MiB
Service data attributes generation... 3/7 [============>---------------]  42% 19 secs 184.0 MiB
Application code generator... 3/7 [============>---------------]  42% 19 secs 184.0 MiB
Application code generator... 4/7 [================>-----------]  57% 33 secs 198.0 MiB
Interceptors generation... 4/7 [================>-----------]  57% 33 secs 198.0 MiB
Interceptors generation... 5/7 [====================>-------]  71% 52 secs 270.0 MiB
Area configuration aggregation... 5/7 [====================>-------]  71% 52 secs 270.0 MiB
Area configuration aggregation... 6/7 [========================>---]  85% 1 min 388.0 MiB
Interception cache generation... 6/7 [========================>---]  85% 1 min 388.0 MiB
Interception cache generation... 7/7 [============================] 100% 1 min 392.0 MiB
Generated code and dependency injection configuration successfully.
Compilation complete
Starting deployment of static content

Deploy using quick strategy
frontend/Magento/blank/sv_SE            2349/2349           ============================ 100% %  9 secs
adminhtml/Magento/backend/sv_SE         2771/2771           ============================ 100% %  8 secs
frontend/Magento/blank/en_GB            2349/2349           ============================ 100% %  9 secs
frontend/Magento/blank/en_US            2349/2349           ============================ 100% %  11 secs
adminhtml/Magento/backend/en_GB         2771/2771           ============================ 100% %  11 secs
adminhtml/Magento/backend/en_US         2771/2771           ============================ 100% %  8 secs
frontend/Magento/luma/sv_SE             2365/2365           ============================ 100% %  11 secs
adminhtml/Meigee/Theme/sv_SE      2773/2773           ============================ 100% %  10 secs
frontend/Meigee/Theme/sv_SE       2386/2386           ============================ 100% %  9 secs
frontend/Magento/luma/en_GB             2365/2365           ============================ 100% %  13 secs
frontend/Magento/luma/en_US             2365/2365           ============================ 100% %  11 secs
adminhtml/Meigee/Theme/en_GB      2773/2773           ============================ 100% %  11 secs
adminhtml/Meigee/Theme/en_US      2773/2773           ============================ 100% %  10 secs
frontend/Meigee/Theme/en_GB       2386/2386           ============================ 100% %  10 secs
frontend/Meigee/Theme/en_US       2386/2386           ============================ 100% %  12 secs

Execution time: 177.81827092171
Deployment of static content complete
Skipped disabling maintenance mode
Enabled production mode.

But, when going to Backend, and checking the js files etc I can see the shop is still in developer mode.

Months ago the shop was in Production mode, so I know it did work.

What can cause this issue?

First I thought it can be I activated nginx ssl termination, with Varnish. And Redis. But I did go back to plain Apache without Varnish or Redis. Problem still exists
I have checked .htaccess and the SetEnv MAGE_MODE developer is NOT set
env.php shows 'MAGE_MODE' => 'production',

How can I find the root to the problem? Where should I look?
Can I somehow force the production mode?

Thank you.


texts:
Just wondered if anyone knew why the header displays differently on my live site and testing site.(the blue header bar is quite a bit wider and doesnt look as good) The two sites are effectively the same site files, so they should be the same. From what I can tell the only page the live site doesn't do this is the home page.

iartsupplies.co.uk/canvases.html

testingdev.iartsupplies.co.uk/canvases.html

It may well be something to do with the responsive template, but that shouldnt matter as the test site is set up the same way. The same behavior is seen in chrome and firefox.
I have tried messing about in firebug but cant find anything.

Any ideas?


texts: Magento 2 : How to get top 10 repeated values in a column using CRUD instead of sql?

texts:
I want to get top 10 most repeated values in a column of my table, I can do so using sql but I need to do it using CRUD i.e using collections or model as magento coding standard doesn't allow naked sql queries (MEQP1.SQL.RawQuery.FoundRawSql) - documentation

How would I go about doing so? Please point me in the right direction.

Thanks in advance!

EDIT:

Following is the sql query which can be used to do just what is required ..

SELECT `tag`, COUNT(`tag`) AS `value_occurrence` FROM `Faq_Tags` GROUP BY `tag` ORDER BY `value_occurrence` DESC LIMIT 10

I know how to order by, group by and set limit using magento collection but I am still not able to figure out how to get count('tag') using collection. Please help me regarding this.


texts:
We installed and configured Auctane_Api (2.0.18) ship-station module to magento2 Whenever we placed the orders those information populated at ship-station portal successfully. After processed shipment fulfillment at ship-station portal below points not happening

Except cost/rate Tracking Number,Shipping Carrier details only saved  &
order status also still showing progress instead of complete?

The below image showing the settings of shipstation portal end.

please suggest?


texts:
I want to translate this

I added in my fr_FR.csv those lines but with no results:

  "You added %1 to your shopping cart.","Vous avez ajouté %1 à votre panier."
  "You added %1 to your", "You added %1 to your"
  "shopping cart.", "panier."

The shopping cart is cliquable to the cart


texts: Magento 2: Virtual Type Naming Convention

texts:
Date: June 1, 2015 (given the changing nature of Magento 2)

In Magento 2, you can configure a "virtual type" in a module's di.xml configuration file.  These virtual types allow you to change the arguments of a specific injected dependency.

In the core Magento 2 code, there appears to be two naming conventions for virtual types.  In the first, a virtual type has a name that appears identical to a real PHP class name.

#File: app/code/Magento/CatalogRule/etc/di.xml
<virtualType name="Magento\Catalog\Pricing\Price\Pool" ...

in the second, a simple, backslash-less string is used

#File: app/code/Magento/CatalogSearch/etc/di.xml
<virtualType name="advancedSearchFilterList" ...

Is there any practical difference to the above two naming conventions?  i.e. does the name you chose for a virtualType have any impact on its behavior, or is it just a globally unique string that identifies the type so you can use it later on.


texts:
Magento newbie here.

I created custom attributes 'brand' and 'license' for my products, and they work just fine during product registration (I set them as dropdowns).  I'm also using a size attribute (also dropdown) plus Configurable and Simple products along with my attribute set for the various clothes I'm using in the products database.

On the store, the size attribute works just as intended, showing a selection dropdown on the frontend, but the issue is that there also are additional options for the brand and license requiring selection (put on the default 'choose an option'),

However, I don't want those to show themselves on the store (But I do want to keep them on the admin). Is there a way to hide them without altering the functioning? This is more of a practicality issue, since I can still add the products, provided I choose the brand/license, but the task seems meddlesome since I have only one option to choose from in both fields.

E.g.: I make a configurable product 'shirt A' and set the fields accordingly, then I create the associate products 'shirt A1' and 'shirt A2'to go with it. I make 'shirt A' available through search and catalog and the associates not individually available. I can access everything just fine in the final prodict, but I only want to see/set the size.

Thanks in advance.


texts: Onepage Checkout Billing extension doesn't work

texts:
I can't find the error in the code.

My module is shown in the Backend but the Block is not rewritten properly.

This is my Code:
 config.xml

<?xml version="1.0"?>
<config>
<modules>
   <Zdrw_Checkout>
      <version>1.0.0</version>
  </Zdrw_Checkout>
</modules>
<global>
      <blocks>
         <Zdrw_Checkout>
             <class>Zdrw_Checkout_Block</class>
         </Zdrw_Checkout>
     </blocks>
     <blocks>
       <checkout>
         <rewrite>
<onepage_billing>Zdrw_Checkout_Block_Onepage_Billing</onepage_billing>
          </rewrite>
        </block>
      </checkout>
  </blocks>
 </global>

class Zdrw_Checkout_Block_Onepage_Billing extends Mage_Checkout_Block_Onepage_Abstract


texts: add custom field in checkout page magento 1.9?

texts:
i want to add a custom field in checkout page in magento 1.9 . The custom field should ask where do you hear about us? and should have options as radio button such as fb,google,friend etc. i want to edit using code any help would be
appreciated
thanks


texts: How do I hide amount $0.00 when free Shipping Method is applied?


texts: show error message through plugin Magento2 in checkout page

texts:
I am using a plugin feature in module to validate the zip code for delivery available. I need to prevent the next step if the zip code is not available for delivery by showing a message in checkout page. hear i have get error message in console but not showing in site

Hear is my code

  /app/code/Ship/Details/etc/di.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Checkout\Model\ShippingInformationManagement">
        <plugin name="get_shipping_info" type="Sem\Shipment\Plugin\Checkout\Model\ShippingInformationManagement" sortOrder="1" disabled="false"/>
    </type>
</config>

plugin code

  /app/code/Sem/Shipment/Plugin/Checkout/Model/ShippingInformationManagement.php

<?php

namespace Sem\Shipment\Plugin\Checkout\Model;
use Magento\Framework\Exception\StateException;

class ShippingInformationManagement
{

    protected $_messageManager;
    protected $jsonResultFactory;

    public function __construct(
        \Magento\Framework\App\Action\Context $context,
        \Magento\Framework\Controller\Result\JsonFactory $jsonResultFactory,
        \Magento\Framework\Message\ManagerInterface $messageManager,
        \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory
    ) {
        $this->_messageManager = $messageManager;
        $this->jsonResultFactory = $jsonResultFactory;
    }

    public function beforeSaveAddressInformation(
        \Magento\Checkout\Model\ShippingInformationManagement $subject,
        $cartId,
        \Magento\Checkout\Api\Data\ShippingInformationInterface $addressInformation

    )
    {
    $address = $addressInformation->getShippingAddress();
    $postcode = $address->getData('postcode');
    $objectManager =   \Magento\Framework\App\ObjectManager::getInstance();
    $result = $this->jsonResultFactory->create();
    $stat="no sevice";
    throw new StateException(__($stat));
}
}

In my console

How can i resolve this issue now the message is not showing also i cant move to next step payment


texts: Finding a better way to disable the add to cart button if customer is not logged in

texts: If the customer is not logged in , customer shouldn't  be able to add the product in cart and simultaneously it should redirect to login page with an error message.


texts: Magento 2 Is it possible to run reindexing per storeview?

texts:
My site has more than 100.000 products and almost 20 storeviews. Each time I run a full reindexing, it takes about 10 hours for reindexing to be finished.

I wonder if it's possible to just run reindexing for a specific storeview?


texts: How to sort custom renderer column in magento grid

texts:
I want to sort custom rendere column in magento grid.

See below image--

As in above image Sorting is done using Status column, but it is is showing wrong. I want to sort it like active,on hold,out of stock.

Here is the code in Grid.php--

$this->addColumn('stock_status', array(
            'header' => Mage::helper('allstock')->__('Status'),
            'width' => '200px',
            'align' => 'center',
            'index' => 'stock_status',
            'renderer' => 'allstock/adminhtml_allstock_renderer_stockstatus'
        ));

here is the renderer code-

public function render(Varien_Object $row)
    {
        $stock_status=$row->getStockStatus();
        if($stock_status=='stock on hold')
        {
            $html="on hold";
        }
        else
        {
            $html=$stock_status;
        }
        return $html;
    }


texts: Magento 2: FastSimpleImport Integrity constraint violation

texts:
I'm trying to import some products with Firegento FastSimpleImport
https://github.com/firegento/FireGento_FastSimpleImport2
https://github.com/firegento/FireGento_FastSimpleImport2_Demo
When I run the demo for configurable products the first Import works.
The second time i run the Demo i get an error:

/var/www/src/htdocs$ bin/magento fastsimpleimportdemo:products:importconfigurable
Import started
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (database.catalog_product_super_attribute_label, CONSTRAINT FK_309442281DF7784210ED82B2CC51E5D5 FOREIGN KEY (product_super_attribute_id) REFERENCES catalog_product_super_attribute (p), query was: INSERT INTO catalog_product_super_attribute (product_super_attribute_id,position,product_id,attribute_id) VALUES (?, ?, ?, ?) ON DUPLICATE KEY UPDATE product_super_attribute_id = VALUES(product_super_attribute_id), position = VALUES(position), product_id = VALUES(product_id), attribute_id = VALUES(attribute_id`)
1: Begin data validation
2: The validation is complete.
3: Checked rows: 3, checked entities: 3, invalid rows: 0, total errors: 0
4: Import data validation is complete.
Import finished. Elapsed time: 3.45s

I tried it with an different Shop and it worked the second time.
Does somebody know how to fix this problem?


texts: I install Magento 2 on my server VPS: ubuntu 16.04, Nginx 1.10, MySQL 5.7, PHP 7. Site works, but can not sign on subscribe "Something went wrong with your subscription.". Transfer emails not works too. What have I done wrong? Maybe I need something to install on a server More?


texts: How to add js file to custome module in magento 2

texts:
I have some script code in my phtml like below.

  path - Company/Module/view/templates/test.phtml

<script type="text/javascript">

var color = null;
var framecolor = null;

function Calculation(){

//frame color calculation
color = document.getElementById('color').value;

    if(color=="White"){
        framecolor = (0 * circumeference);
        document.getElementById("framecolor").innerHTML = "FrameColor Price : " + framecolor;
    }
    else if(color=="Red"){
        framecolor = (4 * circumeference);
        document.getElementById("framecolor").innerHTML = "FrameColor Price : " + framecolor;
    }
    else if(color=="Green"){
        framecolor = (8 * circumeference);
        document.getElementById("framecolor").innerHTML = "FrameColor Price : " + framecolor;
    }
    else if(color=="Black"){
        framecolor = (12 * circumeference);
        document.getElementById("framecolor").innerHTML = "FrameColor Price : " + framecolor;
    }
    else if(color=="Wood limitation"){
        framecolor = (18 * circumeference);
        document.getElementById("framecolor").innerHTML = "FrameColor Price : " + framecolor;
    }
}

How can I add this script code as a js file


texts:
I have two Sites one for GBP and one for Euro.

For the Euro version I have set:

Stores > Configuration > General > General > 'Default Country' = 'Ireland'
Stores > Configuration > General > General > 'Allow Countries' = 'Ireland'
Stores > Configuration > Sales > Shipping Methods > 'Ship to Applicable Countries' = 'Specific Countries'
Stores > Configuration > Sales > Shipping Methods > 'Ship to Specific Countries' = 'Ireland'

And for the UK I have set:

Stores > Configuration > General > General > 'Default Country' = 'United Kingdom'
Stores > Configuration > General > General > 'Allow Countries' = 'United Kingdom'
Stores > Configuration > Sales > Shipping Methods > 'Ship to Applicable Countries' = 'Specific Countries'
Stores > Configuration > Sales > Shipping Methods > 'Ship to Specific Countries' = 'United Kingdom'

My default config for both Sites is:

Stores > Configuration > General > General > 'Default Country' = 'Ireland'
Stores > Configuration > General > General > 'Allow Countries' = 'Ireland'
Stores > Configuration > Sales > Shipping Methods > 'Ship to Applicable Countries' = 'Specific Countries'
Stores > Configuration > Sales > Shipping Methods > 'Ship to Specific Countries' = 'Null'

I have it set up to allow customer accounts globally so someone can create an account on one Site and have a saved address in one country but if they are accessing the Site for the other country they shouldn't see the saved addresses for the other Site.

However when I go to the Cart or Checkout the dropdown menu includes both countries for both Sites. Any ideas how I can change this so that there is no drop down for the country but that the correct country for the correct Site is shown by default?

Cart Summary:

Checkout:

I am using Magento 2.1.11


texts: Magento 2 - Show validation message in custom container on product update page

texts:
I try to show the validation message which shows if you enter a wrong value (for example 0) and try to add the product to the cart, in a custom place. I try to do this on the product update site, which shows if you edit a product.
Currently it shows just next to the input:

This works by adding the attribute data-errors-message-box to the input and adding a container:
THEME\Magento_Checkout\templates\cart\item\configure\updatecart.phtml
    ...

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

                <button class="minus" type="button"></button>
                <input type="number"
                       name="qty"
                       id="qty"
                       min="0"
                       value=""
                       title="<?= $block->escapeHtmlAttr(__('Qty')) ?>"
                       class="input-text qty quantity"
                       data-validate="<?= $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"
                       data-errors-message-box="#validation-message-box-simple-product"
                />
                <button class="plus" type="button"></button>

    ...

This works great on the product page in THEME\Magento_Catalog\templates\product\view\addtocart.phtml, but it does fail on the THEME\Magento_Checkout\templates\cart\item\configure\updatecart.phtml.
Why does it not work?


texts: I have try upgrade Magento use composer and Admin, but It show bug and I can't fix it. Is there any way to update Magento not use composer and Admin?


texts:
I'm trying to create a theme with the UIkit 3 framework. I've added the uikit.min.js and uikit-icons.min.js files (and CSS as well), but when I try to add a modal to the page, it doesn't work.

It looks like UIkit cannot initialize the modal (or any other component).

Has somebody already implemented UIkit 3 in a Magento 2 custom theme? Is it possible to help me?


texts: Since upgrade from Magento 2.1 to 2.2 I have localization erros on my module

texts:
i have a problem with a custom module, since the upgrade from 2.1 to 2.2 all my messages in the Controller and Emails won't get translated.

Example:
Module_Questions -> Controller -> Index -> Index.php

there I have a messageManager and use translation with success message

    "__('Mail sent')"

but it is displayed on the frontend as:

    "{{{Mail sent}}{{Mail sent}}{{Mail sent}}{{theme2}}}"

and the same for emails. I have currently no idea why it doesn't work.

Would appreciate any help.


texts:
I have grown accustomed to the better PHPDoc coverage of Magento 2, so now it bothers me when the magic getters and setters are highlighted in red in my PhpStorm project files. In classes that I define, I will typically enumerate magic methods using @method in the class PHPDoc. However, I am trying to figure out how to hint them on object instances that I don’t control such as event observers. Consider the following example:

class Example implements \Magento\Framework\Event\ObserverInterface
{
    /**
     * @param \Magento\Framework\Event\Observer $observer
     */
    public function execute(\Magento\Framework\Event\Observer $observer)
    {
        /* @var \Magento\Cms\Model\Page $page */
        $page = $observer->getPage();
    }
}

I realize I can use $observer->getData('page'), but if I wish to use the magic getter is there a way to prevent PhpStorm from showing the warning:

  Method 'getPage' not found in \Magento\Framework\Event\Observer


texts: Fresh install of Magento 1.9.2.3 has broken CSS? It doesn't look right

texts:
I just installed Magento in my laptop. I followed the instructions here:
http://devdocs.magento.com/guides/m1x/install/installing_req-prereq_centos.html .

When I went to my browser to install Magento I saw that it looked like this:

I have tried deleting magento and installing again. Downloaded a new installer then installed again, but it still won't work.

Thanks.

UPDATE:
This is my console log:

And here is my Network:


texts: Magneto 2: How to Add custom text after product list in product list page?

texts:
How to add custom text after product list on the product list page?
In this picture custom text i want to add before pagination

I am trying this. But not done
catalog_category_view.xml
<body>
    <referenceContainer name="content">
        <referenceContainer name="category.products">
            <referenceContainer name="category.products.list">
                <block class="MDC\CategorySeo\Block\SeoCustomtext" before="product_list_toolbar" name="bottom.description" template="MDC_CategorySeo::product/list/bottom_description.phtml"/>
            </referenceContainer>
        </referenceContainer>
    </referenceContainer>
</body>

Thank you :)


texts: How can I prevent that my checkout saves the data of the user?

texts: If the user decides to enter his payment information(in the checkout process) and then leaves the checkout process to reopen the checkout later, all information he entered are still there. Duo some bugs I want that the information will be cleared after he leaves the checkout process. How can I implement it?


texts: Magento 2: Rest api for getting cart items is returns empty array

texts:
I need tho get current customer cart items using rest api, so I've created Cart module and

Here is my interface:

<?php

namespace Bit68\Cart\Api\Cart;

interface MyCartInterface{

/**
* @api
* @return array
*/

public function getItems();

}

?>

here is my class that implements the interface:

namespace Bit68\Cart\Model\Cart;
use Bit68\Cart\Api\Cart\MyCartInterface;
use \Magento\Checkout\Model\Cart\CartInterface;

class MyCart implements MyCartInterface{
/**
* @var Magento\Checkout\Model\Cart\CartInterface
*/
private $cartObj;

public function __construct(\Magento\Checkout\Model\Cart $cartObj){
    $this->cartObj = $cartObj;
}

/**
* @api
* @return array
*/

public function getItems(){
    $items = $this->cartObj->getQuote()->getAllItems();
    return $items;
}
}

?>

Here is webapi.xml:

<?xml version="1.0"?>

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">

<route url="/V1/cart/items" method="GET">
    <service class="\Bit68\Cart\Api\Cart\MyCartInterface" method="getItems"/>
    <resources>
        <resource ref="anonymous"/>
    </resources>
</route>

and that's where I call my api:

 <?php
 session_start();
 /*
 *  base url of the magento host
 */
 $host = 'http://127.0.0.1/yourParts/';

 //unset($_SESSION['access_token']);
 if (!isset($_SESSION['access_token'])) {
 echo 'Authenticating...
';
 /*
 * authentication details of the customer
 */
 $username = 'mail';
 $password = 'password';
 $postData['username'] = $username;
 $postData['password'] = $password;

 /*
 * init curl
 */
 $ch = curl_init();
 curl_setopt($ch, CURLOPT_URL, $host.'rest/V1/integration/customer/token');
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
/*
 * set content type and length
 */
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
       'Content-Type: application/json',
       'Content-Length: '.strlen(json_encode($postData)),
   )
);
/*
* setpost data
*/
curl_setopt($ch, CURLOPT_POST, count($postData));
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($postData));
$output = curl_exec($ch);
curl_close($ch);
/*
* access token in json format
*/
echo $output;
$_SESSION['access_token'] = $output;
}
if (isset($_SESSION['access_token'])) {
   /*
   * create headers for authorization
   */
   $headers = array(
       'Authorization: Bearer '.json_decode($_SESSION['access_token']),
   );
   echo '
';
   echo 'api call... with key: '.$_SESSION['access_token'].'

';
   $ch = curl_init();
   /*
   * set api resource url
   */

   curl_setopt($ch, CURLOPT_URL, $host.'rest/V1/cart/items');
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
   curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
   $output = curl_exec($ch);

   curl_close($ch);
   echo '
';
   echo gettype($output);
   echo '
';
   echo $output;
   echo '
';
   echo "Today is " . date("Y-m-d") . "
";
   /*
    * json response need to rtrim with [], some times it is appended to the respose so the json becomes invalid so need to rtrim the response
   */
   $test = json_decode(rtrim($output, '[]'));
   echo '
   =========================RESPONSE================================

   ';

   print_r($test);
  // echo($test->item_id);
 }
 exit(0);

 ?>

and that is my module tree structure


texts: Magento extension not installing database tables

texts:
I've bumped into an odd problem on my local running version of Magento 1.9.2.1. I installed the Fishpig Splash Pages plugin which was working fine, but I uninstalled it (as I was testing different plugins to see which worked best).

I then decided this extension was the best one that was going to suit my requirements so I reinstalled it. After this install, One or more of the Indexes are not up to date - meaning I had to run the Attribute Splash reindex, but when running this I received the error: Cannot initialize the indexer process. I then tried manually running the indexer via \shell\indexer.php --reindex - and this produced some PHP errors that indicate the tables don't even exist.

I then created a brand new install of Magento running 1.9.2.1 - the plugin installed fine and correctly created the splash pages database tables. What could be causing my other copy not to do so?


texts:
I am trying to override Magento 2 footer.phtml, with my custom html footer, I have tried almost everything but still no success, I even tried the below:

You can overwrite the existing templates by copying them into your theme and making changes to the template files.

So copy these two files:

  vendor/magento/module-theme/view/frontend/templates/html/header.phtml
  vendor/magento/module-theme/view/frontend/templates/html/footer.phtml

Into your theme:

  app/design/frontend/VENDOR/THEME/Magento_Theme/templates/html/header.phtml
  app/design/frontend/VENDOR/THEME/Magento_Theme/templates/html/footer.phtml


texts: Magento 2.3.4 theme use different logo file for mobile and larger screens

texts:
I need to use 2 different logo files, one for mobile and one for desktop view.
I have one single custom theme (parent is luma) and I am wondering how to achieve this by using jquery and/or CSS.
Is there a good way to do that using the mediaCheck function?
Thanks in advance!


texts: how to get corresponding associated products images in magento

texts:
I want to display the simple product images associated with configurable products after click the option like color green.

I have referred the following link to show up
reference

But I did not get the associated product images.I'm using [pagayo theme][2]

I have selected size1 as XXL and color1 as green
![enter image description here][3]
I'm getting the display like below:

But i did not get more images in more views.More views only displaying default configurable images.

Kindly help me to get it!!
Thanks in advance!!


texts: Error in Magento 2 when trying to deploy

texts:
I have this error:

  Fatal error: Class 'Locale' not found in
  vendor/magento/framework/Locale/Bundle/DataBundle.php
  on line 64

in Magento 2 when I try do use this command to clear the cached files:

php bin/magento setup:static-content:deploy

Does anyone else have this problem?

Later Edit:
I want to regenerate the static content, it was a bad wording before.
I am using Magento 2.0.2 and I used the downloaded file from magento.com


texts: How to remove products from compare collection in Magento2?

texts:
Looking for a better way to add and remove the product on click of same icon.

If a product is already added to the compare collection then on next click of that icon, It should  remove the product from compare collection.


texts: magento select all the products which have special price

texts:
I want to select all the products SKU which have special price
through mysql query.


texts:
I am getting this error

Fatal error: Class 'Mage_Marketplace_Helper_Data' not found in /home/ramrent/public_html/app/Mage.php on line 547

Can you please let me know how can i fix this


texts:
In the customer/edit page (adminhtml) I set up some custom fields, they appear by default under information account tab.

I created an observer (event is adminhtml_block_html_before), and I need to remove the fields from the form. I see there is a removeField method I could use, but I cannot find any explanation on how to do it from the observer.


texts:
I want to hide success / error messages after 5 seconds once I have added items to the cart.

I have extended messages.js with the following code to hide the message after 5 seconds

setTimeout(function() {
    $(".messages").hide('blind', {}, 500);
}, 3000);

When I add item to the cart for the first time the message gets hidden after 5 seconds but when I add another item to the cart the message is not showing up.


texts:
This is my redirect function:

public function redirectCustom(Varien_Event_Observer $o)
    {
        Mage::app()->getResponse()->setRedirect("http://localhost/myurl/");
    }

This is my xml:

<frontend>
        <events>
            <customer_login>
                <observers>
                    <mynamespace_mymodule_customer_login>
                        <class>Mynamespace_Mymodule_Model_Observers_Customer_Redirect</class>
                        <method>redirectCustom</method>
                    </mynamespace_mymodule_customer_login>
                </observers>
            </customer_login>
</events>
    </frontend>

My xml is fine, it gets to my function. But it simply ignores my redirect to my custom url. After login it redirects me always to my account page and i want to redirect my user to a custom page. What's wrong with my redirect function. Any ideas ?


texts:
In a previous question i asked where to find items.phtml file.

I found it and did the configuration and it worked. But when i did this it was via this path: vendor/magento/module-shipping/view/adminhtml/templates/create/items.phtml.

I read somewhere that they do not recommend to any changes via /vendor but do this via /app/design/adminhtml/custom_vendor/custom_theme/ and so on.

What i did was i downloaded the items.phtml (un-fonfigured) and i did the change and tried to add this file to my created path:
/app/design/adminhtml/custom_vendor/custom_theme/templates/create/items.phtml

after doing the setup:upgrade and setup:deploy, cleared cache and re-indexed nothing happen.

Can anyone help and tell me what i have done wrong?

Any tips and help is appreciated.

Thanks


texts: I do not want to send auto order email in magento 1.9.1.1

texts: Is there any way to stop magento order email. I do not want to send email automatically I'll send order email manually by admin Sales -> Orders -> Send email.


texts: Is it possible to use MAGENTO 2 API on MAGENTO 1.9?

texts:
There already exist an API called customers/isEmailAvailable in Magento 2. I want to migrate that API to Magento 1.9.

I do not have an idea how can I achieve this functionality?

I've searched a lot but i did not find anything

Please help me.


texts: Get value of super attribute of configurable products in magento 1.9.3.1

texts:
I tried to get value of attributes of configurable products.

my question is: how to get the price and selected value of associated product?

Thanks.


texts:
To reproduce the issue during checkout

The default shipping address is not pre-selected at the checkout page, instead of fetching the shipping address, it fetches the default billing address or some other addresses of the same customer at the checkout page.

Please refer to the screenshots and also see the difference in the shipping address between My account and checkout page

My account page

Checkout page

How to preselect the default shipping address during checkout in magento 2


texts: Search Product by SKU programatically using search criteria

texts:
I need to search product programatically using search_criteria

public function search($storeId, $searchTerm, $searchOrder, $searchDir, $page, $pageSize, &$totalSearchResults, &$attrs_applied, &$attrs_available)
{

 $search_criteria = $this->_searchCriteriaBuilder->create();

 $search_criteria->setRequestName("quick_search_container");

$firstCharacter = substr($searchTerm, 0, 1);

if($firstCharacter == ":") {

   $filter = $this->_filterBuilder->setField('sku')
        ->setValue(substr($searchTerm, 1))
        ->setConditionType("sku")
        ->create();

} else {

   $filter = $this->_filterBuilder->setField('search_term')
        ->setValue($searchTerm)
        ->setConditionType("like")
        ->create();
}

    $filterGroup = $this->_filterGroupBuilder->addFilter($filter)->create();

    $search_criteria->setFilterGroups([$filterGroup]);

    $resultx = $this->_SearchInterface->search($search_criteria);

    $totalSearchResults = $resultx->getTotalCount();

    $products = $resultx->getItems();

    return $products;

}

but no return results, and throw exception

Exception #0 (Magento\Framework\Search\Request\EmptyRequestDataException): The request query and filters aren't set. Verify the query and filters and try again.

any idea?


texts: Product SKU contained in another SKU causing problems

texts:
I've encountered a problem where I have imported a set of products from another website and in cases where a product's SKU is also the start of anothers, it causes problems where it pulls in sizes from the other product. It also causes problems in the layered navigation where a product is showing brands from the other product.

As an example, there is a product with SKU 677 and another has SKU 6772. Product 677 is pulling in sizes etc from 6772.

I assume this is to do with Magento's handling of associated products?


texts: how to: prices including taxes based on customer location

texts:
I would like to display products with prices including taxes based on customer location. my idea is to display those prices based on customer geolocation even if the customer is not logged and never change to another store.

@FabianBlechschmidt wrote: the customer entity doesn't have a country, the customer has an address, which has a country and all taxes calculation are done with that information.

does anyone know a way to pass that information in order to display prices including taxes for a particular country, even if a customer is not logged. ideas or plugin welcome. brgds!


texts:
When you choose to display prices both including and excluding tax, the text 'Incl. Tax' and 'Excl. Tax' appear after the respective prices. We are only displaying the price excluding tax, but no corresponding text appears after the price. I want to add this.

I was looking at editing the price.phtml file, based on advice found here about adding text before a price. I reasoned that adding

<?php echo $this->_("Excl. Tax") ?>

after the span containing the price rather than before it would have the desired effect. So I ended up with

<?php else: ?>
<span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
<?php if ($_finalPrice == $_price): ?>
<?php echo $_coreHelper->formatPrice($_price, true) ?>
<?php else: ?>
<?php echo $_coreHelper->formatPrice($_finalPrice, true) ?>
<?php endif; ?>

<?php echo $this->_("Excl. Tax") ?>

after line 206.

However, this just ended up causing an error when I tried to load the page:

  a:5:{i:0;s:83:"Invalid method Mage_catalog_Block_Product_Price::_(Array
  (
      [0] => Excl. VAT
  )
  )";i:1;s:3968:

Am I barking up completely the wrong tree? Is the code just slightly wrong or totally the wrong idea?

Thanks


texts:
I'm trying to create a new order, based on an old order.

$orig_order = Mage::getModel('sales/order')->load((int)$order_id);
        $order_model = Mage::getSingleton('adminhtml/sales_order_create');

        try {
            $orig_order->setReordered(true);
            $reorder = $order_model->initFromOrder($orig_order);
            $reorder->getQuote()->getShippingAddress()->collectTotals();
            $reorder->getQuote()->getShippingAddress()->save();
            $reorder->createOrder();
        } catch (Exception $e) {

        }

This doesn't do anything, but is the only reference I can find to programatically reordering. Any ideas?


texts: Blue Jalappeno Order Export - How do you modify the csv export file?

texts:
(I am not 100% sure that this is the extension but I think so - it is in Community/Webshopapps/ordermanager and looks like the most likely extension listed at http://www.magentocommerce.com/magento-connect/developer/WebShopApps)

I have been asked to remove a line break in one column of the csv file that is exported by Blue Jalappeno Order Export. Some of the "Shipping Street" entries have a line break so that the street address looks like this:

"Appartment 3

6 Main St"

instead of "Appartment 3 6 Main St"

The client is unable to do whatever it is he is trying to do with this csv because of the line break so I want to replace it with a space or a dash. It will be done by a cron job so a simple find/replace on the csv wont work.

I have tried the following:

$file = str_replace(array("\n", "\r"), ' - ', $file);

in the switch in Webshopapps_Ordermanager_Sales_Order_ExportController

$order = str_replace(array("\n", "\r"), ' - ', $order);

in the foreach loop in Webshopapps_Ordermanager_Model_Export_Csv::exportOrders($orders)

Has anyone any experience with this extension? Am I on the right track?


texts: Customer ID is null in Observer when customer_save_after triggers

texts:
I have this event that fires just fine:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="customer_save_after">
        <observer name="remago_addcustomertotree" instance="Remago\Customertree\Observer\Addcustomertotree" />
    </event>
</config>

What I am trying to do is get the customer ID so that it can be added in a different table, when I create it in backend.

This is how I do it:

$customer = $observer->getEvent()->getCustomer();

Now, I am able to get all of his/her data by using

$customer->getName()

or

$customer->getAddress()

and everything looks ok.

The problem is I can't seem to get anything other than null when I use:

$customer->getId()

or

$customer->getEntityId()

or

$customer->getData('entity_id')

Initially, I thought the problem was that I was using the event

customer_save_before

But changing it to

customer_save_after

had no effects whatsoever.

Any idea?


texts:
How can you create a quick-view on product listing page for each individual product?

I have looking on this site and haven't seen anything.


texts:
I want to display my custom block in the top of right column. I followed the below link

Widget setup in backend - how do I move upwards

I have a doubt in the second step,what is the [widget_id] specified?
How can I do it?

Here is my local.xml

<layout version="0.1.0">
   <catalog_category_layered>
        <update handle="subcategory_top_container" />
    </catalog_category_layered>

    <subcategory_top_container>
        <reference name="right">
           <block name="right_top" type="core/text_list" before="-" translate="label">
                <label>Right Column Top</label>
           </block>
        </reference>
   </subcategory_top_container>
</layout>


texts: local.xml not working in Magento 1.9.2.2 with RWD template

texts:
I use Magento 1.9.2.2 with RWD package.
Seems that local.xml is not working.
If I copy the original catalog.xml to the directory with the local.xml, changes on catalog.xml are effectuated.

This is the code of the local.xml:

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

<!--
Default layout, loads most of the pages
-->

<default>
    <!-- remove the language and store switcher and footer links blocks, we won't use them -->
    <remove name="store_language" />
    <remove name="store_switcher"/>
    <remove name="footer_links" />
</default>

<default>
<reference name="right">
<remove name="catalog.compare.sidebar" />
<remove name="left.reports.product.viewed" />
<remove name="catalog.product.related" />
</reference>
</default>

Maybe I have placed the local.xml in the wrong place?

Hope anybody has a clue,
Els


texts: Magento 2 stock is decreasing by itself, how to monitor?

texts:
We have problems with keeping the correct stock amount in inventory with Magento 2. (Not using MSI).
For some reason Magento 2 is decreasing the stock amount of products and we can't figure out why. Suddently the stock is 0 on many products.
When does this happen? I assumed at first it only happens when an order is in a "new order created state", but this can't be the only time it decreases.
Is there a way to monitor when stock is decreased on a product and send it to a log to find out when/how stock is decreased by code?


texts: Magento2.3: Order not Place and Redirect to checkout/cart page

texts:
I have upload my Magento2.3 site on site ground. Others things are working fine but order not place redirect to checkout cart page.

system.log:

 [2019-04-19 12:15:47] main.INFO: Broken reference: the 'div.sidebar.main' tries to reorder itself towards 'main', but their parents are different: 'div.sidebar' and 'div.col-main' respectively. [] []
    [2019-04-19 12:15:47] main.INFO: Broken reference: the 'currency' tries to reorder itself towards 'store_language', but their parents are different: 'header.panel' and 'theme_header' respectively. [] []

live site link

https://rcg.com.pk/

But same project working fine on staging site.

http://rcg.staging.techgaragenow.com

It hosted on digital ocean .Working fine every thing .kindly describe the issue


texts: RedisException: Read error on connection with Magento 2

texts:
I'm getting this constant exception when running the static content deploy command and here is my redis section from the env.php file

'session' =>
  array (
    'save' => 'redis',
    'redis' =>
    array (
      'host' => '127.0.0.1',
      'port' => '6379',
      'password' => '',
      'timeout' => '3.5',
      'persistent_identifier' => '',
      'database' => '0',
      'compression_threshold' => '2048',
      'compression_library' => 'gzip',
      'log_level' => '1',
      'max_concurrency' => '6',
      'break_after_frontend' => '5',
      'break_after_adminhtml' => '30',
      'first_lifetime' => '600',
      'bot_first_lifetime' => '60',
      'bot_lifetime' => '7200',
      'disable_locking' => '0',
      'min_lifetime' => '60',
      'max_lifetime' => '2592000',
    ),
  ),


texts: Products are showing up under magento subcategories but not on categories - system

texts:
I'm having an issue as I have to organise some products to display on the top of the pages on the website.
It works on the subcategories and I change the position, everything fine. But when I go to the main category (389 products) for example, it doesn't shows up any products. When on the website, it shows up all the products (389).  In some other categories it shows some products on magento, but not all the ones that are showing up on the website.
Does anyone knows what can be happening and how I can make the products appear under the category on magento to change the positions?
I'm using Magento ver. 1.9.1.0

Thank you!


texts: How to set image for product on catalog_product_save_after event in magento 2?

texts: I am able to set quantity after product save but not able to figure out how to set a product image on catalog_product_save_after event. Any help


texts: Model rewrite that can be easily disabled

texts:
I need to customize a Model in a third party extension.

I need to override the Model so I would not be editing the source files. I would also like if in case there is an error for whatever reason coming from my Model, it could be easily disabled by someone with no programming skills.

I had the idea of, perhaps, somehow putting my edited Model in my custom module, declaring it to be used instead of the default one, but if I disable my custom module (containing the Model) from the Admin panel, the default Model would be used.

Is this possible? And if not: What is the preferred way of overriding a third party Model?


texts: Magento 2 Invoice PDF contains weird character if comments are added in multiple lines while generating invoice

texts:
Magento by default do not display comments in pdf. So I wrote this code.

$commentsCollection = $source->getCommentsCollection(true);
        $internalcomments = "";
        if($commentsCollection){
            $internalcomments = "NOTES:";
        }
        if ($this->y <= 20) {
                $page = $this->newPage();
                $this->y = 800;
         }
        $page->setFont(\Zend_Pdf_Font::fontWithName(\Zend_Pdf_Font::FONT_HELVETICA), 7);
        $this->_setFontBold($page, 10);
        $this->y -=10;
        $page->drawText($internalcomments, 30, $this->y, 'UTF-8');
        $this->_setFontRegular($page, 10);
        $this->y -= 15;

        foreach($commentsCollection as $comm)
        {
                $textChunk = wordwrap($comm->getData('comment'), 120, "\n");
                foreach(explode("\n", $textChunk) as $textLine){
                        if ($textLine!=='') {
                                $page->drawText(strip_tags(ltrim($textLine)), 30, $this->y, 'UTF-8');
                                $this->y -= 15;
                        }
                }

         }

I am facing a weird issue where invoice pdf contains character like empty box or empty box with cross in it only when you add comments in multiple lines (press enter) while generating invoice. If you add comments in multiple lines later on (when invoice is already generated) this issue does not occur.

I assumed the font might be the issue. So I changed the font to DejaVuSans. However it did not solve my problem.

Any help would be appreciated.


texts: How to Pre filled form data in the registration form Magento 2

texts:
How to auto filled data, when I enter URL like xxx.com/customer/account/create?firstname=test it shows value test in firstname field as per the screenshot

Here is the path and code of first name.

/vendor/magento/module-customer/view/frontend/templates/widget/name.php

            <label class="label" for="<?= $block->escapeHtmlAttr($block->getFieldId('firstname')) ?>"><?= $block->escapeHtml($block->getStoreLabel('firstname')) ?>

                <input type="text" id="<?= $block->escapeHtmlAttr($block->getFieldId('firstname')) ?>"
                       name="<?= $block->escapeHtmlAttr($block->getFieldName('firstname')) ?>"
                       value="<?= $block->escapeHtmlAttr($block->getObject()->getFirstname()) ?>"
                       title="<?= $block->escapeHtmlAttr($block->getStoreLabel('firstname')) ?>"
                       class="input-text <?= $block->escapeHtmlAttr($block->getAttributeValidationClass('firstname')) ?>" <?= ($block->getAttributeValidationClass('firstname') == 'required-entry') ? ' data-validate="{required:true}"' : '' ?>>


texts: Magento 1.9 product view custom options as accordion

texts:
is there a way of adding a jquery accordion block to the custom options on the product view page.

if there are 5 custom option dropdowns with their own heading title,

can each one have its own title as the accordion tab, and then the actual dropdown with some form of html text inside each one


texts: How can I customize filter urls without an extension?

texts:
I want to customize and optimize my filter urls for SEO without using an extension.

Currently if I set up a filter I am getting urls like:

www.mysite.de/electronics/cameras?color=40,

but I want urls like:

www.mysite.de/electronics/cameras/color/black

It is possible with a few changes? I read that I can modify the getUrl function of local/Mage/Catalog/Model/Layer/Filter/Item.php for this, is it right?


texts: Magento Grunt Less Compilation behaves weird

texts:
I have a custom theme Mycompany/mytheme including <Magento>/<blank> as parent.

The locale is set to de_DE.

When I execute php bin/magento setup:static-content:deploy de_DE everything works fine, my custom-m.less and custom-l.less get compiled into custom-m.css and custom-l.css and I also get the Magento/blank theme files and viewing the magento website with chrome also loads these files.

custom-m.less and custom-l.less are exact copies from the blank themes styles-m and styles-l less files

The Problem:

Using grunt exec:mytheme and grunt less:mytheme kinda behaves strange. I still load the Magento/blank styles-l.css but everything else gets loaded via their own less component files (e.g. _extend.less or _module.less)

Here is my grunt config file:

magento-root/dev/tools/grunt/configs/themes.js

module.exports = {

    -----------------------------
    ... blank and luma stuff here
    -----------------------------

    mytheme: {
        area: 'frontend',
        name: 'Mycompany/mytheme',
        locale: 'de_DE',
        files: [
            'css/styles-m',
            'css/styles-l',
            'css/email',
            'css/email-inline',
            'css/custom-m',
            'css/custom-l'
        ],
        dsl: 'less'
    },

    --------------------------
    ... backend stuff here ...
    --------------------------

};

'css/styles-m', 'css/styles-l', 'css/email', 'css/email-inline' are not inside my mytheme, but as magento devdocs says should anyways be included because of the parent theme inheriting. I also tried to not include these files inside the config file = Same result

BTW: grunt commands throw no errors, seems to work fine, in var/view_preprocessed I see my custom files inside the Mycompany/mytheme folders, same as pub/static/frontend....

I deleted the cache after each new try

Server-side compilation enabled

developer mode enabled

Question:  Can someone help me with this? Can someone explain whats wrong?

And what is the expected workflow? Magento Documentation is a bit unclear about that

php bin/magento setup:static-content:deploy -> grunt watch ?
php bin/magento setup:static-content:deploy -> grunt exec:mytheme -> grunt watch ?
grunt exec:mytheme -> grunt watch ?

Should I use the magento php compiler at all? Because I don't want to, way too slow


texts: ParcelForce : How to get test credentials for testing web services in Magento 2?

texts: I'm trying to test ParcelForce as a custom shipping carrier in Magento 2..However I need testing credentials (Username & Password) to check whether I get a response from the server..  I'm finding no way to register with ParcelForce for obtaining the credentials..  Is there any way to test the web service APIs of ParcelForce with Magento ?


texts: Magento 1.8 - How to addItem to block other than `head`?

texts:
I successfully added some custom JS and CSS to my head section (look here).
But If I try to add a script at the block before_body_end then I get:

There has been an error processing your request

Invalid method Mage_Core_Block_Text_List::addItem(Array
(
    [0] => skin_js
    [1] => black/NewsletterPopup/js/main.js
)

app\design\frontend\base\default\layout\black\newsletter_popup.xml
<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
        <reference name="head">
            <action method="addItem">
                <type>skin_js</type>
                <script>black/NewsletterPopup/js/jquery.magnific-popup.min.js</script>
            </action>
            <action method="addCss">
                <stylesheet>black/NewsletterPopup/css/magnific-popup.css</stylesheet>
            </action>
            <action method="addCss">
                <stylesheet>black/NewsletterPopup/css/main.css</stylesheet>
            </action>
        </reference>

        <reference name="before_body_end">
            <action method="addItem">
                <type>skin_js</type>
                <script>black/NewsletterPopup/js/main.js</script>
            </action>
        </reference>
    </default>
<!-- ... -->


texts:
I am new to magento 2 and want to customize my invoice PDF that is created, I want to change the design completely and want to add new field also I want to make a conditional paragraph that shows in specific shipment destination address.
how can I do this all.


texts: Products not importing via CSV - Magento 2.2.3

texts:
I'm trying to import products on Magento 2.2.3 via the System > Data Transfer > Import method.

I've selected 'Add / Update' from 'Import Behaviour' and the file imports successfully.

But, none of the products are showing on the frontend, backend or in the database.

What could be wrong?

I downloaded the sample file it gives you and filled it in with our products.

If you want me to supply my excel sheet, can you point me in a place to where I can host it for you?


texts:
I am creating an app for Magento 1.9.And during my process, i tried to add a product to the cart by the query like this (http://localhost/zara/rest/addtocart.php?prodid=4&qty=1).It's added on backend side (DB) but when I try to load cart items or cart total its shows empty cart.
My Cart code is below:

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

$paramater = array('product' => $productId,
                    'qty' => '1',
                    'form_key' => Mage::getSingleton('core/session')->getFormKey()
            );

$request = new Varien_Object();
$request->setData($paramater);
$cart->addProduct($product, $request);
$cart->save();

Mage::getSingleton('checkout/session')->setCartWasUpdated(true);
}
catch (Exception $e) {
$message = $e->getMessage();
    $ret['error'] = $message ;

}

I also tried this code but no luck:

$cart = Mage::getModel('checkout/cart');
    $cart->init();
    $cart->addProduct($product, array('qty' => $qty));
    $cart->save();

What could be the reason that its not showing on front side? Thanks


texts: Unable to add new Product after moving from AWS to local VM

texts:
I've just restore my magento 2 from AWS to my local VM for testing.

The site looks fine until I tried to Add a new product and would get the following error message as soon as I click the [Add Product].

  There has been an error processing your request The requested
  component ("settings") is not found. Before using, you must add the
  implementation.
  Error log record number: 582829183726

My site uses the Infortis Ultimo theme.

Please help.


texts: How to send mail to customer and owner from custom tech support form?

texts:
How to send mail to customer and owner from custom tech support form ?

my Template Content is

Name: {{var data.name}}
E-mail: {{var data.email}}
Day: {{var data.day}}
Telephone: {{var data.telephone}}
Message: {{var data.message}}

i want to use this template and send mail to customer and owner

name cof template is support


texts:
I am creating a custom session value from an external file, How can I limit this custom session value to 5 minutes only?

require_once('app/Mage.php');
umask(0);
Mage::app("default");

$sessionCode = Mage::getSingleton("core/session",  array("name"=>"frontend"));
$verifiedCustomer = $sessionCode->getData("verifnum");


texts:
Is it possible to create new custom layered navigation on left sidebar?
I want to display custom store and after clicking on store I would like to display
products on right side column .


texts: How to send different email while creating credit memo based on online/offline refund

texts:
I am in situation where I need to send different email while creating credit memo.
There always remains two cases, online refund and offline refund.
So, while creating credit-memo, if I am refunding online, then I want to send an email having mentioned that it is online refunded.
On other case, If I am refunding offline, then I want to send an email having mentioned that it is offline refunded.

I do also need to take care for the time when I click on already created credit memo and then selects send email (which send email to customer for the already generated credit memo).

Is there a way to do so? If yes, please help me to get this done!


texts: Magento 2 Override image problem (static image of parent theme)

texts:
Having a parent theme, I have created a child theme. (Magento 2.2)

Parent theme: Mgs/claue

Child theme: Bee/elag

In the web there is a Title of page with a background css:

.page-title-wrapper {
background-color: #f7f7f7;
padding: 58px 0 55px;
text-align: center;
background-image: url('../images/shop-category.jpg');
background-size: cover;
background-repeat: repeat-y;
position: relative;
background-position: center center;
background-attachment: scroll;}

The image url shown is:

https://domain.tld/pub/static/version1508230959/frontend/Bee/elag/es_ES/images/shop-category.jpg

The background image is in:

/app/design/frontend/Mgs/claue/web/images/shop-category.jpg

I have added the image that I want to replace in:

/app/design/frontend/Bee/elag/web/images/shop-category.jpg

It does not work, it isn't replaced, I have deleted cache but nothing.

What can happen?


texts: Display header menu in IWD one page checkout extension

texts:
I want to display my header menu but it is not showing on onepage checkout page. I have tried this methods below but not working
Please help me find the solution.

<referenceContainer name="header.panel" remove="false" />
<referenceBlock name="catalog.topnav" remove="false"/>
<referenceBlock name="navigation.sections" remove="false"/>

In the onepage_index_index.xml


texts: magento 1.9 - 'submit shipping' btn is not working on admin page!

texts:
Once an order is confirmed, i also confirm the shipment about that order.

So on Sales > order, i click the ship btn located in upper right side. Then, i write down the tracking code and submit the shipment!

btw it had been working well. Oneday i found that the the button of "submit shipping" is not working!

I checked the bug report on chrom,firefox even internet edge and log file as well. i can see nothing wrong so can i guess it would be frontend issue that the website didn't recognize this one as button? I didn't change any other javascript and configuration of extension tho.becuase it is the clone site of our website.

Could you share what happened on my website?


texts: List is empty of transactional emails template by default

texts:
I am working on ver 1.9.1 and by default the list of "transactional email template" is empty causing my store to not able to send any emails. Are there anyways to import them or get them?

thanks


texts: Where do I find the HTML Markup on One Page Checkout: echo $_rate->getMethodDescription()

texts:
At OnePageCheckout in magento under app/design/frontend/themename/template/checkout/onepage/shipping_method/availible.phtmlI found this entry

<?php echo $_rate->getMethodDescription(); ?>

It's the ul/li list with shipping costs

One : 2,94&nbsp;€

Two : 0,00&nbsp;€

  ...

How can I change that list to an table .. WHERE do  I find the HTML?
Thanks for your help. And by the way .. How can I find it in future, if I have only the Method in my phtml-file ..


texts:
I am wanting to change the names in English for countries in Magento 2.2.4. I tried looking through the database but it appears their full name is not listed there, just country codes.  For my use of magento, only a few countries need to remain and they all need to be renamed.  This site will not be used for shipping items, it is for internal use.

For the sake of an example change, Japan could be changed to Nippon.

I have found the following questions:
Updating country name in magento 2
and
How to Get country name from country code in Magento 2?

Both of them mention editing a *.csv file in an i18N folder.  One says editing one within a module and another doesn't specify.  I did find such a folder in: /Magento/lib/web/i18n/en_US.csv but adding 'Japan','Nippon' to that file didn't work as I assume it only applies to those web error messages.

I also came across this: How to add new country in country dropdown in magento2.2.1

I couldn't find the folder described there but I did find /Magento/vendor/magento/zendframework1/library/Zend/Locale/Data/en.xml which I edited the territory name, flushed the caches and found nothing had changed.

Can anyone assist?


texts: Redis keys are keep increasing, EXPIRY is not set to keys

texts:
default,page_cache redis cache data doesnot set expiry
it always set to -1
please suggest a way to add expiry time for redis keys

Due to this RAM is overflows regularly

'cache' => [
    'frontend' => [
        'default' => [
            'backend' => 'Cm_Cache_Backend_Redis',
            'backend_options' => [
                'server' => '127.0.0.1',
                'database' => '2', //18
                'port' => '6379',

            ]
        ],
        'page_cache' => [
            'backend' => 'Cm_Cache_Backend_Redis',
            'backend_options' => [
                'server' => '127.0.0.1',
                'port' => '6379',
                'database' => '3', //19
                'compress_data' => '0',

            ]
        ]
    ],


texts: Permission issue after clone the project Magento2.3.1

texts:
I am facing an issue after cloning my project from bitbucket repo on a different server that is having Centos 7.

  Fatal error: Uncaught Zend_Cache_Exception: cache_dir
  "/var/www/html/var/page_cache" is not writable in
  /var/www/html/vendor/magento/zendframework1/library/Zend/Cache.php:209
  Stack trace: #0
  /var/www/html/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180):
  Zend_Cache::throwException('cache_dir "/var...') #1
  /var/www/html/vendor/colinmollenhour/cache-backend-file/File.php(87):
  Zend_Cache_Backend_File->setCacheDir('/var/www/html/v...') #2
  /var/www/html/vendor/magento/zendframework1/library/Zend/Cache.php(153):
  Cm_Cache_Backend_File->__construct(Array) #3
  /var/www/html/vendor/magento/zendframework1/library/Zend/Cache.php(94):
  Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true) #4
  /var/www/html/vendor/magento/framework/App/Cache/Frontend/Factory.php(156):
  Zend_Cache::factory('Magento\Framewo...', 'Cm_Cache_Backen...',
  Array, Array, true, true, true) #5
  /var/www/html/vendor/magento/framework/Cache/Frontend/Adapter/Zend.php(38):
  Magento\Framework\App\Cache\Frontend\Factory->Magento\Framework\A in
  /var/www/html/vendor/magento/zendframework1/library/Zend/Cache.php on
  line 209

I have given chmod 777 var/ -R  and chmod 777 var/cache_dir/ -R .

But the error was same.


texts: bundle products not in price index table , not visible

texts:
I have upgrade an magento shop from a very old system to magento 1.9.2. Bundle Products are not visible in the shop. I have search a lot of time and i have found out that bundle_products build no index in the catalog_product_index_price mysql table.

So i have edit the core product file for the products and rebuild the index for those products per hand. So the index in this table is build and the products are visible. Now when some user order some bundle products in the invoice for the order all product prices are zero. PayPal redirect with an error that the basket price is not the order price.

So, my work around is not really an option. But i have really no idea why bundle_products build no price index :( When i edit/create some bundle_product in the admin the fields price type and tax are disabled too - i think it is also not normal.


texts: Magento 1.9.2.3 - How to include Guest customer in Observer?

texts:
My code for payment method only  whose customer group 9,
<?php
class Gta_FilterPaymentGateway_Model_Observer
{
    public function paymenter(Varien_Event_Observer $observer)
    {
        $currentCustomerGroup = (int)Mage::getSingleton('customer/session')->getCustomerGroupId();

            if (($observer->getMethodInstance()->getCode() == 'paytm_cc') && ($currentCustomerGroup !== 9))
            {
                $result = $observer->getResult();
                $result->isAvailable = false;
            }
    }
}

Here how can i include the guest customers if condition?
Workout :
<?php
class Gta_FilterPaymentGateway_Model_Observer
{
    public function paymenter(Varien_Event_Observer $observer)
    {
        $currentCustomerGroup = (int)Mage::getSingleton('customer/session')->getCustomerGroupId();
        $checkcustomer = Mage::getSingleton('customer/session')->isLoggedIn();

            if (($observer->getMethodInstance()->getCode() == 'paytm_cc') && ($currentCustomerGroup !== 9) && $checkcustomer  )
            {
                $result = $observer->getResult();
                $result->isAvailable = false;
            }
    }
}

Any help thanks.


texts:
I am using magento enterprise and i am working in wishlist there is a function in core at path

  C:\xampp\htdocs\projects\baab.bh\app\code\core\Mage\Wishlist\Helper\Data.php

getWishlist()

When i am calling this function to get wishlist from front-end phtml file its giving me the correct wishlist but when i am calling this function from controller its giving me the default wishlist only, not the current wishlist here is the code of this function

public function getWishlist()
    {
        if (is_null($this->_wishlist)) {
            if (Mage::registry('shared_wishlist')) {
                $this->_wishlist = Mage::registry('shared_wishlist');
            } elseif (Mage::registry('wishlist')) {
                $this->_wishlist = Mage::registry('wishlist');
            } else {
                $this->_wishlist = Mage::getModel('wishlist/wishlist');
                if ($this->getCustomer()) {
                    $this->_wishlist->loadByCustomer($this->getCustomer());
                }
            }
        }
        return $this->_wishlist;
    }

I am calling it with same code but it behaves differently from front-end phtml file than it does from controller. How can i get current wishlist from controller as well.


texts: Can't login with Safari on iPad - Magento 1.8

texts:
I received a customer report that they can't login to our ecommerce site from their iPad.   I was able to recreate the issue with Safari, but Chrome on the iPad works fine.

What I see in Safari is the page seems to reload (posts to the server) but then returns to the login page without an error message in the browser.   Double-checked credentials, they are correct and, as I mentioned, work fine in Chrome.

Not even sure where to start diagnosing this issue.


texts: How can order email entry be missing in backend order entry? (and raise an error)

texts:
when I try to manually add an order via

Sales -> Orders -> Add Customer -> Order

I am struck by the fact that the email entry box is missing. And I really have no idea how or what could be causing this. Al went through all modules design files to se what is happening there but no success..

Where should I start debugging this adminhtml error .... (we cannot save the order, because it is warning me to add a email)


texts: How to add custom filter to the existing ones?

texts:
I’m really new on Magento and I’ve to implement a custom filter on numeric value that involves more than one attribute. In other words, if a product have attributes A and B, I need to add filter on something like (A + arg1)*(B+arg2) < arg3, where arg1, arg2 and arg3 are input numeric values. I found the addExpressionAttributeToSelect to apply the filter expression to the product collection, but I’m not able to retrieve and take into account the already applied filters, e.g. the selected attributes in the Shop By section, returning the complete filtered product list as in normal layered navigation. What are the steps in the backend to implement the function?
I’m using Magento 1.7.0.2 CE.


texts: magento 1.9 not redirecting customer to success page after a successful order

texts:
I’m facing a strange problem I’m working on magento 1.9.
Sometimes after a success order the customer is not redirected to success page, this happens not in all orders maybe 1 of 5.
after diagnosing the issue I found out that in

core/Mage/Checkout/controllers/OnepageController.php

it seems that there’s no  getLastSuccessQuoteId() as showen in the pictures bellow

I was thinking that it may be happen because of redis but i’m not sure. does anyone faced some similar problem before or have an idea on how can I solve this issue ? Thank you :)
Screenshot 2020-03-31 at 22.05.47.png

strong text


texts: Magento 2 Bank transfer payment method is not shown on checkout

texts:
I have enabled Bank Transfer payment method on backend by still is not shown on checkout.
I flushed the cache and I made sure that the payment method is enabled for the shop.
This happened after upgrade to 2.2.6


texts: Disable add to cart for cross category product purchases

texts:
I have a unique requirement where If a product has been added to the shopping basket and it belongs to a specific category let's say category "K", add to cart buttons for all products that don't belong to category K should be disabled (on category pages). If on the other hand product in the cart belongs to any category other than category K, all products of category K should not show add to cart button.

Any ideas?


texts: M1 patch SUPEE-10266 - Magereport shown as "not patched"

texts:
I am currently installing 10266 on multiple sites, and when running the patch via cli:

sh PATCH_SUPEE-10266_CE_1.9.2.4_v1-2017-09-13-06-37-37.sh

I receive:

Checking if patch can be applied/reverted successfully...
Patch was applied/reverted successfully.

Perfect. However when I run the sites through magereport.com, 10266 is shown as "not patched", even after providing the backend url. Is this a case of magereport requiring certain permissions to function? If so, which ones?

And yes, I flushed the cache :)


texts: Magento2: How to remove items from cart before adding new Item?

texts:
I want to clear the cart before adding a new item to the cart.

I am trying to do using the event "checkout_cart_product_add_before" and by this code in the observer.

$allItems = $this->checkoutSession->getQuote()->getItemsCollection();

foreach ($allItems as $item) {
$itemId = $item->getItemId();
$this->cart->removeItem($itemId)->save();
}

My all items getting remove from the cart with the newly added item also.

Can anyone help me out with this?

Thanks


texts: Remove the Required field for the postcode at the checkout page

texts: Remove the required field for the postcode for the billing and shiping Address


texts: Show category in wishlist table my account

texts:
I'm trying to show the category of each product in my wishlist table. So each product has to show the category it is in in the table on the account page of Magento.

Please see screenshot attached. So instead of "Bekijk Categorie" in the Tbody it should show the name of the category and link to it.

Thanks in advance!


texts: Adding extension attribute to customer in GraphQL Magento 2

texts:
In magento2 - I have created one extension attribute for customer using plugin, it's working fine for Rest API also. How can I include this extension attribute in GraphQL?

In createCustomer mutation , all the CustomerInput are added. Can anyone help me in adding an extension attribute to this mutation?


texts: Fetch and modify all FPT - Magento 2.4.1

texts:
I'm trying to build a script to fetch all products that contains a FPT (Fixed product tax), and edit all these FTP's.
How would I approach this?
Thanks in advance.


texts: Issue : Please re-run di:compile command , hash not saved

texts:
my css and js are not loading on both back , front end , i tackle this issue previously by following bunch of magento commands but this time i dont know why its not working , i have encounter one warning during running upgrade command , i think this is creating issue , check the issue and suggest me am i right or wrong or how can i resolve it , thanks.

console screen error :


texts: How to Delete all Products only and Reset Product ID in Magento 2.2.3?

texts:
I have tried to delete products from our development environment we have over 5000 products but would like to tidy the table up. The issue is that I cannot get auto increment to work even after all products are deleted.

Magento 2.2.3, Nginx, PHP7.1, PHP-FPM, UBUNTU 18.04, MYSQL5.7


texts:
I am working on a CRUD model , I have followed same steps as in this article https://www.mageplaza.com/magento-2-module-development/how-to-create-crud-model-magento-2.html but at the end when I hit http://<myhost.com>/helloworld/index/index its gives me an error
" Class Mageplaza\\helloworld\\Controller\\Index\\Index\Interceptor  does not exist "


texts: GrandTotal(excl. tax) and Payment Method in Admin >> Sales >> Invoice grid

texts:
I have Magento CE 1.9.2.1 installed in my site.

Now I want to also include custom made columns "Grandtotal Excl. Tax" and "Payment method" to my Admin >> Sales >> Invoice grid and also include those columns in Grid export.

How can I do that by editing the collection query in _prepareCollection function of app/code/local/Mage/Adminhtml/Block/Sales/Invoice/Grid.php ?

I don't know much about having subtract operation in sql, so can somebody help me out here ?


texts: How to detect where in the layout files addItem was used?

texts:
I don't like the default Magento combine js / css feature. It just clumps up the entire page of js and css into one file on a per-page basis. This results in pages that have one additional css resource generating a new css file - 90% of which should be cached by the client and not downloaded AGAIN as part of this new css file.

What I am wanting to do is intelligently combine js and css files, so the default head addJs / addItem actions are grouped into one file, then any additional page-specific js is grouped into another file.

How do I detect what layout block (e.g. default) the action addItem was being called from?

Alternatively, if there is an extension that does this then I would be interested in the pre-built solution (I haven't found one).


texts:
I did migration Magento 1 to Magento 2.3.0 all is good but when I create customer form both of side (front and admin) I got the error related to decrypt even I can not edit the customer when I click on save same error has occurred.
Below error is :

Fatal error: Uncaught TypeError: Return value of
Magento\Framework\Encryption\Adapter\SodiumChachaIetf::decrypt() must
be of the type string, boolean returned in
public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php:68
Stack trace: #0
public_html/vendor/magento/framework/Encryption/Encryptor.php(358):
Magento\Framework\Encryption\Adapter\SodiumChachaIetf->decrypt('"\x10\x88\x8E\xB5\x851;H\xB1\x12\xE1aaP...')
#1 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(744):
Magento\Framework\Encryption\Encryptor->decrypt('IhCIjrWFMTtIsRL...')
#2 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(203):
Dotdigitalgroup\Email\Helper\Data->getApiPassword(Object(Magento\Store\Model\Website\Interceptor))
#3 public_html/vendor/dotmailer/dotmailer-magento2-extens
in
/public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php on line 68


texts: Short Description is not saving in magento 2

texts:
Short description is not saving in version 2.1.3. I tried with in modes: developer, production and with enable/disabled cache.

Searched through forum/blogs and it seems M2 bug. Please correct me if I am wrong. Looking for valuable suggestions from community.


texts: How do I rewrite a single element in a .phtml file?

texts:
In my custom module I want to rewrite parts of several .phtml files. For example, in app/design/frontend/base/default/template/bundle/catalog/product/price.phtml, I want to rewrite <div class="price-box">.

Please note: I do not want to override the entire file, just this one div.

Given that when I override blocks and models I can rewrite individual functions of specific core classes by simply extending the class, I would expect that I could also rewrite a single element of a .phtml file by using SimpleXMLElement::xpath to use xpath to manipulate the XML of the .phtml file itself. That way I could make my module automatically detect if the parts of the .phtml file it's overriding have been changed (say, by an update, or by the installation of another module) and automatically disable my module and warn the user should this occur.

How would I go about approaching doing this? It seems that every guide I can find to how to override a .phtml file takes the rather draconian, brutal, and ugly approach of having a separate folder outside the module's main folder (/app/code/{codePool}/{nameSpace}/{moduleName}), instead putting it into /app/design/frontend/{rest of the path}. This seems very non-ideal because not only does it mean the module is not self-contained in a single directory (for everything but the module's main XML file) but also it requires overriding the entire .phtml file (not just the part you are changing) and it can lead to major problems down the road should there be updates to the file you're overriding (since your module has no way to detect those changes and overrides the entire file).

I just want to find a better way. Is there one?

EDIT:

Clarification: lets say I have a .phtml file with a single div. In that div there are appx. 210 lines of code (some are HTML lines, some are PHP lines). What I want to do is inject 160 new lines of code (some HTML, some PHP) prior to the existing lines that are inside that div, before it gets executed by the PHP interpreter.


texts: Magento ver. 1.9.3.2 not logging anything at all

texts:
I have noticed magento all of a sudden has stopped logging things, nothing gets logged anymore. Why could this be happening ? I would like to debug log paypal standard orders but nothing gets logged.

I checked my settings and can confirm that logging is turned on:

However checking the files, there is nothing in them and they are all owned by apache and for now have been given 777 permissions.

My .htaccess includes:

SetEnv MAGE_IS_DEVELOPER_MODE=true
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_flag  log_errors on
php_value error_log  /Applications/XAMPP/xamppfiles/htdocs/mag19/var/vishphp.log

My index.php includes:

error_reporting(E_ALL);
$_SERVER['MAGE_IS_DEVELOPER_MODE'] = true;

if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
    Mage::setIsDeveloperMode(true);
}

ini_set('display_errors', 1);


texts: When applying patch SUPEE-5344 via ssh, "Not found" message appears

texts:
I tried to install the patch from the Magento root but the following errors come up:

PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: 14: PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: 127: not found
PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: 14: PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: 127: not found
PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: 25: PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: 0: not found
Checking if patch can be applied/reverted successfully...
-e ERROR: Patch can't be applied/reverted successfully.

checking file app/code/core/Mage/Admin/Model/Observer.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
3 out of 3 hunks ignored
checking file app/code/core/Mage/Core/Controller/Request/Http.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored
checking file app/code/core/Mage/Oauth/controllers/Adminhtml/Oauth/AuthorizeController.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
checking file app/code/core/Mage/XmlConnect/Model/Observer.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored
checking file lib/Varien/Db/Adapter/Pdo/Mysql.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored

Any idea ?


texts:
i can't install any extension.
Magento Connctor 2.0 stops the Installing Process at
'Checking dependencies of packages' There isnt any other thing showing up.

I already checked the file permissions(setting everything to 777 wouldn't help).
I followed This and nothing Changed.
After Hours of googleing and testing I made a fresh Install and same Problem again.

So i found the Failure.....
Someone Installed the domain for typo3 not magento...
Thanks everyone for your Help :)


texts: Magento 2.1.7 no option to change placeholder image in product page

texts:
I've found that I've got no option in admin as stated in this post
ref: https://www.alexcorradi.org/blog/2016/11/14/how-to-change-product-image-placeholders-in-magento-2

Mine looks like this:

Is this a bug? does any one have more info on this please?
Thanks.


texts: How can I create static blocks via a module install script?

texts:
I have a number of static blocks which I would like to add to my Magento 2 store via a module install script.  I have seen an example here:

http://www.learnmagento.com/magento-2-create-cms-static-blocks-via-setup-script/

which has basically copied how the Magento 2 sample data installs it's static blocks via a CSV file.
This seems a bit like over kill for some simple text static blocks.
Is there an easier way?  Can someone provide an example?


texts: Magento 2.1 override module-catalog-inventory/Block/Plugin/ProductView.php

texts:
I want to override ProductView.php because minimum quantity is 1 in Magento, when ik change the following line to 0.5 the minimum is 0.5 (works when i change it in core).

$params['minAllowed']  = max((float)$stockItem->getQtyMinAllowed(), 0.5);

The code so far (that is not working):

DI.XML

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  <preference for="Magento\CatalogInventory\Block\Plugin\ProductView" type="Jilco\decimunit\Block\Plugin\ProductView" />
</config>

Registration.php

<?php

\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::MODULE,
    'Jilco_decimunit',
    __DIR__
);

Module.xml

<?xml version="1.0"?>
<config xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <module setup_version="1.0.0" name="Jilco_decimunit"/>
</config>

productview.php

<?php
/**
 * Copyright Â© 2013-2017 Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Jilco\decimunit\Block\Plugin;

use Magento\CatalogInventory\Api\StockRegistryInterface;

class ProductView
{
    /**
     * @var StockRegistryInterface
     */
    private $stockRegistry;

    /**
     * @param StockRegistryInterface $stockRegistry
     */
    public function __construct(
        StockRegistryInterface $stockRegistry
    ) {
        $this->stockRegistry = $stockRegistry;
    }

    /**
     * @param \Magento\Catalog\Block\Product\View $block
     * @param array $validators
     * @return array
     */
    public function afterGetQuantityValidators(
        \Magento\Catalog\Block\Product\View $block,
        array $validators
    ) {
        $stockItem = $this->stockRegistry->getStockItem(
            $block->getProduct()->getId(),
            $block->getProduct()->getStore()->getWebsiteId()
        );

        $params = [];
        $params['minAllowed']  = max((float)$stockItem->getQtyMinAllowed(), 0.5);
        if ($stockItem->getQtyMaxAllowed()) {
            $params['maxAllowed'] = $stockItem->getQtyMaxAllowed();
        }
        if ($stockItem->getQtyIncrements() > 0) {
            $params['qtyIncrements'] = (float)$stockItem->getQtyIncrements();
        }
        $validators['validate-item-quantity'] = $params;

        return $validators;
    }
}