texts: Change the layout of the search results?

texts: Currently the search results page is in the 2coloums-left but I want to make it centred just to display the results, I tried editing the catalogsearch.xml of the theme file and the Settemplate tag, but no luck. Any ideas?


texts: After a migration of host, how could I block all old accesses?

texts:
I have an access to the admin.

I'm moving the site to another host and I would like to block all old accesses to the to the admin, to db and to all other functionalities.

For the admin, I need to understand if I'm an administrator (I don't believe it). How to remove all administrators and to upgrade my account to administrator?

For the db, changing the host I think others should need access to plesk (that now is only in my hands) to enter db. Isn't it?

What other kind of accesses would you block?


texts: Controller Function called twice in exact same time

texts:
This is very strange. I have a log of my custom controller called. On one occasion the action was called twice. The more strange thing is log time is exact same.

2019-08-14T05:16:26+00:00 DEBUG (7): makeBooking +++++++++++
2019-08-14T05:16:26+00:00 DEBUG (7): {"customerCode":
2019-08-14T05:16:26+00:00 DEBUG (7): makeBooking +++++++++++
2019-08-14T05:16:26+00:00 DEBUG (7): {"customerCode":

I can confirm this action was called by single user.
And the thing is, I cannot reproduce it. It has happened on 1 occasion and system allowed to create a shipment twice for an order.
Now, I have 2 shipments for a single order.
My action code:
/**
 * Book Shipment
 */
public function bookShipmentAction()
{
    $orderId  = (int) $this->getRequest()->getParam('order_id');
    $quoteId  = (int) $this->getRequest()->getParam('quote_id');
    $order = $this->_initOrder(); //it's right order object
    $shipment = $this->_initShipment(); //it's right shipment object

        if (!$order->canShip()) {
            $this->_getSession()->addError($this->__('Order # %s cannot be shipped.', $order->getIncrementId()));
            $this->_redirect('*/*/edit', array('order_id' => $orderId));
            return;
        }

    try {
        $bookingModel = Mage::getModel('my_module/booking');
        $booking = $bookingModel->bookShipment($order);
        //create magneto shipment
        $this->createMangentoOrder($shipment, $order, $booking, true);
        $this->_getSession()->addSuccess($this->__('The shipment has been booked.'));
    } catch (Mage_Core_Exception $e) {
        $this->_getSession()->addError($this->__($e->getMessage()));
    } catch (Exception $e) {
        $this->_getSession()->addError($this->__("Unable to book shipment for this order. ".$e->getMessage()));
    }

    $this->_redirect('*/*/edit', array('order_id' => $order->getId()));
}

protected function createMangentoOrder($shipment, $order, $booking, $sendMail = false)
{
    if(!$booking->getId()){
        return;
    }

    $processedItems = array();
    $qtys = array();
        foreach ($shipment->getAllItems() as $shipmentItem) {
            $shipQty = (int)$shipmentItem->getQty();
            if ($shipQty && !$shipmentItem->getOrderItem()->getIsVirtual()) {
                $qtys[$shipmentItem->getOrderItem()->getId()] = $shipQty;
            }
        }

    $mageShipment = Mage::getModel('sales/service_order', $order)->prepareShipment($qtys);
    /* @var $mageShipment Mage_Sales_Model_Order_Shipment */

    $track = Mage::getModel('sales/order_shipment_track');
    /* @var Mage_Sales_Model_Order_Shipment_Track */
    $track
        ->setCarrierCode('my_code')
        ->setTitle('My Title')
        ->setNumber($booking->getTrackingNumber()) //gives you tracking number
        ;
    $mageShipment->addTrack($track)->register();
    $mageShipment->getOrder()->setIsInProcess(true)->setCustomerNoteNotify(true);
    Mage::getModel('core/resource_transaction')
            ->addObject($mageShipment)
            ->addObject($mageShipment->getOrder())
            ->save();
    if ($sendMail) {
        $mageShipment->sendEmail()->setEmailSent(true)->save();
    }
}

It looks to me the action function called cuncurrently. How is that even possible?


texts: Add custom customer privacy checkbox in Onepage (billing.phtml)

texts:
How can i add 3 custom fields (checkbox) only in billing.phtml using a separate module?

I'm trying to add 3 checkbox into the onepage/billing.phtml page, without modifying the core of magento. I've developed a module in app/code/local with 3 files:
Model/Entity/Setup.php
etc/config.xml
sql/mymodulename_setup/mysql4-1.0.0.php.
These 3 checkboxes should be added to the other to create a new customer account in the db


texts: Unit Test for overwrite collection class in magento2

texts:
Suppose I overwrite 'Magento\Sales\Model\Resource\Order\Collection' to 'SR\RewriteSales\Model\Resource\Order\Collection', code looks like

public function addFieldToFilter($field, $condition = null)
    {
        // custom condition applied here

        return parent::addFieldToFilter($field, $condition);
    }

Now I need some test case for 'AddFieldToFilter' method.

I create a file inside SR\RewriteSales\Test\Unit\Model\Resource\Order\CollectionTest.php
code looks like

class CollectionTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var Collection|\PHPUnit_Framework_MockObject_MockObject
     */
    protected $collection;

    /**
     * @var \Magento\Framework\DB\Select|\PHPUnit_Framework_MockObject_MockObject
     */
    protected $select;

    protected function setUp()
    {
        $this->select = $this->getMockBuilder('Magento\Framework\DB\Select')
            ->disableOriginalConstructor()
            ->getMock();

        $connection = $this->getMockBuilder('Magento\Framework\DB\Adapter\Pdo\Mysql')
            ->disableOriginalConstructor()
            ->getMock();
        $connection->expects($this->any())
            ->method('select')
            ->will($this->returnValue($this->select));

        $resource = $this->getMockBuilder('Magento\Framework\Model\Resource\Db\AbstractDb')
            ->disableOriginalConstructor()
            ->setMethods(['__wakeup', 'getReadConnection'])
            ->getMockForAbstractClass();
        $resource->expects($this->any())
            ->method('getReadConnection')
            ->will($this->returnValue($connection));

        $objectManagerHelper = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
        $arguments = $objectManagerHelper->getConstructArguments(
            'SR\RewriteSales\Model\Resource\Order\Collection',
            ['resource' => $resource, 'connection' => $connection]
        );

        $this->collection = $this->getMockBuilder('SR\RewriteSales\Model\Resource\Order\Collection')
            ->setConstructorArgs($arguments)
            ->setMethods(['addFilter', '_translateCondition', 'getMainTable', '__wakeup'])
            ->getMock();
    }

    public function testAddFieldToFilter()
    {

    }
}

It's come following error-> "RuntimeException: ObjectManager isn't initialized".

Is that possible to create some test case for overwrite class?


texts: Unable to get cart item when FPC is enabled Magento 2.3.2

texts:
I'm trying to get all cart items in a custom block but unable to get all items, it's throwing an error:

  Fatal error: Uncaught Error: Call to a member function getAllItems()
  on null in

Block Code:

<?php

namespace Arunendra\Mixin\Block\Cart;

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

    protected $_session;
    protected $collectionFactory;

    public function __construct(
         \Magento\Framework\View\Element\Template\Context $context,
        \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $collectionFactory,
        \Magento\Checkout\Model\Session $session
    ) {
        $this->_session = $session;
        $this->collectionFactory = $collectionFactory;
        parent::__construct($context);

    }

    public function getProductIds()
    {
         $ids = $this->getData('_cart_product_ids');
        if ($ids === null) {
            $ids = [];
            foreach ($this->getQuote()->getAllItems() as $item) {
                $product = $item->getProduct();
                if ($product) {
                    $ids[] = $product->getId();
                }
            }
            $this->setData('_cart_product_ids', $ids);
        }
        return $ids;
    }
    public function getQuote()
    {
        return $this->_session->getQuote();
    }

}


texts: How to save order comment programmatically in magento2?

texts:
1)I'm creating custom order comment text box in sales->order->create new order .

2) Created order_comment column in sales_ order grid/quote.

3) I need to save order comment text box value into db.How to save comment in sales_order grid/quote table?

If anyone knows please explain me?


texts:
I've installed Magento 2.2 in local computer on Windows and on remote server on Centos/Plesk.

In both installation return-path is set to NO.

On windows sendmail set return-path as sender email.

On Centos/Plesk sendmail set return-path as domainuser@domain.com.

Did I miss some configuratione on remote installation?


texts:
The Magento Debug is generating lot of errors. See below the part teh tail part of the log.
[2021-04-21 05:59:50] main.DEBUG: cache_invalidate: {"method":"GET","url":"http://xxxxx.com/rugs/style/shaggy-rugs?available_sizes=67&category_type=95&colour=108","invalidateInfo":{"identifier":"LOCKED_RECORD_INFO_BLOCK_971fce9582108529e395464847bf166c03dc5c61-18362"}} [] [2021-04-21 05:59:51] main.DEBUG: cache_invalidate: {"method":"GET","url":"https://xxxxx.com/","invalidateInfo":{"identifier":"LOCKED_RECORD_INFO_BLOCK_5ac939051cec3f7a41961cc9e3e0d56d9fcbc759"}} [] [2021-04-21 05:59:51] main.DEBUG: cache_invalidate: {"method":"GET","url":"https://xxxxx.com/","invalidateInfo":{"identifier":"LOCKED_RECORD_INFO_BLOCK_1f08024b04490a7c3c25f0c3a6ba85369a147f44"}} [] [2021-04-21 05:59:51] main.DEBUG: cache_invalidate: {"method":"GET","url":"http://xxxxx.com/rugs/style/shaggy-rugs?available_sizes=67&category_type=95&colour=108","invalidateInfo":{"identifier":"LOCKED_RECORD_INFO_BLOCK_971fce9582108529e395464847bf166c03dc5c61-18035"}} [] [2021-04-21 05:59:51] main.DEBUG: cache_invalidate: {"method":"GET","url":"https://xxxxx.com/","invalidateInfo":{"identifier":"LOCKED_RECORD_INFO_BLOCK_ebed4103d167731dc3e2538ac18b5bbf22b28883"}} [] [2021-04-21 05:59:52] main.DEBUG: cache_invalidate: {"method":"GET","url":"http://xxxxx.com/rugs/style/shaggy-rugs?available_sizes=67&category_type=95&colour=108","invalidateInfo":{"identifier":"LOCKED_RECORD_INFO_BLOCK_971fce9582108529e395464847bf166c03dc5c61-17966"}} []
I am not able to point out this problem.
Please could you help us with the above error.


texts: Magento:2 How to save unique values for my custom admin module

texts:
I am making a custom admin module which store custom data. I want to save unique values in table field.

How I can check unique column value before save data, show error message if values already exist.

Which is the best way as per Magento standard?

Thank


