texts: Magento Redirecting to Cart after payment select, Why?

texts:
I'm on Magento 1.9.2 and use Magestore's gift-card plugin.

When someone buys something with a gift card and the remain order price is zero I wanted all other payment methods gone.

I found the following thread, zero subtotal cart - can I automatically select 'no payment information required'?, and one of the answers from user ReinhardL, worked really well, here is his code;

  Set the sort order for Zero Subtotal Checkout as low as possible (All other active payment methods should have higher values)

  Now edit (copy to local) Mage_Checkout_Block_Onepage_Payment_Methods and change the _canUseMethod($method) function like this:

protected function _canUseMethod($method)
{
    if (!$method || !$method->canUseCheckout()) {
        return false;
    }

    if ($method->getCode() == 'free' && parent::_canUseMethod($method)) {
        Mage::register('payment_free_active', true);
    }
    else if (Mage::registry('payment_free_active')) {
        return false;
    }

    return parent::_canUseMethod($method);
}

  This should work quite well, as long as you don't forget to sort your payment methods, otherwise the registry value won't be set early enough, and all payment methods with a lower sort order value will still be shown.

Now my problem is that it works however when some selects the gift card payment method and then clicks continue it redirects back to the cart.

Can anyone help as to why this would happen?


texts: Please help me troubleshoot why Magento2 Cron just won't work

texts:
Why we simply cannot get the CRON to run on Magento2 (2.2).

The Crontab is below. The Cron_Schedule database table only ever populates if we trigger the Magento Cron manually from the CL.

* * * * * /RunCloud/Packages/php70rc/bin/php /home/runcloud/webapps/magento cron:run | grep -v "Ran jobs by schedule" >> /home/runcloud/webapps/magento/var/log/magento.cron.log

* * * * * /RunCloud/Packages/php70rc/bin/php /RunCloud/Packages/php70rc/bin/php /home/runcloud/webapps/magento/update/cron.php  >> /home/runcloud/webapps/magento/var/log/update.cron.log

* * * * * /RunCloud/Packages/php70rc/bin/php /RunCloud/Packages/php70rc/bin/php /home/runcloud/webapps/magento setup:cron:run >> /home/runcloud/webapps/magento/var/log/setup.cron.log

* * * * * echo asdf > /home/runcloud/webapps/magento/var/log/test.cron.log

If we run the cron manually via CL it runs fine so sure it's not a user or file permissions problem.
The binary path is set exactly as per 'which PHP' output
The bottom line in the crontab is a test I created which works fine so I know the absolute paths to Magento install are correct.


texts:
Ok, here is an issue.
My website was running great. And then it just somehow shows this

Magento supports PHP 7.1.3 or later.

I'v checked the Terminal and it was 5.6.something and I upgrade it.
Now the terminal shows it is 7.4.16, but my website still shows this message when I try to access it with browser.
When i do php --version command

PHP 7.4.16 (cli) (built: Apr  2 2021 04:55:39) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies

Now how to fix this, cause my website "thinks" I'm still with uncompatable PHP?
I'v restarted apache 5 times. No result
Pls check http://apex11.com/


texts: Image is not showing in frontend when we call the phtml file in CMS page

texts:
My requirement is to create a slider without using extension. So I have created a phtml file with the html code and script for slider and called this phtml file in a  cms page. But in the frontend the images are not showing though the script is working.

Could anyone please help me?

Code:

<!DOCTYPE html>

<meta name="viewport" content="width=device-width, initial-scale=1">

Automatic Slideshow

Change image every 2 seconds:

1 / 3

Caption Text

2 / 3

Caption Two

3 / 3

Caption Three

Getting the error:


texts:
I'm trying to add a custom drop down to my customer in the admin area of Magento. I want to be able to control the option_id for each option in the drop down instead of it just incrementing, how do I go about doing this?

Here is what I've got:

function AddCustomerField($setup, $data)
{
    $entityTypeId = $setup->getEntityTypeId('customer');
    $attributeSetId = $setup->getDefaultAttributeSetId($entityTypeId);
    $attributeGroupId = $setup->getDefaultAttributeGroupId($entityTypeId, $attributeSetId);

    $attr = array(
        'type' => 'varchar',
        'input' => 'select',
        'label' => 'Test',
        'source' => 'eav/entity_attribute_source_table',
        'required' => '0',
        'user_defined' => '1',
        'unique' => '0',
        'global' => '1',
        'visible' => '1',
        'searchable' => '1',
        'filterable' => '1',
        'comparable' => '1',
        'position' => '1',
        'option' =>
            array(
                'values' =>
                    array(
                        999 => 'Green22', // I want the drop down value to be 999 but it just auto increments instead
                    ),
            ),
    );
    $setup->addAttribute('customer', $data['id'], $attr);

    $setup->addAttributeToGroup($entityTypeId, $attributeSetId, $attributeGroupId, $data['id']);
}


texts: Is it ok the vendor name being all upper case in Magento 2? e.g. VENDOR\Namespace\Some\ClassName.


texts: Magento 2 cms_page_view_selectable not visible in AdminHtml CMS page Custom Layout List

texts:
I'm trying to create a Custom Layout update for a CMS page (as per https://docs.magento.com/user-guide/design/layout-update-place-block.html). On local environment it is present in the CMS Page configuration Custom Layout list but on a testing environment it is not.
Just to confirm that what I'm doing is ok, I have created the layout as below:
src/app/design/frontend/Vendor/default/Vendor_Theme/layout/cms_page_view_selectable_cmspage-url_LayoutCustomName.xml

Did some debugging on the environment and it seems that my layout update file is not being picked up by the Layout mechanism.
Local env is on developer deploy mode while testing is on production deploy mode.
I know that the issue may be related to the difference between ENVs setup, but maybe someone else bumped into the same issue and I'm missing something.
At this point I'm clueless on what the issue might be. Any thoughts?


texts: ERR_EMPTY_RESPONSE received for one specific configuration page. Caching Problem?

texts:
Background:
As of today, I backed up my database, and was testing an unleashed integration with my magento installation. Randomly, I noticed that I was having the same JS errors across my entire admin. I ignored them as they weren't causing problems in my LOCAL environment.

After doing this and also working on the OneStepCheckout plugin from Idev, I realized that I could not get to my payment options config section to turn on paypal sandbox, and I get a ERR_EMPTY_RESPONSE or occasionally an ERR_INCOMPLETE_CHUNK_RESPONSE  from chrome whenever I try to load the page. It seems like sometimes it can load the page almost of all of the way, but sometimes it does not.

So, at this point, I've started to pare down the JS errors, to see if they are causing these problems. This has had no effect.

I have considered a JS conflict between jQuery & Prototype, but I'm not using any jQuery in the admin area, only on the frontend, so I think its unlikely.

I've also increased php memory_limit and max_post_size, didn't help, as far as I can tell.

I have also noticed posts about xcache and caching corruption, and I've investigated, but not that thoroughly, as I'm not expert on caching. I don't think my development box has xcache or any special caching on it, though.

Also thought it might have something do with unleashed, but a backup of the database uploaded over the database version unleashed was connected to had no effect.

My real question:
Apart from all that, is there any other reason why I would be getting these type of errors suddenly, and only having them affect the system on a live server, rather than my local dev environment??

Any help would be great. Banging my head against the wall at this point.


texts: CSV Upload errors, even after adding all attribute values

texts:
I'm trying to add custom attributes using a CSV. I'm using the header additional_attributes.

I have attributes called "main category" and "sub_category", and they're in the additional_attributes column as

main_category="category name",sub_category="subcategory name"

I used the api to upload all of the product options, but I'm still getting the error:

Value for 'main_category' attribute contains incorrect value, see acceptable values on settings specified for Admin in row(s)

and it lists all of the rows.

I've reindexed, cleaned the magento cache, and flushed redis cache, but the error stays the same.

Any ideas?

Thanks


texts: How to use unicode characters in Products url in magneto2

texts:
I need to use the arabic letters in the magento2 product url.. I had researched more.. still i had no answer. I am using magento 2.2.6 version

Anyone know please help me to this requirement. Thanks in Advance!


texts:
I want to get the content of one phtml file,and then  regard it  as data that be pushed one array.

Anyone who knows what should I do ?
the phtml file  :

  <?php foreach ($products as $product) { ?>
  <div class="product-integrate-item transition row <?php if ($product['selected']) echo 'selected'; ?>" style="margin-right: 0px; margin-left: 0px; cursor: pointer;" category-id="<?php echo $product['categoryId']; ?>" product-id="<?php echo $product['productId']?>">

      <img src="image/<?php echo $product['image']; ?>" style="height: 50px;" class="img-responsive"/>

<?php echo $product['name']; ?>

<?php echo $product['price']; ?>

  <?php } ?>

I want get it and push in one array $result['data'] which is made up of the content of phtml file


texts: Categories not appearing in correct order in top menu

texts:
For some reason, certain categories don't display in the correct order in the top category menu, but instead appear after the list of the other categories. Any thoughts?

I've double-checked store view, etc, and have reindexed/cleared the cache to death.

Edit: by "correct order" I mean the order I've set in the backend by clicking and dragging.


texts: Magento 2. How to access Admin RSS Feed? (Low Sock Notification)

texts:
I wish to access the admin RSS feed, with the purpose of seeing information about low stock notifications.
I have set Magento Admin > Stores > Configuration > Catalog > RSS Feeds > Rss Config > Enable RSS to Enable.
I found the following block \Magento\InventoryLowQuantityNotificationAdminUi\Block\Adminhtml\Rss\NotifyStock which led me to the following controller \Magento\Rss\Controller\Adminhtml\Feed\Index
From Index:execute() method I can tell that this is the link I need to access with the notifystock value for the type param.
Accessing this page from the admin directly (via url) gives me all sorts of validation errors.
Is there a way to access it from the GUI? Some sort of link/button etc?


texts:
How to add an product attribute to multiple attribute sets programmatically?

This question has been answerded for Magento 1, but how does it work with Magento 2?

Edit:
I create all my custom attributes in an installation script. They are created when installing magento (I add my extentions to the Magento folder before installing it on a server). At this time I don't know about the attrubute sets. They are created later during an import. So I want to assign existing custom attributes when creating an attribute set.


texts: Module Database setData() makes UPDATE Query instead of INSERT?

texts:
in my own module I want to INSERT the orderId to my own DB Table.

