texts: Conditional tab with upsell like grid with pagination

texts:
I have added an upsell like grid to the simple products tab conditionally trough an observer like this:

$block = $observer->getEvent()->getBlock();
        if ($block instanceof Mage_Adminhtml_Block_Catalog_Product_Edit_Tabs) {
            if ((Mage::app()->getRequest()->getActionName() == 'edit' || Mage::app()->getRequest()->getParam('type')) && Mage::registry('current_product')->getTypeId() == "simple") {
                    $product_content = $block->getLayout()->createBlock('mymodule/adminhtml_catalog_product_edit_tab_relationsimpleproducts', 'catalog.product.edit.tab.mymodule.simplerelation')->toHtml();
                    $serialize_block = $block->getLayout()->createBlock('adminhtml/widget_grid_serializer');
                    $serialize_block->initSerializerBlock('catalog.product.edit.tab.mymodule.simplerelation', 'getSelectedMymoduleProducts', 'links[mymodule]', 'products_mymodule');
                    $serialize_block->addColumnInputName('order_position');
                    $serialize_block->addColumnInputName('enabled_on_child');
                    $product_content .= $serialize_block->toHtml();
                    $block->addTab('simpleproductslink', array(
                        'label' => Mage::helper('adminhtml')->__('MyLabel'),
                        'title' => Mage::helper('adminhtml')->__('MyLabel'),
                        'content' => $product_content,
                    ));
                }
            }
        }

As it stands, for pagination, a serialiser grid on a productspage calls a controller for pagination / showing more products.

The problem is this block isnt even listed in $this->getLayout()->getAllblocks(); while it is listed when i load the grid from the layout.xml.

So the standard

$this->getLayout()->getBlock('catalog.product.edit.tab.mymodule.simplerelation')
             ->setProductsMymodule($this->getRequest()->getPost('products_Mymodule', null));

Does not work, any ideas on how i still can adress the serializer block and set the products would be appreciated.

P.S.: Just switching to the normal way of loading a serializer grid is not an option. I need this loaded dynamically, there is another check included to see if the tab can be shown or not.

Kind regards


texts: modify the transnational Emails for different store/store fronts?

texts:
I know you do this in System -> Configuration -> Sales Emails -> Order ->

But how do I tell the system to pull the correct logo and store name? It currently pulls all this information from the main default store.

Thank you for your order from {{var store.getFrontendName()}}

or

> Call Us:  {{var
> store_phone}}

also here:

  Email:  {{var
  store_email}}

and here:

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

the logo:

{{template config_path="design/email/header"}}
{{inlinecss file="email-inline.css"}}


texts: List all products on homepage in 4 columns

texts:
I'm new to magento and I want to show all store products in 4 columns on my homepage. At the moment I'm using this to show all products :