texts:
We have 16 store views inside magento2. I want to know is there any performance issue with lot of stores?
Our website is slow on product page and checkout page.


texts: How to get product link in magento admin product edit?

texts: Is it possible to get product link in admin product edit section ?


texts:
I am new magento and I want to override my "Data.php" file which is located at /app/code/core/Mage/Directory/Helper/Data.php

I want to remove the unwanted states from DropDownList.

Below is my Function in Data.php file

protected function _getRegions($storeId)
    {
        $countryIds = array();

        $countryCollection = $this->getCountryCollection()->loadByStore($storeId);
        foreach ($countryCollection as $country) {
            $countryIds[] = $country->getCountryId();
        }

        /** @var $regionModel Mage_Directory_Model_Region */
        $regionModel = $this->_factory->getModel('directory/region');
        /** @var $collection Mage_Directory_Model_Resource_Region_Collection */
        $collection = $regionModel->getResourceCollection()
            ->addCountryFilter($countryIds)
            ->load();

        $regions = array(
            'config' => array(
                'show_all_regions' => $this->getShowNonRequiredState(),
                'regions_required' => $this->getCountriesWithStatesRequired()
            )
        );

        foreach ($collection as $region) {
            if (!$region->getRegionId()) {
                continue;
            }

            //EOF Custom Logic Here
            $regions[$region->getCountryId()][$region->getRegionId()] = array(
                'code' => $region->getCode(),
                'name' => $this->__($region->getName())
            );
        }
        return $regions;
    }

In the above function I want to add code for removing the unwanted states from dropdown. I have added the code for this but when I am adding in the above function I am not getting any effect.

protected function _getRegions($storeId)
    {
        $countryIds = array();

        $countryCollection = $this->getCountryCollection()->loadByStore($storeId);
        foreach ($countryCollection as $country) {
            $countryIds[] = $country->getCountryId();
        }

        /** @var $regionModel Mage_Directory_Model_Region */
        $regionModel = $this->_factory->getModel('directory/region');
        /** @var $collection Mage_Directory_Model_Resource_Region_Collection */
        $collection = $regionModel->getResourceCollection()
            ->addCountryFilter($countryIds)
            ->load();

        $regions = array(
            'config' => array(
                'show_all_regions' => $this->getShowNonRequiredState(),
                'regions_required' => $this->getCountriesWithStatesRequired()
            )
        );
        $excludeRegions = array('AE','AA');
        foreach ($collection as $region) {
            if (!$region->getRegionId()) {
                continue;
            }

             //BOF Custom Logic Here
            ***$regionCode = $region->getCode();
            $this->_select->from(array('region'=>$this->_regionTable),
            array('region_id'=>'region_id', 'country_id'=>'country_id', 'code'=>'code', 'default_name'=>'default_name')
            )->where('code NOT IN (?)', $exclude_regions);***

            //EOF Custom Logic Here
            $regions[$region->getCountryId()][$region->getRegionId()] = array(
                'code' => $region->getCode(),
                'name' => $this->__($region->getName())
            );
        }
        return $regions;
    }

Even the whole Data.php file along with the above change i kept in local directory but it didn't work.


texts: How to get applied coupon code in observer Magento 2?

texts:
I want to add a product to cart when a coupon is applied. I created an observer on event controller_action_predispatch_checkout_cart_couponPost. But I don't get the applied coupon code in observer.

Can anyone tell me how to get it? Any help will be greatly appreciated..


texts:
Is there any complete list of events in Magento 2?
I'm looking for something like Magento Events Cheat Sheet (1.9)


texts: Magento "display price including tax" returning the exclusive of tax price

texts:
I'm getting strange behaviour in my catalog and product view page with regards to the product price that is being displayed.

I have set up the tax rules to display all values in the configuration as "including tax" and for the most part this is all calculated properly. In the checkout page the product prices in the table are correct, and the price including/excluding tax in the totals table is correct as well. The price entered for the product has been entered as inclusive of tax.

I've also just noticed that a logged-out user sees ex-TAX and my logged in user is seeing tax inclusive prices. 0 NOT LOGGED IN is part of the Retail customer group though, which is in the one and only tax rule that I have applied.


texts: How to remove custom attribute in product list backend

texts:
I added custom tab in product detail page with new attribute. New attribute show in product list backend.

I want to disable new attribute in product list. How can i do?


texts: Restrict shipping methods to certain products

texts: Most of my business is books, so usps media mail is my main shipping method. I recently started selling other products as well, is there a way for magento to only display usps media mail for orders that are books only?


texts:
I have a custom module installed via composer and the path is vendor/company/module/src/registration.php.

I want to override some of these files like  vendor/company/module/src/view/template/frontend/main.phtml but no path I tried worked:

app/code/Company/Module/src/view/template/frontend/main.phtml
app/code/Company/Module/view/template/frontend/main.phtml
app/design/frontend/package/theme/Company_Module/src/view/template/frontend/main.phtml
app/design/frontend/package/theme/Company_Module/view/template/frontend/main.phtml

I hope there is an easy way to do it and you don't have to create a separate module and extend.


texts: Magento 1.9 Get only default items from options of a bundle product

texts:
I have a bundle product that have different options, and each options have different items. How can I get only a list of default items and it's Default Qty of those options, programmatically.

See the screen shot, I only want to get Sku 020524 and Sku 020592


texts:
I have Magento 1.6.0.0 and I use Paypal Express Checkout. The issue is that invoice emails are not automatically sent. It says at the invoice details page "the invoice email is not sent”.

Can someone tell me whats the issue here?

I looked at the IPN file at “\app\code\core\Mage\Paypal\Model\Ipn.php” and in the function _registerPaymentCapture() is generating ‘NULL’ at the line

$invoice = $payment->getCreatedInvoice()

Because of this, I cant do the regular hack recommended everywhere:

@$invoice->sendEmail();


texts: Magento 2 combine two functionality s using a single mixin js file?

texts:
I would like to override Magento_Swatches/js/swatch-renderer.js file using mixins concept.

I would like to club two functionalities in a single file. here is the code I have written please Note 2nd mixin functionality currently working but the first mixin code is not working. But How do we combine two functionalities in a single mixin file?

Could you please correct me what is wrong here.

requirejs-config.js

var config = {
   config: {
        mixins: {
            'Magento_Swatches/js/swatch-renderer': {
             'Kensium_ConfigurableSku/js/model/configurable_swatch_pricerange': true
            },
            'Magento_Swatches/js/swatch-renderer': {
             'Kensium_ConfigurableSku/js/model/configurable_swatch_pricerange2': true
            }

        }
    }
};

configurable_swatch_pricerange.js

define(['jquery'], function ($) {
    'use strict';
    return function (configurable) {
        $.widget('mage.SwatchRenderer', $['mage']['SwatchRenderer'], {
        _init: function () {
            if (_.isEmpty(this.options.jsonConfig.images)) {
                this.options.useAjax = true;
                this._debouncedLoadProductMedia = _.debounce(this._LoadProductMedia.bind(this), 500);
            }
            if (this.options.jsonConfig !== '' && this.options.jsonSwatchConfig !== '') {
                this.options.jsonConfig.mappedAttributes = _.clone(this.options.jsonConfig.attributes);
                this._sortAttributes();
                this._RenderControls();
                this._setPreSelectedGallery();
                $(this.element).trigger('swatch.initialized');
            } else {
                console.log('SwatchRenderer: No input data received');
            }
            this.options.tierPriceTemplate = $(this.options.tierPriceTemplateSelector).html();
           //custom code added here
           $('div.product-info-main .product-info-price .price-container .price-label').html('');
           $('div.product-info-main .product-info-price span .price').html(this.options.jsonConfig.final_price_range);
        }
        });
        return $['mage']['SwatchRenderer'];
    };

});

configurable_swatch_pricerange2.js

define([
    'jquery',
    'mage/utils/wrapper'
], function ($, wrapper) {
 'use strict';
    return function(targetModule) {
        var updatePrice = targetModule.prototype._UpdatePrice;
        var updatePriceWrapper = wrapper.wrap(updatePrice, function(original) {
            var result = original();
            var allSelected = true;
            for(var i = 0; i < this.options.jsonConfig.attributes.length;i++) {
                if (!$('div.product-info-main .product-options-wrapper .swatch-attribute.' + this.options.jsonConfig.attributes[i].code).attr('option-selected')){
                 allSelected = false;
                }
            }
            if (allSelected) {
                console.log("All swatch options selected");
            }else {
                console.log("Only one option selected");
                $('div.product-info-main .product-info-price span .price').html(this.options.jsonConfig.final_price_range);
            }
            return result;
        });
        targetModule.prototype._UpdatePrice = updatePriceWrapper;
        return targetModule;
    };
});


texts: Difference between magento 1 indexing and magento 2 indexing

texts: I would like to know what is a difference between Magento 1 indexing and Magento 2 indexing. I heard that Magento 2 indexing is faster than Magento 1 indexing. Anyone explain that what indexing features or architecture make fast in Magento 2?


texts: Magento 2 customer data migration & volume check failed?

texts:
I would like to migrate only customers data using magento2 data migration tool.
Can anyone suggest how to resolve the below error when migrating data

[2019-08-06 12:20:19][INFO][mode: data][stage: volume check][step: Map Step]: started
100% [============================] Remaining Time: < 1 sec
[2019-08-06 12:20:23][WARNING]: Mismatch of entities in the document: customer_address_entity Source: 15 Destination: 0
[2019-08-06 12:20:23][WARNING]: Mismatch of entities in the document: customer_address_entity_int Source: 15 Destination: 0
[2019-08-06 12:20:23][WARNING]: Mismatch of entities in the document: customer_address_entity_text Source: 15 Destination: 0
[2019-08-06 12:20:23][WARNING]: Mismatch of entities in the document: customer_address_entity_varchar Source: 106 Destination: 0
[2019-08-06 12:20:23][WARNING]: Mismatch of entities in the document: customer_entity Source: 26 Destination: 0
[2019-08-06 12:20:23][WARNING]: Mismatch of entities in the document: customer_entity_datetime Source: 1 Destination: 0
[2019-08-06 12:20:23][WARNING]: Mismatch of entities in the document: customer_entity_int Source: 74 Destination: 0
[2019-08-06 12:20:23][WARNING]: Mismatch of entities in the document: customer_entity_varchar Source: 141 Destination: 0
[2019-08-06 12:20:23][WARNING]: Volume Check failed

Map step is responsible for mapping most of the data is either copied (or) transformed from M1 to M2 like a catalog, customer, email templates, catalog media gallery data ..etc.

If enabled map steps customers data not migrated properly & if disabled email templates are not migrated properly.

 <step title="Map Step">
        <integrity>Migration\Step\Map\Integrity</integrity>
        <data>Migration\Step\Map\Data</data>
        <volume>Migration\Step\Map\Volume</volume>
    </step>


