texts: Need to Initialization js after ajax response magento 2

texts:
I am working on ajaxscroll product but when i got response below script not initialize

<script type="text/x-magento-init">
        {
            "[data-role=tocart-form], .form.map.checkout": {
                "catalogAddToCart": {}
            }
        }

</script>

Can anyone help me to initialize script after response.


texts: Magento 2 free shipping method not showing

texts:
I only set my shipping method to free shipping and only for one specific country like this:

but the problem is this shipping method won't appear if the country value already selected first when the checkout page load, but if i refresh the page the free shipping method will appear, but if i change the country to another country and change back to the original country the shipping method won't appear unless i don't fill the postal code.

with postal code :

without postal code:


texts: How to programmatically get thumbnail of a product?

texts:
$product = $this->productFactory->create()->load($productId);

$existingMediaGalleryEntries = $product->getMediaGallery()['images'];

foreach ($existingMediaGalleryEntries as $key => $entry) {
    //$entry does not contain the information I need
}

How do I get an thumbnail/small/base- image of product?


texts: Create new Products in Database once we click on button from product view page

texts: We are displaying "SAVE DESIGN" button in Product view page. once Registered customer click on that button, we want to create new product with same product details with different [ random] sku.  we want to display those products in custom tab under "My account" similar to "My wishlist".


texts: magento 2 category field under cart price rule

texts:
magento 2 i need to  create custom  category tree field under cart price rule like

How to acheive this


texts: How to exclude myself/admin in Magentos most viewed statistics?

texts: I was wanting to find a way to exclude myself from the most view etc. in Magento?


texts: Load external phtml file on product page

texts:
I want to load a custom .phtml file on product page.
I just did this:

Inside view.phtml I added this line:

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

In local.xml I added this line inside <reference name="product.info"> :

<block type="core/template" name="short_specificaties" as="short_specificaties" template="catalog/product/view/shortspecs.phtml"/>

And inside the shortspecs.phtml I added this code:

<?php
    $_helper = $this->helper('catalog/output');
    $_product = $this->getProduct();
    $theme = $this->helper('ultimo');
    $helperSnippets = $this->helper('ultimo/rsnippets');
?>

<?php $yourCatIds = array(235);
$productCats = $_product->getAvailableInCategories();

if (count(array_intersect($yourCatIds,$productCats))) {
    echo '
' . $_product->getAttributeText('i_display_diagonal_944_1') . '
';
    echo '
' . $_product->getAttributeText('i_processor_family_2196_1') . '
';
    echo '
' . $_product->getAttributeText('i_internal_memory_11381_1') . '
';
    echo '
' . $_product->getAttributeText('i_total_storage_capac_3318_1') . '
';
}
?>

But that breaks down the page.
What am I doing wrong?


texts: add some text after currency symbol in site

texts:
we can see price in site as : $699.99

I want to change $699.99 to $. 699.9

i want to put "dOT" and "space" after $ symbol.

please help me to find solution

thanks in advance


texts:
I currently authorized in the administration five countries but I would want to keep one, so I just chose this country in configuration> General> countries Options> allow countries.

The problem is that for older customers who have already registered their addresses, are not blocked when ordering, it works only for new customers.

How can I block old customers?


texts:
Are there tools to check and repair my database like Magento 1 have this official tool linked below? (without using mysqlcheck --all-databases -r).

Magento 1 Database Repair Tool


texts: Magento 2 - PayPal Express - Charge shipping after an order was placed

texts:
Magento/2.3 (Community)

We have a client that charges it's customers for shipping after an order was placed. They have no issue charging if the payment method was Authorize.net - they're able to go in and re-charge the customer.

With PayPal Express however this doesn't seem possible. I've already looked at "Sale" and "Order" options for the PayPal Express settings, but editing an order in M2 admin doesn't allow me rebill the user's PayPal.

Is this even possible?


texts: Apply cart price rule to cart programmatically without a coupon code

texts:
This is my code to add some products to cart(quote):
foreach ($params as $param) {
   $product = $this->productRepository->getById($param['product']);
   $this->cart->addProduct($product, $param);
}

The $param variable looks like:
   'product' => //id of the product
   'qty' => 1

I found this : post, but it is about having a coupon code. I don't have any. Also, which columns from  quotes table represents the total with the cart price rule applied ?


texts: Convert WYSIWYG content into html in magento2

texts:
I want to get all content of WYSIWYG content display on my popup. When the WYSIWYG content has an image and text added then the image doesn't display.

I want to get output like that. If I added Bold effect on text and an image is added in the WYSIWYG content, then it will display output like bold font and the image is displayed. If I added just an image, then the image will be displayed in the popup. If I added just Bold effect on textm then it will displayed as bold text.

How can do like this?


texts: Magento 2: Update order status using rest API

texts:
Guys I want to update order status using API. I am using this api to change the order status but it's not working:

http://dev-jawed.com/index.php/rest/V1/orders

{
"status" : "Out-for-delivery",
"entity" : 1,
"items": {
        "order_id" : 1
  }
}

Any help will be appreciated.


texts: Need to  display custom text in invoice and shipment view (sales_order_invoice_view) in Payment information section in magento 2.3[


texts: Magento2 custom css not included in head after upgrading the website

texts:
I upgraded a website from 2.0.5 to 2.1.5. The website uses a custom theme.

In this theme, I added some css to include in the layout

  app\design\frontend\Vendor\themename\Magento_Theme\layout\default_head_blocks.xml

But none of the CCC are being included in the head tag in frontend. The upgraded website uses the correct theme, because it loads the content of phtml for example.


texts: Magento 2 how to work with CMS blocks and CMS pages on repository?

texts:
I have created many blocks but as far as I know only by exporting them from database is the only way to have their code. Is there another way to have the files? because pushing and commiting .sql to rep is not the best practice.
Greetings!


texts: Magento 1.9: Force Customer to login to access the homepage and other page

texts:
If customer open site then login page show but if the customer enters login details then show the homepage and other product page and catalog page. I have added this code in index.php and 1cloumn.phtml file but its start looping the site

but perfect work on other pages

<?php
if(!Mage::getSingleton('customer/session')->isLoggedIn()){
    Mage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl('customer/account/login'));
}
?>


texts: How to display all session messages as popup in Magento2?

texts: I want to display all session messages into popup instead of normal notification messages.


texts: Magento2 : Where do I start and what do I need?

texts:
I want to extend a Magento 2 application with communication to a remote webservice.

The requirement is simple: When Productdata gets updated, I want to send a request to a webservice. Depending on the result of the request, I want to update a custom field of the product.

I just don't know how to get this started. Do I need to build a module? Do I need to configure a integration? Is it both?

Thanks!


texts: why won't this populate my 'sku' column in my Grid.php

texts:
I'm trying to figure out how to get my Collection to populate the 'sku' column of my Grid.PHP.

    protected function _prepareColumns() {
    $this->addColumn('sku', array(
        'header'=> Mage::helper('AdvancedStock')->__('Sku'),
        'filter' => false,
        'width' => '100px',
        'sortable' => false
    ));
            return parent::_prepareColumns();
}

    protected function _prepareCollection() {
    $productId = $this->getProduct()->getId();
    $query = Mage::getResourceModel('sales/order_item_collection');
    $query->getSelect()->reset(Zend_Db_Select::COLUMNS)
        ->columns(array('sku')) //,'SUM(row_total)'
        ->group(array('sku'));
    $this->setCollection($query);
    return parent::_prepareCollection();
}

I'm expecting that 1 column to have something, am I way off?

Thanks for help


texts: What is the Review approve event in Magento?

texts:
I need to send an offer email to customers, if their review is approved.

I can't find one. How can I list all the events available in Magento?

What hook/event can I use?

In Magento 1.9 version:

<?>
    <observers>
        <your_module>
            <type>singleton</type>
            <class>your_module/observer</class>
            <method>yourMethod</method>
        </your_module>
    </observers>
</?>


texts:
My question is about creating update for a custom module extension that I have made.

I have no idea where to begin. So breafly here is what my module does

It create a database table
Stores data from a form
Show them backend in grid

Now the forms have to have more options. but my table dont have enough colums.

So my question is

How do i make an update for my module, that update my tables and update the output to my backend grid?


texts:
<type name="Magento\Checkout\Model\CompositeConfigProvider">
    <arguments>
        <argument name="configProviders" xsi:type="array">
            <item name="magepow_one_step_checkout_composite_config" xsi:type="object">Vendor\Module\Model\CompositeConfigProvider</item>

            <item name="checkout_Extrafee_block" xsi:type="object">Vendor\Module\Model\ExtrafeeConfigProvider</item>
        </argument>
    </arguments>
</type>

And

<?php
namespace Vendor\Module\Model;

use Magento\Checkout\Model\ConfigProviderInterface;

class ExtrafeeConfigProvider implements ConfigProviderInterface
{
    /**
     * @var \Vendor\Module\Helper\Data
     */
    protected $dataHelper;

    /**
     * @var \Magento\Checkout\Model\Session
     */
    protected $checkoutSession;

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

    /**
     * @param \Vendor\Module\Helper\Data $dataHelper
     * @param \Magento\Checkout\Model\Session $checkoutSession
     * @param \Psr\Log\LoggerInterface $logger
     */
    public function __construct(
        \Vendor\Module\Helper\Data $dataHelper,
        \Magento\Checkout\Model\Session $checkoutSession,
        \Psr\Log\LoggerInterface $logger

    )
    {
        $this->dataHelper = $dataHelper;
        $this->checkoutSession = $checkoutSession;
        $this->logger = $logger;
    }

    /**
     * @return array
     */
    public function getConfig()
    {
        $ExtrafeeConfig = [];
        $enabled = $this->dataHelper->isModuleEnabled();
        $minimumOrderAmount = $this->dataHelper->getMinimumOrderAmount();
        $ExtrafeeConfig['fee_label'] = $this->dataHelper->getFeeLabel();
        $quote = $this->checkoutSession->getQuote();
        $subtotal = $quote->getSubtotal();
        $ExtrafeeConfig['custom_fee_amount'] = $this->dataHelper->getExtrafee();
        $ExtrafeeConfig['show_hide_Extrafee_block'] = ($enabled && ($minimumOrderAmount <= $subtotal) && $quote->getFee()) ? true : false;
        $ExtrafeeConfig['show_hide_Extrafee_shipblock'] = ($enabled && ($minimumOrderAmount <= $subtotal)) ? true : false;
        return $ExtrafeeConfig;
    }
}