{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml"}}

Problem is, it's giving me 3 columns instead of 4 like it's on the category page. Is there a parameter that I can add to block command to render it with 4 columns?


texts: Magento 1: createBlock method returning boolean

texts:
Let me preface with the fact that getLayout->createBlock->toHtml continue to mystify me.

There is a line of code that is throwing an error:

$this->getLayout()->createBlock('distributor/adminhtml_distributors_edit_tab_chat')->toHtml()

The result states that

Fatal error: Call to a member function toHtml() on a non-object in....
Doing a gettype() on `$this->getLayout()->createBlock('distributor/adminhtml_distributors_edit_tab_chat')

It shows that it's returning a boolean rather than an object.

I am trying to understand why this would return a boolean rather than the object that it is expecting.

I did search the error on Google, with the results stating to make sure that the block exists.  As far as I can tell, it does.  I was hoping it would be simple but never seems to be my luck.

The system is setup to run multiple sites, the sites that don't have database entries associated with this block allow the page to display correctly.  Even after deleting the database entries, clearing the cache and retesting the page, the same error occurs.

Thank you for your time and assistance.

Update 01

Based on the replies, I am adding more (please let me know what else would be necessary to assist).

This is a code base that already exists.
This is code that had been running in production without incident.

The code below exists in app/code/local/codebase/Distributor/Block/Adminhtml/Distributors/Edit/Tabs.php

$this->addTab('distributor_chat_section', array(
    'label'     => Mage::helper('distributor')->__('Live Chat'),
    'title'     => Mage::helper('distributor')->__('Live Chat'),
    'content'   => $this->getLayout()->createBlock('distributor/adminhtml_distributors_edit_tab_chat')->toHtml()
        ));


texts: Downloadable Product - same SKU - 1 German file for German Store View - 1 english file English Store View

texts:
working on Magento 2.3 version.
Problem:

I have a downloadable product, different store views English + German
I can change all product info text etc. English + German

BUT
the file I can upload, which later gets downloaded by client can only be changed for all store views globally?! Which is a really stupid Magento behavior.
I need the German download-file for German Store View
I need the English download-file for English Store View
Whenever I upload it only changes the file for all Store Views.
https://pasteboard.co/K2DKMvO.png
Does anyone know, how I can upload files for specific Store Views as well?


texts:
I've installed Magento 2.3.4 on xampp 7.2.28-0.
The admin-panel didn't load so i started researching and did the following:
go to:
/vendor/magento/framework/View/Element/Template/File/Validator.php

change:

$realPath = $this->fileDriver->getRealPath($path);

to:

$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));

After this I could log in but the Admin-Panel didn't load and the logos didn't show.


texts: Magento 2.3.2: Customizable options disappear when saving product programatically

texts:
I'm running a script that bootstraps Magento to bulk-edit some products programmatically.

At the moment, this is done like so:

error_reporting(E_ALL);
ini_set('display_errors', 1);

use Magento\Framework\App\Bootstrap;
require __DIR__ . '/app/bootstrap.php';

$bootstrap = Bootstrap::create(BP, $_SERVER);

$objectManager = $bootstrap->getObjectManager();
$state = $objectManager->get(Magento\Framework\App\State::class);
$state->setAreaCode('adminhtml');

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

$productCollectionFactory = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\CollectionFactory');
$collection = $productCollectionFactory->create();
$products = $collection->addAttributeToSelect('paid_shipping')->load();

foreach($products as $product){
  $product->setPaidShipping(1);
  $product->save();
}

While this successfully updates the products, the customizable options all disappear. Why does this happen? How can I avoid this?


texts: Please make sure your password match during User registration 1.9.2.0

texts:
app/code/core/Mage/Customer/Model/Customer.php

I found some answers that i must change: $confirmation = $this->getConfirmation(); in $confirmation = $this->getPasswordConfirmation(); but I in my code I find well $confirmation = $this->getPasswordConfirmation();

I tried to do the opposite, to change $confirmation = $this->getPasswordConfirmation(); in $confirmation = $this->getConfirmation(); it works but there is a problem:

when I enter the informations and I submit, it redirects me to a blank page with this url: http://www.domaine.com/customer/account/createpost/ and when I refresh the page it redirects me to http : //www.domaine.com/customer/account/ with the dashboard and the created account.

anyone know why there is a blank page for the first url and how to fix this problem


texts:
There is something wrong on one of my category.. the products are suddenly hidden in frond-end.

i can see them in admin panel; i can see the product profile pages on frontend, there are enough stocks/global store..
Everything was ok about an hour ago (i was adding new products; but didnt change anything)

don't know what happened; but now, there is no product listing on one of my category and its subcategories. (no problem in other categories).

i tried everything like,

indexer:reindex
cache:clean
cache:flush
setup:static-content:deploy

etc...

what do you suggest me? (my magento is 2.1.0)


texts: M2 | Do enterprise version have wallet feature by default?

texts:
There is an eWallet feature offered as third party extensions for community edition of Magento 2.

For Example in this extension:

https://magento-modules-demo-demo9420020898.webkul.com/demomanagement/viewdemo/index/demoid/12/

Customer have balance in his account and can purchase by his account balance also can recharge amount any time.

Is this feature available in Magento Enterprise Edition by default like Gift Cards?


texts: amount_paid is not updating for an order paid through Credit Card Direct Post (Authorize.net)

texts: I am using Authorize.net Direct post as a payment method, for payment in my magento2 site. After successful order completion, amount_authorized attribute for that order is updated successfully but amount_paid was null. Do I need to add anything more in my configuration for fixing this issue?


texts:
i created a second store for my website.
the version magento is 1.7.0.2.

i would like to have for each store,different products.
so, i create a second defaut category for my products of my second store.

at the moment, it work because when i add a product, i choose the good category.
the problem is when i research products on my first store, i find products of my second store.

is there a solution for this problem?


texts: Magento 2 : Add Custom Tooltip to Shipping Methods On Checkout Page

texts: I need to display the custom tooltip for shipping methods on checkout page using magento 2.1.


texts: Sort attribute option alphabetically in Magento 2.3

texts:
I am trying to sort show the attribute option in alphabetically for the configurable products.

Followed below answer.

Configurable product attribute sort order in Dropdown 2.12

But in 2.3.4 the code is not like in the suggested answer, Can anyone help me with how can i show options in alphabetic order. Thanks in advance!!


texts: How to deny customer to change email adress

texts:
I am using Magento 1,9
I am making a b2b store and I would like to deny customer from changing email adress at any time, so this can only be done in backend

And easy solutions?


texts: In Magento 2, How can I add a custom class to a SPECIFIC customer navigation item, ie "Company Structure"

texts:
In Magento 2.3 I'm trying to add a custom class instead of nav item to a specific menu item.  In my case it's "Company Structure".  A perfect solution would have each item with a distinct class like "nav item companystructure", but if I can just do one I'll take it.

I know how to modify ALL items in customer_account.xml, but I can't figure out how to change the <li> class for a specific item.


texts: Reading Data from Magento Table and converting it to XML

texts:
I'm able to read the the product name and description using the following queries on the magento database table using PHP.

SELECT value FROM mg_catalog_product_entity_varchar WHERE attribute_id = 71 AND entity_id = $entityid

SELECT value FROM mg_catalog_product_entity_text WHERE attribute_id = 72 AND entity_id = $entityid

The data extracts successfully and it displays content when I just echo. But when i Convert the extracted data to xml im getting the error. If I do not provide the $entityid variable then the last record is extracted and successfully converts to xml. If i provide a static value in place of $entityid i'm getting that particular value, in XML but when i provide the variable name it throws an error. PFB the error image

XML code that creates the node. This code is placed within a while loop

        $xml_entityid = $xml->createElement( "productid", $entityid );
        $xml_productname = $xml->createElement( "productname" , $productname);
        $xml_descrp = $xml->createElement( "description" , $descriptionn );

        $xml_product->appendChild( $xml_entityid );
        $xml_product->appendChild( $xml_productname );
        $xml_product->appendChild( $xml_descrp );

        $xml_products->appendChild( $xml_product );


texts: Magento 2 - How get extension attributes from product collection

texts:
I need to get the product collection with all extension attributes, specifically I need then to get the stockItem object with $product->getExtensionAttributes()->getStockItem(). So I have created a function like this:

protected function getCollection(ProductInterface $product): Collection
{
    $collection = $this->productCollectionFactory->create();

    $collection
        ->addAttributeToSelect('*')
        ->addAttributeToFilter('visibility', ['eq' => Visibility::VISIBILITY_BOTH])
        ->addAttributeToFilter('status', ['eq' => Status::STATUS_ENABLED])
        ->addFieldToFilter('entity_id', ['neq' => $product->getId()])
        ->setPageSize(5);

    return $collection;
}

then I get all items from collection with $collection->getItems(), but in the loop of getItems() the extension attributes are null, why and how can I get them?

protected function populateProductList(Collection $collection)
{
    $items = $collection->getItems();

    $products = array_map(function ($product): ProductInterface {
        $stockItem = $product->getExtensionAttributes()->getStockItem();
        var_dump($stockItem);die; // IS NULL

        return $product;
    }, $items);

    return $products;
}

If I get a Product from the get method of productRepository, that product has all extension attributes compiled, I don't want to use productRepository to get another time the products for "only" the extension attributes, I want to avoid another call for performance reasons.


texts:
I have created a virtual product, and programmatically wants to add custom options in cart item without adding option in product custom option tab becasue it will be different in different cases.

For this I have used below code :

    ...
    $additionalOptions = array(
                         array(
                             'code' => 'title',
                             'label' => 'Title',
                             'value' => $title,
                             'print_value' => $title,
                         ),
                         array(
                             'code' => 'group',
                             'label' => 'Group',
                             'value' => $Value,
                             'print_value' => $Value,

                        )
                    );

    $item->addOption(array(
                        'code' => 'additional_options',
                        'value' => serialize($additionalOptions),
                    ));
    $item->save();
    ...

But it is not working.

How to add custom options for cart items not for product?


texts: Magento 2.1.0 Roles Resource Tree not showing

texts:
in the backend, going to system->roles, adding a new role and setting it to custom permissions, the resource tree is empty.

Stepping through the code I can see, in module_user/Block/Role/Tab/Edit.php in function getTree() it returns three ACL-resources

public function getTree()
    {
        $resources = $this->_aclResourceProvider->getAclResources();
        $rootArray = $this->_integrationData->mapResources(
            isset($resources[1]['children']) ? $resources[1]['children'] : []
        );
        return $rootArray;
    }

The one used for the mapResources-call is Admin_Backend::all with an empty children array. Now in my opinion this leads to the resource tree being empty. Shouldn't there be an extra handling of the this role as it doesn't have explicitly assigned resources to it in the acl.xml? If I change the mapResources to use $resource[2] the tree is shown. But this feels a little awkward as I don't know what side effects that would have.

Any idea what's going wrong?


texts: boolean order attribute won't save correctly in Magento 1.9

texts:
I have created my boolean order attribute

/* @var $installer \Mage_Sales_Model_Resource_Setup */
$installer = $this;

$installer->startSetup();

$smsAttribute = [
    'type' => 'int',
    'label' => 'Tracking SMS Status',
    'input' => 'boolean',
    'source' => 'eav/entity_attribute_source_boolean',
    'visible' => 1,
    'required' => false, //true/false
    'default' => 0,
    'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
    'user_defined' => true,
];

$installer->addAttribute(
    'order',
    Vendor_SmsTracking_Helper_Data::ATTRIBUTE_SMS_STATUS,
    $smsAttribute
);

$installer->endSetup();

And I can see it's correctly created in the database table
I've added the following config

        <fieldsets>
            <sales_convert_quote>
                <myattributecode><to_order>*</to_order></myattributecode>
            </sales_convert_quote>

            <sales_convert_order>
                <myattributecode><to_quote>*</to_quote></myattributecode>
            </sales_convert_order>
        </fieldsets>

Finally I try to change the flag on the order like this to test

<?php

require('../app/Mage.php');
Mage::app();
$orderIncrementId = '<myincrementid>';

Mage::register('isSecureArea', true);
/** @var \Mage_Sales_Model_Order $order */
$order = Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId);
echo $order->getId();
$order->setData('myattributecode', 1); //fails
$order->setData('myattributecode', true); //fails
$order->save(); //fails to save it
$order->getResource()->saveAttribute($order, 'myattributecode'); //fails to save as well

However the attribute is never saved and stays at the default value of 0.
Any ideas why?


texts: Error 503 when preview a template email with header_template or footer_template config_path

texts:
When I try to show the preview of my newsletter template I get error 503:

Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

This happens only when I use one or both these magento directives:

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


texts: I want to change order of billing address on checkout page in magento 2

texts: please help me to solve this, It's very urgent


texts: Magento Slow. Using every trick in the book, but still slow

texts:
I am using this very popular theme from Themeforest. https://themeforest.net/item/porto-ultimate-responsive-magento-theme/9725864

When I try out their demos it goes pretty fast. But my own webshop, is a lot slower.

I have tried everything of "tricks" to speed Magento up. I have done most of the htaccess "tricks" I found while googling. I have cache on, compliation on, flat category on, flat product on, combined css, combined js.

When I run GTMetrix, I have 52 requests and Page Size of 2.11, but it takes 9.0s to load!!

I use a regular web-hosting, which I assumed it shared. I do not have a VPN / Dedicated server. When I contact my hosting company, they tell me it's not on their end, but that's on the template. But I see that the template is faster on the demos.

From GTMEtrix -> Waterfall I get this
GET category.html
200 OK
domain.com
18 KB
5.81s for the first GET request!? How can the first Get request be running so slow?


texts: How Uninstall Theme Using command line in Magento 2

texts:
How to uninstall or remove a theme using the command line In Magento 2.

Thank You...


texts: I'm trying to load CSS files async, I've managed to load all the JS async by adding the param async to some xml files but I do not find where do I need to change the xml files.


texts: Magento 2: Remove block depending on a config setting

texts:
I'm trying to remove a block from a certain page (be it frontend or backend) but only if a certain config flag is set to true.
Let's take an example.
I want to remove the block with the name dashboard from the admin dashboard.

The block is defined in adminhtml_dashboard_index.xml file from the Magento_Backend module:

<referenceContainer name="content">
    <block class="Magento\Backend\Block\Dashboard" name="dashboard"/>
</referenceContainer>

Thanks to Adam's answer I can do this in the adminhtml_dashboard_index.xml

<body>
    <referenceBlock name="dashboard" remove="true"  />
</body>

But I want to take it up a notch and remove this block only if the config setting with the path dashboard/settings/remove has the value 1.
A layout xml approach would be awesome, but I will take an observer approach also.


texts: process collection after load collection

texts:
$categoryid = 43;

$layer = Mage::getModel("catalog/layer");

$category = Mage::getModel("catalog/category")->load($categoryid);

$layer->setCurrentCategory($category);

$attributes = $layer
    ->getFilterableAttributes()
    ->addDisplayInAdvancedSearchFilter()
    ;

Mage::log($attributes->getSelect());

foreach ($attributes as $attribute) {
    echo $attribute->getAttributeCode(). " ". $attribute->getStoreLabel() ."<br/>";
}

I want tho filters attributes which is used in layered navigation and used in advance search. When I print query the result query working fine but print the attribute filter they give only getFilterableAttributes.

The getFilterableAttributes method class Mage_Catalog_Model_Layer load collection first then I use addDisplayInAdvancedSearchFilter cause will effect after load collection.

I want to know is there any method load collection after loading the method. Any one face these kind of problem then please help how it works.

In class Mage_Catalog_Model_Layer method getFilterableAttributes have following code.

public function getFilterableAttributes()
    {
        $setIds = $this->_getSetIds();
        if (!$setIds) {
            return array();
        }
        /** @var $collection Mage_Catalog_Model_Resource_Product_Attribute_Collection */
        $collection = Mage::getResourceModel('catalog/product_attribute_collection');
        $collection
            ->setItemObjectClass('catalog/resource_eav_attribute')
            ->setAttributeSetFilter($setIds)
            ->addStoreLabel(Mage::app()->getStore()->getId())
            ->setOrder('position', 'ASC');
        $collection = $this->_prepareAttributeCollection($collection);
        $collection->load();

        return $collection;
    }

When I add $collection->addDisplayInAdvancedSearchFilter() before $collection->load() but its wokring fine. Like This.

public function getFilterableAttributes()
    {
        $setIds = $this->_getSetIds();
        if (!$setIds) {
            return array();
        }
        /** @var $collection Mage_Catalog_Model_Resource_Product_Attribute_Collection */
        $collection = Mage::getResourceModel('catalog/product_attribute_collection');
        $collection
            ->setItemObjectClass('catalog/resource_eav_attribute')
            ->setAttributeSetFilter($setIds)
            ->addStoreLabel(Mage::app()->getStore()->getId())
            ->setOrder('position', 'ASC');
        $collection = $this->_prepareAttributeCollection($collection);
        $collection = $this->addDisplayInAdvancedSearchFilter();
        $collection->load();

        return $collection;
    }

Its work fine.

I don't want to rewrite Mage_Catalog_Model_Layer Model.

Thanks


texts:
Scenario:

I want to implement a 2% tax on all products. I then want to add 8.5% tax on the 2% tax amount. So,

total = (product price) + (2% of product price) + (8.5% of 2% of product price)

How can this scenario be implemented in Magento?


texts: Customise UI component Dynamic Row layout

texts:
Hopefully this is simple, but I'm struggling to figure this out.
I have a custom product attribute that stores serialized data in a text field. It's exported from an old site with 10k SKUs each using this field, so the format of the serialized data (how the arrays are labelled etc) is really important and can't change much, if at all.
On Magento2 I have created a custom module with an observer that grabs the attribute field and converts the serialized field into a DynamicRow. The problem is the way the array is built when saved by the DynamicRows.

creates this (when unserialized):
    [0] => Array
            (
                [name] => Example 1
                [show_list] => 1
                [show_view] => 0
                [link] =>
                [disable_url] =>
                [initialize] => true
            )

Which would be fine normally, but the 10k worth of attribute values stores data like this:

    [example_1] => Array
        (
            [show_list] => 1
            [show_view] => 0
            [link] =>
            [disable_url] => 0
        )

Multiple rows are defined as well, so it needs to build from those. They have come from a static table originally so all the row names are predefined but I need the UI component to iterate through them all. The end result being this:

[example_1] => Array
            (
                [name] => Example 1
                [show_list] => 1
                [show_view] => 0
                [link] =>
                [disable_url] =>
                [initialize] => true
            )
[example_2] => Array
            (
                [name] => Example 2
                [show_list] => 0
                [show_view] => 0
                [link] =>
                [disable_url] =>
                [initialize] => true
            )
[example_3] => Array
            (
                [name] => Example 3
                [show_list] => 1
                [show_view] => 1
                [link] =>
                [disable_url] =>
                [initialize] => true
            )

In a nutshell, I don't want it be that Dynamic, I want the table to build itself from the serialized data along the existing array parameters and present a table the user can edit values of and save.
I'm beginning to question if DynamicRows UI component is even the best use for this, but not sure on alternatives.


texts: What would cause Catalog Rewrites Indexer to need refreshed immediately after it completes?

texts:
Immediately after reindexing the Catalog URL Rewrites, Magento says we need to reindex them again. I'm using the command line to run indexer.php as a background task:

nohup php indexer.php --reindex catalog_url > /home/ubuntu/rewrites_index_20130218 2> /home/ubuntu/rewrites_index_20130218.err < /dev/null &

The Index Management screen shows "Processing" on the relevant row while this runs, but reverts to "Reindex Required" once completed.

The output file rewrites_index_20130218 says that the reindex completed successfully. The rewrites_index_20130218.err is empty. The files system.log and exception.log in Magento's log folder are both clean.

On a previous attempt last night, the index failed due to too many MySQL locked tables. I increased the MySQL innodb_buffer_pool_size and restarted MySQL and we're not getting that issue now.

I have deliberately run the indexing when I know for certain that nobody from the team is working in the Magento admin area.

What would cause the rewrites table to need to be reindexed so often, or if that's not obvious, what steps could I take to identify the cause of the problem?


texts: How to upgrade or rewrite newsletter _subscriber table by local sql script

texts:
I need to add one field in newsletter_subscriber table  and create gender entity at newsletter module in magento.I was override controller and model.But i am confused.

How can i add entity in newsletter_subscriber table.my config is below....and what should i add in my config.xml for upgrading newsletter table.

my config.xml
------------
<?xml version="1.0" encoding="UTF-8" ?>
<config>
    <modules>
        <Nine_Newsletterone>
            <version>0.1.0</version>
        </Nine_Newsletterone>
    </modules>
    <global>
        <models>
            <newsletter>
                <rewrite>
                    <subscriber>Nine_Newsletterone_Model_Subscriber</subscriber>
                   </rewrite>
            </newsletter>
        </models>
    </global>
    <frontend>
        <routers>
            <newsletter>
                <args>
                    <modules>
                        <Nine_Newsletterone before="Mage_Newsletter">Nine_Newsletterone</Nine_Newsletterone>
                    </modules>
                </args>
            </newsletter>
        </routers>
    </frontend>
</config>


texts: Static Application Security Testing (SAST) results Magento Module

texts: I have developed a payment gateway module. Now I need to generate Static Application Security Testing(SAST) result report for ensure all code is scanned for vulnerabilities into my payment module. Is there any online tool available which can generate above report for magento payment module.


texts: Run a method in Observer after Billing Information

texts:
I have this in config.xml

<global>
    <events>
        <sales_quote_save_after>
            <observers>
                <save_after>
                    <type>singleton</type>
                    <class>Practice_Payment_Model_Observer</class>
                    <method>saveQuoteAfter</method>
                </save_after>
            </observers>
        </sales_quote_save_after>
        .
        .

And my Observer.php

public function saveQuoteAfter($evt){
    $quote = $evt->getQuote();

    // $post variable is checkbox in the Billing Information
    $post = Mage::app()->getFrontController()->getRequest()->getPost();

    if(isset($post['custom']['consultancyservice'])){
        $var = $post['custom']['consultancyservice'];
        $quote->setConsultancyservice($var);
    } else {
        $var = 'false';
        $quote->setConsultancyservice($var);
    }
    $model = Mage::getModel('custom/custom_quote');
    $model->deteleByQuote($quote->getId(),'consultancyservice');
    $model->setQuoteId($quote->getId());
    $model->setKey('consultancyservice');
    $model->setValue($var);
    $model->save();
}

$post is variable is checkbox in the Billing Information

This updates the value in the database. But whenever I go beyond 'Billing Information' it resets. Maybe because sales_quote_save_after runs at all steps in the checkout?

I have also tried controller_action_predispatch_checkout_onepage_savebilling and controller_action_postdispatch_checkout_onepage_savebilling but they are not working.

Thanks to anyone who can help!!


texts: Adding a productAttribute handler in Magento 2.4

texts: I'd like my Magento 2.4 module to be able to modify the output of one of the product attributes programatically. I see that the ability to create a handler for this purpose was added in Magento 2.3.4, using di.xml, however, I'm unclear on how to actually set this up. What do I need to do to make a simple productAttribute handler that modifies the output for one of my attributes?


texts: how I add category dropdwon with custom option in magento 2


texts: Prioritize visible content Google Page Insights

texts:
I am having an issue with a section on my home page "Featured Products". When I test on google page insights it is listing as Suggestions. With this my mobile optimization is 42/100, when I remove just this section it improves to 83/100 and Prioritize Visible Content is no longer listed as a suggestion. Any suggestions on what I can do to fix this without changing this section. I am not sure of any other content I can replace it with to display the featured products properly.
www.premiermediaav.com


texts: How to fix backend date always showing 2020?

texts:
I've looked far and wide for an answer to this problem and could not find one.
Perhaps you can help.

The Problem:
In the Magento Admin Backend Panel, I am trying to set the Special Price Date so that the original price shows along with the discounted price (on the catalog page). My problem is that regardless of the date I input, it always changes the year to 2020. I've tried selecting the date in calendar, I've tried typing it out. Always the same result.

Where am I making these changes:
Admin Panel :: Product/Catalog/ edit -> advanced pricing

Additional Note:
I checked if this happens with other date selections and had the same exact problem with the "Set Product as New From" field. The date all stays fine except for the year which keeps defaulting to 2020 no matter which year I input.


texts: Magento2 add cart value change the QTY instead of updating

texts:
Currently the default behaviour is if i have item X in the cart with qty 5, if i put 8 in the qty box and add to cart the new qty is 13 - the expected behaviour we need to for the cart to change to 8 rather than add the 8.
As the category page is using a .js file rather than a phtml file to handle a lot of the customisation it is required somehow to either do this from an observer file seperate from the .js file or an ajax request to a controller in the .js file (this would be prefared).
i have attempted to do AJAX request with no luck, with the URL not being found no matter what i try (i asked the question about this here with no luck)

Calling PHP block or Controller from AJAX from just a .JS file in Magento2

After failing with this i had the idea to use checkout_cart_product_add_before observer event, remove the item from the cart and re-add it with the new value but when i use
$this->_cart->updateItems($params);

It is refreshing the whole page and losing the addition.
Does anyone have any ideas on how i can achieve this? i did manage it with a widget previously but now its been required to be a category page it's become a little more difficult.


texts: Can't run CRON PDOException Magento 1.9.3.8

texts:
I'm using the Magento Module AOE Scheduler do control my crowns. All the jobs in the cron are running without errors when I run them manually but the cron never runs. When I check the cron directly via SSH it is throwing the following exception and errors:

  exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'last_seen' in 'where clause'' in /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/lib/Zend/Db/Statement/Pdo.php:228

  Next exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'last_seen' in 'where clause', query was: SELECT main_table.* FROM cron_schedule AS main_table WHERE (status = 'running') AND (last_seen < '2018-04-16 22:03:00')' in /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/lib/Zend/Db/Statement/Pdo.php:235

  Stack trace:

  0 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110):
  Zend_Db_Statement_Pdo->_execute(Array)

  1 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/app/code/core/Zend/Db/Statement.php(291):
  Varien_Db_Statement_Pdo_Mysql->_execute(Array)

  2 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/lib/Zend/Db/Adapter/Abstract.php(480):
  Zend_Db_Statement->execute(Array)

  3 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238):
  Zend_Db_Adapter_Abstract->query('SELECT `main_ta...', Array)

  4 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(504):
  Zend_Db_Adapter_Pdo_Abstract->query('SELECT `main_ta...', Array)

  5 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/lib/Zend/Db/Adapter/Abstract.php(737):
  Varien_Db_Adapter_Pdo_Mysql->query('SELECT `main_ta...', Array)

  6 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/lib/Varien/Data/Collection/Db.php(740):
  Zend_Db_Adapter_Abstract->fetchAll('SELECT `main_ta...', Array)

  7 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(521):
  Varien_Data_Collection_Db->_fetchAll('SELECT `main_ta...', Array)

  8 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/lib/Varien/Data/Collection/Db.php(572):
  Mage_Core_Model_Resource_Db_Collection_Abstract->getData()

  9 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/app/code/community/Aoe/Scheduler/Model/ProcessManager.php(98):
  Varien_Data_Collection_Db->load()

  10 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/app/code/community/Aoe/Scheduler/Model/ProcessManager.php(144):
  Aoe_Scheduler_Model_ProcessManager->checkRunningJobs()

  11 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/app/code/community/Aoe/Scheduler/Model/Observer.php(61):
  Aoe_Scheduler_Model_ProcessManager->watchdog()

  12 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/app/code/core/Mage/Core/Model/App.php(1358):
  Aoe_Scheduler_Model_Observer->dispatchAlways(Object(Varien_Event_Observer))

  13 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/app/code/core/Mage/Core/Model/App.php(1337):
  Mage_Core_Model_App->_callObserverMethod(Object(Aoe_Scheduler_Model_Observer), 'dispatchAlways', Object(Varien_Event_Observer))

  14 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/app/Mage.php(448):
  Mage_Core_Model_App->dispatchEvent('always', Array)

  15 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/shell/scheduler.php(519): Mage::dispatchEvent('always', Array)
  16 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/shell/scheduler.php(37): Aoe_Scheduler_Shell_Scheduler->cronAction()
  17 /home/119209.cloudwaysapps.com/jnzzusxetf/public_html/shell/scheduler.php(545): Aoe_Scheduler_Shell_Scheduler->run()
  18 {main}
  How can I solve this?


texts: how to remove required field in lastname in magento2

texts:
I want remove validation for lastname in customer address.
i'm removed validation class using override the module.and also change in customer_address_entity table.
      But "Lastname is required field" in this error displayed in customer address page.How to overcome this error. If anyone knows Please help me


texts:
our product has both special price and shopping cart price rule I need to apply shopping cart price rule on normal price of the product, not the special price?

particular wholesale customer1. >> this is a customer group?


texts: Create a custom API to get all details of a product magento2

texts:
I want to create a custom API to get all of the information of a product including stock details and order details.

I checked the existing product APIs but to get all of the information, need to run at least 3 APIs "/V1/products", "/V1/stockItems" and "/V1/orders".

I want the responses of these 3 APIs into a single API.


texts:
I tried to export customer data from admin but it throws this error "No valid data sent" I can export products without any issues. It was working absolutely fine before update from Magento version 1.9.0.1 to Version 1.9.2.3. can anyone point as to what might be causing the issue my exception log give the following error :

  Next exception 'Zend_Db_Statement_Exception' with message
  'SQLSTATE[42S22]: Column not found: 1054 Unknown column '(CASE WHEN
  additional_table.is_system = 1 AND additional_table.is_visible = 0
  THEN 1 ELSE 0 END)' in 'where clause', query was: SELECT
  main_table.attribute_id, main_table.entity_type_id,
  main_table.attribute_code, main_table.attribute_model,
  main_table.backend_model, main_table.backend_type,
  main_table.backend_table, main_table.frontend_model,
  main_table.frontend_input, main_table.frontend_label,
  main_table.frontend_class, main_table.source_model,
  main_table.is_required, main_table.is_user_defined,
  main_table.default_value, main_table.is_unique,
  main_table.note, additional_table.is_visible,
  additional_table.input_filter,
  additional_table.multiline_count,
  additional_table.validate_rules, additional_table.is_system,
  additional_table.sort_order, additional_table.data_model,
  additional_table.is_used_for_customer_segment,
  scope_table.website_id AS scope_website_id,
  scope_table.is_visible AS scope_is_visible,
  scope_table.is_required AS scope_is_required,
  scope_table.default_value AS scope_default_value,
  scope_table.multiline_count AS scope_multiline_count FROM
  eav_attribute AS main_table
       INNER JOIN customer_eav_attribute AS additional_table ON additional_table.attribute_id = main_table.attribute_id
       LEFT JOIN customer_eav_attribute_website AS scope_table ON scope_table.attribute_id = main_table.attribute_id AND
  scope_table.website_id = :scope_website_id WHERE
  (main_table.entity_type_id = :mt_entity_type_id) AND ((CASE WHEN
  additional_table.is_system = 1 AND additional_table.is_visible = 0
  THEN 1 ELSE 0 END) = '0') AND (main_table.frontend_input !=
  'hidden')' in /data/destamart/lib/Zend/Db/Statement/Pdo.php


texts: Get products in stock with qty > 0 of configurable products

texts:
Whats the best way to get a collection with products which are in stock and have a positive qty.

I already use the following to filter in stock, but this give me also products with qty=0, because I allow backorders

Mage::getSingleton('cataloginventory/stock')
    ->addInStockFilterToCollection($collection);


texts: Update category name is not updated in admin panel

texts:
Actually trying to update category name using category id its working internally when we debug the code but it is not updating in admin panel.

<?php

use Magento\Framework\App\Bootstrap;
include('app/bootstrap.php');
$bootstrap = Bootstrap::create(BP, $_SERVER);

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

$storeManager = $objectManager->get('\Magento\Store\Model\StoreManagerInterface');

//var_dump($storeManager->getStore()->getData());
$storeId = $storeManager->getStore()->getStoreId();
echo $storeId."<br/ >";

$objectManager = $bootstrap->getObjectManager();
$category = $objectManager->create('Magento\Catalog\Model\CategoryRepository')->create()->setStoreId($storeId)->load(44);
$category->setName('test1234');
$category->save();

echo $category->getName();
echo $category->getId();


texts:
I want to know how can I add a new nation into the list used e.g. into onepage.

thank's!


texts: Magento2.2: How to disable cache for homepage only?

texts:
I am using varnish cache and also I've added AMP pages for mobile view. Now the thing is varnish is not detecting mobile and tab so I want to disable varnish for the homepage.

Everything was working fine when I added cacheable="false" in default.xml in theme folder but it will make whole website cacheable="false". I just want to disable for the homepage.


texts: How do I make 'Y' Tax-Free in Shopping Cart Price Rule "Buy X, Get Y Free"?

texts:
I'm trying to create a rule whereby a customer buys 10 of one product and get's the 11th free.

This works a treat... However, Magento is calculating the tax based on 11 products instead of 10 (because the 11th should be 100% free).

Does anyone have any idea how I could fix this?

E.g. I have a product that is £1.00. UK Tax on this would be 20% (20p), so if I buy 10 of these, the tax should be £2.00, but it is coming in at £2.20 even though Magento is showing a discount of £1.00.

When I say fix, it might not be broken to some, but I couldn't think of a better word ;)
And I hope I've been clear enough... First post. Please ask if you need me to clarify.


texts: How to change price decimal symbol , in Magento 2 complete store

texts:
I created two stores - one for en_US other is Arabic that is ar_KW for Kuwait

When i switched the store from English to Arabic, my price decimal symbol changed from "." to ",". But, in my en_US store it shows "." only. How to fix this issue ?

Note :- In vendor\magento\framework\Locale\Format.php I changed . to some other symbol but it reflected only in Product Detail page and order summery block. In rest of them, the price symbol is  still ,. How to fix this issue in one change ?


texts: Magento 2 add to wishlist controller plugin not working

texts:
I'm using Magento 2.3.4 , i tried to create a plugin for add to wishlist controller like this:

app/code/Vendor/All/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\Wishlist\Controller\Index\Add">
        <plugin disabled="false" name="Vendor_All_Plugin_Magento_Wishlist_Controller_Index_Add" sortOrder="10" type="Vendor\All\Plugin\Magento\Wishlist\Controller\Index\Add"/>
    </type>
</config>

app/code/Vendor/All/Plugin/Magento/Wishlist/Controller/Index/Add.php

namespace Vendor\All\Plugin\Magento\Wishlist\Controller\Index;

class Add
{
    public function beforeExecute(
        \Magento\Wishlist\Controller\Index\Add $subject
    ) {
       die('success');
    }
}

when i access this controller, the die function is not working and still doing the normal controller function


texts:
I am building a site that requires the use of a 3rd party extension.

The extension in question is made up of plugins, utilising the afterToHtml() Product View methods.

I need to modify these plugins to suit the requirements of the site. Both the 3rd party extension and mine are in app/code/....

Is there a clean way to do this? I am trying my best not to modify someone else's work!

More Info:

The plugin that I want to override is adding dynamic HTML to the product view page. Here is the plugin (minus the extension and vendor names):

<plugin name="Vendor_Module::Addstatus" type="vendor\Module\Plugin\Product\Status" />

And the PHP:

public function afterToHtml(
    \Magento\Catalog\Block\Product\AbstractProduct $subject,
    $result
) {
    $name = $subject->getNameInLayout();

    if ( in_array($name, array('product.info.configurable', 'product.info.simple', 'product.info.type_schedule_block6', 'product.info.bundle',  'product.info.virtual',  'product.info.downloadble')) ) {
        $status = $this->_helper->getCustomStockStatusText($subject->getProduct());
        if ($status) {
            $tmp = $this->_helper->showStockStatus($subject->getProduct(), 1, 0);
            if ($tmp != '') {
                $result  = $tmp;
            }
        }
    }

    return  $result;
}

I have also corrected the above method. I had it as beforeToHtml(), I meant afterToHtml()


texts: How to import "price per customer" csv file from /var/import/price/ folder to Magento 2.4.1 automatically?

texts:
I'm new in Magento 2 and have not enough experience in coding, I need help to import the Price per customer CSV file into Magento 2.4.1 version automatically. I use the Price Per Customer extension in Magento that provides an option to import manually. But our Navision system generates price files in /var/import/price dir. every 5 minutes, so we require to import these files to Magento 2 through extension auto and then remove imported files from dir. I need your help if anyone knows how to do this. Thank You for your help.
Faizan Roshan


texts: Invalid header value detected while customer password reset request

texts:
I am showing these errors in my system log while requesting a password reset, and the customer don't receive the email.

[2020-01-09 05:16:28] main.CRITICAL: Exception message: Invalid header value detected
Trace: <pre>#1 Zend\Mail\Header\AbstractAddressList->getFieldValue(true) called at [vendor/zendframework/zend-mail/src/Header/AbstractAddressList.php:209]
#2 Zend\Mail\Header\AbstractAddressList->toString() called at [vendor/zendframework/zend-mail/src/Headers.php:426]
#3 Zend\Mail\Headers->toString() called at [vendor/zendframework/zend-mail/src/Message.php:546]
#4 Zend\Mail\Message->toString() called at [vendor/magento/framework/Mail/EmailMessage.php:217]
#5 Magento\Framework\Mail\EmailMessage->toString() called at [vendor/magento/framework/Mail/EmailMessage.php:209]


texts: magento 1.9.x / turpentine 0.7.10 / Varnish 4.x - block inside cms page not flushing

texts:
I am trying to flush a cms block I have added to a page as seen in the picture below.

Now I have put the code on the last screen inside the cms page under the "design" tab. and in the turpentine_esi.xml. None of them seem to be working.

I am flushing with a custom flush event "car_select" that is working since it flushes other references perfectly.
What am I missing, or what am I doing wrong?
If so sorry and please provide a link.


texts: shopping cart price rule - Free Gift at spend level (3 different spend levels)

texts:
How would I go about creating a shopping cart price rule/rules by which if a customer spends over 500 they receive a free item, then when they spend 1,500 they receive a different gift?

The problem will be making sure the 500+ gift doesn't apply to a 1,500+ basket as well as the £1,500+ gift and the same with the £3,000+ gift - At the same time making sure there's a choice of gift for £1,500+ and £3,000+ baskets.

My current rule has the following conditions and actions:


texts: Access Denied for Custom Module for specific role

texts:
I've created one role and provide rights for my custom module using System->Permissions->Role. When any user from that role logs into system, gets access denied for my custom module. My config.xml looks this

<acl>
            <resources>
                <all>
                    <title>Allow Everything</title>
                </all>
                <admin>
                    <children>
                        <vendor translate="title" module="vendor">
                            <title>Vendor</title>
                            <sort_order>1000</sort_order>
                            <children>
                                <vendor translate="title">
                                    <title>Manage Vendor</title>
                                    <sort_order>0</sort_order>
                                </vendor>
                            </children>
                        </vendor>
                    </children>
                </admin>
            </resources>
        </acl>

And my adminhtml.xml looks like this

<config>
    <acl>
        <resources>
            <admin>
                <children>
                    <system>
                        <children>
                            <config>
                                <children>
                                    <vendor translate="title" module="vendor">
                                        <title>Vendor Section</title>
                                        <sort_order>300</sort_order>
                                    </vendor>
                                </children>
                            </config>
                        </children>
                    </system>
                </children>
            </admin>
        </resources>
    </acl>
</config>


texts:
On a new install of Magento CE 2.1.3 I am getting this ERR_TOO_MANY_REDIRECTS error once the page loads both in frontend and backend.

After browser cache is cleared page will load once or twice the error listed in Title happens along with the "try clearing your cookies" message.

I've looked at the .htaccess file and core_config_data table in the DB both look like the defaults. The browsers used are Chrome and FireFox.

Any ideas or suggestions?


texts: Magento 2 Custom Product type similar like Configurable

texts:
I am trying to create my own custom product type which basic functionalities are similar to the configurable products. So to achieve it

product_type.xml is

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Catalog:etc/product_types.xsd">
    <type name="deal_product_type" label="Deal Product Type" modelInstance="Eguana\DealProduct\Model\Product\Type\DealProductType" indexPriority="60" sortOrder="80" isQty="true">
        <priceModel instance="Eguana\DealProduct\Model\Product\Price" />
    </type>
</config>

DealProductType class is

class DealProductType extends \Magento\ConfigurableProduct\Model\Product\Type\Configurable
{
    /**
     * Product type code
     */
    const TYPE_ID = 'deal_product_type';
}

Here I have extended it with the configurable products type class. Because  in mostly tutorials I have read if you want any core type functionality then extend with that. Such as explained here

After implementing the mentioned article I can successfully add the product from admin. But it is not similar to the configurable. Such as I can not see the 'Configurations' section. Can you please help me? Thank you very much.


texts: Magento 2 : get csv file download in frontend based on click of button

texts:
How can i download csv file in magento 2 using below code is from controller,

public function execute(){
    $resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);
    $heading = array('Name','Sku','Qty','Price','Manufacturer');
    $outputFile = "products_". date('Ymd_His').".csv";
    $handle = fopen($outputFile, 'w');
    fputcsv($handle, $heading);

               $this->downloadCsv($outputFile);
                $resultRedirect->setPath('*/*');
                return $resultRedirect;
}
public function downloadCsv($file){
        if (file_exists($file)) {
            //set appropriate headers
            header('Content-Description: File Transfer');
            header('Content-Type: application/csv');
            header('Content-Disposition: attachment; filename='.basename($file));
            header('Expires: 0');
            header('Cache-Control: must-revalidate');
            header('Pragma: public');
            header('Content-Length: ' . filesize($file));
            ob_clean();flush();
            readfile($file);
        }
    }