texts: How to save address type of user as comment in the order

texts:
I have a select in the checkout which contains the user's address type (residential or business) and I would need to save the same as a comment in the request, however I do not know how to proceed to get the result.

Select Code:

<select class="required-entry" id="comments" name="comments" title="<?php echo $this->__('Type of address') ?>" class="validate-select onestep required-entry">
   <option>Select</option>
       <option value="Residential">Residential</option>
       <option value="Commercial">Commercial</option>
</select>

I've already saved a field as comment in the request, which would be the reference points from the code below:

Reference field input code:

<?php echo $this->__('Referência: ') ?>

   <input class="input-text required-entry" id="comments" name="comments" title="<?php echo $this->__('Reference point') ?>" />

Code in Observer.php of the magento checkout module:

 if (!empty($oscOrderData['comments'])) {

        $order = $observer->getEvent()->getOrder();
        /* @var $order Mage_Sales_Model_Order */

        $order->addStatusHistoryComment('Consultor do atendimento: ' . $oscOrderData['comments']);
        $order->save();
    }

Note: I try to use the same logic, putting the name and id of the select as comments, but when the request is finalized, one overwrites the other and duplicating this code in Observer.php and assigning a new name and id, the same thing happens, one overrides the other.

Would it not be possible, for example, to concatenate the two so that they may be saved together?


texts:
I got this error when tring to run this command :

composer update magento/product-community-edition:2.2.6 --with-dependencies

  [Composer\Downloader\TransportException]
  Invalid credentials for
  'https://repo.magento.com/archives/magento/module-store/magento-module-store-100.2.4.0.zip',
  aborting.

{    "http-basic": {
       "repo.magento.com": {
          "username": "09ec672d88a59a13106aa5f0c0bf9c76",
          "password": "406bd6f5f7e785ae1e61b779e2a4e3a3"
       }
 }
}

So can i ask alternative solution download the latest version and just replace vendor ?


texts: How to get product names by attribute value?

texts:
I have custom dropdown attribute with yes and no values.
I want to get only those product names which have attribute value yes.
I am trying to avoid using object manager directly, so I need to accomplish this using dependencies.
Any ideas?


texts: Products Delete in User Level in magento

texts:
I am using magento 1.9.2.3 version.

Is it possible in magento we make a editor user and assign him role to manage the product catalog. editor user can only add and edit the products not delete the products only admin can delete, add, edit the products.

thanks


texts: Changed Secure and Unsecure to HTTPS - Google Webmaster Tools now showing me Soft 404's

texts:
We wanted our entire website to be SSL secure so we changed secure and unsecure settings to HTTPS.  That works fine.

Google webmaster tools is now seeing some soft 404's that I'd like to fix.

But our web server rewrites that go from http://mainsite.com/catalog/category/view/id/74 to http://mainsite.com/CATEGORYNAME/INTERESTINGPRODUCTNAME.html are now getting in the way of writing redirects from the previously unsecured pages to the new secured pages.

GWT is detecting links that go to the previously unsecured  (which now just redirects to my secured homepage) and I need them to redirect to the secured  .

Did I set up my site's HTTPS secured settings incorrectly or is there a better way to set up soft 404 redirects?


texts:
I am working on an existing Magento 1.9 project.

Here is the scenario

In admin panel i have set the product price to 118, now in front end it showing the price to 100 + 18% tax, same in the checkout cart.

I just want to show 118 without any tax, how can i do that. Any guidance or pointing in direction will be a great help, this is my first php work..

Update to question
Now i have update all tax rate to 0, but it is still reducing the prices as mentioned above, so i look at the My SQL table Sales_flate_quote, and it shows the price in column name subtotal-->495.76, base_subtotal--> 585, the price i set in magento is 585. i am still finding the possible cause.


texts: search result action methods in layout xml

texts:
a question in two parts:
Firstly, for my own understanding, where are the setSortBy and setDefaultDirection methods for the search result blocks?  These are all available to set in the layout xml  (e.g. catalogsearch.xml)  but I am unable to locate the actual methods inside any of the search blocks like I can with the setListOrders() method.  Are these just examples of the magic methods approach to these set______ function calls?  If so where are these properties stemming from?

Secondly,  how does one set the sortBy to sort with two fields?  I am looking to sort by product type  "Grouped" then "Simple"  and then by another parameter - in my case manufacturer.

<reference name="search_result_list">
    <action method="setDefaultDirection"><param>asc</param></action>
    <action method="setSortBy"><param>manufacturer</param></action>
</reference>

Thanks

Jon


texts: Automatically generate invoice pdf and save to server when invoice is created

texts:
Hoping someone can point me in the right direction.

I'd like for Magento 2 to automatically create the invoice PDF and save it somewhere on the server when an invoice is generated/created.

Is this possible?

Magento 2.2.7

Thanks


texts: Unable to create user roles Class 'Mage_Notificationmanager_Helper_Data' not found

texts:
I have a weird problem when trying to create user roles. It gives me the following error:

Fatal error: Class 'Mage_Notificationmanager_Helper_Data' not found in /public/app/Mage.php on line 547

I don't see a module called notificationmanager. All I can find is a notificationmanager module from wyomind, but when I turn this off the error stays the same.

This is on line 547 in Mage.php:

public static function helper($name)
    {
        $registryKey = '_helper/' . $name;
        if (!self::registry($registryKey)) {
            $helperClass = self::getConfig()->getHelperClassName($name);
            self::register($registryKey, new $helperClass);
        }
        return self::registry($registryKey);
    }

The config file of Wyomind:

<?xml version="1.0"?>
<!--
/**
 * @category   Wyomind
 * @package    Wyomind_Notificationmanager
 * @license    http://Wyomind.com
 */
 -->
<config>
    <modules>
        <Wyomind_Notificationmanager>
            <version>2.1.0</version>
        </Wyomind_Notificationmanager>
    </modules>
    <default>
        <notificationmanager>
            <notificationmanager>
                <version>2.1.0</version>
                <action_required>1</action_required>
            </notificationmanager>
        </notificationmanager>
    </default>
    <frontend>
        <routers>
            <notificationmanager>
                <use>standard</use>
                <args>
                    <module>Wyomind_Notificationmanager</module>
                    <frontName>notificationmanager</frontName>
                </args>
            </notificationmanager>
        </routers>
    </frontend>
    <global>
        <resources>
            <notificationmanager_setup>
                <setup>
                    <module>Wyomind_Notificationmanager</module>
                    <class>Wyomind_Notificationmanager_Model_Resource_Setup</class>
                </setup>
                <connection>
                    <use>core_setup</use>
                </connection>
            </notificationmanager_setup>
            <notificationmanager_write>
                <connection>
                    <use>core_write</use>
                </connection>
            </notificationmanager_write>
            <notificationmanager_read>
                <connection>
                    <use>core_read</use>
                </connection>
            </notificationmanager_read>
        </resources>
        <models>
            <notificationmanager>
                <class>Wyomind_Notificationmanager_Model</class>
            </notificationmanager>
        </models>
        <events>
            <admin_session_user_login_success>
                <observers>
                    <wyomind_notificationmanager_observer>
                        <type>singleton</type>
                        <class>notificationmanager/observer</class>
                        <method>observe</method>
                    </wyomind_notificationmanager_observer>
                </observers>
            </admin_session_user_login_success>
        </events>
    </global>
</config>


texts: How to add fixed price to subtotal of product cart in Magento?

texts:
I want to add fixed price to product subtotal.

Example:

If product price = $10, qty = 3 and subtotal = $30.

Now I want to add another $20 to subtotal as setup free.

I tried using checkout_cart_product_add_after and checkout_cart_update_items_after  observers.

$item->setCustomPrice($price);
$item->setOriginalCustomPrice($price);
$item->getProduct()->setIsSuperMode(true);

but it modifying product  price also. I haven't idea to do that.


texts: how can I save UPS and UPS_XML shipping rates xml request & response?

texts:
How can I save UPS and UPS_XML shipping rates xml request & response ?

Note: save as xml format.


texts: Change Lifetime Sales Statistics in backend

texts: I'm in a serious need of help as I need to alter the lifetime sales figure on my store's backend. It's for taxation purpose and I'm clueless about how I can reduce the digits mentioned in the stats. Please help me.


texts: Magento 2 showing category in homepage with products using enable/disable attributes

texts:
How to get the all custom category on homepage with products.

I want to create these types, Please check screens-short:- https://prnt.sc/r5b2q5

Showing this category:-

Above category showing this position:-

I want to custom getting all categories above the top seller products.
and I want to the category showing homepage enable/disable attributes

  category attributes are yes so category showing on the homepage with products.

Please help me

Thanks.


texts: How to not page cache a route after a forward('defaultNoRoute')?

texts:
I use a module which create a route with a non cacheable block in his layout. The page is not cached, like described in http://devdocs.magento.com/guides/v2.1/extension-dev-guide/cache/page-caching/public-content.html

But on some conditions the module made a forward('defaultNoRoute'), then the cms 404 page layout is loaded and the page cached, then every next request gets the 404 cached page !!

try to add this before the forward

$page = $this->pageFactory->create();
//We are using HTTP headers to control various page caches (varnish, fastly, built-in php cache)
$page->setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0', true);

but it load the entire layout before forward, it can cause some troubles, i don't find it very clean ...

Is there any other suggestion to avoid page cache 404 forward ?


texts:
I have a similar problem. My compiler was turned on and I did the installation. Now, getting error 500 and log file shows this error

  [21-Sep-2016 01:25:37 UTC] PHP Fatal error: Class
  'Aschroder_SMTPPro_Model_Mysql4_Setup' not found in
  /home/strateg2/public_html/picworks.in/includes/src/Mage_Core_Model_Resource_Setup.php
  on line 234

I'm unable to log in to admin panel. How to resolve this issue.


texts:
We've just switched from Woocommerce to the latest Magento2.1 and we are having problems with payments and refunds. There is no online refund option for credit memo, just offline refund.
We are integrated with Braintree. When trying to do partial refund from Braintree panel, there is no such option either. Whole transaction must be voided.

Thanks


texts: How to upgrade Magento-CE-2.2.10 to Magento-CE-2.3.3 using Composer?

texts: I have magento 2.2.10 CE. I want to upgrade 2.2.10 to 2.3.3 CE with commands only. Does anyone know how to upgrade it with commands? Thanks in advance.


texts: How to set category Is Anchor default to yes for all categories

texts:
I am trying to set category Is Anchor default to yes  for all categories
I tried these database queries

UPDATE catalog_category_entity_int set value = 1 where attribute_id = 51;

query run successfully but no effect in categories

try this

UPDATE `catalog_category_int` set value = 1 where attribute_id = 51 and parent_id <> 0

return error

error:#1146 - Table 'magento1.catalog_category_int' doesn't exist

and try with this
create new file in magento root directory with this code

