texts: M2.3.5-p2: Configurable product options disappear

texts:
When I pull any master branch updates from my dev website into my production website I lose my configurable product options on the frontend. I have only seen this happen once before and the only thing I knew to do to resolve it quickly was to restore the website. What could possibly cause these product options to disappear?
I checked the source code to see if it was CSS related and the block of code that displays the configurable options doesn't even load. I am thinking that the issue could possibly related to bungled XML. There are no system.xml or exception.xml errors. Also no javascript console errors. I also do not have any modules disabled that could cause this. I've cleared caches and recompiled to no avail. Stuck!


texts:
I have added custom table in my application to add order and customer details after place an order.

Code is working fine, In my custom DB table I observe that customer_id is stored as 0[zero].

I am not getting any error regarding this, But I am bit confused that one customer having 0 as id.

Is it Correct? Or Am I getting any wrong value?


texts: Magento 2.1 set default filter in layered navigation

texts: I need to apply the default filter in all category pages. could you please help me out. Thanks in advance.


texts:
I am getting below error while I am Migrating from Magento 1 to Magento 2.
[2020-06-29 09:56:39][WARNING]: Source fields are not mapped. Document: sales_flat_order. Fields: dailydeals,rpdiscount_amount,base_rpdiscount_amount,tax_rpdiscount_amount,base_tax_rpdiscount_amount
[2020-06-29 09:56:39][WARNING]: Source fields are not mapped. Document: sales_flat_quote. Fields: customer_tipopessoa,customer_ie
[2020-06-29 09:56:39][WARNING]: Source fields are not mapped. Document: sales_flat_quote_address. Fields: rpdiscount_amount,base_rpdiscount_amount,tax_rpdiscount_amount,base_tax_rpdiscount_amount
[2020-06-29 09:56:39][INFO][mode: data][stage: integrity check][step: Url Rewrite Step]: started
100% [============================] Remaining Time: < 1 sec
[2020-06-29 09:56:39][INFO][mode: data][stage: integrity check][step: Log Step]: started
100% [============================] Remaining Time: < 1 sec
[2020-06-29 09:56:39][INFO][mode: data][stage: integrity check][step: Ratings Step]: started
100% [============================] Remaining Time: < 1 sec
[2020-06-29 09:56:39][INFO][mode: data][stage: integrity check][step: ConfigurablePrices step]: started
100% [============================] Remaining Time: < 1 sec
[2020-06-29 09:56:39][INFO][mode: data][stage: integrity check][step: OrderGrids Step]: started
100% [============================] Remaining Time: < 1 sec
[2020-06-29 09:56:39][INFO][mode: data][stage: integrity check][step: Tier Price Step]: started
100% [============================] Remaining Time: < 1 sec
[2020-06-29 09:56:39][INFO][mode: data][stage: integrity check][step: SalesIncrement Step]: started
100% [============================] Remaining Time: < 1 sec
[2020-06-29 09:56:39][INFO][mode: data][stage: integrity check][step: Inventory Step]: started
100% [============================] Remaining Time: < 1 sec
[2020-06-29 09:56:39][INFO][mode: data][stage: setup triggers][step: Stage]: started
100% [============================] Remaining Time: < 1 sec
[2020-06-29 09:56:42][INFO][mode: data][stage: data migration][step: EAV Step]: started
100% [============================] Remaining Time: < 1 sec
[2020-06-29 09:56:43][INFO][mode: data][stage: volume check][step: EAV Step]: started
100% [============================] Remaining Time: < 1 sec
[2020-06-29 09:56:43][INFO][mode: data][stage: data migration][step: Customer Attributes Step]: started
100% [============================] Remaining Time: < 1 sec
[2020-06-29 09:57:05][INFO][mode: data][stage: volume check][step: Customer Attributes Step]: started
100% [============================] Remaining Time: < 1 sec
[2020-06-29 09:57:05][INFO][mode: data][stage: data migration][step: Map Step]: started
83% [=======================>----] Remaining Time: 22 mins
In Mysql.php line 182:

  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '203650' for key 'PRIMARY'

migrate:data [-r|--reset] [-a|--auto] [--] <config>

What is the solution ?


texts: Can't remove or hide product images with CSV import

texts:
I am having an issue where on some of my simple products which are child products of configurable products, their product image (each only has one) does not have the role of "base" so the image will not be displayed on the front end.

I tried fixing this with a product import/update and putting the exsiting image for the product under the "base_image" column. This works only now I end up with two images, the old image and the new base image.

I tried to remove the old image by putting only the new image in the "additional_images" column but that seemed to be ignored on import and the old image stayed.

I also tried to hide the old image by putting it under the "hide_from_product_page" column but that also didn't work.

Anyway I can hide or remove the old/duplicate image with a CSV import?

Screen shot of my test import CSV for one product below:


texts: How to increase performance for 50k products in 27k categories?

texts:
I have a Shop with 50,000 Products multi-linked in 27,000 Categories.
(The Database has a products_to_categories index about 950.000)

It is hosted on a good single Root-Server.
What changes can I do (In the Code, Database,...) to increase the performance?
Cache is active, but the side has a "server respond time" about 5-20 seconds.

Some Ideas? Maybe to improve the Database Index?


texts: Best way to locate LESS and CSS variables?

texts:
Does anyone know an efficent way to determine which less file or css file is responsible for a certain element in my magento shop? Sometimes it gets really frustrating if you want to change simple things like a background color or a margin.

Right now I want to move my main column up by 84 px. So I added this to my custom CSS file inside my theme:

.page-layout-2columns-left .column.main {
    margin-top: -84px;
}

But that does not affect anything. I tried many different other versions of that but it just won't work. Everything else inside my custom CSS file works like a charm. Any suggestions?


texts: Magento2: black screen after display mini cart

texts:
After opening the mini cart, everything works correctly in every place on the site.

But we have issue after display mini cart in checkout. (after close mini cart stays still black screen):

here is movie:
https://streamable.com/6jd2r

Anyone know how to solve?

edit:

    .onestepcheckout-index-index.ajax-loading .oscheckout-loading {
      display: block !important;
    }
    body._has-modal-custom:before {
      position: fixed;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
      content: "";
      z-index: 150;
    }
    body._has-modal-custom .modal-custom.authentication-dropdown {
      display: block !important;
    }

        body._has-modal-custom._has-auth-shown:before {
          display: none;
        }

body._has-modal-custom .modal-custom.authentication-dropdown {
  display: block !important;
}

in minicart.phtml I cannot find class _has-modal-custom

<?php
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */

// @codingStandardsIgnoreFile

/** @var $block \Magento\Checkout\Block\Cart\Sidebar */
?>
<?php $themeHelper = $this->helper('MGS\Mpanel\Helper\Data'); ?>
<?php $enbCartDropdown = $themeHelper->getStoreConfig('mgstheme/general/cart_dropdown'); ?>

<div data-block="minicart" class="minicart-wrapper<?php if($enbCartDropdown): ?> minicart-wrapper--dropdown<?php endif ?>">
    <a class="action showcart" href="<?php /* @escapeNotVerified */ echo $block->getShoppingCartUrl(); ?>"
       data-bind="scope: 'minicart_content'">

    <?php if ($block->getIsNeedToDisplaySideBar()): ?>

                    <?php echo __('Mini Cart') ?>
                    <button id="close-minicart"></button>

            <?php echo $block->getChildHtml('minicart.addons'); ?>

    <?php endif ?>


texts: New product attributes value cannot be saved in magento 2

texts:
I have created nearly 10 new attributes under product attributes. Its added to attribute set as well.

But now, when I update the product information, the data is not getting saved. Instead, after the product shown successfully saved message, the field is kept empty.

As in the image attached below, the diamond weight is a new attribute. And value 12 is given. But not getting saved.

The following shows my php-info()


texts: Magento 2.1 - How can I handel special transport agencies for some products?

texts:
i need little bit help with the delivery costs. I have Magento 2.1

What can I do, if special big products can only be shipped with a special transport agency? Can I use in Magento "delivery groups". In my plans every product has 1 of my 3 delivery settings.

DHL parcel  (Table Rate (depends on weight))
bulk goods (that is 1. + fixed charge)
special logistic company (fixed charge)

Every product can only be shipped with one of this 3 points. I have this data for each product in my inventory control system, but I don't know how to handle it in magento2.

Can anybody give me some ideas how to implement this in magento?


texts:
Settlement Reports returns that it fetched n rows, but nothing populates on Magento Side.

Was running Magento 1.9 and updated to 1.9.1.0 to the same effect.


texts: Magento 2 : How to check MEQP2 for My Extension

texts:
I've been trying to validate my extension before submit it to Magento Marketplace.

I've installed MEQP using composer.

  $ composer create-project --repository=https://repo.magento.com magento/marketplace-eqp magento-coding-standard

But when I am trying to execute below commands as per Magento says it gives me error in my console.

Note: Currently I am on localhost with Xampp on windows OS.

  1).  Navigated to magento-coding-standard directory to my Magento2 root.

  2). C:\xampp\htdocs\m2fresh\magento-coding-standard>cd vendor/bin/phpcs C:\xampp\htd
  ocs\m2fresh\app\code\Vendor\Module\ --standard=MEQP2

It giving me error like below.

The filename, directory name, or volume label syntax is incorrect

Any suggestion?


texts:
I am trying to create a site on which you can book certain assets.

The assets themselves, and the times they are available will be fetched from an external API.
The assets will be imported once a week, but the times will have to be fetched at request time, to make sure the information is not stale.

My question is: How should I go about this?