Csv file not downloaded using above code. Data are getting right for me.
Thanks.


texts: After upgrade to Magento 1.9.3.4 admin send email error

texts:
We have upgraded Magento to 1.9.3.4. When send email from sales order we are getting the following error:

  Fatal error: Uncaught Error: Call to a member function getAllItems() on string in app/design/frontend/base/default/template/email/order/items.phtml:39

Can you please help us on this issue ?

Thanks


texts: Magento 2 installation setup shows blank

texts:
When I'm tryin to install Magento 2 in the server it shows a blank page on installation(/setup/#/landing-install), like this image:

Please suggest, what could be the issue?


texts:
C:\xampp\htdocs\m2\app\code\Vendor\Mymodule\registration.php
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::MODULE,
    'Heart_Listcolor',
    __DIR__
);

C:\xampp\htdocs\m2\app\code\Vendor\Mymodule\etc\module.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="Heart_Listcolor" setup_version="1.0.0">
    </module>
</config>

C:\xampp\htdocs\m2\app\code\Vendor\Mymodule\etc\frontend\routes.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<router id="standard">
<route frontName="customwishlist" id="customwishlist">
<module name="Heart_Listcolor"/>
</route>
</router>
</config>

C:\xampp\htdocs\m2\app\code\Vendor\Mymodule\Controller\Index.php
<?php