$data = array( 'order_id' => $order->getId() );
$model = Mage::getModel('magic/test')->setData($data);
try {
    $model->save();
    Mage::getSingleton('adminhtml/session')->addSuccess('Success');
} catch (Exception $e){
    Mage::getSingleton('adminhtml/session')->addError('Error'.$e->getMessage());
}

But I get this Exception:

  SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (order_id='8606')' at line 1, query was: UPDATE magic_test SET WHERE (order_id='8606')

my table Structure

CREATE TABLE IF NOT EXISTS `magic_test` ( `order_id` int(10) unsigned NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8;`

ALTER TABLE `magic_test`
 ADD PRIMARY KEY (`order_id`), ADD UNIQUE KEY `order_id` (`order_id`);

I want to insert data but why Magento makes a UPDATE SQL query?

I trying to delete some data with

$model = Mage::getModel('magic/test');
$model->setId('123456')->delete();

This works like a charm!


texts: Insert order data from csv programatically in Magento 2.2

texts:
I have 2 different CSV files 1st has orders and 2nd have order details. I am trying to insert data into magento2 DB using Magento Models. so that my data will insert into all different tables and will also show on the Admin side.

Right now I have inserted data in DB but the data is just inserted into sales_order table, all the other tables related to orders are empty, that's why order's data is not showing on the Admin side.

Need some serious help


texts: Magento Configurable Product Dynamic MSRP

texts:
I have configurable products that have multiple attributes - like size and color.

Each simple product associated with that configurable product (size1 color1, size2 color1 etc.) has not only a different price, but a different MSRP. It was easy enough to get the price to change using the Magento admin, but it's not as easy with the MSRP.

How can I make the MSRP change for each combination of selected attributes?


texts: Magento 2: Can we run a magento root file from CRON?

texts:
I want to run a file which i placed in root directory of my magento. How to run that file using CRON ?

UPDATE:

I have a file name updateData.php in magento root directory. How to run this file from cron?

    <group id="default">
        <job name="daily_csv_file_generate" instance="Namespace\Module\Cron\Test" method="testFile">
            <schedule>* * * * *</schedule>
        </job>
    </group>


texts: Magento 2 how to add product attribute of type textarea with editor programmatically

texts:
How can we add custom attribute using setup script in magento 2

attribute type should be textarea with editor.

Like Product description.


texts: Magento 1 : Remove subcategories from url

texts:
Working on magento 1.9 (CE) website.

i have many categories and sub-categories but that makes url too long can i modify the same as below, if yes can anyone please help.

Below is the category tree
Saree -> By Fabric -> Chiffon

current url : https://www.i-ranu.com/sarees-for-womens/by-fabric/chiffon-sarees-for-womens

i want to make url of all urls : https://www.i-ranu.com/chiffon-sarees-for-womens


texts: How do I get most viewed products in custom Magento2? I already found the workaround for top sellers but I do not get nothing about views


texts:
I am currently working with a client who has a large catalogue with hundreds of categories. We are in the process of restructuring their category tree and are finding that the Magento admin area is taking too long to do this.

Is there a way in which we can amend the category orders and parent IDs of categories programatically using some kind of script or maybe through the API?

I found the stack question below from another user when doing a similar task but this was posted a while ago and wondered if there was a better way of doing it.

https://stackoverflow.com/questions/3986344/magento-move-a-category-programmatically

Thanks for your help :-)


texts: Not able to get post data from observer : M2

texts:
i want to get form data from checkout page in 2nd step, so i have use event observer.

I have use this controller_action_predispatch_checkout event.

I want to get post data so i have try this link Get post data, in Checkout success observer but not able to get post data.

Can any one help me how can i get post data?

  event.xml

<event name="controller_action_predispatch_checkout">
       <observer name="ptg_paymentevent_observer_checkoutpredispatchobserver" instance="Ptg\Paymentevent\Observer\Checkoutpredispatchobserver" />
   </event>

  Checkoutpredispatchobserver.php

<?php
namespace Ptg\Paymentevent\Observer;

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

class Checkoutpredispatchobserver implements ObserverInterface
{
    protected $_request;
    public function __construct(
        \Magento\Framework\App\RequestInterface $request
    )
    {
        $this->_request = $request;
    }

  public function execute(\Magento\Framework\Event\Observer $observer)
  {
     //$order= $observer->getData('order');
     //$order->doSomething(); product = $observer->getEvent()->getProduct();
      $reqeustParams = $this->_request->getParams();
            echo '<pre>';
            var_dump($reqeustParams);
            echo '</pre>';

     return $this;
        }

        }
  }
}


texts: Magento 2.4: How can we remove datepicker.js in Magento 2.4

texts:
How do I remove datepicker.js?? I have tried in layout "default_head_blocks.xml"
```<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <!-- 2.4.0 -->
    <head>
        <script src="css/swiper.min.css" /> (this works, that css is available sitewide and is placed in /app/design/frontend/vendor/vendor/web/css

        <remove src="Magento_Ui::js/datepicker.js"/> (Tried this)
        <remove src="js/datepicker.js"/> (tried this)
        <remove src="datepicker.js"/> (also tried this)
        <remove src="calendar.css"/> (yea this aint working either)
    </head>
</page>

None of the above works.. is there any way to remove those magento javascripts? They are slowing down the site and they are absolutelly optional to me, Id like to remove many more unused javascripts, but I dont know how


texts: Magento 2: Installing with Redis by Default

texts:
Magento 2's CLI has a setup:install command that will let you generate an initial configuration

php bin/magento setup:install --admin-email astorm@example.com --admin-firstname Alan --admin-lastname Storm --admin-password 'whymagentowhy?@###@' --admin-user username --backend-frontname admin.bak --base-url http://magento.example.com --db-host 127.0.0.1 --db-name db_name --db-password yeahright --db-user notroot --session-save files --use-rewrites 1 --use-secure 0 -vvv

Is there [a version of this command, another command, or some third party project] that will automatically generate the needed configuration nodes for a redis cache and redis sessions?


texts: Magento 2: how to hide ''price' of custom option in configurable product

texts:
Using Magento 2, Front, Configuration Product. I need to hide price from custom option of configuration product.

  Front -> Product Option


texts:
I try to export customers to CSV.
I click here:

I get this error:

Log record reads:
(some values redacted)
a:5:{i:0;s:148:"Cannot send headers; headers already sent in /var/www/1/123/www/app/code/local/MP/Customfield/Block/Customer/Account/Renderer/Confirm.php, line 8";i:1;s:1193:"#0 /var/www/1/123/www/lib/Zend/Controller/Response/Abstract.php(115): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /var/www/1/123/www/app/code/core/Mage/Core/Controller/Varien/Action.php(1066): Zend_Controller_Response_Abstract->setHeader('Pragma', 'public', true)
#2 /var/www/1/123/www/app/code/core/Mage/Adminhtml/controllers/CustomerController.php(400): Mage_Core_Controller_Varien_Action->_prepareDownloadResponse('customers.csv', Array)
#3 /var/www/1/123/www/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_CustomerController->exportCsvAction()
#4 /var/www/1/123/www/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('exportCsv')
#5 /var/www/1/123/www/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#6 /var/www/1/123/www/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#7 /var/www/1/123/www/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#8 /var/www/1/123/www/index.php(83): Mage::run('', 'store')
#9 {main}";s:3:"url";s:79:"/index.php/admin/abc/customer/exportCsv/key/-redacted-/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}

Magento 1.9.3.4


texts: how to install themeforest-T5ELugiM-claue-clean-minimal-magento-2-theme in magneto 2.3.5

texts: It shows Unable to find a physical ancestor for a theme 'MGS Claue'.


texts: When should I consider Magento2 instead of Magento1?

texts: in Czech community we have a discussion whether Magento 2.x is worth to start using or it's better to stick with Magento version 1.x. I'm still not convinced to switch to M2 from M1 and throw away everything we learnt about M1 - all experiences we have. Can anyone clarify what are key points to start using Magento2 instead of Magento1? I still don't get it.


texts: While adding Attributes, don't want to add that field in catalog_product_flat table?

texts:
With the help of Manage Attributes I was able to put where condition in Product Listing Page.

  SELECT 1 AS status, e.entity_id, e.type_id, e.attribute_set_id, cat_index.position AS cat_index_position, e.couple_band_sku, e.name, e.short_description FROM catalog_product_flat_1 AS e INNER JOIN catalog_category_product_index AS cat_index ON cat_index.product_id=e.entity_id AND cat_index.store_id=1 AND cat_index.visibility IN(2, 4) AND cat_index.category_id='128' AND cat_index.is_parent=1 INNER JOIN catalog_product_index_price AS price_index ON price_index.entity_id = e.entity_id AND price_index.website_id = '1' AND price_index.customer_group_id = 0 WHERE (e.offer >= 1) ORDER BY e.offer DESC, cat_index_position asc, cat_index.position asc LIMIT 16

Now my problem is that while creating attributes suppose offer then offer field and offer_value also gets added to catalog_product_flat table.

I dont want both to get added in catalog_product_flat table because I am not using those fields. How to do?


texts: Fresh Magento - admin menu is not working

texts:
Buttons on left admin menu does not react on mouse actions.

The error in console says

  TypeError: Formatter is not a constructor

I tried

setup:static-content:deploy

but nothing happens.


texts: Magento 2 Custom API or Customize Existing API?

texts:
Just wnat to ask which is better? Got a module for 3 different custom order type.
Anyone got expirience creating custom API?


texts: Magento 2: Add invoice Increment ID to Order grid

texts:
I am trying to add invoice increment ID to order grid in magento 2 admin like below:

  app/code/Payment/Status/view/adminhtml/ui_component/sales_order_grid.xml

<?xml version="1.0" encoding="UTF-8"?>
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <columns name="sales_order_columns">
        <column name="invoice_id" class="Payment\Status\Ui\Component\Listing\Column\Invoice">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="filter" xsi:type="string">text</item>
                    <item name="label" xsi:type="string" translate="true">Invoice #</item>
                </item>
            </argument>
        </column>
    </columns>
</listing>

  app/code/Payment/Status/Ui/Component/Listing/Column/Invoice.php

<?php
namespace Payment\Status\Ui\Component\Listing\Column;

use \Magento\Sales\Api\OrderRepositoryInterface;
use \Magento\Framework\View\Element\UiComponent\ContextInterface;
use \Magento\Framework\View\Element\UiComponentFactory;
use \Magento\Ui\Component\Listing\Columns\Column;
use \Magento\Framework\Api\SearchCriteriaBuilder;

class Invoice extends Column
{
    protected $_orderRepository;
    protected $_searchCriteria;

    public function __construct(ContextInterface $context, UiComponentFactory $uiComponentFactory, OrderRepositoryInterface $orderRepository, SearchCriteriaBuilder $criteria, array $components = [], array $data = [])
    {
        $this->_orderRepository = $orderRepository;
        $this->_searchCriteria  = $criteria;
        parent::__construct($context, $uiComponentFactory, $components, $data);
    }

    public function prepareDataSource(array $dataSource)
    {
        if (isset($dataSource['data']['items'])) {
            foreach ($dataSource['data']['items'] as & $item) {

                $order  = $this->_orderRepository->get($item["entity_id"]);
                $invoice_ids = array();
                foreach ($order->getInvoiceCollection() as $invoice)
                {
                    $invoice_ids[] = $invoice->getIncrementId();
                }
                if(count($invoice_ids)>0){
                    $invoice_id = implode(', ', $invoice_ids);
                }
                else{
                    $invoice_id = '';
                }

                $item[$this->getData('name')] = $invoice_id;
            }
        }

        return $dataSource;
    }
}

And it showing correctly but filter and sorting not working for that column.

Can you anyone help?


texts: Magento Extension working in version 2.0 but not working in version 2.1

texts:
I have developed a extension for Magento 2. I have doen all my development work in version 2.0.5. After completion of the development work, I tried to test it on Magento 2.1. But now I am facing problems.

On Magento 2.0 extension installed successfully and works great. But when I try to install it on Magento 2.1 then I receive the following error:

Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.
current version - none, required version - 1.0.0

After this I have manually added 1.0.0 in data_version column of setup_module table.

Now after that admin panel works and I have tried to access my module then I got below error:

Class PageGridDataProvider does not exist

I am using this class in below code as per tutorial of Custom module in Magento 2.0

<dataSource name="grid_record_grid_list_data_source">
    <argument name="dataProvider" xsi:type="configurableObject">
        <argument name="class" xsi:type="string">PageGridDataProvider</argument>
        <!-- here we pass dataprovider name which i will define in di.xml file of module in next step -->
        <argument name="name" xsi:type="string">grid_record_grid_list_data_source</argument>
        <argument name="primaryFieldName" xsi:type="string">id</argument>
        <argument name="requestFieldName" xsi:type="string">id</argument>
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="update_url" xsi:type="url" path="mui/index/render"/>
            </item>
        </argument>
    </argument>
    <argument name="data" xsi:type="array">
        <item name="js_config" xsi:type="array">
            <item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
        </item>
    </argument>
</dataSource>

I am stuck at this error. Can anybody help me please. Is magento 2.1 require different extension development process?

Thanks

EDIT:

I have added below code in di.xml and now Class PageGridDataProvider does not exist error gone.

<virtualType name="PageGridDataProvider" type="Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider"/>

Now can you help me out to solve the first issue. In which the data-version is not inserting during Installation and below error occours:

Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.
current version - none, required version - 1.0.0


texts: magento 2: Hide shipping method in frontend

texts:
I have the shipping method "Flatrate" enabled in backend. So, as expected, it is available in frontend, too. But this shipping method should only be available in backend.

Of course, I already googled for this:
How to hide a shipping method in front end and visible on admin section Magento 2?

But this doesn't work for me.
I have my own module and namespace already and created the di.xml file. This file is for dependency injection, ok. But what other files do I have to create and what's the content of the files and the di.xml?

That's what I have:

  /app/code/MyNameSpace/MyModule/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="Magento\OfflineShipping\Model\Carrier\Flatrate" type="MyNameSpace\MyModule\Model\Carrier\Flatrate" />
</config>

  /app/code/MyNameSpace/MyModule/Model/Carrier/Flatrate.php

// no content - I just don't know what to do here...


texts:
I am trying to use this extension as it adds a image to a attribute which i can display on the product page versus just attribute text

Extension Link
https://github.com/aligent/magento-attribute-option-image

however when i try to add a image via admin i get this error

I am presuming that it didnt install the sql stuff the code for the sql files in the extension is this

mysql4-install-1.0.0.php

$installer = $this;
/* @var $installer Mage_Core_Model_Resource_Setup */

$tableOption = $this->getTable('eav_attribute_option');
$installer->startSetup();

$installer->run("
ALTER TABLE {$tableOption}
    ADD image TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
");

$installer->endSetup();

mysql4-upgrade-1.0.0-1.0.1.php

$installer = $this;
/* @var $installer Mage_Core_Model_Resource_Setup */

$tableOption = $this->getTable('eav_attribute_option');
$installer->startSetup();

$installer->run("
ALTER TABLE {$tableOption}
    ADD thumb TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
");

$installer->endSetup();

so how can i manually run these so they install or how can I add the required sql stuff via phpmyadmin or something?


texts: How to create a shopping cart rule - Get an certain item free if you spend over $50

texts:
How do I create a shopping cart rule where you get an item free if you spend over $50? I do not want to download any extensions, I just need to know how to make a certain item free when customers spend over $50.

The actual "free" item is over $50 in value and when it is in the shopping cart with an item that is lets say $5 its still allowing the rule to run since the total is over $50 even though the customer isn't actually spending over $50.


texts: Magento 2.1.7 - Problem on Readiness Check on "Check Cron Scripts"

texts:
I have a Client with Magento 2.1.7, I need to success the Readiness Check so I can install extensions or upgrade Magento version...

All the checks are ok! It says to:

"Your PHP version is correct (7.0.33)"

but the Check Cron Scripts failed.

Error from Updater Application Cron Script:
Found non-writable path(s):
/var/www/vhosts/gevi/httpdocs/php.ini.sample

The file does even exist, and if I create it with permission 755 the problem is the same...

I think the problem is on CRON failing, in details:

When I run "php bin/magento setup:cron:run" to execute the CRON I got an error on the log:

PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/vhosts/gevi/httpdocs/vendor/magento/framework/Console/Cli.php on line 72

Seems that php code is incorrect? Incompatible between Magento version and PHP version? But it says version 7.0 is ok!

HELP!


texts: How do I prevent empty checkout fields from being validated on page load?

texts:
I am using Magento 2.3.5 and Amasty's "One Step Checkout" module. Amazon Pay is also present.
When viewing the checkout page, it seems something is trying to validate the <input> fields even though the user hasn't entered anything:

Is this something anyone has encountered before?


texts: Could not open input file: bin/magneto error after every command in magent2.3.3

texts:
I have freshly installed magento 2.3.3 but when i am trying to run indexer or any other command i am getting following errors.

Could not open input file: bin/magneto

I have tried so many commands and also given access 777 but its not working
i am using Ubuntu 18.40.


texts:
How to popup an action on click of button in adminhtml grid instead of redirecting the page?
I am using custom class (class EmailLogActions extends \Magento\Ui\Component\Listing\Columns\Column)


texts: Magento 2 How to check if Admin Logged on frontend

texts:
I'm trying to check if admin is logged in on frontend in Magento 2 but I didn't find the way.

Some help?


texts:
we are looking for some advice / support.
We sell kits that are made up of many simple products.

We have 15 different sizes that we would like listed on 1 product page with the option of Black or White

Attribute 1 = Size
Attribute 2 = Color

Each of the sizes are made up of around 6-7 different simple products with different quantity depending on the size selected.

We would like if possible when the front end user orders one of these kits a list be produced of all the different simple products needed for this kit.


texts:
I was wondering if it would be possible to link to a product in the footer template?

I don't want to use blocks or anything, just a single href tag linking to a product.

I know there is <?php echo $this->getUrl('our-story'); ?> but is this efficient for products


texts: When Upgrade script its give error in magento 2

texts:
When i run script using this command php bin/magento setup:upgrade its gives this error

  [ErrorException]   array_key_exists() expects parameter 2 to be
  array, null given

  setup:upgrade [--keep-generated] [--magento-init-params="..."]

In my module i am not using array_key_exists why this error generate,How to solve this error?

Installschema:

namespace Example\Blog\Setup;

use Magento\Framework\Setup\InstallSchemaInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\SchemaSetupInterface;

class InstallSchema implements InstallSchemaInterface
{

public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
{
    $installer = $setup;

    $installer->startSetup();

    $table = $installer->getConnection()->newTable(
        $installer->getTable('blog_post')
    )->addColumn(
        'blogpost_id',
        \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
        null,
        ['identity' => true, 'unsigned' => true, 'nullable' => false, 'primary' => true],
        'Blog Post ID'
    )->addColumn(
        'title',
        \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
        255,
       ['nullable' => false],
        'Title'
    )->addColumn(
        'url_key',
        \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
        255,
        ['nullable' => false],
        'URL key'
    )->addColumn(
        'content',
        \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
        '2M',
        ['nullable' => false],
        'Content'
    )->addColumn(
        'short_content',
        \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
        '2M',
        ['nullable' => false],
        'Short Content'
    )->addColumn(
        'image',
        \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
        255,
        ['nullable' => false],
        'Featured Image'
    )->addColumn(
        'image_thumb',
        \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
        255,
        ['nullable' => false],
        'Thumb Image'
    )->addColumn(
        'category',
        \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
        255,
       ['nullable' => false],
        'category'
    )->addColumn(
        'tags',
        \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
        null,
        ['nullable' => false],
        'Tags'
    )->addColumn(
        'meta_title',
        \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
        '2M',
        ['nullable' => false],
        'Meta Keywords'
    )->addColumn(
        'meta_keywords',
        \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
        '2M',
        ['nullable' => false],
        'Meta Keywords'
    )->addColumn(
        'meta_description',
        \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
        null,
        ['nullable' => false],
        'Meta Description'
    )->addColumn(
        'publish_date',
        \Magento\Framework\DB\Ddl\Table::TYPE_DATE,
        null,
        [],
        'Publish Date'
    )->addColumn(
        'is_active',
        \Magento\Framework\DB\Ddl\Table::TYPE_SMALLINT,
        null,
        [],
        'Active Status'
    )->addColumn(
        'created_at',
        \Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
        null,
        [],
        'Creation Time'
    )->addColumn(
        'update_time',
        \Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
        null,
        [],
        'Modification Time'
    )->addColumn(
        'views',
        \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
        null,
        ['nullable' => false],
        'Views'
    )->addColumn(
        'store_id',
        \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
        255,
        null,
        ['nullable' => false],
        'Store ID'
    )

    ->setComment(
        'Blog Table'
    );

    $installer->getConnection()->createTable($table);
    $installer->endSetup();

  }
  }


texts: Magento 1.9.2 - Display any single address of a customer in account dashboard (frontend)

texts:
I would display any single address of a customer and show it on account dashboard for a my work. How can i do?

I tried with this:

echo Mage::getModel('customer/address')->getAddress(2);

echo Mage::getModel('customer/address')->getCustomer()->getAddress(1);

Any of this code works...


texts: Magento 2.2.5 Would it be possible to re-use a module

texts: I am using a module to calculate shipping rates (matrixrate) and since I want to have more shipping methods, could I re-use this module? I was thinking maybe reinstalling it? Could this work?


texts: Magento 2 : Error after delete "var/generation" directory and flush all cache

texts:
I am getting below error after performing 2 steps:

Flush all cache.
Delete var/generation directory.

exception 'RuntimeException' with message 'Source class "" for "Magento\Framework\App\Response\Http\Interceptor" generation does not exist.' in /home/ready/public_html/vendor/magento/framework/Code/Generator.php:185 Stack trace: #0 /home/ready/public_html/vendor/magento/framework/Code/Generator.php(112): Magento\Framework\Code\Generator->tryToLoadSourceClass('Magento\\Framewo...', Object(Magento\Framework\Interception\Code\Generator\Interceptor)) #1 /home/ready/public_html/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass('Magento\\Framewo...')
#2 [internal function]: Magento\Framework\Code\Generator\Autoloader->load('Magento\\Framewo...')
#3 /home/ready/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): spl_autoload_call('Magento\\Framewo...') #4 /home/ready/public_html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(88): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array) #5 /home/ready/public_html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(130): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Framewo...')
#6 /home/ready/public_html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(67): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\\Framewo...')
#7 /home/ready/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(57): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Framewo...', Array) #8 /home/ready/public_html/vendor/magento/framework/App/Bootstrap.php(233): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Framewo...', Array) #9 /home/ready/public_html/index.php(38): Magento\Framework\App\Bootstrap->createApplication('Magento\\Framewo...')
#10 {main}


texts: Magento 2 best architecture for a multi country side

texts:
We are developing a hybrid app where the front end is react native and the backend is magento 2.1.4 and the frontend and backend are communicating via REST APIs

The offering is across 3 countries. Starting with country A then B then C. each country might have different payment gateways to support them. For instance payment gateways X might work for country A and B but not C.

Now also each country might have different shipping rules. For instance we might limit shipping in country A to just 2 cities in it. Country B we might ship to all cities. We might offer free shipping in country A but for country B and C offer free shipping for orders above $100.

Lastly , some products will only be sold in country A and not B and C.

We want users to be able to move between countries.

The question is that can this setup work with one website , 3 stores per country , and two language storefronts per store, or do I have to create a website for each country to meet the needs listed above?

Thanks for engaging with this question.

Mike


texts: Can this be achieved in magento 2 Ui Component.


texts: Image(s) are missing width and/or height attributes in magento

texts:
I analyzed my website on Gtmetrix.com for optimization and the result was this:

  The following image(s) are missing width and/or height attributes:

http://mywebsite.com/media/catalog/product/cache/1/small_image/168x168/9df78eab33525d08d6e5fb8d27136e95/1/1/11.jpg
(Dimensions: 168 x 168)
http://mywebsite.com/media/catalog/product/cache/1/small_image/168x168/9df78eab33525d08d6e5fb8d27136e95/1/1/11_1.jpg
(Dimensions: 168 x 168)

  Specify image dimensions

  allows for faster rendering by eliminating the need for unnecessary
  reflows and repaints.Specifying a width and height for all images

how to solve it?


texts:
My website has many store view like french,uk,german. I have created user for all the store view and assign resources to them. But when I login in admin panel with german user, I can see all the resources there but my orders are not there.

If I login with admin credentials then I can see all the orders for german store view but If login with german user only can see Order tab not orders

I am using Enterprise editon there we have Role Scope, we can use the store view there


texts: Change currency showed in reports - Magento 2

texts:
Hi all Magento Wizards,

I have a question regarding the currency shown in reports. I have a Magento webshop where my base currency is Euro. I have multiple websites and store views, which have different currencies.

When I generate a report it always shows DKK in front of the totals, but really the totals are in Euro. This is very confusing and frustrating. My questin is actually very simple: where do I set the currency that is shown when generating reports?

(Please see images for visualization of the problem)

Any help would be much appreciated!


texts: need to call Magento2 rest api in code level how to call default magento REST APIS


texts: Magento2 - Import Product with Images Using Absolute Path

texts:
As the product images are well organized in shared folders on the server, I prefer having the absolute image path in the CSV file directly. For example this allows for simple one click (almost) imports without having to look for the right folder for a specific brand. This also has the advantage of storing a unique copy of each product images used by multiple production/development installations without having to duplicate them which would occupy much more disc space.

While trying to import product images using an absolute path either with the entire path inside the CSV file, submited through the Images File Directory parameter or both, this error was thrown.

  Following Error(s) has been occurred during importing process:

  Imported resource (image) could not be downloaded from external resource due to timeout or access permissions in row(s): 1, 2, 4, ...

The ideal solution would allow to import from any web user accessible folder using an absolute path while allowing to store a part or the entire path in the CSV file before the image name.


texts: Magento 2 product share in custom Social Media

texts:
Hi i want to Share my Product in Social Media. Like Facebook,Twitter, Pintrest, Linkden using Custom code.

If any one use custom code for sharing product in social media. share your custom code.


texts:
I cannot find the attributes.phtml in my files. I want to edit how the additional tabs content shows. I don't want it to be in table instead to be the same as the description
tab. How should I edit it?

Thanks in advance


texts: Update 'additional_attributes' for a single product

texts:
I'm trying to update a single 'additional_attribute' for a product.  The documentation on this is sparse and I've tried to piece it together via info from the web and browsing the code in Magento, but I can't seem to get it right.  Here's the code I have right now:

$update_data = array (
    'additional_attributes' => array (
        'single_data' => array (
            'warehouse' => '6'
        )
    )
);
$update = $proxy->catalogProductUpdate($sessionId, 'MySKU', $update_data);

All the configurations of the $update_data array that I've tried throw an error:

Fatal error:  Uncaught SoapFault exception: [SOAP-ENV:Server] Cannot access empty property in /var/www/localhost/docs/magentoapi/update_test.php:38

Line 38 is:

$update = $proxy->catalogProductUpdate($sessionId, 'MySKU', $update_data);

Running Magento EE 1.14.0.1.  Any help would be greatly appreciated.


texts: How to change date format for Order Invoices In Magento 2

texts:
I want to change the date format for admin in Sales->Order(view order)->Invoices tab in 24H format

I tried to find how this grid is rendered and i found(with template path hinth) that this table is rendered in vendor\magento\module-ui\view\base\ui_component\templates\listing\default.xhtml.

And from here some KO js files are loaded.
I am not god at KO js and I don't know how can I do this?

Does anyone know how can I change this date format?


texts: Call Helper methods in phtml file Custom Module in Magento 2.x

texts:
In /var/www/html/magento2/app/code/Custommodule/ReviewRating/Block/HomehorizontalWidget.php

   <?php
namespace Custommodule\ReviewRating\Block;

class HomehorizontalWidget extends \Magento\Framework\View\Element\Template
{

protected $_helper;

public function __construct(
    \Magento\Framework\View\Element\Template\Context $context,
    array $data = [],
    \Custommodule\ReviewRating\Helper\Data $helper
) {
    parent::__construct($context, $data);

    $this->_helper = $helper;
}

    public function getEnable(){
        return $this->_helper->getEnable();
    }

}

In /var/www/html/magento2/app/code/Custommodule/ReviewRating/view/frontend/templates/homehorizontalwidget.phtml

<?php  echo $block->getEnable(); ?>

In /var/www/html/magento2/app/code/Custommodule/ReviewRating/Helper/Data.php

<?php
namespace Custommodule_ReviewRating\ReviewRating\Helper;

class Data extends \Magento\Framework\App\Helper\AbstractHelper {

    /** * @var \Magento\Framework\App\Config\ScopeConfigInterfac
        */
    protected $_scopeConfig;
    CONST ENABLE = 'reviewrating/general/enable_module';

    public function __construct( \Magento\Framework\App\Helper\Context $context,
            \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig ) {

             parent::__construct($context); $this->_scopeConfig = $scopeConfig;
    }

    public function getEnable(){
        return $this->_scopeConfig->getValue(self::ENABLE);
    }

}

In /var/www/html/magento2/app/code/Custommodule/ReviewRating/etc/adminhtml/system.xml

system configuration labels created.

  Error :
  3 exception(s):
  Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid block type: Custommodule\ReviewRating\Block\HomehorizontalWidget
  Exception #1 (ReflectionException): Class Custommodule\ReviewRating\Helper\Data does not exist
  Exception #2 (ReflectionException): Class Custommodule\ReviewRating\Helper\Data does not exist

  I followed this article how-to-create-a-magento-2-extension

UPDATE:: Issue resolved i have to change the namespace in In /var/www/html/magento2/app/code/Custommodule/ReviewRating/Helper/Data.php as suggested @Rakesh Jesadiya


texts: Is this the correct way to write a constructor that extends this other PHP file?

texts:
I am using Magento 2.2.6. The file I am extending is \Magento\UrlRewrite\Model\Storage\DbStorage. It has the following constructor:

/**
 * DB Storage table name
 */
const TABLE_NAME = 'url_rewrite';

/**
 * Code of "Integrity constraint violation: 1062 Duplicate entry" error
 */
const ERROR_CODE_DUPLICATE_ENTRY = 1062;

/**
 * @var \Magento\Framework\DB\Adapter\AdapterInterface
 */
protected $connection;

/**
 * @var Resource
 */
protected $resource;

/**
 * @var \Psr\Log\LoggerInterface
 */
private $logger;

/**
 * @param \Magento\UrlRewrite\Service\V1\Data\UrlRewriteFactory $urlRewriteFactory
 * @param DataObjectHelper $dataObjectHelper
 * @param \Magento\Framework\App\ResourceConnection $resource
 * @param \Psr\Log\LoggerInterface|null $logger
 */
public function __construct(
    UrlRewriteFactory $urlRewriteFactory,
    DataObjectHelper $dataObjectHelper,
    ResourceConnection $resource,
    LoggerInterface $logger = null
) {
    $this->connection = $resource->getConnection();
    $this->resource = $resource;
    $this->logger = $logger ?: \Magento\Framework\App\ObjectManager::getInstance()
        ->get(\Psr\Log\LoggerInterface::class);

    parent::__construct($urlRewriteFactory, $dataObjectHelper);
}

Here is what I have so far:

/**
 * @var \Psr\Log\LoggerInterface
 */
private $logger;

/**
 * @param \Magento\UrlRewrite\Service\V1\Data\UrlRewriteFactory $urlRewriteFactory
 * @param DataObjectHelper $dataObjectHelper
 * @param \Magento\Framework\App\ResourceConnection $resource
 * @param \Psr\Log\LoggerInterface|null $logger
 */
public function __construct(
    UrlRewriteFactory $urlRewriteFactory,
    DataObjectHelper $dataObjectHelper,
    ResourceConnection $resource,
    LoggerInterface $logger = null
) {
    $this->logger = $logger ?: \Magento\Framework\App\ObjectManager::getInstance()
        ->get(\Psr\Log\LoggerInterface::class);

    parent::__construct($urlRewriteFactory, $dataObjectHelper, $resource);
}

Do I want to change:

parent::__construct($urlRewriteFactory, $dataObjectHelper, $resource);

to

parent::__construct($urlRewriteFactory, $dataObjectHelper, $resource, $logger);

?


texts:
I wanna show the username who commented on order history

my question is like below question

https://stackoverflow.com/questions/6219620/add-username-to-order-comment-history

but it is for Magento 1.4 and it doesn't work for me. magento version 1.9.3.7


texts: Adding a quantity to Magento Custom Options

texts:
I've hit a bit of a brick wall. I'm wondering if there is a way to replicate what this website does in terms of entering text in a field and stating the quantity that you desire:

https://www.fastkeys.co.uk/keys/man/LOWE+AND+FLETCHER/201-400/592

Where it stats: 'Add more keys from this range.'

Is there any clear-cut way to do this in Magento?


texts: Magento 2.4.2: Is it required to keep the cronjob "magento_newrelicreporting_cron" running?

texts: Please let me know if it is required to keep the cronjob "magento_newrelicreporting_cron" running.


texts:
I currently have a running Magento 1.4.1 on Ubuntu 12.04 LTS, my client wants a server upgrade so I figured out I could put his server on a 14.04 LTS machine, has anyone done it ? and is there a howto ? I've been looking around on the internet, I did not found a clue...

Any help greatly appreciated,


texts: Magento 2 error : Registry key "current_creditmemo" already exists

texts:
I am getting this error by programmatically creating credit memo.
any thoughts why this error is appearing ?


texts: How to sort product by position, if every product has same position?

texts:
I read somewhere that if all product has same position it will sort by product id, but I don't think its sorting by Id.

Here are a few screenshots I am sharing which I am sorting by position problem is that every time I click on position it will show any new type of sorting.

also, I created a product carousel for the same category collection, with position sorting and showing the first product which I don't know why it's come first.

Here is my code for collection:

public function setSlider()
{
     $getCategory = $this->_scopeConfig->getValue('Carousel_Section/Carousel_'.$id.'/Carousel_Six_field', \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
     $category = $this->factory->create()->load($getCategory);
     $ProductFilterCollection = $category->getProductCollection()->addAttributeToSelect('price',true)->setFlag('has_stock_status_filter', true)->setPageSize($getLimit)->addAttributeToSelect('*')->setOrder('position', 'asc');
}

Everything is working fine, just curious about how position sorting works if every product has the same position?


texts: Order has shipped email template - Magento 2.3.4

texts: I have email template for the order has shipped. And I wan to show the "Invoice Number#" and "Tracking Number#" as dynamic. Can you please help me how to show that?


texts: How to create and use a product with multiple counts of the same option?

texts:
One of the stores under our website wants to introduce products that can have multiple counts of the same option. Our current product structure allows multiple different options but not the same option multiple times. I have attached a screenshot of what such a product looks like on SkipTheDishes. I am guessing the product option will need a 'qty' field but I am not sure how to implement this using the core code logic. Any help would be much appreciated!
We use a customized version of the Magento 1.9 EE platform.


texts: How to show Product Custom Attribute in edit page of Credit Memos, Invoice and Shipments below SKU in admin in Magento2.2.0?

texts:
I want to show Product Custom Attribute in edit page of Invoice, Shipments and  Credit Memos below SKU in admin in Magento2.2.0?
Refer my Screenshot.

Any help would be appreciated.


texts: Search block on secure pages renders action as http://

texts:
My search block:

<form id="search_mini_form" action="<?php echo $this->helper('catalogsearch')->getResultUrl() ?>" method="get">
    <div class="form-search">
...

is handled as an unsecure url on secure pages like checkout and is generating mixed content warnings.

The url that I get on checkout is 'http://example.com/catalogsearch/result/'

I have other sites which include the same block and the search url is served properly. Why would this happen? Can it be because cache? Is there any solution?

Thanks!


texts:
When updating a company in the Magento Admin, I am seeing this error:

No company admin website ID is specified in request.

When that error occurs, I am redirected to the New Company form. Has anyone ever experienced this issue?


texts: Magento Marketplace: After update the magento marketplace, extension stuck in "Awaiting Marketing Review"

texts:
After updated the magento marketplace on 01 Oct 2018, it changed the look and feel of marketplace and there functionality. It also give the option to set scheduled to launch date and changed the launch date.

Unfortunately I am not able to change the launch date.
Also extension stuck in "Awaiting Marketing Review" status for very long time.

Please suggest what action should I take in this situation.


texts: Unable to save shipping information. Please check input data error in Magento 2.2.3

texts:
When i select shipping options and click on next button.
It gives me error as Unable to save shipping information. Please check input data.
The error is coming at this url /checkout/#shipping
I have updated the magento version from 2.3.2 to 2.3.3. This issue is coming in 2.3.3
What is the solution for this?
Error in network tab

Fatal error:  Uncaught TypeError: Argument 1 passed to Magento\Framework\Exception\InputException::__construct() must be an instance of Magento\Framework\Phrase or null, string given, called in /var/www/vhosts/mobilemarkantennas.com/dev.mobilemarkantennas.com/vendor/magento/module-quote/Model/ShippingAddressManagement.php on line 121 and defined in /var/www/vhosts/mobilemarkantennas.com/dev.mobilemarkantennas.com/vendor/magento/framework/Exception/InputException.php:56
Stack trace:
0 /var/www/vhosts/mobilemarkantennas.com/dev.mobilemarkantennas.com/vendor/magento/module-quote/Model/ShippingAddressManagement.php(121): Magento\Framework\Exception\InputException->__construct('Validate class ...')
1 /var/www/vhosts/mobilemarkantennas.com/dev.mobilemarkantennas.com/vendor/magento/module-quote/Model/Quote/ShippingAssignment/ShippingProcessor.php(66): Magento\Quote\Model\ShippingAddressManagement->assign('3302', Object(Magento\Quote\Model\Quote\Address))
2 /var/www/vhosts/mobilemarkantennas.com/dev.mobilemarkantennas.com/vendo in /var/www/vhosts/mobilemarkantennas.com/dev.mobilemarkantennas.com/vendor/magento/framework/Exception/InputException.php on line 56
{"messages":{"error":[{"code":500,"message":"Fatal Error: 'Uncaught TypeError: Argument 1 passed to Magento\Framework\Exception\InputException::__construct() must be an instance of Magento\Framework\Phrase or null, string given, called in /var/www/vhosts/mobilemarkantennas.com/dev.mobilemarkantennas.com/vendor/magento/module-quote/Model/ShippingAddressManagement.php on line 121 and defined in /var/www/vhosts/mobilemarkantennas.com/dev.mobilemarkantennas.com/vendor/magento/framework/Exception/InputException.php:56\nStack trace:\n#0 /var/www/vhosts/mobilemarkantennas.com/dev.mobilemarkantennas.com/vendor/magento/module-quote/Model/ShippingAddressManagement.php(121): Magento\Framework\Exception\InputException->__construct('Validate class ...')\n#1 /var/www/vhosts/mobilemarkantennas.com/dev.mobilemarkantennas.com/vendor/magento/module-quote/Model/Quote/ShippingAssignment/ShippingProcessor.php(66): Magento\Quote\Model\ShippingAddressManagement->assign('3302', Object(Magento\Quote\Model\Quote\Address))\n#2 /var/www/vhosts/mobilemarkantennas.com/dev.mobilemarkantennas.com/vendo' in '/var/www/vhosts/mobilemarkantennas.com/dev.mobilemarkantennas.com/vendor/magento/framework/Exception/InputException.php' on line 56","trace":"Trace is not available."}]}}


texts:
I have created two themes one is for mobile and other for desktop and tablet.
I have added user agent rule for only mobile but reflected on iPad and Tablet in Magento 2 latest version.
can anyone know this issue..


texts:
I need to get a link of this kindhttp://localhost/Magento2/rest
I have a code by which I get base_url:

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$storeManager = $objectManager->get('\Magento\Store\Model\StoreManagerInterface');
$baseUrl = $storeManager->getStore()->getBaseUrl

So i get http://localhost/Magento2/,but i need http://localhost/Magento2/rest.Help find a solution, please


texts: what are the correct setting for the .htaccess file?

texts:
My hosting company deleted my .htaccess file (they thought they were helping me resolve a different problem). Now - my .htaccess has the following info only:

Order deny,allow
Deny from all

I found the ORIGINAL .htaccess file in my old backups but it has the following info:

  adjust memory limit

php_value memory_limit 64M
php_value memory_limit 256M
php_value max_execution_time 18000

I changed hosting since then I have the following for hosting now:

VPS, CPU 8 Cores, RAM 6144 MB

What do you think the php_value memory_limits should be and the php_value max_execution_time?


texts: Different price templates for product listing and product view page

texts: In our theme design the price output is different on product listing and product view page. I found some solutions for magento 1, but can't find any for magento 2. Can anybody please tell how can I make different price templates for listing and product?


texts:
How should I deploy child theme?

Shell, I deploy only child theme or should I do both child and parent, if so what's the correct order?


texts: Recalculate total after change shipping methods in magento 2 ajax

texts:
I need to recalculate total of quote, after change shipping method via Ajax
Shipping Method Change:
i try to change shipping method based on customer selection, find the Ajax code.
var customurl = url.build('route/controller/action');
        $.ajax({
            url: customurl,
            type: 'POST',
            dataType: 'json',
            data: {
               method:method,
            },
            complete: function (response) {
                fullScreenLoader.stopLoader();
                var status = response.responseJSON.status;
                var message = response.responseJSON.message;
                if (status == 200 && message != '') {

                    cartCache.set('totals', null);
                    defaultTotal.estimateTotals();

                    var sub_total = totals.totals().base_subtotal
                    var grand_total = totals.totals().base_grand_total;

                    $('.mycart_subtotal').text(getFormatedPrice(sub_total));
                    $('.mycart_total').text(getFormatedPrice(grand_total));

                } else {

                    $('#id').text(message);
                }
            },
            error: function (xhr, status, errorThrown) {
                $('#id').text('Something went wrong, Please try again!');
            }
        });

Backend code:
$totals = 0;
                $quoteItems = $quote->getItemsCollection();
                foreach ($quoteItems as $_quoteItem) {
                    $totals += $_quoteItem->getRowTotal();
                }

                foreach ($quote->getAllAddresses() as $address) {
                    if ($address->getAddressType() == "shipping") {
                        $address->setShippingMethod('flatrate_flatrate');
                        $address->setCollectShippingRates(true);
                        $address->setSubtotal($totals);
                        $address->setBaseSubtotal($totals);
                        $address->setSubtotalInclTax($totals);
                        $address->setGrandTotal($totals);
                        $address->setShippingAmount(29);
                        $address->setBaseShippingAmount(29);
                        $address->setShippingInclTax(29);
                        $address->setBaseShippingInclTax(29);
                        $address->setBaseGrandTotal($totals);
                        $address->setDiscountAmount(0);
                        $address->setBaseDiscountAmount(0);
                        $address->save();
                    }
                }

Its updated in backend, But i want to refresh the total and show total in frontend., suggest me what did wrong.


texts: How to speed up Magento 2 Store on Mobile

texts: How to increase the Speed of store on Phone on PageSpeed Insights its only shows 15% of performance on Phone but on PC it shows 64% I also changed Marge JS Files and Marge Css files but the when I check it as Yes then it became more slower n the mobile Performance became 0% how to speed up M2 store on Mobile?


texts: How can I get the attributeSet of product with his id with GraphQL?

texts:
I was using GraphQL to get the products of my shop and I can´t get his attributes. In my shop, there is several products with is unique attributeSet. I use the next query to get the attribute_set_id of the product:

query{
  products(filter: {category_id: {eq: "1"}}){
    items{
      attribute_set_id
    }
  }
}

Is there a way to get the attributeSet of this product with the id?


texts: magento new order template call from observer

texts:
I need to call Magento new order template from one of my observers. Is there any way of doing that. i already defined the variables.

this is something that i tried. but didint work

$template = Mage::getModel('core/email_template')->loadDefault('custom_email_template1');

       $template->send($emailaddress, null, array(
          'orderid' => $order->getIncrementId(),
          'items' => $items_string
       ));


texts: Magento2 - Customer not Able to upload file

texts:
I have multi-websites in Magento 2:
Url : https://www.lilysprints.co.uk/upload-an-image.html
https://nepbhprint.com/upload-an-image.html
When I try to upload an image I get this error
Path /var/www/vhosts/nepbhprint.com/httpdocs/var/upload/phpzIimp1 cannot be used with directory /tmp/
Any solution.


texts: How to send e-mail to customer after order payment was successful?

texts:
I need to send the confirmation e-mail to customer only on successful payment. How can I do it?

I need to place that code in the controller that inserts the payment information in database and before redirecting to the success page.


texts:
I had my site configured to accept payments from PayPal, Amazon, and Authorized net.  Everything was working great.  Last week, I upgraded to Magento 2.3.1 and installed Affirm as a payment method.  I tried switching to a basic Magento theme to see if it was a bug in the theme, but it has the same issue.

After that, Affirm is the only payment option.

As far as I can tell, these other payment options are still enabled.

Eg. Here is the amazon setting.  The creds were still there.  Login with amazon is working.

I tried flushing the caches, I've tried recompiling the site.  Still no dice.

Any suggestions?


texts: Magento 2 - REST API - How to create order for customer with admin token

texts:
I'm working on an app for Magento store. and I want to create an order for customers with my admin token.
I found 2 ways:

To get the customer credentials (user name and password) and create a queue - But I can't get all the users credentials.

create a guest order but I didn't find a way to add the customer’s id only email.

so the order is not linked to the customer's orders history.
is there a way to create an order for customer with admin token? and link to order to the customer profile?
Thanks!


texts:
Hey,

i just had small doubts regarding Magmi...

A) In my feed file, I newly added 1 column 'small_image', may I know how can i get it values automatically from 'thumbnail' column? Any plugin?

B) Why Magmi would be slow sometimes.? I sometimes feel it would be damn fast, sometimes, it adds 2 products in each second.. Any idea on this?  I have 1000's of products, i thought magmi works very fast but unfortunately magmi goes slow sometimes.. Any solution on this would be appreciated

Please kindly clear above

EDITED:

when I unchecked "Image Attributes Processor" and clicked 'import' button, products added instantly but without images..

when I check 'image atributes processor', magmi taking lot time.. its ading like 2 products per second.. so, how can i make 'image attributes processor' work fast?

BTW, I use remote images..


texts: How to import category url key in different store views?

texts:
i have a website with more than 30 store views of different languages. My task is to translate the URL keys of categories for different store views. I can translate URL keys manually but as i just said i have more than 30 store views so it will be more feasible for me to import categories URL keys through csv file.
How can i achieve my task? Thank You


texts: what is the need of extra layer(service contracts) in magento2?

texts:
With out service contracts:

For example I can extend directly class AccountManagement model.
I can override any function.At the same time if core developers  add anything in class AccountManagement model in next versions  it will reflect my class too.So  I dont loss any functionality added by Magento.

With service contracts:

In this scenario also I can extend AccountManagement.
I can override any function.At the same time if core developers  add anything in class AccountManagement model in next versions  it will reflect my class too.So  I dont loss any functionality added by Magento.

So what is the difference?

and they are saying we are hiding business logic with service interfaces.

how it possible ?
now any one can access AccountManagement class and functions.how they are hiding with interfaces?

and also there is no clarity on preserve data integrity.

I hope i will get better picture on at least some of the points.


texts: It is a Magento store and I see the following in Webmaster tools. How Can I fix missing title tags and duplicate URLs?


texts:
Cron job failed to
reindex
we have to index the data manually.
job_code : indexer_reindex_all_invalid
status : error
messages : Error when running a cron job


texts: Update Custom Attribute Value Programatically

texts:
I have created a script that tests importing products programmatically into Magento. Unfortunately, I'm having trouble updating a product's custom attribute value - in this case "manufacturer." When I run the below code, I receive a fatal error with method "Invalid method." Does anyone know what I'm doing wrong?

<?php
require_once('app/Mage.php');
ini_set('display_errors', 1);

Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
    $product = Mage::getModel('catalog/product');
    $rand = rand(1, 9999);
    $product
    ->setTypeId('simple')
    ->setAttributeSetId(4) // default attribute set
    ->setSku('example_sku' . $rand) // generate a random SKU
    ->setWebsiteIDs(array(1))
    ->setUrlKey('test-product-123') // set url key
    ;

$product
    ->setCategoryIds(array(3,4))
    ->setStatus(Mage_Catalog_Model_Product_Status::STATUS_ENABLED)
    ->setVisibility(Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH) // visible in catalog and search
    ;

$product->setStockData(array(
        'use_config_manage_stock' => 0, // use global config?
        'manage_stock'            => 1, // should we manage stock or not?
        'is_in_stock'             => 1,
        'qty'                     => 5,
    ));

$product
    ->setName('Test Product #' . $rand) // add string attribute
    ->setShortDescription('Description') // add text attribute

    // set up prices
    ->setPrice(24.50)
    ->setSpecialPrice(19.99)
    ->setTaxClassId(2)    // Taxable Goods by default
    ->setWeight(87)
    ;

$optionId = Mage::getModel('eav/entity_attribute')->_getAttributeCode('manufacturer', 'PATAGONIA');
$product->setManufactuer($optionId);

$product->save();


texts: magento 2 third party module installation through composer

texts:
I'm developing and trying to install a module through composer in Magento. My module's composer.json looks like this

{
  "name": "amit/test",
  "description": "N/A",
  "require": {
    "php": "~5.6.0|7.0.2|~7.0.6",
    "magento/module-store": "100.1.*",
    "magento/module-backend": "100.1.*",
    "magento/module-cron": "100.1.*",
    "magento/framework": "100.1.*"
  },
  "type": "magento2-module",
  "version": "100.1.0",
  "license": [
    "OSL-3.0",
    "AFL-3.0"
  ],
  "autoload": {
    "files": [
      "registration.php"
    ],
    "psr-4": {
      "Amit\\Test\\": ""
    }
  }
}

When I'm running command composer require amit/test from root of my project it gives error

  [InvalidArgumentException]
  Could not find package amit/test at any version for your minim
  um-stability (alpha). Check the package spelling or your
  minimum-stability

Question: As my module is still not in a packages repository such as packagist.org, or packages.magento.com, is it compulsory to upload it to a VCS like github in order to install it through composer?


texts:
I put my Magento website in a not dedicated server.
So, everytime I want to run some php shell commands I have to write an email to my WebHosting tutor and tell him wich commands he has to execute.
Wait for the answer and lost a lot of time..
Is there any way to this alone?

Thanks


texts: Magento 2.3.3 Class argument is invalid issue

texts:
I have "mass change attribute set" extension with Magento 2.3.3. All works with Magento 2.3.2 but now is issue with magento 2.3.3. How i can fix this error?

  Class argument is invalid:
  developer_name\ChangeAttributeSet\Ui\Component\MassAction\Group\Options

<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Ui/etc/ui_configuration.xsd">
<listingToolbar name="listing_top">
    <massaction name="listing_massaction">
        <action name="changeattributeset">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="type" xsi:type="string">changeattributeset</item>
                    <item name="label" xsi:type="string" translate="true">Change attribute set</item>
                </item>
            </argument>
            <argument name="actions" xsi:type="configurableObject">
                <argument name="class" xsi:type="string">developer_name\ChangeAttributeSet\Ui\Component\MassAction\Group\Options</argument>
                <argument name="data" xsi:type="array">
                    <item name="urlPath" xsi:type="string">changeattributeset/product/massChangeattributeset</item>
                    <item name="paramName" xsi:type="string">changeattributeset</item>
                    <item name="confirm" xsi:type="array">
                        <item name="title" xsi:type="string" translate="true">Change attribute set</item>
                        <item name="message" xsi:type="string" translate="true">Are you sure to assign selected products to new attribute set?</item>
                    </item>
                </argument>
            </argument>
        </action>
    </massaction>
</listingToolbar>


texts:
We are using Magento CE 1.9 and the website is performing fine remotely and there were no performance complaints from external visitors or when we access it from our home network or wireless providers, but both storefront and admin site page load times are terribly slow when we access it behind our office network (wired internet connection, single public IP).

Is there any magento config setting or restriction that limits multiple user connections to the store front? Will whitelisting the IP makes any difference?


texts:
I want to know how to create orders programmatically without passing through the payment step.

I know it's possible, using helper (or model, but I can't find the link):

https://webkul.com/blog/create-quote-and-order-programmatically-in-magento2/

But I don't know how to use it. And some methods are deprecated, can anyone help me?

To sum up: I want to create and order and in the same time, add card product  when I click on by "confirm my order".

If possible without overriding Magento_Checkout

EDIT : to sum up 2 : I want my customer to add product to his cart. Then, when he goes on "checkout", my custom page is displaying with some info (such as addresses...). Then when he clicks on "validate", his commande is created in magento but he doesn't had to go to the payment step. The order is created only for information (in magento), because the "real" order will be manage by an API.


texts:
I'm looking for a way to get the name of a salesrule that is applied to a product, go show in the frontend.

I've been looking in the SalesRule, Rule.php but with no real luck.

Mage::getModel('salesrule/rule')->getName()

This is what I've come to, but I'm not sure if it's correct. Can it even be done?


texts: Does magento store price before special price in database?

texts:
I am working on magento store. I need to extract the price for the specific product for every transaction included the price before special price being applied.

Would like to know if magento store the data or no.


texts:
I've installed Magento 2.3.1 and trying to use PWA but it's not working, I have followed the below link
https://hackernoon.com/getting-started-with-magento-pwa-studio-with-poc-c54c33f8d038

but when i was trying to create symlink by using the following commands

ln -s /var/www/html/magento/pwa-studio/packages/pwa-module app/code/Magento/

ln -s /var/www/html/magento/pwa-studio/packages/venia-concept app/design/frontend/Magento/venia

Does anybody know how to create a PWA project? I'm Working in Windows Machine


texts: How to change Magento 2 Admin URL from admin dashboard

texts: I want to change the admin URL by using custom admin URL and path


texts: How to add conditional statement related to configurable product and the quantity of options

texts:
I am trying to add a condition statement to add certain text in front of price. I've got the code to check whether it's configurable product or not:

if ($_product->getData('type_id') == 'configurable') {
    // ...
}

How can I add another code to check if the attribute options are more than one?

For example,

attribute name: color,
dropdown options: green, yellow, blue...


texts:
I am building a new Magento store. 80% of the products are affiliate products, where the price needs to be displayed in it's original currency. 20% of the products are regular products in the store's base currency (e.g. €), which can be added to the shopping cart.

Example:

Product C   19€ ==> Add to cart / buy now.
Product A   10& ==> Affiliate link
Product B   15$ ==> Affiliate link

The 'Buy Now' button for each affiliate product will simply be an affiliate link (no need to add these products to the shopping cart).

I want different products to display their prices in different currencies (one price per product).

Questions:

With vanilla megento, is it possible to have different currency symbol displayed for each product?
I plan to implement affiliate products by creating a custom product type using this code. Will it help?
Any other option?

Please advise

Also, is there a calculator which allows the user to convert the price to their local currency? (to get an estimation).


texts: How to hide out of stock product and set product limit per page for custom product collection in Magento?

texts:
I am using Magento 1.9

I have created one custom listing page and in this page I have displayed all products. I have added below code for collection.

  app/design/frontend/my_vendor/default/template/catalog/product/view/products.phtml

$_productCollection = Mage::getModel('catalog/product')->getCollection()
                            ->addAttributeToSelect('*')
                            ->addAttributeToFilter('status', Mage_Catalog_Model_Product_Status::STATUS_ENABLED)
                            ->addFieldToFilter('visibility', Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH)
                            ->setPageSize(30);

Now I want to hide out of stock products as well
So how can I achieve this using above code?

I also want to show only limited no. of products selected in limiter.

Right now I have set 30 products per page(look above code) so whenever I click on "60" from limiter it only shows 30 products per page instead of 60 product per page.

So how can I fix this?


texts: Include the cc payment template in other template

texts:
I'm working on a credit card (CC) payment module.
I see that Magento 2 already offers a template for CC payments but it contains only the form needed for the payment.
It does not have the radio button that I can check during checkout.
So if I create my payment method renderer like this.

define(
    [
        'Magento_Payment/js/view/payment/cc-form'
    ],
    function (Component) {
        'use strict';

        return Component.extend({
            defaults: {
               template: 'Magento_Payment/payment/cc-form'
            },
            isActive: function() {
                return true;
            },
            getCode: function() {
                return 'payment_code_here';
            }
        });
    }
);

my payment section in the checkout would look like this (Check/money order is an other payment method):

And I want it to look like this:

I know that I can create my own template and define the method renderer like this:

define(
    [
        'Magento_Payment/js/view/payment/cc-form'
    ],
    function (Component) {
        'use strict';

        return Component.extend({
            defaults: {
                template: '<Vendor>_<Module>/payment/form'
            },
            isActive: function() {
                return true;
            },
            getCode: function() {
                return 'payment_code_here';
            }
        });
    }
);

And in that template add the markup for the radio button and just copy/paste the default cc-form template where I need it, but I'm trying to avoid that.
Is there a way to include an other template inside my template?
This may be more of a KO question than Magento.

To explain it better...

My custom template looks like this:

<my custom code here />
<code copied from cc-form />
<some other custom code here />

I want to replace <code copied from cc-form /> with an include of some kind that will fetch the content from cc-form.


texts: How to show custom action in Newsletter Subscribers

texts:
I am trying to create custom action for newsletter subscribers, however I am unable to see the action as you can see in the image below:

I have created a file named newsletter_subscriber_block.xml, as I suppose this is the file which is going to show the custom action, I found it here. However, I also then created a file newsletter_subscriber_grid.xml, still I don't see the action in the dropdown menu.
I didn't get any error though, during the module installation.
UPDATEL: My code in XML file is below.
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <listingToolbar name="listing_top">
        <alertaction name="listing_action">
            <action name="email_to_customer">
                <settings>
                    <url path="alert/email/Send"/>
                    <type>email_to_customer</type>
                    <label translate="true">Email</label>
                </settings>
            </action>
        </alertaction>
    </listingToolbar>
</listing>


texts: Magento multistore, __store and ___from_store in URL

texts:
we are setting up a multistore. Now we see "__store and ___from_store" in the UR. Is there an easy (and accepted method) of utilizing the functionality, but hiding the url string "__store and ___from_store"

So moving from domain1.com => domain2.com does not result in

  http://domain2.com/?___store=domain1&___from_store=domain1

but rather

  http://domain2.com/

thanks!


texts:
I run a silent disco company.

I want people to hire headphones from my website in any quantity.

I want people to select between a 2 channel and 3 channel option.
I want the 3 channel option to add £39.99 to the total price.

E.g. - somebody books 100 headphones at £1 per headphone = £100.
Somebody books 100 headphones with 3 channels at £1 per headphone = £139.99.

Suggestions?


texts: importing bulk images in Magento 1.9.3.1

texts:
I am trying to import images against my previously uploaded products but it is not going through. I read many articles and blogs on this topic but every one is suggesting to keep images in media/import/ folder but there is no import folder in /media/ in Magento 1.9.3.1 version. No body talks about this if import folder is not there then do we need to create /import folder or not. I even tried all steps after creating import folder but it is not processing images.
Now my images are kept like this:
/media/import/abcd.jpg
I have even given 777 permission to media folder and same to import folder but every time it comes with an error saying that images could not be found. My csv sheet is having following column ::

sku | image | small_image | Theumbnail

I tried almost all folders but I could not import my images. Now I am stuck and have no idea how to handle this situation.

I am sure you guys have also faced this issue in past and might have solution to it.


texts:
Does anyone know how to set purchase order invoices automatically to "Unpaid" in Magento 2?
Right now they are automatically marked as paid, but they should really be marked to Unpaid, and then set to Paid by the the administrator when the money is received.


texts: Shopatron - Immediate Order Processing - Do I need to sync up my products and customer data with Shopatron?

texts:
A client wants to use Shopatron for processing orders and transmitting these to several retailers etc. and Magento for controlling inventory, customer data and the general front-end. The complete checkout would also be in Magento.

So we would be using the Immediate Order Processing API to send order data to Shopatron (http://developer.shopatron.com/ImmediateOrderProcessing). Our question here is quite simple, but somehow not answered by the developer documentation.

Do we need to sync the catalog data/product data and customer accounts from Magento to Shopatron or is Shopatron able to handle new products and customers and create these on-the-fly during the order processing?


texts: Magento 1.9 after setup website in localhost error message Controller file was loaded but class does not exist

texts:
My website is working fine but i have facing one error message during checkout process

In Var/report "Controller file was loaded but class does not exist" this type error message i have face so any one please provide appropriate guide

I have try to disable compilation and check but it's not working for me

So please tell me what is wrong

Thanks


texts: how to do Unicenta Magento 2 integration

texts: Can anyone help me to integrate unicenta pos application with Magento 2 ? I have installed Magento 2 , where should I get unicenta Magento 2 plugin to start integration?


texts: Enabling Rewrites with XAMPP + BitNami installation of Magento 1.8.0.0

texts:
I am running XAMPP 1.8.3 + bitnami installation of Magento 1.8.0.0 on Windows 7.
I would like to get rid of index.php in the URLs I see. Here is the rest of my setup:

1) I have entered a dummy host name for my local testing environment in
   C:\Windows\System32\drivers\etc\hosts
   so that it contains the following line and restarted Apache:

127.0.0.1   localhost   myhost.com

2) I have secured my XAMPP installation by following the setup found at
   http://myhost.com/security/index.php

3) I have had a look at C:\xampp\apache\conf\httpd.conf
   and the line that loads the Apache Rewrite module is already uncommented
   and the htdocs directory under C:\xampp already has .htaccess files
   enabled as follows (comments deleted):

LoadModule rewrite_module modules/mod_rewrite.so

<Directory "C:/xampp/htdocs">
  Options Indexes FollowSymLinks Includes ExecCGI
  AllowOverride All
  Require all granted </Directory>
</Directory>

I have enabled Rewrites in the Admin panel

  Magento Admin Panel -> System -> Configuration -> Default Config
  -> GENERAL -> Web -> Search Engine Optimization -> Use Web Server Rewrites -> Yes

The various XAMPP .htaccess files for my Magento installation using bitnami now point to the following file:

  C:\xampp\apps\magento\conf\htaccess.conf

which contains the following Apache directives:

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule .* index.php [L]
</IfModule>

which are the ones advertised on other posts on Stack Overflow.

However when from my main page I click  on a category I get a 404

because for instance the page http://myhost.com/magento/mycategory.html

is not found (although http://myhost.com/magento/index.php/mycategory.html is found).

What am I missing from my configuration to get mod_rewrite to work as wanted?

Thanks.


texts: Magento Widget doesn't appear on frontend

texts:
I have created a simple widget which displays dummy data. The problem is my front end code doesn't show up in my page ? I 'm working on Magento 2.2.0.

Here is my widget code what i want to display :

{{widget type="Widget\CustomWidget\Block\Widget\ContactInformations" fullname="Adrien" gender="mal" age="24"}}

widget/contact_informations code :

<?php
$fullname = $this->getData('fullname');
$age = $this->getData('age');
$gender = $this->getData('gender');
?>

    <?php if($fullname !=''){?>

<?php echo $fullname; ?>

    <?php } ?>
    <?php if($age !=''){?>

<?php echo $age; ?>

    <?php } ?>
    <?php if($gender!=''){?>

    <?php } ?>

etc/module.xml code :

<?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="Widget_CustomWidget" setup_version="1.0.0">
    </module>
</config>

etc/widget.xml code :

<?xml version="1.0" encoding="UTF-8"?>
<widgets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Widget:etc/widget.xsd">
    <widget id="widget_customwidget" class="Widget\CustomWidget\Block\Widget\ContactInformations">
        Contact Informations Widget
        <description>Widget in Magento2</description>
        <parameters>
            <parameter name="fullname" xsi:type="text"  visible="true" sort_order="0" >
                Full Name
            </parameter>
            <parameter name="age" xsi:type="text"  visible="true" sort_order="10" >
                Age
            </parameter>
            <parameter name="gender" xsi:type="select" source_model="Widget\CustomWidget\Model\Config\Source\Gender" visible="true" sort_order="10" >
                Gender
            </parameter>
        </parameters>
    </widget>
</widgets>

Widget/CustomWidget/Block/Widget/ContactInformations code :

<?php
namespace Widget\CustomWidget\Block\Widget;
class ContactInformations extends \Magento\Framework\View\Element\Template implements \Magento\Widget\Block\BlockInterface
{
    public function _toHtml()
    {
        parent::_construct();
        $this->setTemplate('widget/contact_informations.phtml');
    }
}

Any idea ?


texts: Reindex stuck at processing even after resetting in Magento 2

texts:
My indexer:reindex process for Design config grid, Customer Grid, and Catalog Search always stuck at processing:

i already reset the indexer, but when i run indexer:reindex again, it stucks at processing

php bin/magento indexer:reset

and the same goes when i try to invalid the indexer from db

update indexer_state set status = 'invalid'


texts:
I'm using magento 1.9.3.6 and I've read that from magento 1.9.1 supposedly all emails were going to be queued, however only the order/invoice/order-update emails appear affected. I can't find an exact reason but I assume it was reversed or stated in error. Please see here if curious:
http://www.aschroder.com/2015/01/sending-emails-by-queue-in-magento-1-9-1/
Magento 1.9.1 - Emails being sent by the new email queue?

I'd like to send all emails with the queue so they go through the Mailchimp/Mandrill extension I'm using.

Is there an elegent way to handle this that doesn't include overwriting every send/sendMail method that the contact form and other extensions use?


texts: How to Override xml file into Parent Theme

texts:
I have installed one plugins 'cedcommerce' and enabled theme (ced_2k18) for it.

My default theme is Porto.

I want to override ced commerce plugin layout xml file into my parent theme.

Basically i want to change /app/design/frontend/Ced/ced_2k18/Ced_CsMarketplace/layout/csmarketplace_account_login.xml

How can i override this file into /app/design/frontend/Smartwave/

I want to add footer of my default theme into the installed extensions.

I am using magento 2.3

This is my xml file

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   layout="vendor-empty" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

<head>
    <meta name="x_ua_compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1,      maximum-scale=1.0, user-scalable=no"/>
    <css src="mage/calendar.css"/>

    <css src="Ced_CsMarketplace::bower_components/bootstrap/dist/css/bootstrap.min.css" />
    <css src="Ced_CsMarketplace::bower_components/metisMenu/dist/metisMenu.min.css"/>
    <css src="Ced_CsMarketplace::dist/css/timeline.css"/>
    <css src="Ced_CsMarketplace::dist/css/sb-admin-2.css"/>
    <css src="Ced_CsMarketplace::bower_components/morrisjs/morris.css"/>
    <css src="Ced_CsMarketplace::bower_components/font-awesome/css/font-awesome.min.css"/>
    <css src="Ced_CsMarketplace::css/ced/csmarketplace/vpanel.css"/>
</head>
<body>
<referenceContainer name="content">

        <block class="Magento\Framework\View\Element\Template" name="vendor_page_header" template="Ced_CsMarketplace::customer/form/header.phtml"/>
        <container name="vendor.login.container" label="vendor Login Container" htmlTag="div" htmlClass="login-container">
            <block class="Ced\CsMarketplace\Block\Vendor\Form\Login" name="vendor_form_login" template="Ced_CsMarketplace::customer/form/login.phtml" cacheable="false">
                <block class="Ced\CsMarketplace\Block\Vendor\Form\Register" name="customer_form_register" template="Ced_CsMarketplace::customer/form/register.phtml" >
                    <block class="Ced\CsMarketplace\Block\Vendor\Registration\Becomevendor\Form" name="vendor_reg_form" template="Ced_CsMarketplace::vendor/registration/becomevendor/form.phtml" />
                </block>
            </block>
        </container>
    </referenceContainer>
<referenceContainer name="footer-container">
        <block class="Smartwave\Porto\Block\Template" name="footer_block" template="html/footer.phtml">
            <block class="Magento\Store\Block\Switcher" name="footer.store_switcher" template="switch/stores.phtml"/>
            <block class="Magento\Newsletter\Block\Subscribe" name="footer.newsletter" template="subscribe_footer.phtml"/>
        </block>
    </referenceContainer>

</body>


texts: Detecting possible issues with serialized data after Magento 2.2 upgrade

texts:
While upgrading Magento from 2.1.x to 2.2.x version. We have found an error like "Unable to unserialized value" in few tables.

For Example: -

"info" column of a magento_logging_event table,
"product_options" column of a sales_order_item table,
"additional_information" column of a sales_order_payment table

etc ...


texts:
I download invoice slip it's not working

<?php $orderIdForm = $order->getId(); ?>
        <form action="<?php echo $this->getUrl('mpshippingmanager/shipping/savetrackingnumber/',array('id' =>$orderIdForm))?>" id="shipping-form" method="post">

    <?php if ($status == 'Invoice'){?>
    <a href="<?php echo $this->getUrl('mpshippingmanager/shipping/shipmentorder',array('id'=>$orderIdForm))?>"> <button class="button" style="flaot:none" title="<?php echo $helper->__('Shipment') ?>" type="button"> <?php echo $helper->__('Shipment') ?> </button>

         <?php }?>
    <?php if($invoiceId): ?>
    <a href="<?php echo $this->getUrl('mpshippingmanager/shipping/printinvoice',array('invoice_id'=>$invoiceId));?>"><button class="button wk_mp_btn wk_invoiceslip" title="<?php echo $helper->__('Invoice Slip') ?>" id="<?php echo $mageorderid?>" style="float:right;">
    <?php echo $helper->__('Invoice Slip') ?>
    </button>
    <?php endif; ?>

        </form>

controller

public function printinvoiceAction()
    {
        if ($invoice_id = $this->getRequest()->getParam('invoice_id')) {
            if ($invoice = Mage::getModel('sales/order_invoice')->load($invoice_id)) {
                $pdf = Mage::getModel('mpshippingmanager/order_pdf_invoice')->getPdf(array($invoice));
                $this->_prepareDownloadResponse('invoice'.Mage::getSingleton('core/date')->date('Y-m-d_H-i-s').
                    '.pdf', $pdf->render(), 'application/pdf');

                $this->_redirectReferer();
            }
        }
        else {
            $this->_forward('noRoute');
        }
    }

it redirect to blank page But invoice page is not working this page only problem


texts: Configurable swatches on category page showing Out Of Stock Products

texts:
I am working with a site and currently the configurable color swatches show every single out of stock associated products' swatch color on the category page, but not on the product info page.

Is this default behaviour for Enterprise? Is there a way to fix this? I can't imagine it being default behaviour since the product info page displays only the in-stock options.


texts: How do I remove the .html suffix from the product pages?


texts: Magento 1.9 Account Confirmation Email Key Not Activating Account

texts:
Hello this question is specifically for Magento 1.9.
My Account Activation Key seems to not be working.
It sends the email to the new registered user, and when you click on it, it just brings you to the homepage and doesn't actually do anything else.  When I try to log in after I click the link, it says that my account needs to be activated and gives the option to resend activation.
It is activated in the back-end admin section.
In testing, I tried disabling the account activation feature, and when i do that, it does not allow registrants to log in at all.
Can anyone help me troubleshoot this?
Thanks!


texts: Magento 2: Show Out of Stock items after in stock items

texts: I want to show Out of Stock items after in stock items. I found solution here, but its for Magento 1.8. I need same for Magento 2.


texts: How to fix wishlist product deletion issue in magento2?

texts: I am using magento2.3.5 in that when i am go to the Wishlist section in customer dashboard and try to delete the product but it is not deleted please help me to fix this , i am using magento2.3.5 default theme.