<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');

// Load Up Magento Core
define('MAGENTO', realpath(''));

require_once(MAGENTO . '/app/Mage.php');

$app = Mage::app();

$categories = Mage::getModel('catalog/category')
 ->getCollection()
 ->addAttributeToSelect('*')
 ->addAttributeToFilter('is_anchor', 0)
 ->addAttributeToFilter('entity_id', array("gt" => 1))
 ->setOrder('entity_id')
 ;

foreach($categories as $category) {
 echo $category->getId() . "\t" . $category->getName() . "\n";
 $category->setIsAnchor(1);
 $category->save();
}

but no result
Thanks in advance for help


texts: Magento 2 How to create a dynamically populated select field in admin UI component form?

texts:
Is there a way to populate a select dropdown field with the values of what is selected in another multiselect dropdown field on the same page and fieldset? This is in regards to the ui component form in adminhtml.

Essentially this is what I require: In an admin UI component form, say product create form or customer create form, I want one multiselect dropdown field to have for example all countries in the world. I also want a single select dropdown field (normal dropdown), whose values are populated from the countries I selected from the previous fields. So if I select only five countries in the first multiselect dropdown, I want only those five to be the options of the second select dropdown.


texts: How can I replace the final price with a string instead of a number?

texts:
I have some products where the company is still trying to figure out the price. Those products are currently set to 0.
I was the words "Call for pricing" to show up if a price is 0.
I wrote a plugin for afterGetPrice which looks like this
<?php

namespace Company\companyplugins\Plugins;

use \Magento\Catalog\Model\Product;

class CallIfZero
{
    /**
     * @param Product $product
     * @param $finalPrice
     * @return string
     */
    public function afterGetPrice(Product $product, $finalPrice)
    {
        if ($finalPrice === '0.000000' || $finalPrice === 0) {
            return $finalPrice = "Please call for pricing";
        } else {
            return $finalPrice;
        }
    }
}

The result is still $0.00
If I try to do something like return $finalPrice + 50; the price returns as $50.
How can I get the final price to be a string instead of $0.00?
Thanks


texts: Magento Multi Store with multiple domains

texts:
I'm having a major issue here getting the multi store function to work with Magento 2. Currently everything seems set up right but the 2nd domain is redirecting straight to the main store view instead of the one set up for it.

I've been on with our hosts tech support and they can't see the issue either.

So the original website santa.com has
Web Site has:

name: main website
store code: base
Default store: Santa

Store has:
Default store view: Santa

Store view has:
Store: Main Website Store
Name: Santa
Code: default

The 2nd site has

Website:
Name: Rudolph
code: rudolph
Default Store: Rudolph

Store has:
Name: Rudolph
Default Store View: Rudolph

Store view:
Store: Rudolph
Name: Rudolph
Code: Rudolph

Under Stores configuration for the Rudolph

Base URL: http://rudolph.com/
Base Link URL is default {{unsecure_base_url}}
Static view and Media are both blank and use default checked

Secure base URL https://rudolph.com/
Base Link URL is default {{secure_base_url}}
Static view and Media are both blank and use default checked

Default Pages
Default Web URL cms (use default is checked)
CMS Homepage is the Rudolph page I created

Then I 301'ed rudolph.com to Santa.com

Once I did that I moved on to the index.php and .htaccess. I've tried several different configurations here but none give the right result. Currently the .htaccess has these changes:

############################################
## enable rewrites

Options +FollowSymLinks
RewriteEngine on
SetEnvIf Host .*fountains.ie.* MAGE_RUN_CODE=waterfeatures
SetEnvIf Host .*fountains.ie.* MAGE_RUN_TYPE=website

############################################
## you can put here your magento root folder
## path relative to web root

#RewriteBase /magento/
RewriteCond %{HTTP_HOST} ^(.*)example\.com
RewriteRule .* – [E=MAGE_RUN_CODE:rudolph.santa.com]
RewriteCond %{HTTP_HOST} ^(.*)example\.com
RewriteRule .* – [E=MAGE_RUN_TYPE:website]

And the index.php is

try {
require __DIR__ . '/app/bootstrap.php';
} catch (\Exception $e) {
echo <<getMessage()}

HTML;
exit(1);
}

require __DIR__ . '/app/bootstrap.php';
$params = $_SERVER;
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = 'rudolph';
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'website';
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params);
/** @var \Magento\Framework\App\Http $app */
$app = $bootstrap->createApplication('Magento\Framework\App\Http');
$bootstrap->run($app);

This is on Plesk at the moment and most frustratingly Ive got this to work on a test installation through cPanel with a different host.

I'm possibly missing something stupid obvious here, but any and all help would be GREATLY appreciated.

Thanks!


texts: Progress block on one page checkout - JS Events

texts:
I am trying to modify behaviour of JavaScript handling progress block(right column) on Magento one page checkout.

There is an 'onclick' event attached directy to 'a' tag

Change

I would like to add some code to onclick but can't find the checkout object with 'changeSection' method anywhere. In opcheckout.js there's a Checkout obj. - so it's not the same one.

Do you know, by any chance, how to find this object and method?


texts: Failed To Load Component, Checkout Page (Console Error)

texts:
I upgraded Magento from 2.2.1 to 2.3.2, after that when i add any product to cart, on cart page i got these console errors:

and when i proceed to Checkout i get more error like these, also i can't see any option or fields like in below image:

Checkout Page

Console Errors

UPDATED IMAGE


texts: Magento 2: Override Price of shipping if customer is logged in?

texts:
How would I override the price of shipping if a customer is logged in?

  For example, Flat rate shipping for guest checkout is $4.99 but if you are logged in you can get it for $2.99.

I do no understand right now how the KnockoutJS is pulling the price in for the shipping method.


texts:
I written custom module to upload bulk import of products with error report.
Here is the code I am using to move CSV file to particular location.
I am getting error always saying that

  "Uploaded file doesn't exist.File not moved"

My code as follows. Please correct me if I am wrong:

 $file = $this->getRequest()->getFiles('product_custom');
        //print_r($file);exit;
        $file_name = $file["name"];
        $ext = pathinfo($file_name, PATHINFO_EXTENSION);
          $org_target_path = $this->_dir->getPath('pub')."/uploads/".$vendorId."/original/";
         if (!is_dir($org_target_path)) { mkdir($org_target_path , 0777, true); }

            $base_filename =  pathinfo($file_name, PATHINFO_FILENAME);

            $ext = pathinfo($file_name, PATHINFO_EXTENSION); // get the extension of the file
            //$org_newname = $base_filename."_original.".$ext;
            $org_target = $org_target_path.$file_name;

          //  $newname="./videos/".$video_name;
            $orig = isset($_FILES['product_custom']) && isset($_FILES['product_custom']['tmp_name']) ? $_FILES['product_custom']['tmp_name'] : '';
            if (empty($orig)) {
              echo "Uploaded file doesn't exist.";
            }
            $copied = move_uploaded_file($orig, $org_target);
            // Optional
            if ($copied) {
              echo "File moved.";
            }
            else {
              echo "File not moved.";
            }


texts: Why the edit hyperlink in action column is not displaying often in custom admin grid?

texts:
That edit option in action column is working fine but it is not showing often. Please help me.

Action column code:

<actionsColumn name="actions" class="AdminGrid\Grid\Ui\Component\Listing\Grid\Column\Action">
       <argument name="data" xsi:type="array">
           <item name="config" xsi:type="array">
               <item name="resizeEnabled" xsi:type="boolean">false</item>
               <item name="resizeDefaultWidth" xsi:type="string">107</item>
               <item name="indexField" xsi:type="string">id</item>
           </item>
       </argument>
   </actionsColumn>


texts: Phrases with Magento_Quote exceptions are not being translated

texts:
I can't get translations for module Magento_Quotes at frontend:

I try to check invalid coupon code and got untranslated message.

I try to use translates at next locations, but no one are not been translated:

Translates exists for the theme (and others works correctly)
Translates exists for the module Magento_Quotes
Translates added to module's csv file Magento_Quotes

So, if i try the valid coupon code - phrases are translated correctly, but Magneto use Magento_SalesRule module for this action.

In debug I determinate that Magento_Quotes throw Exception for invalid coupon codes...


texts: Set filter to layered navigation programmatically

texts:
Using below code i'm getting list of filterable attributes

$layer = Mage::getModel("catalog/layer");
$attributes = $layer->getFilterableAttributes();

I can't able to set filters and get it's sub filters. example i have below 2 filterable attributes,

Size
 28 (1)
 30 (2)

Color
 Green (2)
 Red (1)

On selecting Size 28, my sub filter is

Color
 Red (1)

So i'm trying to achieve below,

Get all available attribute filters initially (got this using getFilterableAttributes())
Set filter programatically and get it's sub filters as like above example


texts:
I need to create products where I can add printing service.

Product price $20 (50sheets)

printing service: full color

50-149 sheets + $0.234/sheet

150-299 sheets + $0.157/sheet

300-599 sheets + $0.136/sheet

600+ sheets +0.119/sheet

Wat is the best way to accomplish this?


texts: Custom checkbox field to change the customer group

texts: I have created a custom check box field in billing.phtml(Magento 1.9.2.1), i want to assign customer group based on this field (i,e.. if the field is check the customer will be in one customer group and if the field is not checked the customer will be in another customer group.). how to do this ?


texts: How to Save data from Checkout new Steps in Magento 2?

texts:
I want to save data from Checkout new Steps in Magento 2 ?

I have created two text fields in My Step Two Title Tabs which is successfully created but how to save those value in database after successfully order placed.


texts:
I'm selling rolls that come in two widths. The user can choose which width is required however the user can also type in the length in metres. Then a price is calculated.

For instance if the price is £5 square metre, and the user chooses the 4m option and types in a length of 4.5m then the total cost should be 5 x 4 x 4.5

Is there an existing extension, is this simple to program?


texts: Placing Multiple Orders in Magento 2.1 using REST API

texts: How to post multiple cart items through one request on server using magento2.1 REST API?


texts: How to resolve the issue with reindexing process.Magento

texts:
I have just created new products and try to view on the store i checked that a re-index process is pending so i tried to re-index but its giving me error as follows:

There was a problem with reindexing process.

I have tried to fixed it by clearing the cache and assign a base product category to store but still the problem presents.

Please any help on this.