namespace Vendor\Mymodule\Controller\Index;

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

    public function __construct(
        \Magento\Framework\App\Action\Context $context,
        \Magento\Wishlist\Helper\Data $wishlistHelper,
        \Magento\Framework\Controller\Result\JsonFactory $jsonFactory
        ) {
            parent::__construct($context);
            $this->wishlistHelper = $wishlistHelper;
            $this->jsonFactory = $jsonFactory;
    }

    public function execute() {
        $result = $this->jsonFactory->create();
        $data = $this->wishlistHelper->getWishlistItemCollection()->getData();

        return $result->setData(['status' => 200, 'items' => $data]);
    }
}

url : https://localhost/m2/customwishlist/index/wishlist return 404 error


texts:
Im having a huge issue with setting up tax configuration.

My customer is running eCommerce store in Netherlands. I need to configure 6% VAT for all products irregardless of the shipping address.

I've configured all tax classes for taxable goods, under my tax settings in admin I have product prices set to include tax...

Can someone give me a quick tutorial how to configure this CONSTANT TAX for all the products?


texts: How to override List.phtml and Block as well

texts:
I'm trying to override the List.phtml and its block using preference I tried this

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="category.products.list" template="Vendor_module::product/list.phtml">
        </referenceBlock>
    </body>
</page>