Should each booking time be a product in itself, and thereby creating a new product each time a booking is bought (I'm guessing no)
Should I make a configurable product somehow? (I'm guessing yes). If so, is there a way to limit the configuration to show only the free times?

And finally, which events should I hook into in order to double check that the time is free when the product is put in the cart and once again when it is just about to be purchased?

For information I'm currently working on 1.9.0.1

Thank you


texts: Product images are serving from different path in Frontend and Backend

texts:
Frontend Product images are serving from this path1 :

media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/i/m/img24.jpg

Backend Product images are serving from this path2

media/catalog/product/i/m/img24.jpg

why same images stored in different path.

I think Backend images are serving from proper path, I want frontend images also should serve from same path.

Edit

why we need is lot of product images are not indexed by google. only few images are indexed.


texts: Data migration from non-magento DB about sales_order tables

texts:
I have working on data migration from non-magento e-com website to  magento 2.x EE. I have question about that I can't save the data after call save();

$customerOrder = $this->_objectManager->create('\Magento\Sales\Model\Order');
$customerOrder->setData('base_grand_total',$val->_amount);

//total = shipping fee + items total
$customerOrder->setData('base_subtotal',$val->_orginal_price); //item totals
$customerOrder->setData('base_shipping_amount',$val->_shipping_fee);
$customerOrder->setData('base_to_global_rate',1);
$customerOrder->setData('base_to_order_rate',1);
$customerOrder->setData('store_id',1);//store ID
$customerOrder->setData('grand_total',$val->_amount);
$customerOrder->setData('subtotal',$val->_orginal_price);
$customerOrder->setData('total_qty_ordered',1);

$Orderpayment->save();

  Fatal error: Call to a member function getMethodInstance() on null in
  D:\xampp\htdocs\hktshop_uat\vendor\magento\module-payment\Observer\SalesOrderBeforeSaveObserver.php
  on line 24

Anyone have experience on migration?


texts: How to add a pop up as input type for bundle items selection?

texts:
I want to display options for bundle items on a pop up, along with the link of the product details page of the products that are being displayed as options.
So as soon as the user clicks on a button, a pop up opens which contains all the options for that particular product. The user should be able to select one of those and then the pop up closes.
Can that be done?


texts: Date validation on my custom form on frontend magento 2

texts:
How can i validate the date field on frontend with magento default date validation class. I think it has one.

For required entry, I used data-validate:

<input type="text" placeholder="<?php /* @escapeNotVerified */ echo __('DOB (YYYY-MM-DD)') ?>" name="dob" id="dob" value="<?php echo $profileData['dob']; ?>" title="<?php /* @escapeNotVerified */ echo __('Date Of Birth') ?>" class="input-text validate-date" data-validate="{required:true}">

and added the form validate script:

<script type="text/javascript">
//added by navin
require(['jquery','mage/mage'], function(){
    var dataForm = jQuery('#edit-form-validate');
    dataForm.mage('validation', {});

});

</script>

required validation is working fine but I want to validate if the input date is in correct date format.

This also arise a question, In which file magento defines all the validation class?


texts: Unirgy_RapidFlow export data to remote server

texts:
I want to export product/attribute data to remote server. it should create exported file to remote server.

I have filled the data of my server in "[Remote Server][1]" configuration but when I "Run" the profile then it throws an [ERROR][2].

  User Notice: Connection closed by server in
  /vendor/phpseclib/phpseclib/phpseclib/Net/  SSH2.php on line 1196

I want to export(save exported file) to remote server.

Has anyone can help me a hand, please!

  [1]: https://nimb.ws/dxFvaT   [2]: https://nimb.ws/E2dnL3


texts: How to remove limiter from product listing page in Magento 2

texts:
I want to remove just limiter from bottom toolbar in product listing page.

I've tried following code but not working, In local catalog_category_view.xml

  <referenceBlock name="product_list_toolbar_limiter" remove="true" />


texts: Magento 2 how can magento core module save product details?

texts:
I'm writing a module for setting tier price for segments by modelling tier price for groups in Magento 2's core module. But I got confused when I following the codes for saving product details in the core module. I found that the core module Magento\Catalog\Controller\Adminhtml\Product\Save uses $product->save(); to save the product.

Then I got

 public function save()
    {

        $this->_getResource()->save($this);
        return $this;
    }

in Magento\Framework\Model\AbstractModel
and save() in Magento\Framework\Model\ResourceModel\Db\AbstractDb

public function save(\Magento\Framework\Model\AbstractModel $object)
    {
       if ($object->isDeleted()) {
            return $this->delete($object);
        }

        $this->beginTransaction();

        try {
            if (!$this->isModified($object)) {
                $this->processNotModifiedSave($object);
                $this->commit();
                $object->setHasDataChanges(false);
                return $this;
            }
            $object->validateBeforeSave();
            $object->beforeSave();
            if ($object->isSaveAllowed()) {
                $this->_serializeFields($object);
                $this->_beforeSave($object);
                $this->_checkUnique($object);
                $this->objectRelationProcessor->validateDataIntegrity($this->getMainTable(), $object->getData());
                if ($this->isObjectNotNew($object)) {
                    $this->updateObject($object);
                } else {
                    $this->saveNewObject($object);
                }
                $this->unserializeFields($object);
                $this->processAfterSaves($object);
            }
            $this->addCommitCallback([$object, 'afterCommitCallback'])->commit();
            $object->setHasDataChanges(false);
        } catch (\Exception $e) {
            $this->rollBack();
            $object->setHasDataChanges(true);
            throw $e;
        }
        return $this;
    }

But I can't find any details about saving the product details, the save() is all about logging, when I comment all the codes inside the save() method , the Magento can still save the product details.

Anyone can tell me where the Magento does the action for saving product details? Thanks in advance!


texts:
I added a column to the admin grid, to filter on a custom attribute.
But this filter does not work properly.

When I filter on value "50" it also display all values with "150".
How can I change that?

I use this admin grid code:

    $this->addColumn('type_staffel', array(
        'header' => $helper->__('type_staffel'),
        'width' => 100,
        'index' => 'type_staffel',
    ));


texts: How to add select multiple images attribute in category in Magento 2

texts: I want to display more then one images of category in category page so i want to add more then one images in category in backend, please help me


texts: Add event to customer registration success

texts:
I have a custom field in customer registration form which I want to add the value of it into a session variable called passcode. So far I have no success, what am I doing wrong?

<input type="text" name="passcode" id="passcode" value="" title="<?php echo $this->__('Passcode') ?>" class="input-text required-entry" />

Here is my observer

public function customerRegisterSuccess(Varien_Event_Observer $observer) {
    $login = Mage::app()->getRequest()->getParams('passcode');
    $session = Mage::getSingleton('customer/session');
    $session->setPasscode($login);
}


texts: Cant use brackets in javascript under CMS Block

texts:
let legValue = parseInt(legLenght.value);
        let currHeight = e.value;
        let numHeight = parseInt(currHeight.substring(0,3));
        let optionsFound;

        if(legValue ==64){
            optionsFound=[43, 44, 45];
        }

I have the code above, when i execute it under catalog -> content-> CMS block, i get this weird bug when i look at it in developers tool in chrome

the brackets seem to disappear in the code... how may i fix this


texts: Magento 2 + php 7.0.5 Compilation Fails in Production Mode

texts:
I'm having some issues running the compilation process (either single and multi tenant) with magento 2.0.2~4 running over ubuntu 14.04 & php 7.0.5 (PHP 7.0.5-2+deb.sury.org~trusty+1).

I can run any magento-console process without problem (install/uninstall/upgrade/flush cache etc) but setup:di:compile and setup:di:compile-multi-tenant.

The process finish as usual, no log, no error output, no nothing but after that I can't run the magento-console anymore since the compiler generates an empty serialized string ({}) in var/di/relations.ser then magento can't find the DI definition for Magento\Framework\Filesystem\DriverInterface and throws:

PHP Fatal error:  Uncaught Error: Cannot instantiate interface Magento\Framework\Filesystem\DriverInterface in /var/www/magento2/src/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:73

Any Idea?


texts: Magento 2.1 :how to create export module in product attribute and attribute set

texts: How to export attributes in magento 2.1 backhand ,like when i want to export attributes  of particular attribute set


texts:
I have created configuration options. It works fine but i want to add dynamic dropdown values. For that i have created select field and added source_model.

which is in

  Baka/Mama/Model/System/Config/Source/Selectsand

Folder.

in system.xml file i have created Following Field.

           <selectsand>
                        <label>Dropdown</label>
                        <comment>Dropdown with global scope.</comment>
                     <frontend_type>select</frontend_type>
                     <source_model>baka_mama/system_config_source_selectsand_values</source_model>
                        <sort_order>30</sort_order>
                        <show_in_default>1</show_in_default>
                        <show_in_website>1</show_in_website>
                        <show_in_store>1</show_in_store>
                   </selectsand>

  Fatal error: Call to a member function toOptionArray() on a non-object
  in
  C:\xampp\htdocs\magento\includes\src\Mage_Adminhtml_Block_System_Config_Form.php
  on line 463

in Values.php file i have added following code.

      class Baka_Mama_Model_System_Config_Source_Selectsand_Values{

public function toOptionArray()
{
return array(
  array('value' => 0, 'label' =>'Pizza'),
  array('value' => 1, 'label' => 'Pasta'),
  array('value' => 2, 'label' =>'Manchuriyan'),
 // and so on...
);
}

Where am i making mistake? Need help  to resolve it.

Any help would be appreciated.


texts: Magento 2.4.2 Installation with Sample Data errors

texts:
I can't proceed the Magento 2.4.2 sample data installation.
It's Nginx 1.19, PHP-FPM 7.4, MariaDB 10.4, Elasticsearch 7.11 on Docker. Normal installation works without any problems.
The first time I run the installation it stops with the following error:
In Mysql.php line 110:

SQLSTATE[HY000]: General error: 1025 Error on rename of
'./magedb/catalog_category_product_index_store1_outdated' to
'./magedb/catalog_category_product_index_store1_replica' (errno: 194
"Tablespace is missing for a table"),

query was:
RENAME TABLE catalog_category_product_index_store1 TO catalog_category_product_index_store1_outdated,catalog_category_product_index_store1_replica TO catalog_category_product_index_store1,catalog_category_product_index_store1_outdated TO catalog_category_product_index_store1_replica
When I then just run it again, it stops with:

SQLSTATE[42S02]: Base table or view not found: 1146 Table
'magedb.design_config_grid_flat' doesn't exist, query was: DELETE FROM
design_config_grid_flat

Creating this table doesn't change anything... Does anyone have an idea to go through this?


texts: Fraud or Bug ? PayPal paid transaction on an old existing order

texts:
Something strange happened on my store and I really have no clue about what it was or even how it could happen ! I’ve already seen fraud or bugs but today, I have no idea about what happened! I'll try to make it simple  and clear and I wish someone can give me an opinion about all that.

- A customer placed an order at 21h50 with a credit card payment method. When clicking "Place Order" on the checkout, customer was redirected to the payment gateway but never returned to the Magento store.

- As a result, an Order #10009001 was created with a "Waiting validation" status, because it wasn't paid. That order has two different product items.

At this point nothing strange, it happens all the time and it's related to my CC module which create the order before the redirection (not great I know). But here come the weird part …

- At 22h05, a PayPal payment was received on my PayPal account. It refers to the order #10009001 and it has a transaction number. But unlike the real order #10009001 saved in my Magento store, it has only one product and the total is equal to the #10009001 total minus that missing product.

- There is not trace of the transaction in Magento. No error/exception log. Order #10009001 is still in the "Waiting validation"  status. No new order was created at this time.

Here is what feels strange for me and why nothing makes sense at this point:
- How can the PayPal transaction point to an existing order ID placed 15 minutes before ?
- How did one item got removed when redirected to PayPal ?
- Could it be just a bug without report or error or exception log ?
- I was not able to reproduce it, I've tried placing two order simultaneously with 2 browsers, doing dumb stuff like going back and forward to change payment method and order items, ...
- How such a fraud would even be possible if data sent from Magento to PayPal are encrypted with my PayPal private credential.

So here I am, left with more question than answers. It’s the first time it happens to me and I don't really know what to think or where to search now.

Good news is, if the customer was trying a hack, it didn't succeed. Order status was not validated but he got the money taken from his account. If it’s a bug, why is there nothing in the log ? Why the payment was accepted by PayPal. Normaly the IPN call on the Magento store return false if the same order was already placed before and PayPal stop the transaction.

So does it seems familiar to anyone ? Any ideas ?

Thanks for reading all of this already and for all the help you could give.

I've seen this problem that seems similar but for me it hapened only once. Also I dont have any module modifying Order numbers : Strange intermittent Paypal issue assigning old order numbers


texts: Magento 2 - bin/magento suddenly stopped working

texts:
If I execute php bin/magento list then nothing happens.
It stopped working after executing composer update and grunt clean
If I open the frontend I get

Fatal error: require_once(): Failed opening required
'/home/xxx/yyy/vendor/composer/autoload_real.php'
(include_path='.:/opt/cpanel/ea-php72/root/usr/share/pear') in
/home/xxx/yyy/vendor/autoload.php on line 5
Warning:
require(/home/x/y/vendor/composer/../magento/services-connector/registration.php):
failed to open stream: No such file or directory in
/home/x/y/vendor/composer/autoload_real.php on line 70

Update: I set permissions, but it still does not work:
find . -type f -exec chmod 664 {} \;
find . -type d -exec chmod 775 {} \;
find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +
find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +
chmod u+x bin/magento


texts: Magento 1.9 A strange record found in customer table

texts:
I have noticed that there is a weird customer created in my admin,

I'm sure this customer wans't created on the frontend because this is a B2B site, and I have removed the front-end registration for customers. Customers can only be created via Magento admin, or via CSV import.

I wonder how this weird record came into Magento database? How can I prevent this happenning again?


texts: Custom shipping price for particular two products after applying coupon

texts:
I need to create a new coupon that will give a $50 discount for only two products . The customer should be charged shipping of $5 (fixed only for this two products). It should take $50 off of their cart, and then add $5 for shipping cost.

Can any body please give me some idea / guidance how to implement this? Any help will be greatly appreciated.

thanks

Edited

I am using Flat Rate shipping method for all the other products even this two particular products as well if customer doesn't use coupon.

Suppose the cost of Product A is $60 and shipping cost is $10. Grand total $60+$10 = $70

After applying coupon price will be only $15 ($10+$5)


texts: cannot create plugin for PaymentInformationManagement

texts:
I'm trying to create plugin for Magento/Checkout/Model/PaymentInformationManagement class

When I'm placing the order, the program stops after constructor in my plugin class.

Here is /etc/di.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Checkout\Model\PaymentInformationManagement">
    <plugin name="save-quote" type="Company\Newsletter\Model\Plugin\Checkout\MyPaymentInformationManagement" sortOrder="110"/>
</type>
</config>

And
/Model/Plugin/Checkout/MyPaymentInformationManagement.php

<?php

namespace Company\Newsletter\Model\Plugin\Checkout;

use Magento\Quote\Model\QuoteRepository;
use Magento\Checkout\Model\PaymentInformationManagement as
PaymentManagement;
use Magento\Checkout\Api\Data\PaymentDetailsInterface;

class MyPaymentInformationManagement
{

/**
 * @var \Magento\Quote\Model\QuoteRepository
 */
protected $_quoteRepository;

/**
 * @param QuoteRepository $quoteRepository
 */
public function __construct(QuoteRepository $quoteRepository)
{
    $this->_quoteRepository = $quoteRepository;
}

public function beforeSavePaymentInformation(PaymentManagement $subject, $cartId, PaymentDetailsInterface $paymentInformation)
{
    //some code
}
}


texts: Magento2 - Get Price without "price-details" AKA Tax

texts:
How can I get the price for a product WITHOUT any TAX / Shipping Details?

Currently it is echo $block->getProductPriceHtml($_item, $type); and gives out price + price-details (tax etc).

Is there a easy way how to get price without price-details?


texts: How do I save/edit Data on multiple tabs when I have multiple tables?

texts:
I have two tables "users" and "notes". Both share the same key "user_id".

I have the Magento forms up and working at this point..., I'm just not sure how to make it so when I save the notes part, it updates to the notes table. For editAction, I was thinking of using a Join in say my editAction to pull all of the information using

$user = getResourceModel()

Then Having

Mage::register('current_custuser', $user);

so my block could access all of that users information.

To clarify:

I have two tabs (more later). I have separate tables (users and notes). I want to be able to save the information from Notes tab to notes table, and users tab to users tab. Do I need to use joins for this? How would I go about getting this done? Do I use Joins?


texts: Aoe_Scheduler Errors when trying to access the module on admin

texts:
Installed Aoe_Scheduler and now getting a http 500 error when trying to access the module on Admin.

Can anyone help?


texts: Magento2 How to get category custom image attribute on frontend phtml page

texts:
I need to get category custom image attribute on frontend.

Anyone have solution for this?

Thanks


texts: Magento 2: Multiple stores with multiple languages, how to setup properly?

texts:
I'm building a webshop that contains multiple stores, each store has multiple languages, like so:

Website A
    |__ Store A
       |__ StoreView EN
       |__ StoreView DE
       |__ StoreView FR
Website B
    |__ Store B
       |__ StoreView EN
       |__ StoreView DE
       |__ StoreView FR
Website C
    |__ Store C
       |__ StoreView EN
       |__ StoreView DE
       |__ StoreView FR

The problem is that when you edit some content, like an attribute, you have to enter the translations for each language three times, since each store has three separate store views for each language. Is there a way to avoid this, or is this just the limitation of how Magento works?


texts: Basic Auth / Restricting backend admin panel for M1

texts:
Good evening.
Should it not be possible toeither restrict or use basic auth on the admin panel for login? Just as an extra security layer.
Can there be any flaws/errors regadring 3rd party extentions like payments, tracking etc? Or does it depend on what URI / API the extentions are using? Otherwise is there anything else to be aware of?


texts: Add class to body in CMS page (with layout update xml from admin panel)

texts:
I'm trying to add a class to body (cms-page-aboutus) via layout XML update inside Magento 2 admin panel.

I know that CMS pages already add a body I could use to target my page, but I need to target multiple CMS pages for several languages at once (cms-about-us, cms-acerca-de, cms-a-propos).

I don't want to duplicate CSS, therefore a common class would be best.

I have tried the following:

<body>
    <attribute name="class" value="body-class" />
</body>

But it fails to save in admin panel:

Please correct the XML data and try again. Element 'body': This element is not expected. Expected is one of ( referenceContainer, container, update, move ). Line: 2

Since it seems that only "update" keyword is allowed, I tried using it to add a new handle:

<update handle="cms_page_aboutus"/>

and then created the file:

app/design/<>/<>/Magento_Cms/layout/cms_page_aboutus.xml

with the body update within, but it does not work.

Any idea?


texts: Magento Community 1.9.1 RWD theme, how do I fix FeatureZoom over sized product image?

texts:
I'm trying to setup product image zoom using FeatureZoom... but the product image is way too big and the CSS seems to be all in-line. Please help me make the image smaller?
tia
http://kaleidoscopiacoloringbooks.com/Store/mandala1.html


texts: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried > to allocate 4194304 bytes)

texts:
When I run reindex all, I got this error

  Fatal error: Allowed memory size of 134217728 bytes exhausted (tried
  to allocate 4194304 bytes) in
  /home/users/mydomain/www/lib/Varien/Simplexml/Element.php on line 195

On my htaccess file I have

<IfModule mod_php5.c>
php_value memory_limit 512M
php_value max_execution_time 1800
php_flag magic_quotes_gpc off
php_flag session.auto_start off
</IfModule>

When I check my php.info I think 'memory_limit 512M' (How can I check clearly?)

so due to the error, it seems the reindex is not complete, How can I solve the issue?


texts:
the TopLinks navigation does not show up at all in my template.

in page.xml I have

<block type="page/template_links" name="top.links" as="topLinks"/>

in block

<block type="page/html_header" name="header" as="header">

and in my header.phtml I have

<?php echo $this->getHtml('top.links') ?>

It does not show up at all, what else could have gone wrong?


texts: Customer CSV export fails with blank page

texts:
how's it going.

I'm trying to export customers as a CSV file via System > Import/Export > Export, and I just get a blank page as a result.

I select Entity Type of Customers and Export File Format of CSV. When the Entity Attributes table appears I leave it blank and click the Continue button. After a few seconds, blank page. I have made sure that the page has finished loading.

According to Chrome's Developer Tools, Network tab, I'm getting a Server Error (HTTP 500) response but no content. So I'm thinking fatal PHP runtime error. But I don't really know where to go from here. I'm struggling to find the code that's supposed to be running, what with admin controllers being a bit different from frontend ones. And for once, Google's come up empty.

I'm using Magento CE 1.8.1.0 recently upgraded from 1.7.0.2. So have any of you lovely people come across this before and/or know what to do about it?

Thanks!


texts: Free currency converter fixer.io stopped working

texts:
Magento ver. 2.2.3

Seems today fixer.io stopped working.
It was the only service that still works for currency rates.
If I try to reach the url from web browser I get this

0   "#################################################################################################################################"
1   "#                                                                                #"
2   "# IMPORTANT - PLEASE UPDATE YOUR API ENDPOINT                                                                                #"
3   "#                                                                                #"
4   "# This API endpoint is deprecated and has now been shut down. To keep using the Fixer API, please update your integration       #"
5   "# to use the new Fixer API endpoint, designed as a simple drop-in replacement.                                                  #"
6   "# You will be required to create an account at https://fixer.io and obtain an API access key.                                   #"
7   "#                                                                                #"
8   "# For more information on how to upgrade please visit our Github Tutorial at: https://github.com/fixerAPI/fixer#readme          #"
9   "#                                                                                #"
a   "#################################################################################################################################"

You can still get a free account, but code change needed to make it works with new API.

Does anybody know if a fix coming with the next upgrade of Magento?

Alternatively in Magento 1.9.3.8 I'm getting currency rates from here, by custom module.

Does one already exist that use this service?

If there are no answers to these questions, the only solution will be to write a new custom module.

I hope for an escape...


texts: Is it worth to pass the Associate Developer Certification Exam before the Professional?

texts:
I plan to pass the Magento2 Certification Professional Developer Exam in the next months.

Is it still interesting to pass the Associate Exam or should I focus on the Professional ?


texts:
Add custom options based on the value of select field in admin.
Hello All,

I want to add dynamic form fields based on the value of the select value in magento 2.3 in admin.

Actually i am working on survey extension and in which i want to implement that if admin select type of question which he is added to "short-answer", then textarea will be shown.

I think for this i need to implement custom options. but what exactly don't get that. So can anyone please help me.

Thanks


texts: Cart & Checkout blank Magento 2.3 after trying to add product to cart

texts:
In Magento 2.3 I am attempting to add an item to cart, however the cart shows empty and if I 'proceed to checkout' the checkout page is blank with just the loading gif icon.

If I go to 'checkout/cart' then the cart page is blank and just has 'estimate shipping & tax' towards the top of the page.

The console error I get when I click 'add to cart' is below:

customer-data.js:91 Uncaught Error: [object Object]
at Object.<anonymous> (customer-data.js:91)
at fire (jquery.js:3232)
at Object.fireWith [as rejectWith] (jquery.js:3362)
at done (jquery.js:9842)
at XMLHttpRequest.callback (jquery.js:10311)

The server error logs show the below message:

500 GET /customer/section/load/?sections=cart%2Cmessages&update_section_id=true&_=1552910808681 HTTP/1.0

500 GET /customer/section/load/?sections=cart%2Cmessages&update_section_id=true&_=1552910808681 HTTP/1.0

AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function getFinalProduct() on null in /var/www/vhosts/mysite.co.uk/httpdocs/vendor/magento/module-checkout/CustomerData/DefaultItem.php:129\nStack trace:\n#0 /var/www/vhosts/mysite.co.uk/httpdocs/app/code/MGS/Mpanel/CustomerData/DefaultItem.php(81): Magento\\Checkout\\CustomerData\\DefaultItem->getProductForThumbnail()\n#1 /var/www/vhosts/mysite.co.uk/httpdocs/vendor/magento/module-checkout/CustomerData/AbstractItem.php(32): MGS\\Mpanel\\CustomerData\\DefaultItem->doGetItemData()\n#2 /var/www/vhosts/mysite.co.uk/httpdocs/vendor/magento/module-checkout/CustomerData/ItemPool.php(63): Magento\\Checkout\\CustomerData\\AbstractItem->getItemData(Object(Magento\\Quote\\Model\\Quote\\Item))\n#3 /var/www/vhosts/mysite.co.uk/httpdocs/vendor/magento/module-checkout/CustomerData/Cart.php(167): Magento\\Checkout\\CustomerData\\ItemPool->getItemData(Object(Magento\\Quote\\Model\\Quote\\Item))\n#4 /var/www/vhosts/...\n', referer: https://www.mysite.co.uk/coastal-chic-large-rectangular-dining-table.html

Can anyone please advise a solution?


texts: CSV Import: Simple Products not linked to Configurable Product

texts:
I'm importing Configurable products using the Import/Export tool but can't get the simple products to be associated with the configurable product.

The CSV looks like this1.

_type,        _super_attribute_code, _super_products_sku, sku,     style,...
configurable, style,                 ,                    Conf1,   ,
simple,       ,                      Conf1,               Simple1, Style1
simple,       ,                      Conf1,               Simple2, Style1

The 3 products are correctly created but not associated.

Is this the correct way to use the _super columns? Is there something I've missed?

1: White-space is added for readability


texts: Replace the QTY of the product in the cart on "add to cart" rather than increment

texts:
How to replace the quantity of the product in the cart instead of increment?
Current behaviour:
From the product page:

Add 5 qty of product A
Add 2 qty of product A (add product again)
The cart qty of product A is now 7

Desired behaviour:
From the product page:

Add 5 qty of product A
Add 2 qty of product A (add product again)
The cart qty of product A is now 2


texts: Magento 2.3.4 - Error: Call to a member function getAttributeCode()

texts:
I upgrade my store to Magento 2.3.4 version and suddenly I can't save / edit categories, after I press the Save button I have this error in admin: Something went wrong while saving the category. When I check var/log/debug.log file I found this error:

main.CRITICAL: Error: Call to a member function getAttributeCode() on bool in /chroot/home/a593d01f/html/vendor/magento/module-catalog/Observer/InvalidateCacheOnCategoryDesignChange.php:67

and when I check

vendor/magento/module-catalog/Observer/InvalidateCacheOnCategoryDesignChange.php:67

I have this part of code:

public function execute(Observer $observer)
{
    $category = $observer->getEvent()->getEntity();
    if (!$category->isObjectNew()) {
        foreach ($category->getDesignAttributes() as $designAttribute) {
            if ($this->isCategoryAttributeChanged($designAttribute->getAttributeCode(), $category)) {
                $this->cacheTypeList->invalidate(
                    [
                        \Magento\PageCache\Model\Cache\Type::TYPE_IDENTIFIER,
                        \Magento\Framework\App\Cache\Type\Layout::TYPE_IDENTIFIER
                    ]
                );
                break;
            }
        }
    }
}

If I comment out this:

        if ($this->isCategoryAttributeChanged($designAttribute->getAttributeCode(), $category)) {
            $this->cacheTypeList->invalidate(
                [
                    \Magento\PageCache\Model\Cache\Type::TYPE_IDENTIFIER,
                    \Magento\Framework\App\Cache\Type\Layout::TYPE_IDENTIFIER
                ]
            );
            break;
        }

everything is work fine with categories. Is a magento bug? or how I can fix this?

Edit:

Theme dropdown attribute is empty, the name of this attribute is custom_design.


texts: Magento2.3.3 I need to add Qty box near Customizable Options values in frontend

texts:
I have to add Qty for each Customizable option value in frontend. I want user to purchase each option with different Qty.
Can any one guide me,How can I achieve this?


texts:
I have the following that shows a bundle of products on the product page:

if ($_product->getAttributeText('bundle') == yes && $simplecount > 1):
$product_ids = explode(',',$_product->get_bundle_products());

$collection = Mage::getModel('catalog/product')
    ->getCollection()
    ->addAttributeToSelect('*')
    ->addAttributeToFilter('entity_id', array('in' => $product_ids));

echo'
';
foreach($collection as $eachproduct){
echo 'getProductUrl() . '">getImageUrl() . '" title="' . $eachproduct->getName() . '">';
$productId = $eachproduct->getId();
$simplecount = (int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($eachproduct)->getQty();
}

This works fine but I need not to show this when one of the bundle products are out of stock.

I have tried with item quatity($simplecount) but does not work.

Ive used Mage::getModel('cataloginventory/stock_item')->loadByProduct($eachproduct)->getIsInStock() but this only works when every item is out of stock


texts: Import products with multiple categories

texts:
Hi I am importing products in my 1.7.0.2 new setup, I already added the categories.
when i import the csv product file, all go well. But the problem is the product is added to only subcategory, it is not added to root category at the same time. If the subcategory and root category both are not checked in product edit page then product does not show on the front end.
I want every product to be added to root and sub categories, I have tried it in many ways but have not succeeded yet. Below are some ways i have applied (3 is root category id and 13 is sub)

_category,category_ids,_root_category
  Abc, 3|13, Root Catalog

_category,category_ids,_root_category
  Abc, '3,13', Root Catalog

_category,category_ids,_root_category
  Abc, 3/13, Root Catalog

_category,_root_category
  Root Catalog/Abc, Root Catalog

_category,_root_category
  Abc, Root Catalog

even have applied them in single and double quotes as well.

Any help would be very much appreciated.


texts:
I've got an urgent issue to resolve, I noticed that the website is missing blog posts used to appear on the bottom left of the page, and we used to have more information/links at the bottom too. For example, “About Us”, “Our Services” etc. but the footer is blank.

I am using Magento CE 1.8.

I have checked under CMS > Static Blocks > footer static 2. Which has got all the info to be displayed. It is already enabled. I have cleared caches, reindexed but nothing is helping.

Also I checked if the identifier value is incorrect, but no that is valid too.

If you go to our store, https://digitales.com.au, you will see the missing things at the bottom.

This is how it use to look before the contents disappeared from footer,

Someone please help me on this?


texts: Magento2 Showing a custom attribute on category listing page

texts:
I have a magento2 based website and I am wanting to show a custom attribute on the category listing page. My issue seems to be that on desktop and tablet the products are shown 3 across and on mobile they are shown 2 across.

Now if the last item in the row  shouldn't show the custom attribute (or has no value set for the custom attribute) it still shows the prior products custom attribute value.

Below is my code. I know using Object Manager in the php file is not the ideal. the php file edited is

  Magento_Catalog/templates/product/price/final_price.phtml

//THIS CODE WILL HELP US WRITE TEXT UNDER THE PRICE SUCH AS BOGO, ETC
  $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
  $_productdata = $objectManager->get('Magento\Catalog\Model\Product')->load($productId);
  unset($promo_text);
  $promo_text = $_productdata->getData('promo_text');
  $promo_text_start_date = $_productdata->getData('promo_text_start_date');
  $promo_text_end_date = $_productdata->getData('promo_text_end_date');
  $todays_datefor_promo_text = date('Y-m-d h:i:s');

  if($promo_text !='')
  {

      if($todays_datefor_promo_text >= "$promo_text_start_date 00:00:00" && $todays_datefor_promo_text <= "$promo_text_end_date 11:59:59")
       {
          echo "
$promo_text
";
       }
  }

Has you can see I even tried using the unset() function before I call in the custom attribute. However no matter what I do the very next product after the product that has a value for the custom attribute if the net product does not have a value it shows the prior products value(s).

Its odd because if I do

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$_productdata = $objectManager->get('Magento\Catalog\Model\Product')->load($productId);
$theitemskunumber_is = $_productdata->getData('sku');

echo "$theitemskunumber_is";

all the products that are last in each row show the correct sku.

Yet if I use a the same code but call in a custom attribute it doesnt show . correctly on the last item in the row?


texts: How to load a .phtml page content in a popup in magento 2?

texts:
I need to load a .phtml content on a popup.

        Click Me

 Hi I'm here....

<?php echo $this->getLayout()->createBlock("Magento\Framework\View\Element\Template")->setTemplate("Namespace_Customtab::new.phtml")->toHtml();?>

This is my code. How to load another phtml content instead of that div ? Please help me In find a solution.

custom file path: app/code/Namespace/Customtab/view/frontend/templates/product/view/new.phtml


texts:
How to Install PHP 7.2 Support Patches for Magento 1 ?
What are the potential steps to install it on Magento ver. 1.14.2.4 ?
Thankyou


texts: Magento 2: Docker implementation in local

texts: How to run magento 2 usig docker? shall implement in local for run magento 2 using or creating docker ,I need to know how to implement docker with magento 2 in local kindly help me?


texts: Magento 2: Importing Customer information shows validation error 1. Please enter a password with a valid length. in row(s)1

texts:
I am importing customer information in magento 2 with password 4 characters, I have also changed the password length to 4 in Stores->Configuration->Customer Configuration.

But still shows the same error (1. Please enter a password with a valid length. in row(s): 1)

But while creating a new account it is accepting the password length with 4 characters but while importing I am not able to do this.

Please someone help me on this.


texts: Organic Internet Simple Configurable Products - Special Price

texts:
I'm using the Organic Internet Simple Configurable products extension for a store which I've edited to change more content when a user selects an option from the configurable product.

When using "Special Prices" if the special price is NOT the cheapest price then it won't show the "Original Price"

For example, I have a product with 4 options which are prices from £32 up to £49.
My product with a special price is £49 with a special price of £45 - If I change this to have a special price of £31 (or anything lower than £32) then it shows the "Original Price" crossed out, but if the special is over £32 then the "Original Price" doesn't show.

Has anyone used this extension before and perhaps has had the same issue?


texts: Magento 2: PWA : FetchError: request to https://magentolocal.com/graphql failed, reason: connect ECONNREFUSED 162.255.119.134:443

texts:
i'm getting this error when docker/run docker
I'm running PWA Studio on Docker with backend on Vagrant Homestead.


texts: what are some approach to setup a monthly bill system?

texts:
I'm interested in setting up a monthly billing system for my business customers.

I've already setup my site to checkout if you're a business without the need of a credit card to pay upfront. I then have to manually export all order information for each company's bill at the end of each month and generate a bill for them to pay (similar to a phone bill).

What i want is a system that will auto generate a customer's pdf/.jpeg bill based on the customer group that is set. After the bill is generated, it is then automatically emailed to the customer. this is then repeated every 30 days.

Is there an extension that already does this? as i wasnt able to find any. If not, what is the best approach to achieve this?


texts: Order line custom options not displaying on website when added via the API

texts:
I’m creating orders using the Magento 2.3.6 API salesOrderRepositoryV1 interface. Everything seems to work fine except on order lines with a custom option. Custom options are added to the order line and can be returned via an API 'get' call but these options are not displayed when viewed through the website (frontend or admin).
For example, adding a product using the size option ‘medium’. When ordered via the website the option can be seen against then order line.
Using a call to /rest/all/V1/orders/create I add the same option to another order line, but this does not appear on the website.
  "product_option": {
    "extension_attributes": {
      "custom_options": [
        {
          "option_id": "238",
          "option_value": "Medium"
        }
      ]
    }
  }

In this order the first line was added via the website and the second added using Swagger:

Looking at the background data the sales_order_item.product_options “info_buyRequest” differs significantly in the option data:
Website Added: "options":{"238":"Medium"},"qty":"1"},"options":[{"label":"Size","value":"Medium","print_value":"Medium","option_id":"238","option_type":"field","option_value":"Medium","custom_view":false}]
API Added: {"qty":"1.0000","options":{"238":"Medium"}}
Adding the addition options information ("options":[{"label":"Size","value":"Medium","print_value":"Medium","option_id":"238","option_type":"field","option_value":"Medium","custom_view":false}]) in the background resolves the issue and the custom option information does then appear on the website, but I can’t find a way to add this data via the API.
My question is, has anybody come across this issue before and found a solution using the API? Thanks for any help you can give.


texts: Setting a template for all actions of a controller using local.xml

texts:
I have created a custom module create/routing, with a controller RoutingController.php which has several actions index, upload, instagram and I would like to update the template for all of these actions to a custom file page/routing.phtml within my local.xml

For the customer/account module I would write:

<customer_account>
    <reference name="root">
        <action method="setTemplate"><template>page/1column.phtml</template></action>
    </reference>
</customer_account>

However following the same method for my own module:

<create_routing>
    <reference name="root">
        <action method="setTemplate"><template>page/routing.phtml</template></action>
    </reference>
</create_routing>

Does not change the template for any action.

I have also tried <create_routing_default /> and I know the setTemplate method works as if I add it directly to an action i.e. <create_routing_index /> the template is correctly updated.

I must be missing something fundamental here, do I need to declare something within my module to enable this functionality?


texts: Magento2 installation, admin page 404 during installation

texts:
Please help me through this .. have been stuck with this for weeks..
After installation many folders are not present inside the directory.


texts: How to add a new address (shipping or billing or another) via Magento 2 REST API?

texts:
There are API's available to fetch and delete address of a customer but not create a new one.

GET    /V1/customers/addresses/:addressId
GET    /V1/customers/me/billingAddress
GET    /V1/customers/:customerId/billingAddress
GET    /V1/customers/me/shippingAddress
GET    /V1/customers/:customerId/shippingAddress
DELETE /V1/addresses/:addressId

POST Api's are not available publicly?


texts: Magento 2: Automatically generate CSV file on every order

texts:
I need to create a CSV file on every order I receive.
How can I do this? Can you guys please suggest me a way to do this or an existing module that does that?

Thanks!


texts: How to debug single magento 2 file using xdebug in netbeans

texts:
I setup X-debug in my pc and magento 2 project added to netbeans, now debug magento2, it working fine, but I added new module for smtp configuration and i debug within the module file they show, "You don't have permission to access /app/code/NameSpace/My Module/Model/Transport.php on this server."

How to debug single magento 2 file using xdebug in nebeans.


texts: How add new tab with links to menu (mobile version) on Magento 2?

texts:
I create CMS block with my links and include them to app/design/frontend/My-vendor/Name-theme/Magento_Theme/layout/default.xml

    <referenceContainer name="header.panel">
        <block class="Magento\Cms\Block\Block" name="header_links_block">
            <arguments>
                <argument name="block_id" xsi:type="string">header_links_block</argument>
            </arguments>
        </block>
    </referenceContainer>

What's correct way for include my link to phone style same on picture? For have other tab "Information", and inside my links. You can see example on picture.


texts: Magento hangs when I click Save and Continue Edit

texts:
Windows 10, Magento 2.1, XAMPP,

Stores > attributes > product > add new attribute > properties

fill in [Default Label] and click — Save and Continue Edit. It says please wait... and the software hangs.

Same hang in both Firefox and Chrome.

Nothing needs to be reindexed.

My guess is maybe a file is missing.

I am new to Magento, can someone help me? Thanks.

It is now my understanding that Magento 2.1 doesn't work 100% on Windows. It must be installed on Linux using LAMP to work properly.

Does anyone else have this understanding?


texts: Custom Payment Module in After place order getting 400 Bad request.Released magento 2.1.2 but issue is still pending..any idea how to solve it?

texts:
Magento-2.1.1 : "400 (Bad Request)" issue generate while place order using custom payment method not Display Error Message on page.

Error Log also empty..


texts: "Place Order" takes back to "Shopping Cart" page - 500 Internal Server Error

texts:
I am new to Magento and this is my first project.

I am using Magento CE 1.9 I have made all the set up required. Now when I try to test by creating an order I face an issue in last step :

When I click on the "Place Order" button, it goes back to "Shopping Cart" page.

I also noticed that though the order is not placed, stock is getting reduced!

With a little bit of debugging, I understood that if there is any "failure" in Ajax requests (I use Magento's standard OnepageCheckout), it will get redirected to "checkout/cart" page.

I can see that all the details are entered - billing and shipping address, shipping method, payment method (Cash On Delivery).

In the browser console I see the error - "500 internal server error".
What does this actually mean? I am testing using a logged in customer.

This is the first order I am trying to place. I really appreciate an suggestion or hints on how I can tackle this.

PS: I had a local installation of Magento community version and it worked perfectly fine.

I checked this link already : Magento Place Order on Checkout redirects back to cart

Edit: 15-Nov-2015

Here are the contents of the log file:

2015-11-13T07:18:03+00:00 ERR (3):
exception 'Zend_Mail_Transport_Exception' with message 'Unable to send mail. ' in /home/whymrvca/public_html/magento/lib/Zend/Mail/Transport/Sendmail.php:137
Stack trace:
#0 /home/whymrvca/public_html/magento/lib/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Sendmail->_sendMail()
#1 /home/whymrvca/public_html/magento/lib/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#2 /home/whymrvca/public_html/magento/app/code/core/Mage/Core/Model/Email/Queue.php(236): Zend_Mail->send()
#3 [internal function]: Mage_Core_Model_Email_Queue->send(Object(Mage_Cron_Model_Schedule))
#4 /home/whymrvca/public_html/magento/app/code/core/Mage/Cron/Model/Observer.php(326): call_user_func_array(Array, Array)
#5 /home/whymrvca/public_html/magento/app/code/core/Mage/Cron/Model/Observer.php(72): Mage_Cron_Model_Observer->_processJob(Object(Mage_Cron_Model_Schedule), Object(Mage_Core_Model_Config_Element))
#6 /home/whymrvca/public_html/magento/app/code/core/Mage/Core/Model/App.php(1357): Mage_Cron_Model_Observer->dispatch(Object(Varien_Event_Observer))
#7 /home/whymrvca/public_html/magento/app/code/core/Mage/Core/Model/App.php(1336): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Cron_Model_Observer), 'dispatch', Object(Varien_Event_Observer))
#8 /home/whymrvca/public_html/magento/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('default', Array)
#9 /home/whymrvca/public_html/magento/cron.php(77): Mage::dispatchEvent('default')
#10 {main}

I have searched for this exact error, none of the solutions worked for me. I even tried disabling the SMTP send email settings in Magento backend, but it did not help.

SMTP settings are as below :

Host : localhost
port : 25


texts: Convert to Json request from magento SOAP API

texts:
I need to convert the response from magento SOAP API to json, How to achieve this, Here is the code

$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl');
$sessionId = $proxy->login('apiUser', 'apiKey');
$result = $proxy->catalogProductList($sessionId);
var_dump($result);


texts:
I am using magento to 2.3.5,
My problem is when use https not working maintenance ip, but use http it can working, how can i fix this problem,
Any one have a good idea, thank you!!


texts: Input values on the edit form are empty, using UI component- Magento 2

texts:
This is my ui component file content:

<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <argument name="data" xsi:type="array">
        <item name="js_config" xsi:type="array">
            <item name="provider" xsi:type="string">vendor_modulename_shippingmethods_form.shippingmethods_form_data_source</item>
        </item>
        <item name="label" translate="true" xsi:type="string">General Information</item>
        <item name="template" xsi:type="string">templates/form/collapsible</item>
    </argument>
    <dataSource name="shippingmethods_form_data_source">
        <dataProvider class="Vendor\Modulename\Model\ShippingMethods\DataProvider" name="shippingmethods_form_data_source">
            <settings>
                <requestFieldName>entity_id</requestFieldName>
                <primaryFieldName>entity_id</primaryFieldName>
            </settings>
        </dataProvider>
    </dataSource>
    <fieldset name="general">
        <settings>
            <label translate="true">Shipping Method Infomation</label>
        </settings>
        <field formElement="input" name="name" sortOrder="20">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="dataType" xsi:type="string">text</item>
                    <item name="source" xsi:type="string">name</item>
                    <item name="label" xsi:type="string" translate="true">Name</item>
                    <item name="formElement" xsi:type="string">input</item>
                    <item name="dataScope" xsi:type="string">name</item>
                </item>
            </argument>
            <settings>
                <validation>
                    <rule name="required-entry" xsi:type="boolean">false</rule>
                </validation>
            </settings>
        </field>
    </fieldset>
</form>

and this is my DataProvider:

    namespace Vendor\ModuleName\Model\ShippingMethods;

    use Vendor\ModuleName\Model\ResourceModel\ShippingMethods\CollectionFactory;

    class DataProvider extends \Magento\Ui\DataProvider\AbstractDataProvider
    {

        protected $_loadedData;

        public function __construct(
            $name,
            $primaryFieldName,
            $requestFieldName,
            CollectionFactory $employeeCollectionFactory,
            array $meta = [],
            array $data = []
        ) {
            $this->collection = $employeeCollectionFactory->create();
            parent::__construct($name, $primaryFieldName, $requestFieldName, $meta, $data);
        }

        public function getData()
        {
            if (isset($this->_loadedData)) {
                return $this->_loadedData;
            }
            $items = $this->collection->getItems();
            .......
        }
    }

If I display my query string in the getData() with echo $this->collection->getSelect();, the result is:

SELECT `main_table`.* FROM `mytable` AS `main_table` WHERE (`entity_id` = '') . My id is missing. Not sure how, any idea where to look ?  Thnx in advance


texts:
I just installed Magento 2.1.6, also installed Composer. When I tried to import the sample data, it gave me error of Installation Failed mentioning possible causing:

A typo in the package name
The package is not available in stable enough version.

LUMA theme is activated, and now when I run the project in browser, it shows the header, top menu with categories and footer, whereas the homepage middle section is blank. I can browse through the categories, Listing page and detail page (No images are shown).

Please guide me, what I'm missing or which direction I've to move to make the home page content and images viewable.


texts: Products discount is expiring before date of expiration date in magento

texts: i have set 10% discount to all products in magento from 26-10-2016 to 12-11-2016 but its expiring before 12-11-2016. but when i am reseting it from admin its again showing.


texts: Forcing a certain custom option value when customer adding product to cart

texts:
I have a specific product that customers have made preorders for. Those who have preordered the product get it at a lower price. They can also order more products at the regular price.

The pre-ordered products are programatically added to the cart when the customer logs in. I'm using a a custom option to indicate whether a product is a preordered and in which preorder group (all having different pricing) the product belongs.

So far so good. But now, if the customer himself adds products to cart, he is not allowed to set the preorder product option. It would be best to hide this selection completely in the front end or force it to a specific value.

How can I do this? There are no default values for custom options and no read-only options (or at least not in the backend UI).

It is mandatory to have only one product, it is not possible to separate the preorder and normal products (due to shipping center integration).

In other words: I have several values for a custom option. Only one is available for customers that add the product to cart themselves, others are for when the product is added programatically. How do I prevent the customer from choosing the custom option value in the front end?

I'm aware that I can use observer to set the correct value for the custom option to the product in cart, but that would be confusing and bad UX. This is not what I want.


texts: How get products URL in magento 2.2.5 sql database

texts: I am using magento 2 enterprise edition i am trying to get products URL from sql database for this i have seen catalog_products_entity_varchar but in value attribute column products imgages are given so please help me about this problem


texts: How to check if a coupon code is a free shipping one?

texts:
I'm working with Magento 1.9.2.

I need to check (via code) if a coupon is a "free shipping" one: how can I do it? I searched everywhere online but I didn't find a solution yet.

I know there are two tables used to store coupons: salesrule and salesrule_coupon. I noticed that my "free shipping" coupons seem to be recognized by the following combination of columns:

simple_free_shipping == 2 and
coupon_type == 2

Is this a safe way to check the "free shipping" of a coupon?

Thank you!


texts:
i like to change the home page design in magento(1.9.0.1) for that i added the below code in home page cms block

code is

content area :
{{block type="topmenu/homepage" name="home.page" output="toHtml" template="federallawyer/topmenu/home/page.phtml"}}

design area :

code in block file is

class Federallawyer_Topmenu_Block_Homepage extends Mage_Directory_Block_Data {

}

but i got only the empty home page,your idea and suggestion will help me more.


texts: Adding short description below product image on product view page

texts:
I am displaying all the existing product on a separate CMS page via top menu link and i want to add a 1 or 2 line of short description above the "add to cart" button.
How can this be done?

Please check the screenshot for better understanding the query.

Any help would be much appreciated

Thanks in advance!


texts: How to remove a field filter from collection

texts:
I am loading a collection:

$this->_taxAddress = Mage::getModel('vb_tax/calculation_rate')->getCollection();

And add a filter to this collection:

$this->_taxAddress->addFieldToFilter(
            'region', array(
                'eq' => $address['regionCode']
            )
        );

How can I remove this (or all) filter from the collection again?
I don't want to load a new collection every time the filter changes.

I tried

$this->_taxAddress->clear();
$this->_taxAddress->resetData();

But that doesn't seem to have any effects on the filter.


texts: how to change the class type and template of a block in Magento2 with LayoutXML

texts:
How can do you change the class type and template of a block set by LayoutXML?

For instance I would like to change the class used below from Magento\Wishlist\Block\Customer\Wishlist to Holy\Wishlist\Block\Customer\Wishlist and the template to a template from my module.

<block class="Magento\Wishlist\Block\Customer\Wishlist" name="customer.wishlist" template="view.phtml" cacheable="false">

So far I've tried

<referenceBlock name="customer.wishlist">
    <!--<block class="Holy\Wishlist\Block\Customer\Wishlist" template="Holy_Wishlist::view.phtml"/>-->
    <arguments>
        <argument name="class" xsi:type="string">Holy\Wishlist\Block\Customer\Wishlist</argument>
        <argument name="template" xsi:type="string">Holy_Wishlist::view.phtml</argument>
    </arguments>
</referenceBlock>


texts: How to put the Google Analytics code on the check-out page?

texts:
Magento 1.9.4
Porto theme

I have a tracking Google Analytics code and suppose to put that on the check-out page. What is the best way to do that? Is the check-out page actually one of the CMS pages or CMS blocks?

UPDATED: This is a different code than what we have for just the Google Analytics account. I think it's for special tracking of specific campaigns so the code is different than what we normally use for Google Analytics as such.


texts:
I have followed the tutorial on Magento dev docs to create a custom crontab. Checking the cron_schedule table and various logs, I can see that cron is successfully running M2 jobs (e.g. indexer, mailers), but not the custom crontab. There is no mention of it at all - no errors in the Magento or server logs; no entry in cron_schedule.

I have manually run cron serveral times, seeing the message "Ran jobs by schedule" each time. I have set cron to log to var/log/magento.cron.log, and there I see only the same "Ran jobs by schedule" message - no other output from the other M2 cron jobs which I know are running (because they show status "success" in cron_schedule).

The custom module crontab (etc/crontab.xml):

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
    <group id="default">
        <job name="cronjob_default" instance="Vex\SportIntBase\import\StoredProcCronDefault" method="execute">
            <schedule>* * * * *</schedule>
        </job>
    </group>
</config>

The class:

namespace Vex\SportIntBase\import;
use \Psr\Log\LoggerInterface;

class StoredProcCronDefault
{
    protected $_logger;
    private $_fetchers;

    const PATH = __DIR__ . 'vendor/vex/module-sport-int-base/import';

    public function __construct(LoggerInterface $logger) {
        $this->_logger = $logger;
        $this->_fetchers = array(
            'price_fetch.php',
            'products_fetch.php',
            'stock_fetch.php'
        );
    }

    public function execute() {
        $this->_logger->info('Beginning VexSport Stored Procedure Run (default)');
        foreach($this->_fetchers as $runSP) {
            include(SELF::$PATH) . $runSP;
        }
    }
}

Version info: M2 2.1.2, PHP 7.0.13, Debian 8.6.

Thanks for any ideas or suggestions. I'm stumped.


texts: How could I get an account with high privileges?

texts:
I have FTP account on server and an account as Magento user.
Is it possible with these codes to gain a Magento account with administrator privileges?


texts:
I'm struggling with something simple.
I'm trying to print the Page Title in the custom block from my custom.phtml and I'm getting nothing.
I've removed the Magento original page title block from all pages by updating default.xml
referenceBlock name="page.main.title" remove="true"
I've created my own block and pointed it to my phtml file in the same default.xml
block class="Magento\Framework\View\Element\Template" name="page_title" template="Magento_Theme::page_title.phtml"
Now the problem is even if i copy paste the contents of original /module-theme/view/frontend/templates/html/title.phtml
into my custom page_title.phtml I'm getting nothing, 0.
It's not the case of caching or anything similar as any other type of content gets displayed no problem. :(
All I'm looking for is a way to access that $titleHtml variable from title.phtml somehow...
Any help? :(


texts: How to remove authentication massages in magento website which is hacked by someone

texts:
I have a Magento website. Someone add adds on my homepage in  header section.
When I click on my websites menus then other links are opening there.

How can I remove it and how to secure in future for this happening?
You can see my website on top some adds running I wanna remove it.

Plz help me. My admin panel is not opening.

I have login and password details. When i login with user name and password the it's not open after that in footer a massages is displaying that .

Fatal error: Access to undeclared static property: Mage::$_isDeveloperMode in /home/rahul1988/public_html/app/Mage.php on line 880

my Website is

http://borsavela.com/


texts: After Saving Configurable Product I cannot Upload Parent Image

texts:
I create a configurable product and add in all the variations and their individual photos and then save.
I come back to add the main photo for the configurable product. All the simple products have their photos associated with them.
It uploads the image but when I try to save it. It looks as thought it is saved but it does not save the image. If I click back into the product, there is no parent image.
It's a fresh install using Magento blank as a theme. I've cleared the cache etc.


texts: How to disable cache for particular block in magento2?

texts:
I have created a block in header

<referenceContainer name="columns.top">
                <block class="XXX\ABC\Block\Category\News" name="news" template="XXX_ABC::catalog/product/news.phtml" cacheable="false" />
        </referenceContainer>

I need to disable cache for this block for quote.so i use cacheable="false" in this layout.

The cache is disable only for this block in header section (or) full page?

Thanks..


texts: Two Magento apps with single Database and Base url

texts:
I just need a help from you people. I am trying to connect two Magento web applications with a single database. It was done successfully but the problem I am facing is with the base URL.

I have two Magento applications with single base URL. When I am trying to open both websites URLs it is redirecting to one URL because I have one Database with a single base URL. Can you people guide me on this issue?


texts: Magento 2.3.3: Logos in configuration not shown?

texts:
After upgrading from 2.2.3 to 2.3.3 the images in the configuration are not shown, instead, I get the image HTMl as text, see here: https://i.imgur.com/wlhOkXH.png

system.xml of the module: https://pastebin.com/qpzQECRm

How to fix that?


texts: There is no active transaction with customer registration during checkout

texts:
The problem started with a dialog / e-mail error showing up when new customers were trying to register an account at checkout.

I first started my troubleshooting by logging into authorize.net and found that customers continued to submit the order, it would come through multiple times, sometimes with a price and invoice number sometimes not.  I would receive the error message e-mail but no customer or order would exist in the back end.  I had to void those orders manually because they did not exist in magento.

I then went through a process of disabling extensions (going to modules and changing true to false) to troubleshoot the issue and this is what I've found knowing that none of my extensions seems to have an effect.

Guest Checkout is disabled.

Only occurs when a customer registers a new account at check out.  You can log in to an existing account or go to the register page and create a new account with no problem.
I have paradoxlabs Authorize.net CIM extension.  I disabled it and tested with Magentos Authorize.net extension and received the same result.  I tried checking out with PayPal and was not able to redirect to the paypal site.
I enabled PO as a payment method and that does work.
The URL I get stuck at is checkout/onepage/?register
Sometimes the order posts to authorize.net sometimes it doesn't.  Either way it never shows up in the backend.

I checked the exceptions log and found this. (removed full path for privacy)

2015-03-23T04:54:01+00:00 ERR (3):
exception 'PDOException' with message 'There is no active transaction' in /lib/Zend/Db/Adapter/Pdo/Abstract.php:322
Stack trace:
#0 /lib/Zend/Db/Adapter/Pdo/Abstract.php(322): PDO->rollBack()
#1 /lib/Zend/Db/Adapter/Abstract.php(524): Zend_Db_Adapter_Pdo_Abstract->_rollBack()
#2 /lib/Varien/Db/Adapter/Pdo/Mysql.php(258): Zend_Db_Adapter_Abstract->rollBack()
#3 /app/code/core/Mage/Core/Model/Resource/Abstract.php(124): Varien_Db_Adapter_Pdo_Mysql->rollback()
#4 /app/code/core/Mage/Core/Model/Resource/Transaction.php(92): Mage_Core_Model_Resource_Abstract->rollBack()
#5 /app/code/core/Mage/Core/Model/Resource/Transaction.php(166): Mage_Core_Model_Resource_Transaction->_rollbackTransaction()
#6 /app/code/core/Mage/Sales/Model/Service/Quote.php(189): Mage_Core_Model_Resource_Transaction->save()
#7 /app/code/core/Mage/Sales/Model/Service/Quote.php(249): Mage_Sales_Model_Service_Quote->submitOrder()
#8 /app/code/core/Mage/Checkout/Model/Type/Onepage.php(784): Mage_Sales_Model_Service_Quote->submitAll()
#9 /app/code/core/Mage/Checkout/controllers/OnepageController.php(579): Mage_Checkout_Model_Type_Onepage->saveOrder()
#10 /app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_OnepageController->saveOrderAction()
#11 /app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
#12 /app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#13 /app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#14 /app/Mage.php(684): Mage_Core_Model_App->run(Array)
#15 /index.php(87): Mage::run('', 'store')
#16 {main}

I seem to be stuck as I don't know what to do next.  I asked the company that made my theme to look at it and they said to ask Paradox, which I already did and they suggested it was an extension or other issue.


texts: Connect to MySQL with CLI but not Magento

texts:
I am getting the following error

SQLSTATE[HY000] [2003] Can't connect to MySQL server on '10.0.1.24' (13)

Trace:
#0 html/lib/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()......

I have confirmed the PDO is installed.

I can connect via the CLI

[magento@web2 etc]# mysql -uuser -p'MyBigPassword' -h10.0.1.24 magento_prod
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 27
Server version: 5.5.44-MariaDB MariaDB Server

Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [magento_prod]>


texts: Get Store IDs associated to a particular CMS Page

texts: Given I have a Page Object (Mage_Cms_Model_Page), how do I get its associated store id's? As an array is preferable.


texts: How to add each product items separatly to a shopping cart

texts:
Can some take an advice how to add each item to a shopping quote separately, even if add few items per one time?

If override method in a class \Magento\Quote\Model\Quote\Item, it works if add the one product per one time, I mean without using input and set 2 and more (in this case it adds as 2 products to a quote)

public function representProduct($product)
{
    $itemProduct = $this->getProduct();
    if (!$product || $itemProduct->getId() != $product->getId()) {
        return false;
    }

    /**
     * Check maybe product is planned to be a child of some quote item - in this case we limit search
     * only within same parent item
     */
    $stickWithinParent = $product->getStickWithinParent();
    if ($stickWithinParent) {
        if ($this->getParentItem() !== $stickWithinParent) {
            return false;
        }
    }

    // Check options
    $itemOptions = $this->getOptionsByCode();
    $productOptions = $product->getCustomOptions();

    if (!$this->compareOptions($itemOptions, $productOptions)) {
        return false;
    }
    if (!$this->compareOptions($productOptions, $itemOptions)) {
        return false;
    }
    // by default true
    return false;
}


texts: Cookie Problem - Magento does not remember the user

texts:
there are tons of articles about this subject, but it seems that none of them work for me.

I have two magento installations on my server:

domain.com
domain.com/test

On both installations I have the following settings:

I set "only use http" to "no", but still the issue exists. I tried to enter "domain.com/test" in the cookie domain section, but after I did this I was not able to login anymore.

In the database I have the following settings:

web/unsecure/base_url -> https://domain.com/test/
web/secure/base_url -> https://domain.com/test/

Does anybody know why the system will not remember the user?

Thanks.


texts: ajax response unresponsive due to jquery selector

texts:
there is a div with a class designation of:

<div class="box info-box">

I am getting a section of code using AJAX, how can I replace this part using a response and jquery's replacewith method?

jQuery('.box info-box').replaceWith(data.tooltip);

doesn't seem to work


texts: Unable to update custom column value of sales_order via Rest API

texts:
I want to trace records of all the completed orders which has been received from my Magento store to my ERP store through Rest API. I have created custom column through SQL query in sales_order so that I can get all those orders whose custom order value is set to 0 (default value).

I am using this API

index.php/rest/V1/orders?searchCriteria[filter_groups][0][filters][0][field]=custom_attribute&searchCriteria[filter_groups][0][filters][0][value]=1

to get all the records of matching custom column value which is working perfect. However I need an API through which I can update the custom column value to 1 once I receive that order.

Is there any API available through which I can able to update the custom column value by order id?


texts: How to setup static analyzers used in Magento's build pipeline?

texts: I'm a Magento code contributor who frequently encounters failing Static Test results in my Pull Requests on Github.  How do I integrate these static checks into my development environment so that I can check and fix these failures before I commit and push my changes?


texts: Show Layered Navigation inside the product listing toolbar

texts:
I am building a custom module and I need to show the Layered Navigation inside the product listing toolbar. Can you please help on this
here is my catalog_category_view.xml file

    <?xml version="1.0"?>

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

        <referenceContainer name="content">
            <block class="Magento\Catalog\Block\Product\ProductList\Toolbar" name="product_list_toolbar" template="George_CategoryNav::product/list/toolbar.phtml">

            </block>
        </referenceContainer>
        <move element="catalog.leftnav" destination="product_list_toolbar" before="-"/>

</page>

and here is my toolbar.phtml file

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

// @codingStandardsIgnoreFile

?>
<?php
/**
 * Product list toolbar
 *
 * @var $block \Magento\Catalog\Block\Product\ProductList\Toolbar
 */
use Magento\Catalog\Model\Product\ProductList\Toolbar;
use Magento\LayeredNavigation\Block\Navigation;
?>
<?php if ($block->getCollection()->getSize()): ?>
    <div class="toolbar toolbar-products" data-mage-init='<?= /* @escapeNotVerified */ $block->getWidgetOptionsJson() ?>'>

            <?php echo $this->getChildHtml('catalog.leftnav') ?>

        <?php if ($block->isExpanded()): ?>
            <?php include ($block->getTemplateFile('Magento_Catalog::product/list/toolbar/viewmode.phtml')) ?>
        <?php endif; ?>

        <?php include ($block->getTemplateFile('Magento_Catalog::product/list/toolbar/amount.phtml')) ?>

        <?= $block->getPagerHtml() ?>

        <?php include ($block->getTemplateFile('Magento_Catalog::product/list/toolbar/limiter.phtml')) ?>

        <?php if ($block->isExpanded()): ?>
            <?php include ($block->getTemplateFile('Magento_Catalog::product/list/toolbar/sorter.phtml')) ?>
        <?php endif; ?>

<?php endif ?>


texts: Magento 2 Version Update Dilemma (Cloned from Git Repo)

texts:
In my first Magento 2 project I followed an guide for installation which recommended in clone git repo to install.

Later only found this is disastrous!!! Obviously now I cannot simply use Composer to update my Magento, neither could I update it with git: the file system has been move places and when I tried to pull origin 2.1.8 I got hundreds of files listed as both added in git status which totally messed up my code.

I'm thinking installing a fresh Magento (with composer this time!), and then migrate the site over (from 2.1.0 to 2.1.8), is there an easy way to copy database so I can preserve previous history such as products, customers, orders, etc?

Why using git clone creates such problem?


texts: Wow Slider appears on all pages except one why?

texts:
View this "wowslider" works here: https://www.allbookcovers.com

1.) but once you goto this single category made in Magento Version 1.5 CE as a page for product it starts breaking and showing the actual code:

https://www.allbookcovers.com/new-products/ipads-covers

2.)
https://www.allbookcovers.com/catalogsearch/result/?q=TS727&x=0&y=0also when ever the search tool is used in upper left, it gives results of next page but wipes away the banner , why?

-


texts: how to change configurable product SKU programmatically in Magento 2

texts:
Change configurable product SKU programmatically into associated product and custom option are removed using this code.

$_product = $this->_objectManager->create('\Magento\Catalog\Model\Product')->loadByAttribute('sku', $old_sku);
$_product->setSku($new_sku)->save();


texts: Check product qty 0 or not code in core files

texts:
If I add to cart p1 product and if I set 0 qty of p1 product and refresh cart page it throws error message regarding out of stock message so my question is I want to find a code where product qty check in core files.

I also tried in app/code/core/Mage/CatalogInventory/Model/stock/Item.php file but I could not find. Anyone help me ?


texts: magento2 add credit memo for invoice with items

texts:
I am trying to add partial credit memo programatically but it is consuming whole quantity in first credit memo, How can I pass specific items to credit memo?

public function createCreditMemo ($entityId,$invId,$shipping,$subtotal,$grandtotal,$tax) {

        $post_data = json_decode(file_get_contents('php://input'), true);
    $itemsArray = array();

        foreach($post_data['items'] as $index => $details){
                 $quantity = $details['qty'];
         $order_item_id = $details['order_item_id'];
                 $itemsArray[$order_item_id]=$quantity;
            }

        $orderId = $entityId;
        $order = $this->_orderRepository->get($orderId);
        $shippingAmount = $shipping;
        $subTotal = $subtotal;
        $taxAmount = $tax;
        $grandTotal = $grandtotal;
        $invoiceId = $invId;

        $invoiceobj =  $this->invoice->load($invId);
        $creditmemo = $this->creditmemoFactory->createByInvoice($invoiceobj,$itemsArray);

        $creditmemo->setShippingAmount($shippingAmount);
        $creditmemo->setTaxAmount($taxAmount);
        $creditmemo->setBaseTaxAmount($taxAmount);
        $creditmemo->setSubtotal($subTotal);
        $creditmemo->setBaseSubtotal($subTotal);
        $creditmemo->setGrandTotal($grandTotal);
        $creditmemo->setBaseGrandTotal($grandTotal);

        $this->creditmemoService->refund($creditmemo);

       return $creditmemo->getId();

    }
}

I am passing item array still it is taking all the items of invoice.


texts: Page is hanging on selecting configurable product

texts:
I moved my Shop from Debian 8 to 9 with PHP7.
Now I have a problem with configurable products...when I select a Color.....I can only see the Ajax Loader Gif...and nothing is happening.
I have to reload the page.

regards


texts: Magento Nginx: cache first page request only (no session) for super speed

texts:
In an effort (and test) to make Magento fly I was playing with microcaching in Magento and came up with the following.

The idea is to: detect a first visit and return visit. A return visit may already have an item in the cart or some session params so we need the dynamic full (slow) Magento. But for first time (never before) visitors we could serve a cached almost static ready to send version?

Question: can we distinguish complete new vs. return visitors in Nginx? And how would we then serve a static file to the complete new visitors (frontpage + categories + cms + products)

General conf

fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=MAGENTO:100m inactive=60m;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
fastcgi_cache_use_stale error timeout invalid_header http_500;
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;

Server block

   # CACHE TEST
    set $skip_cache 0;

    # CACHE TEST
    if ($http_cookie ~* "frontend_cid|frontend|sid|adminhtml") {
     set $skip_cache 1;
    }

    # CACHE TEST
    if ($request_method = POST) {
     set $skip_cache 1;
    }

    # CACHE TEST
    if ($query_string != "") {
     set $skip_cache 1;
    }

    ## Execute PHP scripts
    location ~ \.php$ {
       include /etc/nginx/conf.d/headers.conf;
       add_header Strict-Transport-Security "max-age=31556926; includeSubDomains; preload";
       try_files $uri =404;
       fastcgi_split_path_info ^(.+\.php)(/.+)$;
       fastcgi_pass 127.0.0.1:9000;
       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
       fastcgi_param MAGE_RUN_CODE $storecode;
       fastcgi_param MAGE_RUN_TYPE store;
       include fastcgi_params;

       # CACHE TEST
       fastcgi_cache_bypass $skip_cache;
       fastcgi_no_cache $skip_cache;

       fastcgi_cache MAGENTO;
       fastcgi_cache_valid  60m;
    }


texts:
My module lives at app/code/local/Mymod/Pinterestimage.

etc/config.xml containts:

<?xml version="1.0"?>
<config>
    <modules>
        <Mymod_Pinterestimage>
            <version>0.2.0</version>
        </Mymod_Pinterestimage>
    </modules>
    <global>
        <!-- Create Pinterest image attribute using resources-->
        <resources>
            <pinterestimage_setup>
                <setup>
                    <module>Mymod_Pinterestimage</module>
                    <!-- <class>Mymod_Pinterestimage_Model_Resource_Eav_Mysql4_Setup</class>-->
                </setup>
                <connection>
                    <use>core_setup</use>
                </connection>
            </pinterestimage_setup>
        </resources>
        ...
    </global>
    ...
</config>

In app/code/local/Mymod/Pinterestimage/sql/pinterestimage_setup/install-020.php I have:

<?
echo 'Running This Upgrade: '.get_class($this)."\n <br /> \n";
die("Exit for now");
$installer = $this;

$installer->startSetup();
$this->addAttribute(
    'catalog_product',
    'pinterest_image',
    array (
        'group'             => 'Images',
        'type'              => 'varchar',
        'frontend'          => 'catalog/product_attribute_frontend_image',
        'label'             => 'Default Pinterest Image',
        'input'             => 'media_image',
        'class'             => '',
        'source'            => '',
        'global'            => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
        'visible'           => true,
        'required'          => false,
        'user_defined'      => false,
        'default'           => '',
        'searchable'        => false,
        'filterable'        => false,
        'comparable'        => false,
        'visible_on_front'  => false,
        'unique'            => false,
    )
);
$installer->endSetup();

In the database table core_resources I do not see a code column with the attribute Mymod_Pinterestimage


texts: Store Manager - Re-index during product import despite setting to false

texts: I am trying to use Store Manager to import changes for 1 attribute on 650 products. Even though the "Reindex product data" is un-checked, Store Manager is STILL trying to re-index after every product is updated.  Is there a global setting that can prevent this issue from occurring?  My Store Manager worked fine until today when my computer was reset to factory settings and all programs re-installed.


texts: hello, need to show Download app on mobile site

texts:
I have to download app on top bar when user is on mobile site(theme).
Just like Amazon,

See the image below.


texts:
I have an issue, recently I've been getting bots that subscribe to the newsletter on Magento site, which doesn't have any guest email subscription forms.

You could only sign up for the newsletter if you create an account, but those bot's don't create an account, rather simply sign up for the newsletter.

I can't seem to trace how they end up signing up. Are there any Direct links bots could punch into URL  that ultimately signs-up for the newsletter?
E.G.: newsletter/subscriber/new?random@email.com

I see some logs where bots get a response

POST /newsletter/subscriber/new/


texts: Notice: Trying to get property of non-object in system.log

texts:
I am getting System.log errors in below 2 lines :

if($result == "" || $result->Shipment->StatusType == 'NF') {

                    $res_error_type = "NF";
                    $res_error = "Incorrect Waybill number or No Information";

                    if($result->Shipment->StatusType) { // error in this line
                        $res_error_type = $result->Shipment->StatusType;
                    }

                    if($result->Shipment->Status) { // error in this line
                        $res_error = $result->Shipment->Status;
                    }

Edit : full error log :

017-09-25T07:57:25+00:00 DEBUG (7): cancel
2017-09-25T07:58:50+00:00 ERR (3): Notice: Trying to get property of non-object  in /app/code/community/Bluedart/Shipment/Block/Tracking/Popup.php on line 74
2017-09-25T07:58:50+00:00 ERR (3): Notice: Trying to get property of non-object  in app/code/community/Bluedart/Shipment/Block/Tracking/Popup.php on line 74
2017-09-25T07:58:50+00:00 ERR (3): Notice: Trying to get property of non-object  in app/code/community/Bluedart/Shipment/Block/Tracking/Popup.php on line 78
2017-09-25T07:58:50+00:00 ERR (3): Notice: Trying to get property of non-object  in /app/code/community/Bluedart/Shipment/Block/Tracking/Popup.php on line 78
2017-09-25T07:59:33+00:00 DEBUG (7): Array
(


texts: How to restart session once destroyed in Magento 2?

texts:
In one of my controller file I have destroyed customer session (Instance of Magento\Customer\Model\Session)and started it again due to some specific requirement.

public function execute()
{
    $customerId = $this->session->getCustomer()->getId(); // 4
    $this->session->destroy();
    $this->session->start();
    $this->session->setCid($customerId);
    return $this->pageFactory->create();
}

And in another controller file I am trying to get session value as given below:

public function execute()
{
    $customerId =  $this->session->getCid();
    var_dump($customerId);exit;
}

which gives NULL.
If I am not destroying customer session in first controller then I am able to get session value in second controller properly. What I am missing?

$this->session->destroy(); is also deleting session variables set through PHP's $_SESSION. For example if I add $_SESSION['cid'] = 4; after $this->session->destroy();, I am not able to get it through  echo $_SESSION['cid'];


texts: Ship button in order area loading broken page Magento 2.2.7

texts:
When I click 'ship' for an order the page reloads with just some form HTML with no head or scripts.

Testing so far hasn't shown any issues with other functions on the page. We can invoice, hold etc.

This is an old order (using for testing) but it replicates on all orders, even current ones. All orders tested have had different shipping methods.

Has anybody come across this before? Searching around is giving me absolutely nothing!

All plugins are up to date.