texts:
I'm using Magento CE 1.7.
here is the error I get suddenly, each time I access the "index management" screen (so I canot access it anymore), or each time I try to update a product (so i can't save product anymore) and each time I try to enable/disable a module from the back end:

Indexer model is not defined.

Trace:
#0 /home/webscoot/www/app/code/core/Mage/Index/Model/Process.php(306): Mage::throwException('Indexer model is not defined.')
#1 /home/webscoot/www/app/code/core/Mage/Index/Block/Adminhtml/Process/Grid.php(72): Mage_Index_Model_Process->getIndexer()
#2 /home/webscoot/www/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php(534): Mage_Index_Block_Adminhtml_Process_Grid->_afterLoadCollection()
#3 /home/webscoot/www/app/code/core/Mage/Index/Block/Adminhtml/Process/Grid.php(62): Mage_Adminhtml_Block_Widget_Grid->_prepareCollection()
#4 /home/webscoot/www/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php(626): Mage_Index_Block_Adminhtml_Process_Grid->_prepareCollection()
#5 /home/webscoot/www/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php(632): Mage_Adminhtml_Block_Widget_Grid->_prepareGrid()
#6 /home/webscoot/www/app/code/core/Mage/Core/Block/Abstract.php(862): Mage_Adminhtml_Block_Widget_Grid->_beforeToHtml()
#7 /home/webscoot/www/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#8 /home/webscoot/www/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml('grid', true)
#9 /home/webscoot/www/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Container.php(77): Mage_Core_Block_Abstract->getChildHtml('grid')
#10 /home/webscoot/www/app/design/adminhtml/base/default/template/widget/grid/container.phtml(36): Mage_Adminhtml_Block_Widget_Grid_Container->getGridHtml()
#11 /home/webscoot/www/app/code/core/Mage/Core/Block/Template.php(241): include('/home/webscoot/www/app/design/adminhtml/base/default/template/widget/grid/container.phtml')
#12 /home/webscoot/www/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('adminhtml/base/default/template/widget/grid/container.phtml')
#13 /home/webscoot/www/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#14 /home/webscoot/www/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#15 /home/webscoot/www/app/code/core/Mage/Adminhtml/Block/Widget/Container.php(308): Mage_Adminhtml_Block_Template->_toHtml()
#16 /home/webscoot/www/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Adminhtml_Block_Widget_Container->_toHtml()
#17 /home/webscoot/www/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()

etc


texts:
How to override collect() using after Plugin in magento2.
I need to set custom description in totals.

  Magento\SalesRule\Model\Quote\Discount

use Magento\SalesRule\Model\Quote\Discount as Source;

class Discount
{

    public function afterCollect(Source $subject, $result, \Magento\Quote\Model\Quote $quote, \Magento\Quote\Model\ShippingAssignment $shippingAssignment, \Magento\Quote\Model\Quote\Address\Total $total)
    {
        $items = $shippingAssignment->getItems();
        if (!count($items)) {
            return $subject;
        }
        $address = $shippingAssignment->getShipping()->getAddress();
        $total->setDiscountDescription(implode(",", $address->getFullDescription()));
        return $subject;
    }

}


texts: filter product collection when flat product and category in ON

texts:
I've enabled flat tables. Now the new arrival products aren't appearing which is filtered by a particular category. Below code works when flat tables are disabled.

$cat = Mage::registry('current_category');
    $catid = $cat->getId();
    $_products = $this->getProductCollection()
                      ->joinField('category_id', 'catalog/category_product', 'category_id', 'product_id = entity_id', null, 'left')
                      ->addAttributeToFilter('category_id', $catid);

Is there a different way to get new arrivals product filtered by a particular category when flat tables are ON?


texts: Magento 2 - Show Selected Out of Stock products in Catalog

texts:
On my website, Display Out of Stock Products is set to No

But I need to show some out of stock products in category listing based on attribute "Coming Soon" set to true.

Is there a way to achieve this?


texts: How to set default value of custom options for product ?

texts:
I have a product with custom option of text area type. now i want to set some default text which should be use when user doesn't fill any text and this text will go to cart with product.

I have searched everywhere but not getting how to do this ?

Please help if anyone know about this.


texts: Magento 2 read custom xml file from third party server and load it in our magento site

texts:
I am loading custom xml feed file myfeed.xml from third party server. This file is publically accessible.  Not any authentication set.

 <valley street name="jackson">

   <item>
       <name>Product 1</name>
       <description> Description 1</description>
   </item>
            <name>Product 2</name>
       <description> Description 2</description>
   <item>

   </item>
       <name>Product 3</name>
       <description> Description 3</description>

    <item>

    </item>

 </valley>

How to read all item nodes from the valley?  I need help to read this xml data magento 2 standard method way not php method or class.

I know how to create custom configuration file and process it but i want to check if any other method available to read the xml and process it.

Is there any native magento2  class that allows me to read custom xml?

Any help would be appreciated.


texts: Magento 2.0.4 - minicart working on en_US, buggy on de_DE store language setting

texts:
We have the weird bug where the minicart is generating an exception in the console when having de_DE als language enabled, but it throws another error when en_US is enabled.

Working on en_US:

Working on de_DE:

We are currently using Magento 2.0.4 and upgrading on this Env is not an option due to the bugs on higher Magento2-Versions.

The question now is: how can we get rid of those two errors? Our desired language is de_DE, so getting it working on de_DE would already be a great success.


texts:
Trying to figure out how to add a Tab menu on my custom module edit page.

What I want to accomplish, is like in Magento 1, go to edit page of my custom module en see on the left multiple sections where are different forms and/or grids loaded.

I can see how magento2 now has it with Block/Edit/Tabs but this is deprecated so I want to try it with uiComponents.

What I got so far is a standard module where I can view the grid and add/edit/delete my stuff.

Any help would be appreciated.


texts: image not change on change swatch option

texts:
hi I using this code into magento 2.1.0 vesion but it is not showing swatch option into configurable product.

Please give me suggestion for this.


texts: Magento 1.9.1 Not able to edit file in the checkout folder

texts:
I added some custom fields in the checkout section. But while i try to update the code in the folder

app/code/core/Mage/Checkout/Model/Type/onepage.php

I couldn't update anything. The code remains the same before showing the last edit date and time as 2014


texts: Magento2 : How to add Custom button [draft] in product edit form

texts:
I Want add one Draft button in product edit page between Back and Add Attribute

I am able to add by fallowing the below magento2-how-to-add-custom-button-in-product-edit-form

but i am unable to add link to my custom controller.

Any one have any idea in that please tell me


texts: Search Option 'AND' operator in Magento 2

texts:
In Magento 1 there was a configuration option to choose alternative options for the search function, how would I go about achieving an 'AND' operator for searches in Magento 2?

The current default appears to be 'LIKE'. So if I search for 'Nike Trainers' I'll get all Nike trainers, all trainers and all Nike products.


texts: Minicart content doesnt appear 1.9 (bakerop)

texts:
http://picknickbankspecialist.nl/

As you can see at the top the dropdown is only showing the animation, but no content.

minicart.phtml

    $cart_summary_qty = Mage::getSingleton('checkout/cart')->getSummaryQty();
$cart_summary_qty = !empty($cart_summary_qty)?$cart_summary_qty:0;
$cart_subtotal = Mage::helper('checkout/cart')->getQuote()->getSubtotal();
$cart_subtotal = Mage::helper('checkout')->formatPrice( $cart_subtotal );

$cart_total = Mage::helper("ves_tempcp")->__("%s");
$cart_total = sprintf($cart_total, $cart_summary_qty, $cart_subtotal);
?>

                <?php echo $this->__('Shopping Bag ') ?> -
                    <?php echo $cart_total ." ITEM "; ?>

 This part seems to be not loading
       <?php echo Mage::helper("ves_tempcp/framework")->getMinicartBlock(); ?>

PAGE.XML

<block type="checkout/cart_sidebar" name="venus.minicart" as="venusMinicart" template="page/html/minicart.phtml"/>

DEFAULT.phtml (header)

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

I am quite stuck on this since the installation is a mess, anyone that has some ideas what is going wrong here?

extras: cartcontroller

<?php

class Ves_Tempcp_MinicartController extends Mage_Core_Controller_Front_Action {

    public function indexAction(){
        $this->loadLayout();

        if(($minicart_head = $this->getLayout()->getBlock("minicart_head")) && !Mage::registry('minicart_head')) {
            Mage::register('minicart_head', $minicart_head );
        }
        $json = array();
        $json['html'] =  Mage::helper("ves_tempcp/framework")->getMinicartHtml();
        $json['summary_qty'] = Mage::getSingleton('checkout/cart')->getSummaryQty();
        $json['summary_qty'] = !empty($json['summary_qty'])?$json['summary_qty']:0;
        $json['subtotal'] = Mage::helper('ves_tempcp')->getCartSubtotal();

        echo Mage::helper('core')->jsonEncode( $json );

    }
}

?>


texts: How to separate existing steps in Magento 2 one page checkout?

texts:
I need to customize the shipping steps into Account and shipping.

In the Account section, I need to show the customer email address only.

In the Shipping section, I need to show the shipping address.

How can I achieve this?

  Through any Extension or any reference code?

Anyone share your thought or reference.


texts: Why do I get this error Module 'magento/framework' is not correctly registered

texts:
I have a Magento2 website running on php 7.1 and Marian DB 10. After upgrade from Magento 2.2.3. to Magento 2.2.4  I get the error message "Module 'magento/framework' is not correctly registered" in the admin dashboard as seen in the screenshot below. How do I fix this?

Screenshot Module https://i.imgur.com/xoaVTcc.jpg


texts: How can I change Wishlist 'out of stock' to show 'notify when back in stock'?

texts:
I am trying to improve the functionality of the Wishlist so that customers can be notified when out of stock items come back into stock.

I would like to change the out of stock text on the wishlist page to show 'notify when back in stock' and for that button to work.

I have tried to decipher how wishlist and productalert work, I also hoped that I could just post a link to $product->getSignupUrl() in template/wishlist/item/column/cart.phtmlhowever I am now stuck. Any ideas?


texts: Programmatically Update products attribute by sku for all store view

texts:
I am using below code to update product by sku but that is updating price for english store only , i will price of product to get updated in all store view .
    getObjectManager();

$state = $objectManager->get('Magento\Framework\App\State');
$state->setAreaCode('frontend');

$productCollectionFactory = $objectManager->get('\Magento\Catalog\Model\ResourceModel\Product\CollectionFactory');
$collection = $productCollectionFactory->create();
$collection->addAttributeToFilter('sku', 'A960-CQ');
$collection->addAttributeToSelect('*');
foreach ($collection as $product)
{
    $product->setData('name', 'test description');
    $product->save();
    echo "Product Updated". " ";
}


texts:
I would like to reduce the size of the _cl tables in EE 1.14

 catalog_product_index_price_cl                |    1572.00 |
| catalogsearch_fulltext_cl                     |    1512.00 |
| catalog_product_flat_cl                       |     977.00 |
| cataloginventory_stock_status_cl              |     604.00 |


texts: Magento 1.9 - Check if the user is on the checkout page

texts:
Is there a way I can check if the user is on the checkout/onepage page and display something. I have tried the below but for some reason it doesn't equal true on the checkout page

<?php if($this->getUrl('checkout/onepage') == Mage::helper('core/url')->getCurrentUrl()): ?>
    On checkout page
        <?php else: ?>
            not on checkout page
<?php endif ?>


texts: Magento 2 - Email attachment is not working in my controler

texts:
Here is my code.

$pdfFile = 'pub/pdf/13_rajeshnagappan2016@gmail.com.pdf';
    $store = $this->_storeManager->getStore()->getId();
    $transport = $this->_transportBuilder->setTemplateIdentifier('enquiry_test_template')
        ->setTemplateOptions(['area' => 'frontend', 'store' => $store])
        ->setTemplateVars(
            [
                'store' => $this->_storeManager->getStore(),
            ]
        )
        ->setFrom('general')
        ->addTo('rajeshnagappan2016@gmail.com', 'Customer Name');
        // ->addAttachment(file_get_contents($pdfFile));

        try {
            $transport = $this->_transportBuilder->getTransport();
            $transport->sendMessage();
            $this->_inlineTranslation->resume();
        } catch (\Exception $e) {
            echo $e->getMessage(); die;
        }


texts:
Got a problem that I've had 3 developers look at, yet still no solution.

Am using 1 step checkout and when paying with paypal standard, paypal payment confirmation email is received, but no email from store. However, customer is redirected back to store after paypal payment and given order no. and success message saying they will be sent an order confirmation email.

-Only 1 email comes through though; the paypal one.

In the admin, the order is still classed as payment pending and 'customer not notified', with no paypal payment details given in the 'Comments History' section.

Don't know if this is a paypal issue or a magento issue.

Any idea why this happens. Been trying to solve for ages now and no luck. No one knows how to fix this.

Any ideas?


texts:
Trying to change some configurations in the magento backend however whenever I change any settings I get the message stating that it has saved however the settings remain the same.

I have cleared the cache, the issue is preventing from doing this in the magento admin area so I have done it manually.

Not entirely sure what may have caused this.


texts: Magento2 How can I create an order on behalf of customer with admin Token

texts:
I need to implement salesman logic where he can place orders on behalf of customers. With the available Order processing Rest API I can only place an order with Customer Token.
Is there any way that I can retrieve the customer token through Admin Authentication or place an order on behalf of the customer


texts: admin area getting error 'require is not a function at editor.js:6' after upgrading magento 2 from 2.1.1 to 2.1.17

texts:
After upgrading Magento from version 2.1.1 to 2.1.17, I am facing this error

  Uncaught TypeError: require is not a function at editor.js:6

across admin area especially in edit pages

when I look at html -> head I see that js file

en_US/Magento_Backend/js/bootstrap/editor.js

is called first before  requirejs file

Please help


texts: dbModel read resource does not implement Zend_Db_Adapter_Abstract

texts: i am facing a situation where i can't find any solution. My website was working fine till but after some autoupdate my website stopped working, after checking many tutorials now i stuck on this place. please help me with the solution ASAP. [http://www.hakkunamatatta.com/][1]


texts:
What's the best practice and recommended way to extend an object like \Magento\Store\Model\Store with a new object property.

I want to do something like this:

$storeManager; //StoreManagerInterface
foreach($storeManager->getStores() as $store) {
    $language = $store->getLanguage(); // < this should be an own object from my custom module
}

I think I should use the di config. Does anybody has a good idea?

Thanks!


texts: How we can set special price if quantity of products ordered is under certain limit in Magento2

texts:
Is their any option in backend or any plugin available ?

I mean as :

if quantity ordered 10 to 20 : Price = 50$

if quantity ordered 20 to 30 : Price = 100$

.
.
.


texts: Ways of keeping Configurable product pricing consistent with Simple product pricing

texts:
By default, Magento ignores the Price set within the Simple product which forms part of a configurable (unless the Simple item is added to the basket rather than the Configurable). Many organisations would prefer to set product prices at a simple level (ergo - setting the actual price within each simple product, rather than setting a base price and then additions/subtractions within the configurable).

There are extensions (example - https://www.magentocommerce.com/magento-connect/simple-product-pricing.html) which allow this by selectively overriding the pricing logic. I have always advised against using such extensions because they generally need extra work/testing when other modules are desired. Unfortunately, the organisation I work with at the moment chose to make use of this module before I was involved.

What I'd like to do is move away from this module - is there a way to update all configurable product prices so that the price paid by the customer is in-line regardless of whether the product is selected individually or as part of a configurable?

Would there be a way of maintaining this going forward - so when an admin changes the price of a Simple, they automatically cause the price of any relevant Configurable products to change?


texts: whenever loading url and reloading getting white blank page and it loading 2 -3 secs it's coming

texts:
We are working magento2.2 version hosted website.

Everything working Fine but when loading website www.example.com it's getting some time white Blank page and again loading page as usual after 2-3sec.

varnish we are using to cache pages
through aws cloudfront we are distributing the files.

note: time to first byte(TTFB) option is critical with server.

can any one advise me what causing this to getting blank pages all urls not single but only less time not continuous.


texts: How to display only US in country dropdown in Shipping Address in Checkout page?

texts: I wanted to display only US in country dropdown list in checkout page in shipping address form.


texts:
I try to export my products in Magento 2.1.3.
When i select to export products and csv files format and i press continue, a receive this message:

Please correct the data sent value.

And if i check the console i have this Ajax err:

http://myproject/admin/export/getFilter/key/746c4cfc21048351cc4aef84b013a591ff7f64893123bfa1cf6e730f8ba32e58/entity/catalog_product?isAjax=true

This problem appears only for products export, all the other options for export work well !

Does anyone know what caused this issue?


texts:
I've just installed Magento 2 onto my production server under a development subdomain. The install appeared to have been successful but I've noticed there are no images or working javascript in both the frontend and the backend.

After inspecting the source code, I found that files being called in such as http://dev.website.com/pub/static/frontend/Magento/luma/en_GB/css/print.css don't actually exist. Any thoughts? I tried solutions on several stacks but haven't had any luck.


texts:
Is it possible to make the terms and conditions on checkout page before each process payment button as html? Instead of default magento terms and conditions I want it to be an html like that with no pop-up window:

By placing your order, you agree to our Terms & Conditions and Privacy Policy


texts:
I migrate an installation of magento 1.7 to my localhost, but when I want login in the admin panel, when I put the correct user and password, it reload the same page.

I probe with incorrect user and in the login show an error but if I use correct login show the same login but not redirect to my admin panel.

Why?

Thanks!


texts: Table catalogsearch_fulltext DOES NOT contain an indexed product (Magento CE 1.9.1.0)

texts: Im having a large DB with over 800k products and successfully complete reindexing via SSH but when try to look for the new products i have added, they cant be found.


texts: Magento 2 : How to add new fields in eav_attribute?

texts: For my custom modules I need some new fields for product attributes in eav_attribute. Does anyone know how to add these fields?


texts: Configurable Products: Replicate Product View in Custom Product List

texts:
So I am using a child RWD theme, and adding some custom blocks to the tabbed section that goes under the single product view. One of those custom blocks is an essentially hijacked 'related products' blocks where I'm using

  $this->_itemCollection = $product->getRelatedProductCollection()
        ->addAttributeToSelect('*')
        ->setPositionOrder()
        ->addStoreFilter();

...to retrieve the collection. However I need to have the products in the 'related' section essentially mimic the single product view; they are all configurable products, so color/size attributes must be selectable and cause JS updates to the product display.

Additionally, add to cart must work via ajax like single product view.

This question has been asked before, and I've gone through a few tutorials, however they mostly seem to be outdated (magento 1.7 and below).

Does anyone know of a good solution/tutorial or even paid extension that would achieve this?


texts:
I want to know how to get visibility of product using Magento 2. I have a product that is set to "not visible individually" and want to remove it from a collection.

I have tried below methods:

$product->getVisiblility();
$product->getVisibleInCatalogStatuses();
$product->getVisibleStatuses();
$product->isVisibleInCatalog();
$product->getVisibleInSiteVisibilities();
$product->isVisibleInSiteVisibility();

But all products return the same value "1" for $product->isVisibleInCatalog visible or not.

I have reindexed via command line also and set the visibility for all stores to be not visible however still the issue persists.


texts: M2.1.3 - Importing a configurable product doesn't work, but adding via admin area works fine

texts:
I'm trying to import a configurable product using the native import function in M2.

What I have done, is add a product manually using the admin interface, export that .csv file, modify the name/image/pricing, and reimport.

The product I added manually imports fine, but when I export, modify and reimport, the configurable product appears in searches after I reindex, but none of the configurations appear in the frontend dropdown when viewing a product.

There are no errors in the file formating
Encoded in UTF-8-BOM
The products appears in the admin interface via "Products > Catalog"
The products are in stock
The products are enabled
The products have a quantity of 100
M2 is set to developer mode

I have gone as far to rebuild static content, with no change. There are no errors/exceptions.

How can I find more information on the issue? I have PMA, is there anything I can check in the database that might cause an issue?


texts:
My magento installation is keep logging out when login with admin account.

Sometimes 3 mins, some times 10 mins.

After log in, it shows:

  All other open sessions for this account were terminated.

I guess that means the sessions is still valid but browser does not save it?

So I changed several computers and browsers, all tries got the same issue.

As I remember, it didn't happen back to 2.1.

After upgrade, it keep happening.

And admin username/password is not able to save in the browser as well.

Do there's any new config in 2.2?

I've edited the back end session time and php setting, not work either.


texts: Magento 1.9.3.4 All report pages missing in navigation dropdown

texts:
I can't view any reports in this Magento Backend:

Reports are activated in the System Configuration but the only report in the reports dropdown is "Paypal Settlement reports".

Any ideas what is happening here? I have absolutely no idea.


texts: How to add second level footer in Magento 2

texts:
Added container in default.xml within footer container

<referenceContainer name="footer-container">
            <container name="em.maxwidth.content" htmlTag="div" htmlClass="em-maxwidth-content" before="-"/>
            <container name="footer" as="footer" label="Page Footer" htmlTag="div" htmlClass="footer_second">
                <container name="als-footer-container" label="Als Footer Container" htmlTag="div" htmlClass="container" before="-"> //add container
              </container>
            </container>
        </referenceContainer>

after that create a block and assign block and that block assign to widget with a new container.

But it did not add second level footer.


texts: How to restrict custom shipping method in checkout by selected address

texts:
Need to restrict my custom shipping method to not showing on checkout page using http service to check if shipping address is applicable.

That is my code

   public function collectRates(RateRequest $request)
{
    if (!$this->getConfigFlag('active')) {
        return false;
    }

    /** @var \Magento\Shipping\Model\Rate\Result $result */
    $result = $this->rateResultFactory->create();

    /** @var \Magento\Quote\Model\Quote\Address\RateResult\Method $method */
    $method = $this->rateMethodFactory->create();

    $method->setCarrier($this->_code);
    $method->setCarrierTitle($this->getConfigData('title'));

    $method->setMethod($this->_code);
    $method->setMethodTitle($this->getConfigData('name'));

    $shippingCost = (float)$this->getConfigData('shipping_cost');

    $method->setPrice($shippingCost);
    $method->setCost($shippingCost);

    $result->append($method);

    return $result;
}

I need to check with http service selected shipping address before append method. Can anybody help me how to get current selected shipping method?


texts: Magento2.3: Products are not displaying at all in Category page

texts:
I have created a simple product and attached with one of the category. However, the product is not displaying at all when I go to the corresponding category page. I can only browse the product when I put the product URL.

While checking, all those things are set correctly, like stock, attached with category, website, anchor in category and show products only in category.

I'm not sure why the product is not displaying at all.


texts: How to change indexer multi-store sequence

texts:
I'm working on a Magento2 with 100's of websites in a multi-store setup. We're presently not using the asynchronous indexing feature, but rather re-index in full once per day. The whole reindexing process takes about 1 hour.
It appears that Magento processes each store in sequence by store_id. That means, a store with a high id - e.g. 765 - will not get re-indexed until all the other ones are fully processed. This repeats for each individual indexer.
I would like to affect that sequence so that certain stores - let's say the most active ones - get processed first.
Pretty sure, I'm going to need to write a module for this, but I'm looking for help with where to tap into the execution chain to override the default behavior.


texts: Bundled Product but without giving options to customer

texts:
I am wanting to create a product that is made up of a fixed number of other, already existing, products, eg. Tableware Set, containing 4 plates, 2 serving plates, 4 knives, 4 forks and 1 salad bowl.

The customer should not be able to change the quantities within the set. You could buy 1,2,3 etc Tableware Sets but you can't mess with the set itself.

I have created a "Bundled Product", and tried a "Grouped Product" too, but Magento always seems to allow the customer to play with the quantities within the set and even exclude items completely.

Can anyone tell me where I'm going wrong and how I can provide a fixed bundle that consequently has a fixed price?


texts: Multiple banners, widgets and promotions?

texts:
I've got an interesting scenario that I can't quite figure out. Here's what I've got going on:

First, I have a Welcome promotion driven with a coupon for all customers in all customer groups. I have a banner rotator widget which shows a banner in the top block of all pages if the coupon is applied. Works fine.

Next, I have another promotion which is applied to a customer group called Sale. This promotion also displays a banner in the topmost block of all pages so long as a customer from the sale group is logged in. Works fine.

Here's the thing: I don't want to offer both promotions to the Sale customer as the Sale promotion will be a better discount than the Welcome promotion. No problem. I make sure that the Sale promotion has a higher priority than the Welcome promotion and then I make sure that the Sale promotion's "Stop  Further Rules From Processing" setting is set to Yes.

My expectation is that when I applied the welcome coupon I should see the welcome banner at the page top, but if I log in a sale customer and apply the Welcome coupon and the Sale coupon, I should only see the Sale banner, since the Welcome discount isn't applied.  What actually happens is that I see both banners.

Any ideas as to why this would happen or if I'm missing something.


texts: MYSQL Table not found giving back a 503 Magento

texts:
I am building a program which takes the user through a series of questions and it returns with a number of products which suit the users answers. After each question the number is refreshed.

I use a MYSQL query to find out how many products are suited to the user, the query depends on how many of the answers the user has answered. However, the number count only works if the user only answers the first question, if the answer anymore than the first question it sends back a 503 with an error.

The error I get back if I complete only the 1st 2 questions is:

a:5:{i:0;s:274:"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Pressure' in 'where clause', query was: SELECT sku
                    FROM picker_Safety_Gates
                    WHERE (Maximum_Width >= 90
                    AND Minimum_Width ";i:1;s:2158:

and the code I use for the second query is:

$resource = Mage::getSingleton('core/resource');
$connectionRead = $resource->getConnection('core_read');
$qry = "SELECT sku
                    FROM picker_Safety_Gates
                    WHERE Maximum_Width >= $width
                    AND Minimum_Width <= $width
                    OR Extendable_Width = $width
                    AND Fixture_Type = $fix";
                $arr = $connectionRead->fetchAll($qry);

I have echoed the query and everything looks fine, I have checked the query in a MYSQL checker and it says everything is fine. Before I started to make this in Magento I made it outside of Magento using the exact same queries and I didn't get any errors from it at all.

The code for the only query which works (which is the first one) is:

$resource = Mage::getSingleton('core/resource');
$connectionRead = $resource->getConnection('core_read');
$qry = "SELECT sku
                FROM picker_Safety_Gates
                WHERE Maximum_Width >= $width
                AND Minimum_Width <= $width
                OR Extendable_Width = $width";
            $arr = $connectionRead->fetchAll($qry);

How comes this query works and the other one doesn't? I have reindexed my site as it said here: SQLSTATE[42S22]: Column not found: 1054 unknown column 'e.status' after 1.9.2 Upgrade and I have also tried to google if there is another way to write queries in magento but I couldn't find anything. What I am asking is, do you know what is wrong with my query and how can I fix it?

Thank you for reading this.


texts: How to show catalog/product name , title above the breadcrumbs?

texts:
I am using rwd magento theme for customization.

I want to catalog/product title above the breadcrumbs section in my theme.
I also want to show this on category page.

I want to show something like the below screenshot.
How can I go about it?


texts: Adding Product Type Based on Bundle Product - Magento

texts:
I'm working on replicating the Bundle Product type as "Package".

I've copied the Bundle folders in Core_Mage, the Theme Layout, Adminhtml (on the frontent design), as well as the xml file in theme layout, core/mage/bunde/etc/config.xml, and adminhtml/default/layout/bundle.xml.

All files and folders have been renamed, with the words Bundle and bundle changed to Package and package respectively. The product type is still not showing as a product type on the backend.

Is there another file that I need to edit to make this happen? I'm trying to be able to reconfigure this "Package" type from the original "Bundle", but I need to keep the Bundle product type.


texts: Customer sections (i.e. mini cart) updated on product page but not on category page

texts:
I work with a customized Luma theme where the product list has "add to cart" forms just like the product pages.

If I add a product to the cart from the regular product page, the mini cart gets updated correctly, via AJAX request to /customer/section/load/?sections=cart%2Cmessages&update_section_id=false&_=1482159535255

If I add a product to the cart from the category listing, the mini cart does not get updated and no AJAX request to customer/section/load is triggered.

The script from section-config.phtml is present on both pages without difference:

<script type="text/x-magento-init">
{"*":{"Magento_Customer\/js\/section-config":{"sections":{"stores\/store\/switch":"*","directory\/currency\/switch":"*","customer\/account\/logout":"*","customer\/account\/loginpost":"*","customer\/account\/createpost":"*","customer\/ajax\/login":["checkout-data","cart"],"*":["messages"],"catalog\/product_compare\/add":["compare-products"],"catalog\/product_compare\/remove":["compare-products"],"catalog\/product_compare\/clear":["compare-products"],"sales\/guest\/reorder":["cart"],"sales\/order\/reorder":["cart"],"checkout\/cart\/add":["cart"],"checkout\/cart\/delete":["cart"],"checkout\/cart\/updatepost":["cart"],"checkout\/cart\/updateitemoptions":["cart"],"checkout\/cart\/couponpost":["cart"],"checkout\/cart\/estimatepost":["cart"],"checkout\/cart\/estimateupdatepost":["cart"],"checkout\/onepage\/saveorder":["cart","checkout-data","last-ordered-items"],"checkout\/sidebar\/removeitem":["cart"],"checkout\/sidebar\/updateitemqty":["cart"],"rest\/*\/v1\/carts\/*\/payment-information":["cart","checkout-data","last-ordered-items"],"rest\/*\/v1\/guest-carts\/*\/payment-information":["cart","checkout-data"],"rest\/*\/v1\/guest-carts\/*\/selected-payment-method":["cart","checkout-data"],"rest\/*\/v1\/carts\/*\/selected-payment-method":["cart","checkout-data"],"multishipping\/checkout\/overviewpost":["cart"],"paypal\/express\/placeorder":["cart","checkout-data"],"paypal\/payflowexpress\/placeorder":["cart","checkout-data"],"review\/product\/post":["review"],"authorizenet\/directpost_payment\/place":["cart","checkout-data"],"braintree\/paypal\/placeorder":["cart","checkout-data"],"wishlist\/index\/add":["wishlist"],"wishlist\/index\/remove":["wishlist"],"wishlist\/index\/updateitemoptions":["wishlist"],"wishlist\/index\/update":["wishlist"],"wishlist\/index\/cart":["wishlist","cart"],"wishlist\/index\/fromcart":["wishlist","cart"],"wishlist\/index\/allcart":["wishlist","cart"],"wishlist\/shared\/allcart":["wishlist","cart"],"wishlist\/shared\/cart":["cart"]},"clientSideSections":["checkout-data"],"baseUrls":["http:\/\/******\/"]}}}</script>


texts: Configurable Products Show Simple Products Price

texts: How i can replace Configurable Products price with Simple Products Price without any additional price ?.


texts:
PayPal published a help page: https://ppmts.custhelp.com/app/answers/detail/a_id/1299 saying that certain verisign.com URLs are going to be deprecated.

payments.verisign.com
payflowpro.verisign.com
payflow.verisign.com
cr-payflow.verisign.com

Does this change affect Magento CE or EE? They recommend changing the verisign.com urls to paypal.com urls.


texts:
I Have top link as "Inspiration" in page.xml.How can I translate it in another language.

<action method="addLink" translate="label title">
                    <label>Inspiration</label>
                    <url>inspiration</url>
                    <title>Inspiration</title>
                    <prepare>true</prepare>
                    <urlParams helper="core/url/getHomeUrl"/>
                    <position>4</position>
 </action>


texts: Facing issue in installation of path SUPEE 7405

texts:
I have upload file in root directory of SUPEE-7405 patch file. Apply below mentioned code in this file https://www.samuraimarket.net/applypatch.php:

    <?php
    print("<PRE>");
    passthru("/bin/bash PATCH_SUPEE-7405_CE_1.9.2.1_v1.1-2016-02-23-07-42-31.sh");
    print("</PRE>");
    echo "Done";
?>

Folders and Files permission are 775 and 666, So I have changed as 755 and 644 respectively.Please guide as facing issue in installation as ERROR: Patch can't be applied/reverted successfully.Magento Version is 1.9.2.1


texts:
when order is placed its in Pending status. But when I create shipment for that order status will stay pending.

I tried to clean the order statuses. refresh all indexes. attached is current order statues in my store.


texts: Change text from "Choose file" to "Browse"

texts:
We created custom option for product from backend, so in product view page its displaying like below

we want to rename text "choose file" & "No file chosen"

using template path hints, i got file : app/design/frontend/rwd/theme/template/catalog/product/view/options/type/file.phtml

if i delete below code , its going to delete those texts. but i want to rename it.

<input type="file" name="<?php echo $_fileName; ?>" class="product-custom-option
        <?php echo $_option->getIsRequire() ? ' required-entry' : '' ?>"
        <?php echo $_fileExists ? 'disabled="disabled"' : '' ?> onchange="opConfig.reloadPrice()" />

i changed text in app/locale/en_US/Mage_XmlConnect.csv file ,
 but it didn't worked for me....

as @Amit Bera suggested in this link , i tried in

Mage_Catalog_Block_Product_View_Options_Type_Select.php ,

but here these texts not available. so how i can rename those texts ?


texts: Magento 2 GrahQL Product Sorting does not work for the product query with category Filter

texts:
I have this graphQL query
{
  products(filter: {category_id:{eq: "5"}, price: {from: "0", to: "999999"}}, pageSize: 10,  currentPage: 1
 sort: {position: DESC}) {
    total_count
    items {
      id
      name
      sku
      }
    aggregations{
        count
        label
        attribute_code
        options{
            count
            label
            value
        }
    }
    sort_fields{
        default
        options{
            label
            value
        }
    }
  }
}

Referring document - https://devdocs.magento.com/guides/v2.3/graphql/queries/products.html

ProductAttributeSortInput we have a position. I am assuming this position should sort the product based on position set for the product in the category which category ID I am passing to filter the collection. But It sort by product creation date (Can say Product ID.).
Do I have a correct understanding of this position for APIs? Or it works differently for the GraphQL APIs
I have tried CategoryList GraphQL API as well and there also the same result. Now I have the option to go through the code.


texts: magento 2.2 load model vs objectManager: the first returns the wrong id while the second returns the correct one

texts:
I'm a bit puzzled about how the load() and objectManager are different. I have a model where I inject the order model to load an order by it's ID, then I use the order to get its shipments:

public function __construct(Magento\Sales\Model\Order $order) {
  $this->_order = $order;
}

public function getShipment($oid) {
  $order = $this->_order->load($oid);
  // I always have only one shipment per order so I can call directly the firstItem method
  $shipment = $order->getShipmentsCollection()->getFirstItem();
}

The problem with this code is this:
$this->_order->load($oid); calls the order correctly (if I pass the id 32, then it loads the order with id 32, if I pass the id 33, then it loads the order with id 33 and so on), but $shipment = $order->getShipmentsCollection()->getFirstItem(); calls always the same shipment, so no matter if the order loaded is 31, 32, 33 etc etc the shipment returned is always the same (eg: shipment with id 20).

If I substitute $this->_order->load($oid); with the objectManager $order = $objectManager->create('\Magento\Sales\Model\Order')->load($oid); then the shipment returned is correct, so for order 31 I get shipment 20, for order 32 I get the shipment 21 and so on.

Why does the load() method always return the same shipment on different orders?


texts: I am adding products from web services for my Magento store.Problem is web services keep changing product attribute set with an interval of few days. I came to know that Attribute Set cannot be changed after a product has been created. So what is the possible way to update the product attribute set? Shall i delete the product and recreate the same product or change the attribute set from database. Which one will be better? If i delete the product will it effect on order/inventory section?


texts: Magento 2: Admin Action Logging Not able to Found

texts:
I'm using Magento 2 Comminity Edition Version 2.1.2.

Need to configure Admin Action Logging.

https://www.mageplaza.com/kb/how-to-configure-action-log-magento-2.html

Not able to found.


texts: Improving checkout, how do I increase convesion

texts:
we are using Queldorei Shopper theme @ shirtsofholland.com. We have many clients asking about our checkout: unclear, many steps etc ...

I was wondering what I can do, because we urgently need to increase conversion. I am thinking across 2 lines and my question is:

a. install a onepagecheckout extension

But which one is fully compatible with my theme Queldorei shopper? we dont want conflicting JS etc and redoing the whole layout
And, does it also work on both desktop + mobile? (responsive, very important!!!)

b. improve current checkout
(because already responsive)

But hen, how do I Remove step 1 for login/guest -> always guest
and how do I Set shipping to default to - same as billing
An how to add coupon code box to last step (so we can skip the cart)

It seems that both ways have good and bads. But I dont know what the optimal way to go is.

Of course we use analytics. And we see a large % exiting the funnel on multiple points. Hence this question. We see a couple of things as very imporant:

directly to checkout, pref no cart
no login/guest -> directly to address
All fields pref automically filled, default options ticked
Maybe a retrieve from FB/Twitter login button to help speed up
Product images & coupon code in last step (so no need for a cart view)

thanks, Sean


texts:
I need to export a CSV file with all the product weights on it, i tried to do it in the back end but i get this error

Request Timeout

This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase 'Connection Timeout'.

Is there a way i can do this via SSH or through a script?

Thank you


texts: Controller routing doesn't work always redirects to 404

texts:
So after looking through the first 2 pages of google search results I saw that it's quite a common problem nevertheless I couldn't find a solution that would work for me.

So the problem is that the routing doesn't seem to be working even though it seems for me that I've set everything up properly. Most of the solutions I found on google or on stackexchange were related to spelling mistakes in the code but I can't find any in mine after looking at it for good 3 hours or so.

for example if go to either one of these links magento just gives me 404 page

localhost/magento/index.php/helloworld

localhost/magento/index.php/helloworld/index

localhost/magento/index.php/helloworld/index/index

So my folder structure is

app
-code
--local
---Vhks
----Helloworld
-----Block
-----Helper
-----Model
-----controllers
------IndexController.php
-----etc
------config.xml
-----sql

My IndexController.php

<?php

class Vhks_Helloworld_IndexController extends Mage_Core_Controller_Front_Action {

    public function indexAction(){

        echo "Hello World";

    }
}
?>

and my config.xml

 <?xml version="1.0"?>
<config>
    <modules>
        <Vhks_Helloworld>
            <version>0.1.0</version>
        </Vhks_Helloworld>
    </modules>
    <frontend>
        <routers>
            <vhks_helloworld>
                <use>standard</use>
                <args>
                    <module>Vhks_Helloworld</module>
                    <frontName>helloworld</frontName>
                </args>
            </vhks_helloworld>
        </routers>
    </frontend>
</config>

and my /app/etc/modules/Vhks_Helloworld.xml

 <?xml version="1.0"?>
 <config>
    <modules>
        <Vhks_Helloworld>
            <active>true</active>
            <codePool>local</codePool>
        </Vhks_Helloworld>
    </modules>
</config>

and my module shows up under System->Configuration->Advanced Disable Modules Output


texts:
I want to get Current URL in Magento 1, using observer function, that observer triggered on the AJAX controller action.

In the observer function, I tried like :-

$currentUrl = Mage::helper('core/url')->getCurrentUrl();
it returns the controller action which wee used to call in AJAX, where us I need to get the Current active URL from the browser.

Can anyone help me with this?


texts: Does anyone know where I could get the information of all that have changed in C.E 1.9 when compared with magento C.E 1.8?


texts:
I want to add the menu and other elements to my 404 page in Magento 2. Can anyone tell me where the index/no-route takes its layout instructions from? As I cannot seem to find them?

Presumably if it's removing the menu automatically it is a layout update somewhere along the line.

There is nothing in the CMS page layout update function, and nothing changes if I update the layout template in the same section.


texts:
I used a custom script to import customers from a csv, which works as I expected. except few things.

One of them is, user password.

I use below code to import password.

//Read csv

$file = 'import/customer.csv';
        $arrResult = array();
        $headers = false;
        $handle = fopen($file, "r");
        if (empty($handle) === false) {
            while (($data = fgetcsv($handle, 100000, ",")) !== FALSE) {
                if (!$headers) {
                    $headers[] = $data;
                } else {
                    $arrResult[] = $data;
                }
            }
            fclose($handle);
        }

import customer section

foreach( $arrResult as $importCustomer ) {

$customerFactory = $objectManager->get('\Magento\Customer\Model\CustomerFactory');
$customer = $customerFactory->create();

$customer->setEmail($importCustomer[0]); //email
$customer->setWebsiteId($websiteId); //website id
$customer->setStoreId($getDefaultStoreId); //store id
$customer->setFirstname($importCustomer[4]); //firstname
$customer->setGroupId( (int)$importCustomer[5] ); // group id
$customer->setLastname($importCustomer[6]); //lastname
$customer->setMiddlename($importCustomer[7]); // middlename
$customer->setPrefix($importCustomer[8]); //prefix
$customer->setSuffix($importCustomer[10]); //suffix
$customer->setUpdatedAt($importCustomer[11]); // updated at
$customer->setPassword($importCustomer[13]); //password

$customer->save();

echo 'Create customer successfully'.$customer->getId()."<br>";

}

I used sample/demo csv file with some sample data. Script runs successfully and I can see that customers are added from magento admin. Usual data, like Name, Email are correct.

Problem occurs when I try to log in as a user in frontend. I cannot log in and when I try to log in, page refreshes and stays in login page. no error messages visible and no errors are loaded into the browser console.

What is the problem here?How can I fix this?


texts:
I am successfully using this code to display a brand logo

php $brand=$_product->getAttributeText('brand');

echo '

'_',$brand).'.jpg" alt="'.$brand.'">'

now what i need help with is making it a link as well

the problem is where as

My brands have capital letters as my attribute does  so for example
Brand Punch It Performance
uses image Punch_It_performance.jpg

however the url for it is

/shop-by-brand/punch-it-performance.html

now forgive my newbieness to php here but i could really use some help modifying the above code snippet to function so when its clicked it goes to the proper page


texts: Want to add a small icon in the corner of a product Picture

texts:
I want to be able to add a small picture into the corner of products that are within a certain category. For example I have a Featured products category which is used on my home page to display certain products. However i want to add a small image to the corner of these products so customers know they are Featured products even when the find the products in there own categories.

If i havnt explained myself very well please just let me know and i will try explain my problem better.

Thank you :)


texts: Simplify Magento 2 search engine results

texts:
new to Magento 2 and this forum for now.
In the company I work, we have a website on Magento 2.3.4, migrated from Magento 1 , and cause I know some English the boss here wants me to make some improvements. What I'm interested in is how to modify the search engine to display less results from a search in the Magento 2 search engine.
For example: - I type: "Ролка за преместване на Товари" on my native language and it displays me 1500 results, containing all the keywords.
The words on my native language means - "rollers for moving loads", and we have this products with the exactly same name in the "Magento 2 Catalog" but it displays all the results containing these keywords.
Usually even the products are not in the top results even.
So my question is, how I can somehow modify the search engine, to display less products in the results, and to display firstly the associated products to the keywords from our catalog of products.
Any Ideas? Anybody? (angel emote)