but its not working for me and the di is

<preference type="PME\Hideprice\Block\Product\ListProduct"
                    for="Magento\CatalogSearch\Block\SearchResult\ListProduct"/>

how can I override this Thanks in advance


texts:
I'm adding some custom less to product page on Magento 2.2.2

I've notice that now, many of my customization are included in gallery.css file and I'm not able to change them anymore in my custom less because it's loaded before gallery.css

Which should be the trick to override it without using !important?


texts:
Install and upgrade script will often have these calls in them:

$this->startSetup();

$this->endSetup();

I know they are not required due to me not using them for several such scripts.  Can anyone explain their purpose and if there are any implications to using/not using them?


texts:
Some files seem to be missing and so displays as 404. I've not deleted these files as I don't even know where they sit.

Anyone know how to fix this?

I've tried reindexing and deploying static content.


texts: Custom module multiple tabs and form in backend just like Customer backend

texts:
I have create a custom extension just like customer module and want backend just like customer .My extension have two tables and two table. My module are

Mage::getModel('custommod/reg').(just like Mage::getModel('customer/customer'));
 //reg save data of regsitration

 Mage::getModel('custommod/personal').(just like Mage::getModel('customer/address')); //personal data of a reg reords.

Please check the image

Now I have to show the data and edit . In magento customer admin section, the customer edit position has multiple tabs: Account inforamtion, Address etc. Here,Account inforamton tab saves data in customer/customer and Address information tab saves data in customer/address

I like this type of section. I would like to  edit the contents of all tabs of my modules.


texts:
We have websites that are currently using Magento 1.7. We are planning to migrate most of these Magento Websites to Magento 1.9.3, some are suggesting to move it to Magento 2.

We are moving because we need to get the latest patches/fixes/features introduced in the new released of Magento 1 series (the Magento 1.9.3). My question is, it is worth to upgrade to Magento 2 from Magento 1.7?


texts: addItem js_css explanation - Magento 1.9

texts:
To add some css or js file, Magento allow different ways to do that via xml:

Add CSS file:

1- <action method="addItem"><type>skin_css</type><name>css/custom.css</name></action>

2- <action method="addCss"><stylesheet>css/custom.css</stylesheet></action>

3- <action method="addItem"><type>js_css</type><name>folder/custom.css</name></action>

Add JS file:

4- <action method="addItem"><type>skin_js</type><name>js/custom.js</name></action>

5- <action method="addJs"><script>folder/custom.js</script></action>

Now my question is:

In the line 3 what is js_css ? from what I understood, it is to add css but why we don't add it in css/ file with all files css skin/frontend/package/theme/css/ instead of js/


texts:
I want to insert the entity_id of my modified products while csv import into my custom table.

My custom table "tgs_queue" columns : (id, product_id)         //id-primary key