knockout template

  define(
    [
        'Magento_Checkout/js/view/summary/abstract-total',
        'Magento_Checkout/js/model/quote',
        'Magento_Catalog/js/price-utils',
        'Magento_Checkout/js/model/totals'
    ],
    function (Component, quote, priceUtils, totals) {
        "use strict";
        return Component.extend({
            defaults: {
                isFullTaxSummaryDisplayed: window.checkoutConfig.isFullTaxSummaryDisplayed || false,
                template: 'Vendor_Module/checkout/summary/fee'
            },
            totals: quote.getTotals(),
            isTaxDisplayedInGrandTotal: window.checkoutConfig.includeTaxInGrandTotal || false,
            isDisplayed: function() {
                return this.isFullMode();
            },
            getValue: function() {
                var price = 0;
                if (this.totals()) {
                    price = totals.getSegment('fee').value;
                }
                return this.getFormattedPrice(price);
            }
        });
    }
);

I tried config value in Html template, please check my code here, thank you.


texts: Output all product attribute values on catalog page

texts:
On the catalog grid page, I want to output all filterable attribute values for each product. For example: If the price is filterable in the layered navigation, the attribute value associated with the product would be output (£0.00 - £999.99, £20,000 and above, etc).

I have the start of something but can't work out how to filter by product only and grab the value:

            $_productId = $_product->getProductId();
            $product = Mage::getModel('catalog/product')->load($productId);
            $attributes = $product->getAttributes();
             foreach ($attributes as $attribute) {
                echo $attribute->getAttributeCode();

              }

This just seems to output every attribute code on every product.

This is how I think it should be represented in terrible pseudocode:

get allProductAttributes
foreach allProductAttributes as attribute
    if attribute->isFilterable
        echo attribute->getAttributeValue
    endif
endforeach

Thanks


texts: Magento2 2.1.5 Cronjob doesn't get executed. ID always 0

texts:
My magento cronjob stopped working. It gets executed from system. Checked that in the logs. But magento just shedules the cronjobs and don't execute them. Also the schedule_id of the cronjobs is always 0. Manually run the cron task gives me an execption. See images from cli and database.
What could cause this issue ? And how to fix?

PHP 7 on ubuntu
Magento 2.1.5


texts: Displaying cart item count in custom span tag

texts:
I am trying to figure out how to display the current cart count in a span outside of the mini cart. I have tried to add data-bind="html: getCartParam('subtotal') into the span but I get an error:

Uncaught ReferenceError: Unable to process binding "html: function (){return getCartParam('subtotal') }"
Message: getCartParam is not defined

I am able to add this:

<?php echo $this->helper('\Magento\Checkout\Helper\Cart')->getItemsCount(); ?>

which will give me the cart count but it will break as soon as full page cache is enabled. Is there anyway to accomplish what I want?

EDIT:

<?php
$counter = $this->helper('\Magento\Checkout\Helper\Cart');
?>

    Call Now <a href="tel:<?php echo $block->getPhoneNumber(); ?>"><?php echo $block->getPhoneNumber(); ?>
    &nbsp;
    &nbsp;Bag <?php echo $counter->getItemsCount(); ?>

EDIT 2:

app/code/Vendor/Module/view/frontend/templates/customerInformation.phtml


texts: Where is function for delete address from admin of customers

texts: I want to know function logic location, when customer address is remove from admin section. The cross button is present in "Addresses" tab in left navigation of Customer Information. After click  cross button and hit save or save and continue Edit which functions calls in both cases for remove customer address which are assigned to customer.


texts: How to get Product Cost from Order Items

texts:
I'm trying to get the cost of each product on an order summed together into a single value, not sure what I'm doing wrong but it's not returning any values.

I should note that I'm able to pull other item details from the order such as prices, skus, etc.

// I'm passing $order info via observer

$itemCollection = $order->getItemsCollection();

foreach($itemCollection as $item) {
    // Get Product Costs
    $productCost += $item->getCost();
}

$productCost is returning null, any ideas why?


texts: Magento 2 : Add custom text after price amount show

texts:
I am trying to add custom text after price display everywhere(globally) in website.

category view
product view
Mini cart
cart page
checkout page
etc..

can anyone help to me...


texts: Magento2 - Get Value of New Column in Tier Price Table

texts:
I have added a new column "admin_user" column in catalog_product_entity_tier_price table. This column value needs to come when following method is executed.

$p=$productRepo->get('sample');
$tier=$p->getTierPrices();
foreach ($tier as $t)
{
    print_r($t->getData())."<br>";
}

But getData() method returns only qty and customer group id.

Array ( [customer_group_id] => 2 [value] => 3.0500 [qty] => 1.0000 )
Array ( [customer_group_id] => 3 [value] => 4.0000 [qty] => 1.0000 )

How do I add "admin_user" value to this getData() method. Any help would be appreciated.

Update 1

I have found that in \Magento\Catalog\Model\ResourceModel\Product\Attribute\Backend\GroupPrice\AbstractGroupPrice.php columns are set in this method