In CatalogImportExport saveProductEntity() i tried something like this:

 public function saveProductEntity(array $entityRowsIn, array $entityRowsUp)
{
   //custom code
    if (!$tableName) {
        $tableName = $this->_resourceFactory->create()->getTable('tgs_queue');
    }

    if ($entityRowsUp) {
        $this->_connection->insertOnDuplicate($entityTable,$entityRowsUp, ['updated_at']);

      //custom code
        $this->_connection->insertOnDuplicate($tableName, $entityRowsUp);
    }

I get the error for updated_at' as

General system exception happened
Additional data: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'updated_at' in 'field list', query was: INSERT INTO `tgs_queue` (`updated_at`,`entity_id`) VALUES (?, ?), (?, ?), (?, ?), (?, ?), (?, ?), (?, ?), (?, ?), (?, ?) ON DUPLICATE KEY UPDATE `updated_at` = VALUES(`updated_at`), `entity_id` = VALUES(`entity_id`)

Whats the proper way of Inserting my data to custom table during import csv?


texts:
I see this line of code inside the login form.
<?php echo $block->getBlockHtml('formkey'); ?>

What is the use of it?
Is it more secure?
Is it a must for form post?


texts: Magento 2.2.6 undefined index on page config generator head file

texts:
Magento 2.2.6

  Notice: Undefined index: src in
  /vendor/magento/framework/View/Page/Config/Generator/Head.php on line
  126

any solution?


texts: Styling cms static block in luma theme - Magento 2

texts: I had created a couple of cms static blocks in Magento 2 luma theme and added inline styles and javascript inside the blocks. Now I'm confused that where I could place those CSS and js files inside the directory and how to call it.


texts: Error on invoice Generation - Fatal error: Call to a member function getParentItem() on a non-object

texts:
When I try to generate invoices, I get the following error message:

Fatal error: Call to a member function getParentItem() on a non-object in /home/design/public_html/app/design/adminhtml/default/default/template/sales/order/invoice/view/items.phtml on line 50

This has not always been the case. Can anyone help?


texts: How to add custom fonts for magento 2 admin panel?

texts:
Anybody know how to change

  font-family

of admin panel in magento 2?


texts: Magento 2.4.1 + MAMP Pro 6 with SSL - Can't access admin

texts:
I’ve installed Magento 2.4.1 in MAMP Pro 6 and initially had SSL active in MAMP. The Luma landing page appeared fine but I couldn’t access the admin backend. It returned the 404 page.
I’ve unchecked SSL in MAMP and set web/secure/use_in_frontend = 0 and web/secure/use_in_adminhtml = 0 from their original value of 1 in the core_config_data table, and now I can get access to the admin.
I would like to set SSL in MAMP and still access the admin. I can’t find any answers to this. Can I just ignore SSL while it’s in local dev? Will it cause me problems when it’s in production with an SSL? I don’t understand why it doesn’t work and the recommended settings for this.


texts: Zoom extension not working on certain machines

texts:
The zoom feature on the page link shared below does not work in chrome and firefox on all machines.It works on some and doesnt work on others, however it is working in IE Edge on all machines.

http://webshowcase-india.com/demo/vaak/women-vaak/t-shirt-retro-white.html

I have tried to find errors in the console but there aren't any.

One of the cases is that the zoom feature does not work on machines which are running Kaspersky antivirus but works on others.

Can someone please help me out with this!


texts: How to get total number of sku added in the cart?

texts:
In magento C.E 1.7, How to get how many sku or product ids are added into the cart. Not the quantity of products in the cart.

I need to get it in ../shippingmethod/available.phtml file to process different shipping methods based on number of items.

Is it possible?


texts: how to add custom phtml file in magento 2.3.1

texts:
how to add product.info referenceBlock add custom phtml in magento 2.3.1 but not added

app/design/frontend/{Theme}/{name}/Magento_Catalog/layout/catalog_product_view.xml

     <referenceBlock name="product.info">
        <block class="Magento\Catalog\Block\Product\View" name="product.items" template="Magento_Catalog::product/view/items.phtml"/>
    </referenceBlock>


texts: Modifying product options on "sales_order_place_after" event : modifications unsaved?

texts:
When an order is placed, I would like to modify some of the products options.

I then made an observer on "sales_order_place_after" calling a function :

       public function sitreatmth($observer)
   {
        $_order = $observer->getEvent()->getOrder();
        $_order_id = $_order->getId();

        $_items = $_order->getAllItems();

            $shipmentItems = array();
            $shipmentItemsMth = array();

            foreach($_items as $_item)
            {
                $_options = $_item->getProductOptions();

                foreach($_options["options"] as $option)
                {
                    if($option['label'] == 'FabTime')
                    {
                        if ($option['value']==2)
                        {
                            $shipmentItems [$_item->getId()] = $_item->getQtyOrdered();

                            foreach($_options["options"] as $option)
                            {
                                if($option['label'] == 'ShipMth')
                                {
                                    $shipmentItemsMth [$_item->getId()] = $option['value'];
                                }
                            }

                        }
                    }
                }

            $CptTNT=0;
            $CptSTD=0;

            foreach ($shipmentItemsMth as $Mth)
            {
                if ($Mth=='TNT') {$CptTNT++;}
                else if ($Mth=='STD') {$CptSTD++;}
            }

            if (($CptTNT!=0)&&($CptSTD!=0))     // CONFLIT tout TNT
            {
                foreach ($shipmentItems as $itemshp)
                {
                    $_item=$_order->getItemById($itemshp);

                    $_options = $_item->getProductOptions();
                    $row_id_cnt = 0;
                    $row_id = 0;
                    $Flag = 0;

                    foreach($_options["options"] as $option)
                    {
                        if($option['label'] == 'ShipMth')
                        {

                            $row_id = $row_id_cnt;
                            $Flag = 1;
                        }
                        $row_id_cnt++;
                    }
                    if ($Flag == 1)
                    {
                        $_options["options"][$row_id]['value'] = "TNT";
                        $_options["options"][$row_id]['print_value'] = "TNT";
                        $_options["options"][$row_id]['option_value'] = "TNT";
                    }
                    $_item->setProductOptions($_options);
                    $_order->setSomeNonExistentProperty(true);
                    $_order->save();

                    ///DEBUG
                    $_order = $observer->getEvent()->getOrder();
                    $_item=$_order->getItemById($itemshp);

                    $_options = $_item->getProductOptions();

                    foreach($_options["options"] as $option)
                    {
                        if($option['label'] == 'ShipMth')
                        {
                            Mage::log($option['value']);
                        }
                    }

                }
            }

            if ($_order->getId() && !empty($shipmentItems) && $_order->canShip())
            {
                $shipment = Mage::getModel('sales/service_order', $_order)->prepareShipment($shipmentItems);
                $shipment->save();
            }
        }
   }

The Debug section returns the good values, but, in backend, when i access my order details, the product options are not changed….

Thank you for your help,


texts: Product Page not found after Migration from Magento 1.9.3.8 to Magento 2.3.4

texts:
After successfully migrating from Magento 1.9.3.8 to Magento 2.3.4, I tried to check the category page, first, it doesn't show any products then I disabled MSI modules then it shows the products in the category. After that, I tried to click one of the product on the category page but it shows:

i already tried to truncate the following tables, then run reindex:

report_event
session
customer_visitor
catalog_url_rewrite_product_category

but nothing works, I already tried to disable the category URL then reindex, but nothing works.

Here are my view database tables:


texts: Error : Call to undefined method addStoreFilter()

texts:
my manufactorer manage grid can't filter at store column.

  Uncaught Error: Call to undefined method
  Magebuzz_Manufacturer_Model_Mysql4_Manufacturer_Collection::addStoreFilter()

prepare column:

if (!Mage::app()->isSingleStoreMode()) {
  $this->addColumn('store_id', array(
    'header'     => Mage::helper('manufacturer')->__('Store View'),
    'index'      => 'store_id',
    'type'       => 'store',
    'store_all'  => TRUE,
    'store_view' => TRUE,
    'sortable'   => FALSE,
    'filter_condition_callback'
                 => array($this, '_filterStoreCondition'),
  ));
}

function:

  protected function _filterStoreCondition($collection, $column)
  {
    if(!$value = $column->getFilter()->getValue()) {
      return;
    }
    $this->getCollection()->addStoreFilter($value);
  }

    protected function _prepareCollection()
  {
   $collection= Mage::getModel('manufacturer/manufacturer')->getCollection();
    $this->setCollection($collection);
    return parent::_prepareCollection();
  }


texts:
is there any way in magento to use this method method="unsetChild" in layout.xml file with some conditions? I need to unsetChild if the window width is less than 760px?

 <action  method="unsetChild" ><name>catalog.topnav</name></action>

Thank you


texts: How to update Minicart count after remove product Programatically on cart page

texts:
I have created automatically remove product with a specific ID Functionality.
So when the customer removes any product my specific ID product will be automatically removed.

I have done below code

Path: vendor/magento/module-checkout/Controller/Cart/Delete.php

<?php
/**
 *
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Magento\Checkout\Controller\Cart;

class Delete extends \Magento\Checkout\Controller\Cart
{
    /**
     * Delete shopping cart item action
     *
     * @return \Magento\Framework\Controller\Result\Redirect
     */
    public function execute()
    {
        if (!$this->_formKeyValidator->validate($this->getRequest())) {
            return $this->resultRedirectFactory->create()->setPath('*/*/');
        }

        $id = (int)$this->getRequest()->getParam('id');
        if ($id) {
            try {
                $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
                $cart = $objectManager->get('\Magento\Checkout\Model\Cart');
                // retrieve quote items collection
                $itemsCollection = $cart->getQuote()->getItemsCollection();
                // get array of all items what can be display directly
                $itemsVisible = $cart->getQuote()->getAllVisibleItems();
                // retrieve quote items array
                $items = $cart->getQuote()->getAllItems();
                $cartid = "";
                foreach($items as $item)
                {
                    if($item->getProductId() == 110009)
                    {
                        $cartid = $item->getItemId();
                    }

                }
                $this->cart->removeItem($id)->save();
                if($cartid != "")
                {
                    $this->cart->removeItem($cartid)->save();
                }
            } catch (\Exception $e) {
                $this->messageManager->addError(__('We can\'t remove the item.'));
                $this->_objectManager->get(\Psr\Log\LoggerInterface::class)->critical($e);
            }
        }
        $defaultUrl = $this->_objectManager->create(\Magento\Framework\UrlInterface::class)->getUrl('*/*');
        return $this->resultRedirectFactory->create()->setUrl($this->_redirect->getRedirectUrl($defaultUrl));
    }
}

My Issue:

When the customer removes any product my specific ID product will be automatically removed but my mini cart count is only removed only one product.

For Instance: There is 3 product in cart including my specific ID product. Now if Customer removes one of the product it removes that product and my specified ID product too. But my cart count will deduct only 1 product.

So Expected result of Minicart should be 1 but it shows 2.

Could anyone help me that how can I set proper count in minicart?


texts: Magento authorize.net direct post checkout does nothing

texts:
I've setup authorize.net direct post in our Magento website. At then end of checkout when I hit "place order" nothing happens and the text "Submitting order information..." just sits there. I haven't been able to find any solution to this (while the problem seems common).

I tried magento's default theme, blank theme, I tried disabling (in the xml config) all non-magento modules. There are no console errors. I have no clue how to debug this.

Anybody out there seen this problem?


texts: Can't get Buy X get Y Free for a category

texts:
I am trying to set up a Buy X Get Y Free promo.

The idea is that if you buy 10 items in a specific category and get 1 (the 11th) item free. No matter what I do I am not able to get this done.

In Conditions I have:

If ALL  of these conditions are TRUE :

If total quantity is 10 for a    sub selection of items in cart
matching ALL of these conditions:    Category is 41

In Actions I have:

Buy x get Y Free and I have the following options:

Discount Amount 1
Maximum Qty Discount is Applied To 1
Discount Qty Step (Buy X) 10
Apply to Shipping Amount NO
Free Shipping NO
Stop Further Rules Processing NO

Please let me know What I should do.


texts: Magento 2: Set custom discount price to existing cart/quote in controller

texts:
I would like to set a custom discount price to an existing cart/quote in my controller and found some other people that had this question but none of them got answered:

I want to add discount to existing quote using controller file Magento 2

Magento 2 : How to Set custom Discount from controller?

To give you an example, if the customer clicks a button in the cart he will get a random discount price. But now how can I achieve to add this specific disount price to the cart and quote in the controller?


texts: Magento: Export customers from version 1.5 and import them in Version 1.8.1

texts:
Hi I have developed a new shop in magento version 1.8.1 and my previous shop was in version 1.5.1. Now I want to import the customers from the old shop into the new shop. I have used "Data Flow Profiles" for this but it is not importing it to the new system. It is giving me the error of "Website not defined". I have tried different things in the csv but nothing worked for me. Is this the version problem with both the system.

So how can i do that. Any Help would be greatly appreciated.


texts: How to remove CE-MAGETWO-67805 Patch - Magento2

texts: I am using Magento 2.1.6 and I need to upgrade to 2.1.7, and before I can do that, I need to remove the CE-MAGETWO-67805 patch and my problem is how to remove the patch?


texts:
I want to disable cache for a specific file which I am loading with a layout file. Is this possible?

I tried it like this, because I saw it like this somewhere:

<reference name="head">
    <action method="addJs">
        <script>konfigurator/konfigurator.js</script>
        <lifetime>null</lifetime>
    </action>
</reference>

But it does not work? Is it even possible?


texts: How do I import magento categories programmatically with categories having a specified category_id

texts:
I have a need to import magento categories with the following fields.

Note. I want to import even the category Ids coz I need them as they are. Do want to have new ones on import.

How do I do this using a script?

Or it there any extension that can handle this?

Thanks in advance


texts: Review Count Added to a Product Tab that Contains Reviews: Breaks the Independent Product Review Page

texts:
Any ideas on what could cause the independent product review page to break when the below code is added to the app/design/frontend/YOUR_PACKAGE/YOUR_THEME/template/catalog/product/view.phtml page?

<?php
  $reviewcount     = $_product->getRatingSummary()->getReviewsCount();
  $this->getLayout()->getBlock('product.info.tabs')->setReviewCount($reviewcount); ?>

I'm running Magento 1.7.0.2. I have successfully used the above code to get the review count number to display in a tab in the product view page. The problem is when a user clicks the default product review link the page will not load anything past the above code on the product review page. Does anyone have any ideas on a way to overcome this issue?

Just FYI I have followed this tutorial to achieve adding the review count to a custom product review tab and this is where the above code originated from: http://www.magentocommerce.com/boards/v/viewthread/237020/


texts: Magento 2: How to find layout position name for destination attribute of a move tag

texts:
In magento2 to change a position of block <move> is used whose syntax is as follows.

<move element="name.of.an.element" destination="name.of.destination.element" as="new_alias" after="name.of.element.after" before="name.of.element.before"/>

I used this on some places while using this i found finding of value for  destination  attribute quite difficult.

Can any one please tell me how we can find value of destinations available in default magento 2 .

like columns.top,sidebar.main,content.aside,login.content,login.header,header.panel etc.


texts:
My array,
array (
  'store_hours' =>
  array (
    'entity_id' => '7',
    'attribute_id' => '2',
    'store_id' => '4',
    'value' => 'Mon-Fri: 10am - 8 pm',
    'frontend_label' => 'Store Hours',
    'attribute_code' => 'store_hours',
    'frontend_input' => 'text',
    'is_required' => NULL,
    'label_serialized' => '{"1":"Store Hours"}',
    'options_serialized' => NULL,
    'value_id' => NULL,
    'option_title' => 'Mon-Fri: 10am - 8 pm',
  ),
)

How to print store hours : Mon-Fri: 10am - 8 pm
My declaration :
'store_hours' =>$this->getDataByKey('store_hours')->getDataByKey('value');
Its not return the values.


texts: Magento 2 add extension attribute to invoice_item

texts: I need to put the shipment number for the item in 'sales_invoice_item' table from Rest Api, How to add extension attribute for invoice item?


texts: What is the $block->getData(), $block->setData() method in Magento 2? How to use them?

texts:
I'm a Magento beginner. My question:

What is the $block->getData() and $block->setData() methods in Magento 2? How to use them?
And could you show me the list of all Magento's methods (getData(), setData()...).


texts: How to override adminhtml phtml in magento 2?

texts:
Does anyone know how to override the below template?

vendor\magento\module-backend\view\adminhtml\templates\media\uploader.phtml.


texts: Update Product Attribute Data for All Store Views

texts:
I'm trying to update a certain attribute of all of my products programmatically. So far, I've used Magento\Catalog\Model\ResourceModel\Product\CollectionFactory and iterating through the products, setting data and using save() on each product. This was successful, but just for the primary store view (ID 1) but not globally or for any of the three other multistore views.

I've tried calling $product->setStoreId(0) on each product, but this doesn't work.

What's the best way to programmatically update an attribute for all views?


texts:
my website is http://www.feetheart.com/magento/ and I'm using intenso magento theme and there are 5000 skus my website is speed is too low, can anyone have solutions.

Thanks in advance


texts: How can I create a Custom SOAP/XML-RPC v1 & V2 Api in magento?

texts: How can I create a Custom SOAP/XML-RPC V1 & V2 API in Magento?


texts:
I'm trying to add an image to my first module can someone tell me how I cando this I am new to Magento

this is phtml file

Hello world

module is in

app/code/Test/Helloworld

This is my directory structure of Helloworld Module


texts: Magento prevent initialization of user session at ActionController

texts:
I want to prevent that Magento creates a session-file (eg sess_r8mgn8n6oep1roajrimu5ako83) under var/session when my nouserAction() gets called.

So far I tried to set the FLAG_NO_START_SESSION-flag, but it seems to create a session file anyway.

class Company_Mymodule_UserController extends Mage_Core_Controller_Front_Action{

    /*
     * @see app/code/core/Mage/Api/Controller/Action.php
     */
    public function preDispatch()
    {
        $this->getLayout()->setArea($this->_currentArea);
        $this->setFlag('', self::FLAG_NO_START_SESSION, 1); // Do not start standart session
        parent::preDispatch();
        return $this;
    }

    public function nouserAction(){
        echo "Don't create a user session at all if this action gets called!';
    }
}

Also in the backend under Customers -> Online Customers the "user" is displayed, even though it's not my intention.


texts: Override module's model with another Magento 2 module

texts:
I tried to override a custom module model with creating a new module, i got class not found error

etc/module.xml

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

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">
<preference for="V2\M2\Model\Quote\Email\Sender\QuoteProposalSender" type="V1\M1\Model\Quote\Email\Sender\QuoteProposalSender" />
</config>

class Model/Quote/Email/Sender/QuoteProposalSender.php

namespace V1\M1\Model\Quote\Email\Sender;

class QuoteProposalSender extends \V2\M2\Model\Quote\Email\Sender\QuoteProposalSender
 {

public function checkAndSend(
    \V2\M2\Model\Quote $quote,$attachments = null) {
    return $this->traitCheckAndSend($quote, $attachments);
}

}

When executing the command

php bin/magento setup:di:compile

I got this error

PHP Fatal error:  Class 'V2\M2\Model\Quote\Email\Sender\QuoteProposalSender' not found in /app/code/V1/M1/Model/Quote/Email/Sender/QuoteProposalSender.php on line 14


texts: Using Magento for Client-to-Client service

texts: I am starting a website where my users will be able to purchase virtual products but also be able to sell them. I look around for a Magento extension, but I haven't found any. Am I using the right wording, meaning is Client-to-Client the right terminology? Also would you recommend that I use Magento for this type of service?


texts: Shipping Address for new Customers return blank on payment step checkout

texts:
On payment step default checkout I am trying to get the customer shipping address. But sometimes returns empty (please see the image below).

I am using a code similar to this to get the Shipping Address:

$quote = Mage::getSingleton('checkout/session')->getQuote();
$address = $quote->getShippingAddress();
print $address->getPostcode();

Anyone know why this happens?
Thank in advance


texts: How to add custom menu in top nav section in magento 2.2.5

texts: I'm trying to add custom menu in top nav section or place any custom menu removing the existing one. How to customise this section. Please tell me step by step. I'm unable to do this after the searching in google also, i'm little newbie in magento 2.2.5


texts:
I have migrated data from magento 1.9 to magento 2.2.4, Now in admin when i view shipment under sales -> Shipments it gives me 404 error.
How am i suppose to debug?
I have checked the .phtml file from where the form is displayed on view but it is not reaching over there.
when is go to sales -> Order -> edit -> shipments in left panel it is working fine when i view shipment
Any help would be appreciated


texts: Uploaded extension manually not showing extension menu on frontend Magento 2