public function loadPriceData($productId, $websiteId = null)
    {
        $connection = $this->getConnection();

        $columns = [
            'price_id' => $this->getIdFieldName(),
            'website_id' => 'website_id',
            'all_groups' => 'all_groups',
            'cust_group' => 'customer_group_id',
            'price' => 'value'
           'admin_user'=>'admin_user'
        ];

How to override this method of the abstract class to include additional table columns in custom module


texts:
I have a Magento website configured with 1 website and 2 stores. Each store products are separated with root category, means each store has their own root category.

I want the products from store A not searchable from store B.
How to override search to do such thing? which method should I look into?

Note: I don't want to use Visibility setting due to some reasons such as it will make a product from another store not clickable in cart/mini cart.


texts: Magento 2 integration tests load data fixtures before config fixtures

texts:
Let's say I have a method in my integration test with annotations like this:

/**
 * @magentoDataFixture Magento/Store/_files/core_second_third_fixturestore.php
 * @magentoConfigFixture secondstore_store some/config/field 1
**/

When I run the test it fails with:

  PHP Fatal error:  Uncaught exception
  'Magento\Framework\Exception\NoSuchEntityException' with message
  'Requested store is not found' in
  /var/www/html/magento2/app/code/Magento/Store/Model/StoreRepository.php:60

I think that this is because config fixtures are loaded before data fixtures in dev/tests/integration/framework/Magento/TestFramework/Bootstrap/DocBlock.php and in this case we need data fixture to create the store.

Is there a way to load config fixtures after data fixtures so that stores would be available?


texts: Magento 2 Get category active filters name and id in Category page

texts:
For testing purpose, I'm writing my code in the following file.

  app/design/frontend/Joemerino/base/Magento_Swatches/templates/product/layered/renderer.phtml

<?php
    $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
    $filterableAttributes = $objectManager->create('Magento\Catalog\Model\Layer\Resolver');
    $layer = $filterableAttributes->get();
    $activeFilters = $layer->getState()->getFilters();
    echo "<pre>";
    print_r($activeFilters);
    echo "</pre>";
?>

But it's empty even if two filters applied.


texts: Tax and Excl. Tax is the same when using configurable swatches

texts:
I'm using Magento 2.3.5, and have noticed my incl/excl tax prices are the same, but only when clicking a swatch (I assume JS somewhere is at fault, but scratching my head)

I've tested disabling all extensions, clearing static files then using Luma, same result.

Image 1: On page load, it's correct (also correct in Cart/Checkout)

Image 2: When a swatch has been clicked. It's like some javascript updates all price elements to the same, but there's no custom js enabled here.

Any help greatly appreciated


texts: Slider banner image is resize to smaller size in magento 1.9

texts:
I am new to magento so I couldn't find the solutions to my problem.

Everything was working fine after I created a CMS page and the slider banner showing image small. I try to flush the cache, delete session files and even started MYSql & Apache2 server, nothing fixed the issues. Also I deleted the files but nothing changes the slider banner.

Any help will be appreciated.


texts: Magento 2 remove home link from breadcrumb

texts: We need to remove home link from breadcrumb from all pages.


texts: Magento2 : multi select box is not showing option with custom source

texts:
Working on custom extension, I have implemented multi select option using custom source. It don't show the option in multi select box. Anybody knows the reason?
Check screenshot,

$eavSetup->addAttribute(
            \Magento\Catalog\Model\Product::ENTITY,
            'extension_source_user',
            [
                'type' => 'varchar',
                'label' => 'Used Title',
    'backend' => 'Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend',
                'input' => 'multiselect',
    'source' => 'company\extension\Model\Source\Custom\User',
                'required' => false,
                'sort_order' => 7,
                'global' => \Magento\Catalog\Model\ResourceModel\Eav\Attribute::SCOPE_STORE,
    'apply_to' => 'simple,configurable,virtual',
                'group' => 'company',
    'searchable'        => false,
    'filterable'        => false
            ]
        );


texts: Can Catalog Price Rules be applied to Bundles with dynamic pricing?

texts:
A bundle can be made up of N component products, and in our case the price of each component is managed through an ERP system.  A customer can buy the components as a bundle, and receive a discount for doing so.  What we'd like to do is set up the bundle's pricing as Dynamic so that the price of the bundle is calculated as the total of each of the component products, then use a Catalog Price Rule to apply a discount (e.g. $10.00) to the total.  The components can also be purchased individually (at full price), so simply applying a rule to one or more of the components isn't really an option for this case.

This allows the administrator to change the prices on each of the components without having to adjust the overall bundle price and saves a lot of effort.

I've tried configuring a price rule that applies to a bundle to see what happens, and no discount was applied.  I checked all of the usual things like making sure the rule was active and had been applied, date ranges and other constraints were met, etc so I'm reasonably confident my rule was configured correctly.  A quick code review of Mage_Bundle_Model_Product_Price suggests that Catalog Price Rules aren't checked when calculating bundle prices.

Is this something Magento supports?  And if so, are there any special tricks or gotcha's to be aware of?


texts: Magento: How to change the pagination url ?p=1 to ?page=1 in custom module?

texts:
I have created a custom module, for pagination added this block:

protected function _prepareLayout()
{
    parent::_prepareLayout();

    $pager = $this->getLayout()->createBlock('page/html_pager', 'custom.pager');
    $pager->setAvailableLimit(array(3=>3,6=>6,9=>9,'all'=>'all'));
    $pager->setCollection($this->getCollection());
    $this->setChild('pager', $pager);
    $this->getCollection()->load();
    return $this;
}

public function getPagerHtml()
{
    return $this->getChildHtml('pager');
}

Added following in template file:

<?php echo $this->getPagerHtml(); ?>

My pagination url's work as:
http://test.com/test-landing.html?p=2

But instead of "p" I want to use "page" like this way
http://test.com/test-landing.html?page=2

How can I do that ?

Thanks


texts: Is it possible to sort the product collection based on another array that contains skus

texts:
I have an array that contains some SKUs belonging to the current category.

I want to reorder the collection based on that array so that the SKUs present in my order array will come first.

For this i have been trying to edit the list.phtml file

$category = Mage::registry('current_category');
$inArray = explode(',', $category->getData('top_skus'));

usort($_productCollection, function($a, $b) use ($inArray){
    print_r($a);
    $aAge = $a['sku'];
    $bAge = $b['sku'];
    $aWeight = 0;
    $bWeight = 0;
    if (in_array($aAge, $inArray))
        $aWeight++;

    if (in_array($bAge, $inArray))
        $bWeight++;

    if ($aWeight != $bWeight) {
        return $aWeight > $bWeight ? -1 : 1;
    } else if ($aWeight > 0) {
        // need to sort by order which specified in array
        $aIndex = array_search($aAge, $inArray);
        $bIndex = array_search($bAge, $inArray);
        return ($aIndex == $bIndex ? 0 : ($aIndex > $bIndex ? 1 : -1));
    } else {
        // just compare age values
        return ($aAge == $bAge ? 0 : ($aAge > $bAge ? 1 : -1));
    }
});

I am getting an error like this

Warning: usort() expects parameter 1 to be array, object given  in C:\wamp\www\magento1\app\design\frontend\base\default\template\catalog\product\list.phtml on line 74

How to supply the array that contains the products to my usort? From where i will get that array?


texts:
Hello I have Downloaded MAMP and Magento using but Can't INSTALL!
First I used this download magento,
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.3.0 .

(I have php version 7.2)
My problem comes from Magento installation protocol, first the setup/landing page is missing.
I have tried command line and I receive parameter validation, and "the sever requested authentication unknown to client errors.
It sounds like I need to make a database? my magento2 folder is in /applications/htdocs/magento2.
Is that where I will attach or save my db? If so how can I create a blank one using the terminal on mac? If i need it.
I used tried using this command to install
bin/magento setup:install --base-url=http://127.0.0.1/magento2/ \
--db-host=localhost --db-name=magento --db-user=root --db-password=root@123 \
--admin-firstname=first --admin-lastname=last --admin-email=abc@gmail.com \
--admin-user=admin --admin-password=admin@123

However I receive this error https://imgur.com/8xZJRKr
.
I'm on MacOS... any help getting started would be WELCOMED and GREATLY appreciated!!!
Thanks.


texts: Passwort reset link in new-account e-mail

texts:
I'm trying to get the reset password link into the new account mail, right after registration. My attempt right now is:

  theme/template/customer/resetlink.phtml

if ($user->getId()) {
    $newResetPasswordLinkToken = Mage::helper('admin')->generateResetPasswordLinkToken();
    $user->changeResetPasswordLinkToken($newResetPasswordLinkToken);
    $user->save();

    echo "https://thisismyshop.com/customer/account/forgotpassword/?id=" . $user->getId() . "&token=" . $newResetPasswordLinkToken;

  Layout handler in customer.xml

<resetlink_handle_new_account_mail>
  <block type="core/template" name="resetlink" template="customer/resetlink.phtml" />
</resetlink_handle_new_account_mail>

  E-Mail Template:

 {{layout handle="resetlink_handle_new_account_mail" user=$customer}}

I can call the template via block, which works:

{{block type='core/template' area='frontend' template='customer/resetlink.phtml'}}

But I have to transmit $customer as user to the template file in order to create a new token and generate the correct reset-url.

What am I doing wrong?

  Getting Error: Uncaught Error: Call to a member function getId() on
  null

Thank you for your help!

Is there a more straightforward possibility? Right now the token is empty, if I use the same {{}} as used in the reset password template.


texts: Get customer order between the particular year

texts:
I have the total number of orders placed by the customer. Now i want to get the orders between the particular range of time,like i want to get all the orders placed in last year. I am adding the code i used for getting total no of order

$_customerCollection = Mage::getModel('customer/customer')
        ->getCollection()->addAttributeToSelect('*');

foreach($_customerCollection as $customer)
{
 $customerTotals = Mage::getResourceModel('sales/sale_collection')
     ->setCustomerFilter($customer)
     ->load()
     ->getTotals();

    $customerNumberOfOrders = $customerTotals->getNumOrders();
}


texts: How to add custom phtml in catalog view page in magento2

texts:
I want to add some custom code in my catalog category view page. I don't want to override product/list.phml file . But just display my custom code in catagory view page.

How to add it?


texts: I am looking at a couple different e-Commerce solutions. One is WooCommerce and Magento is the other. The website I want to develop would access a database of cities, flights, tourist itineraries, and restaurants. The user would fill out a survey to determine what type of vacation they would like, food likes and dislikes, activity likes, etc., and the website would take their answers and spit out a vacation package unique to them, complete with flights, pictures, restaurant names, etc. Is this possible using Magento? Or is the programmatic logic to determine how to dynamically display a vacation package based on user input and database content outside the scope of Magento?


texts: Magento 2 : Server specifications recommended for a given amount of products

texts:
Does magento 2 with more products require more processing power?
If yes what would be recommended specifications for a server hosting magento with around 400,000 simple products.

PS: I am asking this because it is taking too much time to reindex products.

  Current Specs :

  CPU : Xeon e3 1230v2 quad-core 4*3.7 GHz
   RAM : 32 Gb
   Storage : 2TB


texts: How to add quantity for each custom option?

texts:
I have a product with different length. So I went to Custom Options to add the different lengths.

But for each length, I need it to have a different price and quantity. You can customize the price by default but no the quantity.

How do achieve this?

I tried grouping them but somehow Magento doesn't let me group products that have "Custom Options".

Also, feel free to give whatever solution that achieve the intended results, either via extension or coding. Thanks!


texts: Is there a php version which support Magento 2 all versions

texts:
I am testing a Custom Module on Magento 2.1.12 and Magento 2.2.3, I am using Lampp with php version 7.1.3, which is supportive for magento 2.2.3 but not for magento 2.1.12.

What is the solution for this problem?


texts: Magento 2 : Add template below addtocart button and replace quantity and addtocart template from product detail page

texts:
I have two requirements

Add template below addtocart button.
Replace core template of quantity and addtocart button with my own template. How to achieve this

My layout file is below:-

catalog_product_view.xml

<referenceContainer name="product.info.main">
    <block class="Vendor\Modulename\Block\Product\View\Stock"
        name="product.view.stock"
        template="Vendor_Modulename::product/view/stock.phtml"
        after="product.info.addtocart" ifconfig="form_stock/form_group_general/status">
    </block>
</referenceContainer>

By using this template. I am getting my template at product detail page below product name. but my requirement has different which is i have shown above. If anybody know then please guide me.


texts: PayPay Billing address and Shipping address

texts:
I am facing a strange issue with PayPal express checkout. This is the first time i noticed it.

When a customer enters a separate billing and shipping addresses and goes to PayPal checkout page, On PayPal checkout page instead of showing different billing and shipping address its showing same address ie: Shipping address for both billing and shipping address field.


texts:
I have an menu option to create multiple shipments from selected orders in an extension.

It works on some stores (tested) but the store I'm trying to get it to work on (2.3.1) uses MSI and I'm wondering if it's something to do with that?

 protected function massAction(AbstractCollection $collection)
{

        $countShipOrder = 0;
        foreach ($collection->getItems() as $order)
        {
            try
            {
                $shipOrder = $this->_shipOrder->create();
                $ship = $shipOrder->shipOrder($order->getId());
                $countShipOrder++;
            }
            catch (\Exception $e)
            {
                $this->messageManager->addError(__('Order Shipments Already Created For : %1',$order['increment_id']));
            }
        }

        $countNonShipOrder = $collection->count() - $countShipOrder;

        if ($countShipOrder) {

            $string = $countShipOrder.' success, '.$countNonShipOrder .' fails';
            $this->messageManager->addSuccess(__('Order shipments processed : %1.', $string));
        }

        $this->_redirect('sales/order/index');

}

class ShipOrder extends \Magento\Framework\Model\AbstractModel
{
    protected $_scopeConfig;
    protected $_order;
    protected $_orderConverter;
    protected $eventManager;

    public function __construct(
           \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
           \Magento\Sales\Model\OrderFactory $order,
           \Magento\Sales\Model\Convert\OrderFactory $orderConverter,
           \Magento\Framework\Event\Manager $eventManager,
           \Magento\Framework\Model\Context $context

    ){
        $this->_scopeConfig = $scopeConfig;
        $this->_order = $order;
        $this->eventManager = $eventManager;
        $this->_orderConverter = $orderConverter;
    }

    public function shipOrder($orderId)
    {
        //load by order
        $order = $this->_order->create()->load($orderId);

        // Check if order can be shipped or has already shipped
        if ( !$order->canShip()) {
            throw new \Magento\Framework\Exception\LocalizedException(
                            __('You can\'t create an shipment for order increment id: %1', $order->getIncrementId())
                        );
            return false;
        }
        else {
            $shipment = $this->createShipment($order);
            return  $shipment;
        }
    }

    public function createShipment($order){

        // Initialize the order shipment object
        $convertOrder = $this->_orderConverter->create();
        $shipment = $convertOrder->toShipment($order);

        // Loop through order items
        foreach ($order->getAllItems() as $orderItem) {
            // Check if order item has qty to ship or is virtual
            if (! $orderItem->getQtyToShip() || $orderItem->getIsVirtual()) {
                continue;
            }

            $qtyShipped = $orderItem->getQtyToShip();

            // Create shipment item with qty
            $shipmentItem = $convertOrder->itemToShipmentItem($orderItem)->setQty($qtyShipped);
            // Add shipment item to shipment
            $shipment->addItem($shipmentItem);
        }
        // Register shipment
        $shipment->register();
        $shipment->getOrder()->setIsInProcess(true);
        try {
            // Save created shipment and order
            $shipment->save();
            $shipment->getOrder()->save();
            return $shipment;

        } catch (\Exception $e) {
            throw new \Magento\Framework\Exception\LocalizedException(__($e->getMessage()));
        }
    }

That final try catch where it tries to save the shipment is where the error is being thrown.

The undefined variable sourceCode is coming from /vendor/magento/module-inventory-shipping/Observer/SourceDeductionProcessor.php on line 112


texts:
i need to delete "zip code" text field from cehckout page in magento 2. For that i following this answers:
ANSWER but i don't know how to add my class which will set default value '00000' for "zip code" text field and don't know how to override code xml in own plugin. I created own plugin, please tell me what i doing wrong in building own plugin.

Folders tree:

  --/app/code/Rockforweb/CheckoutZipcode
  --Data/
    --Address.php
  --etc/
    --di.xml
    --module.xml
  --view/
    --frontend/
      --page_layout/
        --checkout_index_index.xml
  --composer.json
  --registration.php

FILES CONTENT:

registration.php:

<?php
\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::MODULE,
    'Rockforweb_CheckoutZipcode',
    __DIR__
);

composer.json:

{
    "name": "Rockforweb\/CheckoutZipcode",
    "description": "",
    "require": {
        "php": "~5.5.0|~5.6.0|~7.0.0"
    },
    "type": "magento2-module",
    "version": "2.1.2",
    "license": [
        "Proprietary"
    ],
    "autoload": {
        "files": [
            "registration.php"
        ],
        "psr-4": {
            "Rockforweb\\CheckoutZipcode\\": ""
        }
    },
    "extra": {
        "map": [
            [
                "*",
                "Rockforweb\/CheckoutZipcode"
            ]
        ]
    }
}

checkout_index_index.xml:

checkout_index_index.xml

di.xml:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
     <preference for="Magento\Quote\Model\Quote\Address"
                 type="Rockforweb\CheckoutZipcode\Data\Address" />
</config>

module.xml:

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

Address.php:

<?php
namespace Rockforweb\CheckoutZipcode\Data;

class CheckoutZipcode extends Magento\Quote\Model\Quote\Address
{
    public function afterGetPostcode()
    {
        return '00000';
    }
}


texts: Magento 2 - re-indexing creates multiple catalogrule_product tables

texts:
Currently i am facing an issue with re-indexing, It creates a temporary copy of catalogrule_product table. I have shared an image of the tables.

And because of this the db size is growing larger. Did any one you faced the same problem. Please help !


texts: Where does the validation for onepage billing.phtml take place?

texts:
I'm looking for the validation of billing.phtml for onepage so that I can remove a field from being 'required'

I've tried the Abstract.php file and a copy of it I made but no change as of yet


texts: Magento 2 add custom css to custom theme

texts:
We have a Magento 2.1 website with a theme we bought. We have the theme in "default aka production" mode. we are customizing the theme so create a child theme. Now we want to create a custom css to keep our custom css separate from the themes css. So we created a custom css file names customcss.css in  a directory

app/design/frontend/Smartwave/porto_child/web/css

Then we edited the file named default_head_blocks.xml adding

<css src="css/customcss.css" />

to the file under all the other calls to css files. We then cleared the cache in magento and cleared our browsers cache and when to the website and our issue is when we view the source for the website it does not seem to be loading the customcss.css file. It looks like when we recompile/re-deploy files the customcss.css file is not moved to where ever all the "deployed" files are moved to?? So not sure how to correct this so that when we on the CL recomplie/redeploye the css file is kept?


texts:
I created a feature to check if a spreadsheet has the correct layout, before uploading it to the database, it works perfectly for spreadsheets that are outside the requested standard. The problem is, when I upload it to check one that has the correct layout, it gives the same exception message as if it were wrong.
This was the function I created to do the validation:
private function validateFields(string $file): self
    {
        $fh = fopen($file, 'r');
        $header = fgetcsv($fh);
        fclose($fh);

        foreach ($header as $value) {
            if (!in_array(strtoupper($value),
             self::MAP) || count(self::MAP) != count($header)) {
                 throw new \Exception('Invalid archive layout.');
             }
        }
        return $this;
    }

And here is where i'm calling this function with a try catch for this exception message:
public function execute()
    {
        $files = $this->getRequest()->getFiles('files');

        $resultRedirect = $this->resultRedirectFactory->create();
        $resultRedirect->setPath('*/*');

        if (empty($files['tmp_name'])) {
            $this->messageManager->addWarningMessage(__('No files were uploaded.'));
            return $resultRedirect;
        }

        try {
            $file = $this->setExtensionInTemporaryFile($files['tmp_name'], $files['name']);

            $fileData = $this->file->readFile($file, self::SPREADSHEET_TAB);

            $this->validateFields('$file');

            $this->saveCustomerRelatedAttribute->execute($fileData);

            $this->messageManager->addSuccessMessage(__('Customer segment attributes save successfuly.'));
        } catch (\InvalidArgumentException $e) {
            $this->messageManager->addErrorMessage(__('Make sure the file extension refers to a csv.'));
        } catch (CouldNotSaveException $e) {
            $this->messageManager->addErrorMessage(
                __('One or more lines do not contain correct values. Check and try again.')
            );
        } catch (\Exception $e) {
            $this->messageManager->addErrorMessage(__('The csv layout is invalid. Check and try again.')
            );
        }
        return $resultRedirect;
    }


texts: Using Custom JS for magento 2 KO datepicker in checkout page error required field

texts:
I tried to add a custom datepicker with custom js in my Magento 2 checkout for delivery date, the custom js datepicker is showing and when i click the date it fills the value, but when i click next to go to the payment method i got an error This is a required field.

the html file:

<input id="shipping_date" class="input-text" type="text" data-bind="
        event: {change: userChanges},
        hasFocus: focused,
        value: value,
        datepicker: true,
        attr: {
            name: inputName,
            placeholder: placeholder,
            'aria-describedby': noticeId,
            disabled: disabled
        }" readonly="true"/>

the js file:

define([
    'jquery',
    'ko',
    'Magento_Ui/js/form/element/abstract'
], function ($, ko, Component) {
    'use strict';
    return Component.extend({
        initialize: function () {
            this._super();
            var calendar = window.checkoutConfig.calendar;
            var storeId = window.checkout.storeId;
            ko.bindingHandlers.datepicker = {
                init: function (element, valueAccessor, allBindingsAccessor) {
                    var $el = $(element);

                    // custom DatePicker
                    YAHOO.namespace("shipping.calendar");
                    YAHOO.shipping.calendar.init = function() {
                        var options = {
                            mindate: calendar.first_day,
                            maxdate: calendar.last_day,
                            locale_weekdays: "1char",
                        };
                        YAHOO.shipping.calendar.cal1 = new YAHOO.widget.CalendarGroup(
                          "cal1",
                          "cal1Container", options,
                           {PAGES:2}
                        );
                        var mySelectHandler = function(type,dateSelected,obj) {
                          var dates = dateSelected[0];
                                    var date = dates[0];
                                    var year = date[0], month = date[1], day = date[2];
                                    var date = year + "-" + month + "-" + day;
                                    document.getElementById('shipping_date').value = date;
                        };

                             YAHOO.shipping.calendar.cal1.selectEvent.subscribe(mySelectHandler, YAHOO.shipping.calendar.cal1, true);
                        YAHOO.shipping.calendar.cal1.render();
                    }

                    YAHOO.util.Event.onDOMReady(YAHOO.shipping.calendar.init);
                    // end custom DatePicker

                }
            };

            return this;
        }
    });
});


texts: Get Magento Manufacturer Logo for Current category in Category Page

texts:
I'm using this code to get magento manufacturers' label in current category page. (show brands for just current category not all the brands)

$manufacturers   = array();
$filterBlockName = 'catalog/layer_filter_attribute';
$category        = Mage::registry('current_category');
$layer           = Mage::getSingleton('catalog/layer');
$layer->setCurrentCategory($category);
$attributes = $layer->getFilterableAttributes();
foreach ($attributes as $attribute) {
    if ($attribute->getAttributeCode() == 'manufacturer') {
        $result = Mage::app()->getLayout()->createBlock($filterBlockName)->setLayer($layer)->setAttributeModel($attribute)->init();
        foreach ($result->getItems() as $option) {
            $manufacturers[$option->getValue()] = $option->getLabel();
        }
    }
}

I've added above code in a custom phtml file and add an custom cms block to category page pointing to this phtml file.

Actually it works fine in category pages. All I need is to get manufacturer IMAGE instead of the their LABEL.

Please help me what to do.
Thanks


texts: How to map the localhost path for magento 2 index file, to a domain name

texts:
I have created a magento 2 setup and currently accessing the site by punching the whole url like

  localhost\bla\bla\bla.....\magento-root-directory\

But I would like it to be

  localhost\www.xyz.com

How to achieve the same.


texts: Is there an extension or module that authenticates a domain name as a group?

texts:
I need a module or extension that will authenticate a domain, perhaps by a group I provide in the admin panel.

Example:
I want ONLY users with @apple.com to be allowed to register with my Magento site.  They will enter in their email address, a script will verify that it is @apple.com and it will allow that user to register, with an email that will verify their account is ready.


texts: Don't execute foreach loop if array is empty

texts:
I have the following code, if there are no orders older then $days_ago, I want that the foreach loop won't be executed. I don't know how to do this.

$orders = Mage::getModel('sales/order')->getCollection()
     ->addAttributeToSelect('*')
     ->addAttributeToFilter('created_at', array('lt' => $days_ago));

     foreach ($orders as $order):
        if(!$this->_shouldBeAnonymised($order)):
            continue;
     endif;

        $this->_anonymiseSale($order);
     endforeach;

Hope someone can help me!


texts: magento show custom price based on category

texts:
I want to show custom price on product detail page. Based on category id

suppose when I view product A with price 100 and categeory id 1

I want to show its price as 100 + 20

and for category id 2

price as 100

What observer should I use to show different price without changing code?


texts: How to give discount from Shipping price in magento?

texts:
I have created a Shopping cart price rule with Coupon 'EL10' and now I want that if a customer apply this coupon code then amount should discounted from Shipping Method price only, not from Subtotal or Grand Total.

I googled it but didn't found any solution for this.

Can anyone help me in this ?


texts: Magento 2 | Minicart does not work after template override

texts:
I have changed the minicart styling etc.
But now i get a javascript error when i click the "Add to cart" button.
When i click on the Minicart icon in the header, the content area of the minicart does open however, it is empty...

This is the Javascript error i get when i click the "Add to cart" button:

'Uncaught TypeError: Cannot read property '*' of undefined' -> section-config.js:33

This is the header section of my default.xml in my own theme:

<referenceContainer name="header.container">
        <container name="header-wrapper" label="Page Header" as="header-wrapper">
            <block class="Customod\Test\Block\Html\Header\Logo" name="logo">
                <arguments>
                    <argument name="logo_img_width" xsi:type="number">189</argument>
                    <argument name="logo_img_height" xsi:type="number">64</argument>
                </arguments>
            </block>
            <block class="Magento\Framework\View\Element\Html\Links" name="top.links">
                <arguments>
                    <argument name="css_class" xsi:type="string">header links</argument>
                </arguments>
            </block>
            <block class="Magento\Checkout\Block\Cart\Sidebar" name="winkelwagen" template="Customod_Test::html/shopping_cart.phtml"/>
        </container>
    </referenceContainer>

And this is my shopping_cart.phtml template:

<a class="action showcart" href="<?php /* @escapeNotVerified */ echo $block->getShoppingCartUrl(); ?>"
   data-bind="scope: 'minicart_content'">
    <?php /* @escapeNotVerified */ echo __('My Cart'); ?>

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

<?php endif ?>

Thanks in advance!


texts:
Is it possible for each product to make two of custom options so that when you create a product in the tab of Custom option, these two options are the default.

Thanks


texts: VAT Exemption Checkout Step/ Ebizmarts Sage Pay extension

texts:
I have installed the following plugins:

VAT Exempt - http://www.magentocommerce.com/magento-connect/vat-exempt-by-indies.html

Sage Pay - http://www.magentocommerce.com/magento-connect/ebizmarts-sage-pay-suite-ce-europe-free-sagepay-official-extension.html

What happens is that that the VAT Exempt extension adds an additional step in the one page checkout after the Payment Method step but before the Order Review step, if the user selects YES they are VAT Exempt then the Tax is removed.

Every things works great if I checkout with Check/Money Order as my payment method, the order goes through without tax and with Tax if the user selects that they are no VAT Exempt.

The issue is when SagePay is selected as the payment method. The Order Review page shows no tax (which is fine) if the user selects that they are VAT Exempt, however, when the Sage Pay FORM opens the tax is included in the value, the whole order from that point on contains the tax (Order Confirmation email and in the admin).

what I think is that the value passed to Sage Pay is set on the Payment Method Step, the user then carries on and accepts that they are VAT Exempt the tax is removed but as the value being sent to Sage Pay is already set before they select VAT Exempt status the tax is being included.

Is there any way around this? Any fix? Ideas? or Suggestions. I'm pretty stumped and we got the website scheduled to go live early next week :/

Thanks in advance.


texts: Warning: simplexml_load_string(): lib/Varien/Simplexml/Config.php on line 383

texts:
I know this is a very general error but i need help getting it fixed.

I believe there is an extension with invalid XML and that's the cause of this error.

So if i have a syntax error somewhere in an extension's XML file, what would be the easiest way to scan through all my extensions? Is there an easy way to do this or am I going to have to go through them one by one?


texts: Show New Customize Error phtml Page on Magento Error once development is completed?

texts:
Before I go for live I want to show customize error page for frontend and backend So user will not to see "Magento and Processing your error request".
But the log and report folder will follow its default functionality.
give your suggestions.


texts: How a page is constructed and rendered in magento 1.9.1?

texts:
I have couple of years of experience in IT and now I have started learning magento on my own. I have gone through some video tutorials for learning this tool.

But I have very basic question in my mind. Is there any link/document/article which describes in details how the page is constructed and displayed in the browser. I googled it and found one or two links but I didn't get satisfactory/detailed content on it. Can anybody help me in this regard?

Thanks all.


texts: Magento 2 : How to find out store codes using front-end website only?

texts:
I would like to find out the different ways how one can identify store views if website having multi store codes.

PS. I'm using store switcher at the moment but is there any other way Magento exposing the store codes on the front end.


texts: Magento 1.9.x how to customize send email from my custom module?

texts: Hi i would like to customize send email and Send invoice email with attached. from my custom module how could i achieve this in magento1. Please find the screenshot.


texts: What happens in an upgrade from 1.9.1.0 to 1.9.2.4?

texts:
I want to upgrade Magento 1.9.1.0 to 1.9.2.4 using an app installation program in the cPanel called Softaculous.

I wonder what will happen to my Fedex and Paypal settings in the Magento Admin panel? Do the settings remain or do I have to put them back in after the upgrade?

I also have the following:

an Accessshop theme ( http://accessshopthemes.com/ )
a calendar from Amasty
ASCHRODER EXTENSIONS for a 3rd party send mail program - SMTP Pro

Will I have to install everything again after the upgrade or is there a chance it might just work?


texts: Paypal Credit option is not available in Magento Backend

texts:
For my Magento 1.9 websites, I want to enable the paypal credit option but this option is not displayed in my backend. But if I changed the Merchant Country from UK to US automatically “Enable Paypal Credit” option is available. I have found a tutorial regarding this, but when I  follow the steps the option ‘Enable Paypal Credit’ isn’t available, please check tutorials links below.

Tutorials Link :- https://medium.com/@Magento_expert/magento-tutorial-how-to-set-up-paypal-credit-and-paypal-payment-advanced-1d1777850439

Please help me if I missed something while magento / Paypal setup and how to enable paypal credit for UK.

Thanks in advance!


texts:
I want to show a custom message on the product page, delivery days message. like
"next day delivery". is it possible?


texts: Warning: ZipArchive::addFile(): Invalid or uninitialized Zip object

texts:
I am trying to zip the files in a folder. Example: In a path localhost/magento/var/log, there are two files system.log, debug.log. Following is the code which I tried to zip the files. Am developing this in MAGENTO 2.  Am getting an error when adding a file to zipping.

$filePath = $this->_dir->getPath('log');//[/rootpath/var/log]
$logFileConfigurations = scandir($filePath, 1);//[system.log, debug.log]
if (is_array($logFileConfigurations)) {
    foreach ($logFileConfigurations as $configuration) {
        if ($dir = opendir($filePath)) {
            $file = $configuration;
            chdir($filePath);
            try {
                $zip = new ZipArchive();
                $fileName = $configuration . date("d-m-YH:i:s") . '.zip';
                $fileName = str_replace(" ", "", $fileName);

                if ($zip->open($fileName, ZIPARCHIVE::CREATE) === false) {
                    die ("An error occurred creating your ZIP file.");
                }

                $zip->addFile($file);
                $zip->close();
                unlink($file);
            } catch (\Exception $e) {
                echo $e->getMessage();
            }

        }

    }
}

Thanks in advance.


texts:
I extend blank theme but on static content deploy I get a lot of errors on missing less variables

variable @icon-error is undefined in file .... in _theme.less

having structure

vendor/
--theme
---web
---Magento_Theme
----web
------css
-------source
----css
------source
-------_buttons.less
-------_navigation.less

How do I debug this issue?


texts: Magento 2.4 getting this error. is anyone guide me please

texts:
[Report Only] Refused to load the image
'https://www.facebook.com/tr/?id=350606009147220&ev=SubscribedButtonClick&dl=http%3A%2F%2F127.0.0.1%2FCE%2Fsuprememed%2Fsleeve-lymphedema-full-arm-26-75&rl=http%3A%2F%2F127.0.0.1%2FCE%2Fsuprememed%2Fmedical-supply%2Fapparel%2Fcompression-garments%2Flymphedema&if=false&ts=1614343042846&cd[buttonFeatures]=%7B%22classList%22%3A%22fotorama__nav__frame%20fotorama__nav__frame--thumb%20fotorama__active%22%2C%22destination%22%3A%22%22%2C%22id%22%3A%22%22%2C%22imageUrl%22%3A%22http%3A%2F%2F127.0.0.1%2FCE%2Fsuprememe...%2Fmedia%2Fcatalog%2Fproduct%2Fcache%2F88879fe77cf9b607d6864a47e51235b9%2Fm%2Fj%2Fmj10-red_main_1_5.jpg%22%2C%22innerText%22%3A%22%5Cn%20%20%20%20%5Cn%20%20%20%20%5Cn%22%2C%22numChildButtons%22%3A0%2C%22tag%22%3A%22div%22%7D&cd[buttonText]=%0A%20%20%20%20%0A%20%20%20%20%0A&cd[formFeatures]=%5B%5D&cd[pageFeatures]=%7B%22title%22%3A%22SLEEVE%2C%20LYMPHEDEMA%20FULL%20ARM%2026.75%5C%22%22%7D&cd[parameters]=%5B%5D&sw=1360&sh=768&v=2.9.33&r=stable&ec=2&o=2078&it=1614343029023&coo=false&es=automatic&tm=3&rqm=GET'
because it violates the following Content Security Policy directive:
"img-src widgets.magentocommerce.com www.googleadservices.com
www.google-analytics.com www.paypalobjects.com t.paypal.com
www.paypal.com fpdbs.paypal.com fpdbs.sandbox.paypal.com
*.vimeocdn.com s.ytimg.com d3sbl0c71oxeok.cloudfront.net dhkkzdfmpzvap.cloudfront.net d2bpzs5y44q6e0.cloudfront.net
d37shgu97oizpd.cloudfront.net d1zlqll3enr74n.cloudfront.net
d1jynp0fpwn93a.cloudfront.net d2cb3tokgpwh3v.cloudfront.net
d1re8bfxx3pw6e.cloudfront.net d35u8xwkxs8vpe.cloudfront.net
d13s9xffygp5o.cloudfront.net d388nbw0dwi1jm.cloudfront.net
d11p2vtu3dppaw.cloudfront.net d3r89hiip86hka.cloudfront.net
dc7snq0c8ipyk.cloudfront.net d5c7kvljggzso.cloudfront.net
d2h8yg3ypfzua1.cloudfront.net d1b556x7apj5fb.cloudfront.net
draz1ib3z71v2.cloudfront.net dr6hdp4s5yzfc.cloudfront.net
d2bomicxw8p7ii.cloudfront.net d3aypcdgvjnnam.cloudfront.net
d2a3iuf10348gy.cloudfront.net *.ssl-images-amazon.com
*.ssl-images-amazon.co.uk *.ssl-images-amazon.co.jp *.ssl-images-amazon.jp *.ssl-images-amazon.it *.ssl-images-amazon.fr *.ssl-images-amazon.es *.media-amazon.com *.media-amazon.co.uk *.media-amazon.co.jp *.media-amazon.jp *.media-amazon.it *.media-amazon.fr *.media-amazon.es *.cloudflare.com *.klarna.com *.googleadservices.com *.google-analytics.com *.paypal.com *.twitter.com *.twimg.com *.ytimg.com 'self' data: *.lightemporium.com *.usercentrics.eu yotpo.com www.yotpo.com p.yotpo.com staticw2.yotpo.com w2.yotpo.com 'self' 'unsafe-inline'".


texts: Is it possible not to use the cron jobs to send my sales confirmation email? I am on a shared hosting with hostgator and they don't allow cron jobs to be less than every 15 minutes. I don't want my customer to see an order confirmation after 10 or 15 minutes. IS there a way to change this?


texts: Move category title above category page image

texts:
I want to move the category title to this image:

Is it possible to do it with the layout.xml or is CSS needed to move it there?


texts: Magento2: How to show Product Weight on Filter

texts:
Need to show Product Weight on Category Page Filter, so Customer can also filter via Weight.

A user can also enter the weight in Text Box & Search, so it's vice versa between Slider & Textbox.


texts: How to get URL of admin controller method in Magento?

texts:
I have the following file structure:

community/Sandipan
community/Sandipan/controllers/Adminhtml/ProductfileuploadbackendController.php
[1]

I have a template file in the following directory:

design/adminhtml/default/default/template/productfileupload/catalog/product/tab.phtml [2]

My class [1] looks like this:
class Sandipan_Productfileupload_Adminhtml_ProductfileuploadbackendController extends Mage_Adminhtml_Controller_Action {

    public method deleteRecordAction() {

    }

}

I want to send AJAX request to deleteRecordAction from my template [2], how can I do that? I tried the following:
Mage::helper("adminhtml")>getUrl("adminhtml/productfileuploadbackend/deleteRecord");

But it's not working.


texts: What is the most lightweight way to load an unloaded attribute for an object?

texts:
As an example, say I would want to change the filter navigation for categories to add a title attribute to the links generated. The file

/app/design/frontend/base/default/template/catalog/navigation/left.phtml

contains the category object ($_category). However, the attribute meta_title isn't loaded for that object.

Straight forward, I could load a second category object, but that loads a lot of attributes that $_category already contains.

So I'm looking for the most lightweight way to load additional attributes for a given object, and best would be without loading a new object of the same type.


texts: How do you filter out Not Visible Individually products from bestsellers?

texts:
I'm using the following to get a list of bestselling products:

$collection = $this->_resourceFactory->create('Magento\Sales\Model\ResourceModel\Report\Bestsellers\Collection');

However, this includes products with a visibility of Not Visible Individually. I've tried to filter them out by using the following:

$collection->join('catalog_category_product_index', 'catalog_category_product_index.product_id = entity_id', '')->addFieldToFilter('visibility', array('neq' => Visibility::VISIBILITY_NOT_VISIBLE));

But this gives a Column 'store_id' in where clause is ambiguous error due to the (store_id IN(0)) AND (store_id IN(0)) condition added by Magento\Reports\Model\ResourceModel\Report\Collection\AbstractCollection::_applyStoresFilterToSelect().

Could anyone explain how I can add the table name to the store_id column in that filter – or a better way for me to filter out Not Visible Individually products from the bestsellers list?


texts: Sorting product list New added products and matching name products should be grouped

texts:
I want to Sort product listing by new added product, and I did it by adding code

 $this->_productCollection->addAttributeToSort('created_at', 'desc')

It is working fine, Now I want to show products as a group those has matching name
like, TOP-blue, TOP- green, TOP- red

Is it possible ? any help appreciable

thanks


texts: How to create Coupon that set product price to fixed price?

texts:
I want to create a coupon that allows customer to buy products with fixed price.
It's something like this:

COUPON
|-- Category 1
    |-- Product with X Attribute == 1 => set product price to $1
    |-- Product with X Attribute == 2 => set product price to $2
    |-- ...
|-- Category 2
    |-- Product with X Attribute == 1 => set product price to $3
    |-- Product with X Attribute == 2 => set product price to $4
|-- Category 3
    |-- Product with X Attribute == 1 => set product price to $5
    |-- Product with X Attribute == 2 => set product price to $6

How to do that?


texts: How to get filters above the product grid Magento 2

texts: How can i get the filters above the product grid like in the screenshot?


texts: I would like to remove all currencies in Magento and just leave a few manually added ones. How can I do this?


texts: Share Cart and checkout pages on multi websites in Magento

texts: I have three sites like dom1.com and dom2.com and dom3.com.I want to share there cart and checkout pages like if someone buy products from dom1 and then come to site2 so on cart page his first site products are also visible on cart page.So he can place order on any site.As this possible in magento ? My Products will be different on each site so i can't code custom for that.I have searched and found code for separate carts


texts: How to override vendor\magento\module-sales-sequence\Model\Sequence.php

texts:
I want to override file in vendor\magento\module-sales-sequence\Model\Sequence.php

  Magentsales\Modulesequence\registration.php

<?php
 \Magento\Framework\Component\ComponentRegistrar::register(
 \Magento\Framework\Component\ComponentRegistrar::MODULE,
 'Magentsales_Modulesequence',
 __DIR__
 );

  Magentsales\Modulesequence\etc\di.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Framework\DB\Sequence\SequenceInterface">
    <arguments>
        <argument name="pattern" xsi:type="string">%s%'.04d%s</argument>
    </arguments>
</type>

<preference for="Magento\SalesSequence\Model\Sequence" type="Magentsales\Modulesequence\Model\SalesSequence\Sequence" />
</config>

  Magentsales\Modulesequence\etc\module.xml

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

  Magentsales\Modulesequence\Model\SalesSequence\Sequence.php

 <?php
 namespace Magentsales\Modulesequence\Model\SalesSequence;
 class Sequence extends \Magento\SalesSequence\Model\Sequence
 {
 public function getCurrentValue()
{
  if (!isset($this->lastIncrementId)) {
        return null;
    }
    $prefix = "HLS".date("-y");

    return sprintf($this->pattern, $prefix, $this->calculateCurrentValue(), $this->meta->getActiveProfile()->getSuffix());
   }
 }

i edited in file Sequnce.php file in "getCurrentValue()" for rename order and invoice number but it's not getting. Please let me know any thing wrong in module?


texts: VERY SLOW page load due to customer/section/load/?sections=cart&force_new_section_timestamp=false&_=xxxxxxxxxxxxxx

texts:
I'm experiencing very slow page load due to the following
customer/section/load/?sections=cart&force_new_section_timestamp=false&_=xxxxxxxxxxxxxxx

From GTMetrix, it is showing more than 7s to load this request. Is there any way to resolve this? Where should I look into?
I'm using
Sitegroud Cloud Hosting
Magento 2.2.9
Infortis Ultimo Theme


texts: Custom login form won't show any error message

texts:
I am using custom login form in my magento site. I below mention my custom code

    <?php echo $this->getChildHtml('customer.form.login.extra')?>

                <form action="<?php echo Mage::getBaseUrl();?>customer/account/loginPost/" method="post" id="login-form" class="market_place_login_ctrl">
                            <?php echo $this->getBlockHtml('formkey'); ?>

                                    <input type="text" name="login[username]" placeholder="Your Email ID (username)" value="<?php echo $this->escapeHtml($this->getUsername()) ?>" id="email" class="input-text required-entry validate-email" title="<?php echo $this->__('Email Address') ?>" />

                                    <input type="password" name="login[password]" placeholder="Password" class="input-text required-entry validate-password" id="pass" title="<?php echo $this->__('Password') ?>" />

                                <button type="submit" class="button" title="<?php echo $this->__('Login') ?>" name="send" id="send2"><?php echo $this->__('Login') ?></button>

                           <a href="<?php echo Mage::getUrl('customer/account/forgotpassword') ?>">Forgot password?

                             <?php echo $this->getChildHtml('form.additional.info'); ?>
                </form>

But my problem is if customer successfully logged in it redirect to customer account else wrong username or wrong password it won't display any error message. it just reload the page. How i fix it?


texts: Is it possible to have users pick a shipping date?

texts:
We have a cheese store and only like to ship packages on Mondays to make sure they don't sit anywhere over the weekend.  We're pretty small and don't always have some one working on Mail orders so we get the occasional complaint when people don't check the terms of service.  When the customer is placing an order we would like to force them to pick a shipping date at which point they'll see that only Monday's are available and then have a message telling them that if they want it shipped on a different day to please call the store.

I haven't been able to figure out how to do this, or any extensions that allow it.  If any one knows of any that would be helpful.


texts: Show two product in home page using my custom module

texts:
I have created my custom module. It works fine. But now i want to show two/three simple product in my home page using my custom module. can I use helper or block? which will more efficient or easy to use? If I fetch the product from my custom module block or helper page then i will call my custom helper or block in home page.Is it possible or right way to show? but i have to use my custom module. I have followed this link url
but it's not working for me, it shows 404 page. If I added controller class like

class Monojit_Custom_IndexController extends Mage_Core_Controller_Front_Action
{
    public function indexAction()
    {
      //$helper  = Mage::helper('custom');
      //print_r($helper);
        echo "here is my module";
    }
}

then it works fine. Can anyone please tell me how can I fixed this issue. Till now I didn't change any settings for admin->design template. I also tried to create helper (url) but unfortunately it also not worked for me.

Any help will be greatly appreciated..


texts: How to remove index.php from url in magento?

texts:
I would like to remove index.php from url ( includes home, product, category, admin pages).

Is it possible to remove index.php from my site?
Having index.php url as well as non index.php url count for duplicate url, i.e will it affect SEO?

I tried many procedures nothing worked out.
Contacted my hosting provider, they tried editing .htacces but they all so failed and said please ask some magento expert.

Some links what I tried:

http://www.indianwebportal.com/remove-index-php-url-magento

https://stackoverflow.com/questions/10474740/how-to-remove-index-php-from-urls

https://stackoverflow.com/questions/16938860/how-do-i-remove-index-php-from-the-url-in-magento

Any help would be great.
Thanks.


texts:
Hey I´m trying to send a URL to customers where they already have products in the shopping cart.

I used this method

mywebsite/checkout/cart/add/product/PRODUCTID/qty/NUMBER/form_key/WSFiE69HmvU854G2

And it also adds a product but somehow it doesn´t show up, see image below.

Any ideas?


texts:
I have 2 sites. A Magento store and a site that was created in asp(on a subdomain). I'm looking to be pointed in the right direction as to how i can achieve the following:

When being logged into magento as a customer, i want the asp site to recognize that the person is logged in. My issue is that my users need to login to 2 different sites and i would like to consolidate that into just using magento credentials.

Thank you in advance


texts: Importing large inventory kills the mysql server

texts:
I am using Magento data flow profiles for importing a very large inventory (has about 13000 products) and updating it three times a week.. i saw that after importing the products, the site is going slow each time and when i am running second update the data flow is working terribly slow it seems that it is killing the mysql server.

Any idea what is going on with this?


texts: How Can I Get Credit Card Info In sales_order_place_after?

texts:
How can I get credit card info (credit card number, expiration date, etc) in a sales_order_place_after observer?

I've tried:

$observer->getEvent()->getPayment()
$order->getQuote()->getPayment()->getCcLast4()
$order->getPayment()->getCcLast4()
$order->getPayment()->getCcExpMonth($lastOrderId)

And a host of other things, but I can't seem to find the magic formula.


texts: Unable to get oauth_verifier for Magento2.0

texts:
I am unable to get oauth_verifier for Magento2.0 which is needed to get the access_token

I am trying to get the access token using POST /oauth/token/access which requires oauth_vefirier as one of the parameter.

I am refereeing this doc.

Can anybody please let me know from where we can get the oauth_verifier generated by the Magento?


texts: unable to install magento2 sample data php bin/magento sampledata:deploy

texts:
php bin/magento sampledata:deploy

  [Exception]   Warning:
  file_get_contents(G:/ma_oxelar/app/code/Plazathemes/Layout/compose
  r.json): failed to open stream: No such file or directory in
  G:\ma_oxelar\v   endor\magento\module-sample-data\Model\Dependency.php
  on line 109

sampledata:deploy


texts: Activate layered navigation without Anchor in Categories

texts: Is it possible to activate the layered navigation filtering when setting the anchor attribute to false?


texts: How to remove this CA in product price magento2?


texts: How to change footer and header for a CMS page only using layout XML?

texts:
I want to change out the footer and header for a minimized version but only on a certain CMS Page.

Is it possible to do this with the layout XML input field to remove the header/footer and add static blocks in their places?

I do not have access to Magento files.


texts: Magento 2 - On category save 'URL key for specified store already exists' error occurred

texts:
After migration process, I can not save category page.

I try all solution but not getting the success it gives an error
like below image.

http://prntscr.com/irfiml


texts: Magento 1.8.1 - Layered Navigation not showing attributes created programmatically

texts:
I have 4 products in 1 category.
Each of them has a attribute called 'material'. The values are 'ZK' for 3 of them and 'FE' for the other.

The 'material' attribute is defined as 'Filterable (with results)'.

The layered navigation doesn't show even after clearing cache and reindexing.

I've seen that at Mage_Catalog_Block_Layer_View

public function canShowOptions()
{

    foreach ($this->getFilters() as $filter) {
        if ($filter->getItemsCount()) {
            return true;
        }
    }

    return false;
}

$filters are correct, but getItemsCount() always returns ZERO. In fact, changing attribute to 'Filterable (without results)' does show the attribute in layered navigation.

UPDATE

Seems to fail only for attributes set programmatically, because I just created one manually and works perfectly after assignment to products. Any idea what could have possibly gone wrong creating and assigning those attributes (and products) programmatically taking into consideration everything goes fine but layered navigation?

This situation is the same with 3 other custom attributes affecting these and other products.

Values are set like this:

$product->setData($attr, $setValue);

And product tab shows correct values, but table catalog_product_entity_int doesn't hold any value for those attributes. Instead they go to catalog_product_entity_varchar. I don't know whether this is important or not, but catalog_product_index_eav does not include values for my attributes.

UPDATE
Mage_Catalog_Model_Resource_Eav_Attribute

public function isIndexable()
{

...

    if ($backendType == 'int' && $frontendInput == 'select') {
        return true;
    } else if ($backendType == 'varchar' && $frontendInput == 'multiselect') {
        return true;
    } else if ($backendType == 'decimal') {
        return true;
    }

    return false;
}

So now I know... being considered a varchar backend-type attribute IS actually the problem. But WHY is it so?

I don't know where else to look. Please help. Will post/send code if needed to solve this issue, only that is very big to put it here.

SOLUTION

Obvious once I realized what the problem was. Like I said attribute must be $backendType == 'int' for select, $backendType == 'varchar' for multi-select or 'decimal'.


texts: Updating rotating banner on e-commerce homepage

texts:
I have Two questions:

1) I am trying to update the images of my e-Commerce rotating banner homepage. I went to the developer’s page, uploaded a new image, enabled it, and disabled the previous demo ones. It didn’t help on the live site.

2) I want to delete a few products from my e-commerce. I selected the products in my catalog and went to Action —> delete items. But I can still seem them on the live site.

Help!


texts: Put main navigation into home page content vertically

texts:
I have just designed a website for a client and i need your help with Magento's main navigation. Just to clarify i mean the navigation menu which shows 1st level categories once added which is horizontal in the header file, not the top links.

I need to move this nav into a div in the home page content if possible. I cant use the left sidebar to do so because the main content will wrap underneath the navigation as well as the rest of the page.
How would i do this?

I can mess around with the CSS in order to get it in a vertical list, but its just getting the navigation into the main content first!

Thanks


texts: Show a product which belongs to Default category

texts:
First of all, my intention is to create a product which does not belong to any category because it is a special onw.

As I known in Magento, all products must belong to some category so I have tried to set it to the Default Category with no succeed because when I try to access to the product by url it show the 404 Magento error page.

Is it possible to have a product not being assigned to any category?


texts: What is the DDL cache, and what is it used for?

texts:
I never found any resource what the DDL cache is used for, and what kind of data it contains.
Also it always worked for me, so I had no need to look into this yet.


texts: HELP! one of my pages is giving me a Unable to read the file error

texts:
Two day ago one of my website pages gave me this error.

There has been an error processing your request

Exception printing is disabled by default for security reasons.

Error log record number: 1105319130851
a:5:{i:0;s:112:"Unable to read the file: /chroot/home/highcali/highcaliberline.com/html/media/eblasts/temp/High Caliber 2015.png";i:1;s:3896:"#0 /chroot/home/highcali/highcaliberline.com/html/app/code/local/HighCaliber/Common/Block/Eblasts.php(83): Imagick->__construct('/chroot/home/hi...')

So I went ahead and went to my var folder to find that Log in and error and saw this:

After seeing this i tried to go through my FTP to access this:
/chroot/home/highcali/highcaliberline.com/html/media/eblasts/temp/High Caliber 2015.png

but there was not png file in there.

How do I fix this problem?

Thanks


texts:
I am using below code to load product collection in custom module helper

$productCollection = Mage::getModel('catalog/product')->getCollection()
                    ->addAttributeToSelect('custom_attribute_code')
                    ->addAttributeToFilter('status',1);

But addAttributeToSelect does not work, product collection does not include my custom_attribute_code attribute.

I also tried passing attributes in array().

It work if I pass attribute code twice as in below code

->addAttributeToSelect('custom_attribute_code','custom_attribute_code')

Anyone know why this strange issue is happening?


texts: Magento 2 - How to make added checkout fields inline similar to the default checkout fields

texts:
I want to make the additional checkout fields imported from BSS OrderDeliveryDate extension, date, time slot and special instructions inline so that the styling matches the default checkout fields. Not sure what other changes are needed to do this.

These fields were added through a Layout Processor Plugin. Snippet here:

        $jsLayout['components']['checkout']['children']['steps']['children']['billing-step']['children']
        ['payment']['children']['payments-list']['children']['before-place-order']['children']['shipping_arrival_date'] = [
            'component' => 'MilkJarCookies_OrderDeliveryDate/js/form/element/abstract',
            'config' => [
                'customScope' => 'shippingAddress',
                'template' => 'ui/form/field',
                'elementTmpl' => 'MilkJarCookies_OrderDeliveryDate/form/element/date',
                'options' => [],
                // 'disabled' => true,
                'id' => 'shipping-arrival-date',
                'class' => 'test'
            ],
            'dataScope' => 'shippingAddress.shipping_arrival_date',
            'label' => 'Delivery Date',
            'provider' => 'checkoutProvider',
            'visible' => true,
            'validation' => [],
            'sortOrder' => 200,
            'id' => 'shipping-arrival-date'
        ];

Here is a image of how the fields are rendered:


texts: Customization through Coding in Magento 2

texts:
I am new to magento & I don't know anything about magento 1.x. I am working on magento 2. Can anyone suggest me some resources where can I find the links for Coding in magento?

I have already referred to official site but I want to understand the coding part

All the built in classes, functions etc.


texts: Magento 2: insert a "Bestsellers" widget via the Magento admin

texts:
I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank.

On the home page, I want to insert a "Bestsellers" widget via the Magento admin, like the one below:

By default, Magento only offers the possibility to insert a "New products" widget.

What is the best approach to insert a "Bestsellers" widget too?

UPDATE: I have installed the module, run the tasks:

php bin/magento module:enable Anshu_Bestsellerwidget
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento deploy:mode:set developer

The module does not show in the frontend and the background it looks like this:

What is wrong?

Thank you!


texts: Is it possible to add custom styles and classes in drop down menu in wysiwyg editor in magento! I have enclosed the picture for better explanation.


texts: How were the related products added to the site?

texts:
I am freelancer with a little knowledge of magento. The client gave me the task to determine how were the related products, up-sells and cross-sells added to the site. Can you help me with it?

There are cron_jobs from cron_schedule, which were active last day: advd_notification_job, advr_geo_update, asyncindex, avatax_processqueue, campaigner_integration, campaigner_integration_background_tasks, campaigner_integration_latest_orders, campaigner_integration_orders, campaigner_integration_products, captcha_delete_expired_images, captcha_delete_old_attempts, core_clean_cache, officetrax_information, mirasvit_helpdesk, mirasvit_helpdesk2, mstcore_logger_cron, newsletter_send_all, scheduler_run_operations, spr_update_active, strattas_core_logger_cron, warp_flushcat, warp_flushcms, warp_flushprod, xmlconnect_notification_send_all.

https://imgur.com/BrvSSbJ
I think that creation time and update time of products are close. So it may be import. How can I determine which peace of code add up-sells?


texts: Error in creating custome module in Magento 1.9.2

texts:
I am new in magento i want to create a Hello World Module i am follow many tutorial but i am always getting 404 error

My app/etc/module file

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

My Php clas file in app/code/local/Quinchy/Demo which is

<?php

class Quinchy_Demo_IndexController extends Mage_Core_Controller_Front_Action{

    public function indexAction()
    {
        echo "Hello Quinchy";
    }
}
?>

and config file is

<?xml version="1.0"?>
<config>
    <modules>
        <Quinchy_Demo>
            <version>0.1.0</version>
        </Quinchy_Demo>
    </modules>
    <frontend>
        <routers>
            <quinchy>
                <use>standard</use>
                <args>
                    <module>Quinchy_Demo</module>
                    <frontName>quinchy</frontName>
                </args>
            </quinchy>
        </routers>
    </frontend>
</config>

and i calling this Module using this URL

127.0.0.1/magento/index.php/quinchy,
127.0.0.1/magento/quinchy/
127.0.0.1/magento/quinchy/index

please help me


texts: Magento 2 Optimize memory leak perfomance

texts:
I have a problem with the import data process.
First: I have used the factory creator to create a Model set data and save but the problem when I have 400k Item to save.

--- Constructor

\Magento\Sales\Model\OrderFactory $orderFactory

$this->orderFactory = $orderFactory;

--- Process Function (100 item of row) //Another function have 400k row.

public function process($data){
    foreach($data as $row){
         $order = $this->orderFactory->create();
         $order->setData($row);
         $order->save();
    }
}

---  Memory usage;

  Memory Usage: 8=1.89402008057 (0)

  Memory Usage: 3846.87700 (200k Item)

I'm trying to improve that process using create 1 Object of the Model.

--- Constructor

\Magento\Sales\Model\OrderFactory $orderFactory

$this->order = $orderFactory->create();

--- Process Function

public function process($data){
    foreach($data as $row){
         $order = $this->order->clearInstance();
         $order->unsetData(null);
         $order->setData($row);
         $order->save();
    }
}

  Memory usage was reduce.

  Memory Usage: 881.244 (0)

  Memory Usage: 2146.8836288 (300k).

---- About 100 items was used 1.1M of the memory

  Memory Usage: 2125.8544769287 (260k)

  Memory Usage: 2126.9217758179 (260100)

Any tips for reducing memory usage to create Magento 2 Model. Instead of the insert to the database using Mysql query.

Thank for any tip.


texts: Why is Magento 2 local developer mode site with nginx and xdebug enabled is super slow?

texts:
I am getting a 50 second server response time for a category page.

When processing, the following is shown in top:

4312 www-data  20   0  488280 146704  41816 R  99.7  1.8   1:11.54 php-fpm7.0

I have x-debug enabled with php7.0-fpm and nginx.
Developer mode is on and I am developing so I am not looking for a turn on production mode answer.
I am using magento 2.1.2.
I am also using a redis-server cache backend.
I am also on php 7.0.14 on ubuntu 16.04.

After enabling xdebug remote debugging and adding a breakpoint the average time to get a server response is a whopping 3 minutes. That is messed up.
I am using atom with the php-debug package for atom to debug.

I am also on an SSD, so read and writes should be fast right?

After running dstat -D hda these are the results:

Update: After disabling js merging and minification

After disabling js merging and minification as well as css merging server response improved to about 7 to 8 seconds. Thanks @Konstantin, it is now bearable.


texts:
Right now Magento supports altering an order only in form of a reorder, which is may be due to complex ordering process and the database structure. But often reorder is not an option in case of customer credit card data is not stored or not possible to charge or refund

I'm curious about the decision of not making the order editable for adding or removing items, changing their quantity, applying discounts etc.

I'd also like to hear about the extensions which work-around the lack of the feature. The one I tried, e.g. True Edit Orders was a bit quirky when facing configurable products.


texts: Magento2: How to redirect to payment gateway using api

texts:
I am new to Magento and want to implement payment gateway with 3rd party.
I am using credcommerce module creater but it works with offline.

Can someone guide me so that I can develope Payment gateway.

I want to use m-paisa by Vodafone

request pattern will be  like

Send API call to https://pay.mpaisa.vodafone.com.fj/API
API call to provide as parameters the following
- URL for the checkout page
- Transaction id
- Amount
- Client ID
- Item details
https://pay.mpaisa.vodafone.com.fj/API?url=<YOURDOMAIN>
&&tID=<TRANSACTIONID>
&&amt=<AMOUNT>
&&cID=<CLIENTID>
&&iDet=<ITEMDETAILS>


texts: reCaptcha reputation error Magento 234 newsletter subscription

texts:
Footer newsletter subscription display error You cannot proceed with such operation, your reCaptcha reputation is too low.
I have used google invisible captcha.


texts: How to check the collection has data or not in magento2

texts:
I have a method in block which i want to check is there any data available for a logged in customer in a custom history table.

public function checkHistryAvailable(){
    if($this->session->isLoggedIn()) {

        $customer_id = $this->session->getCustomer()->getId();
        $Rewardspointshistry = $this->rewardpointshistryFactory->create();

        $collection = $Rewardspointshistry->getCollection();

        $collection->addFieldToFilter('customer_id',$customer_id);
        if(is_null($collection)){ return 2; }else{ return 8; }
    }
}

I used is_null to check but it return the same result for two types.


texts: Sales Grid - total_invoice vs. total_paid

texts:
What is the difference between "total_invoice" vs. "total_paid"?

I looked here (dev docs)
http://devdocs.magento.com/guides/m1x/api/soap/sales/salesOrder/sales_order.info.html

Also, dev docs descriptions are completely useless in this case.

Does this mean that someone can be "invoiced" not a full amount?  Or does it mean that someone has been invoiced but not yet paid?


texts: Magento 2 insert Checkout Item List Into another layout

texts:
I am trying to insert the Magento 2 checkout form into another layout. I tried a few things but I think this somehow needs to be expanded:
my_index_index.xml
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content">
            <block class="My\Module\Block\Order\ShippingCheckoutOverview" cacheable="false" name="my_module" template="mytemplate.phtml" />
            <block class="Magento\Checkout\Block\Cart\Grid" name="checkout.cart.form" as="cart-items" template="Magento_Checkout::cart/form.phtml" after="my_module">
                <block class="Magento\Framework\View\Element\RendererList" name="checkout.cart.item.renderers" as="renderer.list"/>
                <block class="Magento\Framework\View\Element\Text\ListText" name="checkout.cart.order.actions"/>
            </block>
        </referenceContainer>
    </body>
</page>

The Error I am getting is:
1 exception(s):
Exception #0 (RuntimeException): Renderer for type "simple" does not exist.

Exception #0 (RuntimeException): Renderer for type "simple" does not exist.
<pre>#1 Magento\Checkout\Block\Cart\AbstractCart->getItemRenderer() called at [vendor/magento/module-checkout/Block/Cart/AbstractCart.php:133]
#2 Magento\Checkout\Block\Cart\AbstractCart->getItemHtml() called at [vendor/magento/module-checkout/view/frontend/templates/cart/form.phtml:42]
#3 include() called at [vendor/magento/framework/View/TemplateEngine/Php.php:59]
#4 Magento\Framework\View\TemplateEngine\Php->render() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#5 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#6 Magento\Framework\View\TemplateEngine\Php\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#7 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php:26]
#8 Magento\Framework\View\TemplateEngine\Php\Interceptor->render() called at [vendor/magento/framework/View/Element/Template.php:271]
#9 Magento\Framework\View\Element\Template->fetchView() called at [vendor/magento/framework/View/Element/Template.php:301]
#10 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1100]

Thanks for your help.


texts: How to get the order html table and shipping address on success page?

texts:
I'm working on a customized success page and I would like to get that same table from cart to display on success page, I mean, it should contain product thumb, product name with configurable options (in my case, size and color), quantity ordered and price for each item, and on the foot, shipping price, coupon description and value and grand total.

Additionally, I need to show the customer's shipping address.

That will be a default success page for current and future projects, so I preferred to work without modules and make customisation directly on success page phtml file.

Please note that I'm just the front-end guy, so I have no knowledge in advanced development/backend development.

Thanks in advance for helping!


texts:
Magento released last patch for M1:
https://magento.com/tech-resources/download#download2374
Haven't looked into the patch yet, it looks like the community is unaware there is a new patch out for M1.
Please share any issue you have found with this patch!


texts:
Magestore's Banner Slider not working properly(Magento 1.9)

I have added Magestore's Banner slider extension version 2 in my project.

In my CMS Home page I have added the code,

{{block type="bannerslider/bannerslider" name="bannerslider" template="bannerslider/bannerslider.phtml"}}

But still it is not getting displayed


texts: Magento2 product collection -> addAttributeToFilter with LIKE operator not working

texts:
Could anyone help me why the following code returns empty result when use LIKE operator with addAttributeToFilter option? Thanks!

$productcollection = $this->_objectManager->create('Magento\Catalog\Model\ResourceModel\Product\Collection')
       ->addAttributeToSelect(['name', 'price', 'image'])
       ->addAttributeToFilter('name', array('LIKE' => '%Iphone%'))
       ->setPageSize(10,1);


texts: How to update the attribute scope programmatically in Magento 2

texts:
I have 20 product attributes. I need to change those attributes' saving scope to "Global".

How can I achieve this?


texts:
I cannot add a new attribute. When I put all the information and hit the save button I get an error :

  "Class Magento\Framework\Serialize\Serializer\Json does not exist"

How to solve this issue?


texts: (Magento 2.3.5-p1) "A technical problem with the server created an error" when editing a category description that has links or HTML comments inside

texts:
I created a category description with a style element and some ordinary block-level elements like div and ul, and that worked out fine; then I tried to turn some of the text into links, and whether they're links to external sites or to internal pages, and whether they have the rel and target attributes or not, as soon as I saved the category description, I got the "technical problem with the server created an error" message whenever I tried to edit the category again.

The category page itself renders as expected, and I can remove the spinner with Inspect Element and edit the category from the backend again, but it does get a bit annoying; also, trying to turn the a tags into HTML comments doesn't work out so well either, because I get the same error.

I did not find any PHP errors in the logs relating to this, and I did not find anything in the PHP or JS versions of Escaper that appeared relevant; I did see an error in the console relating to the virtual-category previewer in Smile Elasticsuite (this is not a virtual category, but the code needed to load anyway).

Is there any advice about how to isolate this problem? I'd much rather not have to hack something into the backend theme to get rid of that spinner just so I can keep editing the category description.

Another idea I had is that I could break all of that content out into a block and dynamically include it (I've already used the "CMS Block" selector for something else).


texts: Magento1.9 - I have a program with the shipping method

texts:
In checkout page when a user tries to make a request.
When you are in the part of the form to select the shipping method, in this section you are stopped and cannot move forward.
Click on continue but it only shows the loading icon and does not continue.


texts: How to make the Featured page excluded from product sorting

texts:
I have noticed that when you are in any normal product category and use the sort filter, by let's say "price", that filter will remain set in when you move on to other categories.  My issue is that if a customer returns to our Featured products page, that filter is still in place and the products that we want to be shown in a particular order, are no longer in that order.

I am stuck between attempting to get the product sort filter to default back to "position" after the customer changes categories, or perhaps just make it so the featured page is excluded from any previous sort filters put in to place.

We have 30 products on the featured page, with about another 45 that you cannot see.  We have them there just in case something goes out of stock because we do not want the page to look bare.  The top 4 positions are usually "products of the day", which is driving this need to have the featured page remain in position order, regardless of any sorting in other category pages.

Any advice?


texts: How can i change cart summary during checkout

texts:
How can i change the cart summary in magento 2 checkout.

When i enter to checkout in shipping section i see this.

and when i reach on payment method i can see this.

How can i make shipping section same as payment section.


texts: Once we login into magento 1.14.x admin, It never logout automatically after sometime. I did check the admin settings System->general - >Web->Session Cookie Management ->cookie lifetime is set to 3600  Cookie Path and Cookie Domain is blank,so it is taking the default value. It was working all fine until we migrate from old server to new server The only change in server configuration is the new server is using web and data server separately