texts:
I am trying to install an extension of Custom Stock Status. I uploaded all the files to it relevant folders by following the installation step provided by the extension. Now the issue is that the extension menu is not showing inside Stores > Configuration.

Here are the steps I followed.

Step 1:

Please unzip the archive.

Step 2:

Disable cache at System -> Cache Management.

Step 3:

Unload the contents of the module package to the Magento root folder. This will not overwrite the existing Magento files, only the new contents will be added.

At the first time, I didn't disabled Cache, after looking into the documentation I disabled cache and tried again but the menu is still not showing up.


texts: Set payment code to new payment method created

texts:
I have created a payment method based on this tutorial:

https://www.magestore.com/magento-2-tutorial/2361-2/

But, when I get the payment code it is set to checkmo.
Anyone can help me on how to set my own distinct code for this method?

Regards,
Gustavo


texts: Prohibition of purchase for non login users for magento 2

texts: I know there's a way to make this prohibition in magento 1 but what about magento 2? Thank you!


texts:
I am using magento 1.9 Free testimonial.

Problem is that mail going from order mail id .And I have to change this  with custom mail .

public function sendemailAction($to, $templateConfigPath) {
        if(!$to) return;
        $translate=Mage::getSingleton('core/translate');
        $translate->setTranslateInline(false);
        $mailTemplate=Mage::getModel('core/email_template');
        $template=Mage::getStoreConfig($templateConfigPath, Mage::app()->getStore()->getId());
        $sendTo=array();
        foreach($to as $recipient) {
            if(is_array($recipient)) {
                $sendTo[]=$recipient;
            }
            else {
                $sendTo[]=array(
                    'email'=>$recipient,
                    'name'=>null
                );
            }

        }
        foreach ($sendTo as $recipient ) {
            $mailTemplate->setDesignConfig(array('area'=>'frontend', 'store'=>Mage::app()->getStore()->getId()))
            ->sendTransactional(
            $template,
            Mage::getStoreConfig(Mage_Sales_Model_Order::XML_PATH_EMAIL_IDENTITY, Mage::app()->getStore()->getId()),
            $recipient['email'],
            $recipient['name'],
            array('customer_name' =>$this->_getTestimonial()->load($testimonialId)->getName(),
                    'customer_email'  =>$this->_getTestimonial()->load($testimonialId)->getEmail(),
                    'address'         =>$this->_getTestimonial()->load($testimonialId)->getAddress(),
                    'website'         =>$this->_getTestimonial()->load($testimonialId)->getWebsite(),
                    'company'         =>$this->_getTestimonial()->load($testimonialId)->getCompany(),
                    'testimonial'     =>$this->_getTestimonial()->load($testimonialId)->getTestimonial()
                  )
            );
        }
        $translate->setTranslateInline(true);
          return $this;
    }


texts: Not able to display category wise products on home page

texts:
I wan to display category wise products on homepage like the image below

And i am referring this link.

And using below code to do that. But it is not working.
Can someone please guide me how do i achieve this.

{{block type="catalog/product_new" category_id="5" column_count="4" products_count="3" name="home.catalog.product.new" alias="product_homepage" template="catalog/product/widget/new/content/new_list.phtml"}}


texts: Magento 2.4 - Composer php 7.4 error magento/magento2-functional-testing-framework

texts:
We run Magento 2.4 with php7.4, that should be supported. But we get the following error when we try to update a module using composer:
magento/magento2-functional-testing-framework 2.6.5 requires php ~7.1.0||~7.2.0||~7.3.0 -> your PHP version (7.4.7) does not satisfy that requirement.

Installation request for magento/magento2-functional-testing-framework (locked at 2.6.5, required as ~2.6.4) -> satisfiable by magento/magento2-functional-testing-framework[2.6.5]

How can we solve this?


texts: How to get manufacturer name for each product

texts:
I have to get some attributes for each product I've gotten most of them but I don't know how to get manufacturer name and the upc or ean barcode value in adminhtml.

I've tried with this code

         $name = 'Manufacturer';
         $attributeInfo = Mage::getResourceModel('eav/entity_attribute_collection')->setCodeFilter($name)->getFirstItem();
         $attributeId = $attributeInfo->getAttributeId(81);
         $attribute = Mage::getModel('catalog/resource_eav_attribute')->load($attributeId);
         $attributeOptions = $attribute ->getSource()->getAllOptions(false);
         var_dump($attribute);

But I can Just print (like in the image) $attribute level and then the $attributeOptions goes empty.


texts: Magento 2 REST API create for post operation

texts:
I am a newbie in Magento. I am trying to create a Magento Rest API for post operation.I go through many online resources but none of it clarify my doubt. I am trying to create an API for an operation  which uses a table having three fields - 1.ID 2.NAME 3.CREATED AT .Now I want to populate this table using Rest API. I found resources where an interface is created at  API/DATA  and it is implemented at MODEL/DATA .I don't understand what methods should I write in it and how it works and what is the use of it.

Please help.


texts: Change add to cart button with something else " How to Buy"

texts:
I am new to magento commerce and would really appreciate to answer to question how/what extension install to change the "Add to Cart" button to something like "How to Buy" and redirected to some other page and hide price for that product. Example on this site:

chelleon(dot)co(dot)uk

they hide the price
change to "How to Buy" and redirect to some other page.

I really appreciate your help

thanks


texts:
Is it possible add text and images connected to each product configurable attribute?

So the screenshot above would turn into something like the screenshot below:


texts: Move short description below page product detail title via XML

texts:
I want to move the short description below the title.

See this screenshot:

I tried it with XML in catalog_product_view.xml:

 <move element="product.info.extrahint" destination="page.main.title" />

But it doesn't work. Duh! How can I find out the correct names of those blocks? I've looked in the Core catalog_product_view.xml and copied the name from it, but it simply doesn't do what I want it to do. Why and how can I solve it?


texts: Magento 2: How to get Data_type from attribute code?

texts:
i want get type of attribute code for add column! so who can help me plz?

List item


texts:
We want to delete/remove the Magento table prefix.

How can this be done? Is there a script available to do this in one-go?

Essentialy changing the table myprefix_catalog_category to catalog_category

We have had the prefix since 1.3 - but it is causing us too much problems when running scripts or extensions where one forgot to respect it. Removing it seems a lot more logical then.


texts: Hope You All doing good. I am using magento 1.9 with Porto Theme . I want to change tile of 'Description ' to 'Details' in product page . Any one know how to do it ? how can i change description tabs title ? and related products are not showing , what should i do for display related products?


texts:
Using Magento 1.8.1.0

Occasionally an order is produced (which has successfully been paid for) but the corresponding invoice is not produced.

This has happened a few times, but only occasionally.  We cannot understand why.  Can anyone shed any light on it, and how to stop it happening?


texts:
I have made a custom attribute blacklisted in the customer grid. I have created the attribute directly from phpmyadmin.

I will blacklist customers manually.

Now, while placing an order, if, for the customer, blacklisted='Yes', he should not be able to place order. I want to check this attribute using the customer's email id.

How can I achieve this?


texts: Magento 2: how to get logo full file path?

texts:
In Magento 2, I can retrieve the logo image url by using this:
public function __construct(\Magento\Theme\Block\Html\Header\Logo $_logo){
  $logUrl = $_logo->getLogoSrc();
}

Is there a way to retrieve logo full directory image path ?


texts: How to tell FTF to use my custom admin url?

texts:
Even though generate.php is still failing, I've got FTF running, but I keep running into this error:
    Configuration read from /Applications/AMPPS/www/am.dev/dev/tests/functional/phpunit.xml where I have the backend url set to my custom url:

<env name="app_backend_url" value="http://www.am.dev/my-custom-admin/" />

Yet, it keeps trying to hit http://www.am.dev/admin.  Where is the right place to set it to "my-custom-url"?


texts: Magento in subdirectory of another framework/application

texts:
Is it possible to use Magento and place it inside of another PHP framework like  Yii in a subdirectory?

We are currently trying to place Magento in example.com/magento.

UPDATE 21/07/2015

We have managed to make it work but the problem is that the theme, css, js and template is not working or showing. do i need to update something to make it work? thankyou

UPDATE 22/07/2015

The problem regarding theme, css, etc not loading is because of the folder in the app/code. in the modules, it was declare as local, but the current file name is local1, so i change it to local and everything is fine..

UPDATE 23/07/2015

after fixing everything, i found another problem in here. the magento connect manager is not working. it only displays The page you requested was not found, and we have a fine guess why. do i need to configure anything? please help me.thank you


texts:
I placed an order on my local. now I want to use local DB for live and I want to delete the all test order.

I know there is some table of all these orders are stored. but I don't know the name of those tables.

please provide me the name of all the tables which stores the order information


texts:
Using the paths inspector, I realize that swatches.phtml is taking over list.phtml in our category pages, even if we have it disabled in Configuration > Settings > Catalog > Configuration Swatches (comes by default in the last Magento version I think).

swatches.phtml seems to be located in /app/design/frontend/THEME/default/template/configurableswatches/catalog/product/list

How is it and how can we get back our list.phtml instead?

One drastic option is copy/paste list.phtml into swatches.phtml but we'd prefer a kinder approach.

Thanks for pointing out ideas, I may be missing something too.


texts:
Magento has just released the patch SUPEE-11086 i am using Magento Version 1.9.2.2

I have scan my site in https://magereport.com it is not showing the SUPEE-11086 patch details.

i have also checked with other projects with different version too. do i still need to install the patch?


texts:
I want to send all images of a product from product detail page by mail after assiging email id to mail form like below link

https://superwholesalebazaar.biz/shop/sarees-catalogs/bundle-of-15-cotton-sarees/

I am using magento 1.9.2.


texts: Is There A Way To Add Products That Are Only Available In Backend?

texts:
I need to add some products to my site that are only allowed to be ordered by the Sales staff. Therefore, I need them not to show on the website, but they need to still be able to available via a MOTO order in the backend.

Is there a way of doing this?


texts:
Is there a simple way to show total quantity in stock for products. We are trying to make it a simple inventory catalog showing products and total quantity available per product?

If some development is needed, how much roughly will someone charge to make these two changes, brand new 2.17 installation, a small business with no in house support. Second choice we have to move to open cart

Thanks in advance for all the help.