texts: Magento 2 error (the shipping information was unable to be saved. verify the input data and try again )

texts:
How to solve an error while saving a data in checkout page in Magento 2

we face  an error the shipping information was unable to be saved. verify the input data and try again in Magento 2.3.2 as per print screen
enter link description here


texts: Instead of entering each command individually is there a single commande that I can enter to deploy content and to also clear the appropriate folders?


texts: Copy role resources to other role programatically

texts:
As title says i want copy role resources from one to other.

For example:

I give one of my role id which is dynamically and then i get all resouces for that role id and assign that resources to other roles.


texts:
I have a menu similar to Prada's where by users click for the menu and it drops down:

www.prada.com

I am looking to make information for certain categories appear in the header drop-down too. I.e. they click on 'collection' and a short paragraph fits into the menu to the right (almost like a sub-category).

UPDATE:

I also added this to 'renderer.phtml':

 $html .= '
';
 $html .= $this->_getHtml($child, $childrenWrapClass);
 $staticBlock = trim($this->getLayout()->createBlock('cms/block')->setBlockId($child->getId())->to     Html());
 if(!empty($staticBlock)){
$html .= '';
$html .= $staticBlock;
$html .= '';
}
$html .= '
';

So it now looks like this:

 $html = '';

 $children = $menuTree->getChildren();
 $parentLevel = $menuTree->getLevel();
 $childLevel = is_null($parentLevel) ? 0 : $parentLevel + 1;

 $counter = 1;
 $childrenCount = $children->count();

 $parentPositionClass = $menuTree->getPositionClass();
 $itemPositionClassPrefix = $parentPositionClass ? $parentPositionClass . '-' : 'nav-';

foreach ($children as $child) {
$child->setLevel($childLevel);
$child->setIsFirst($counter == 1);
$child->setIsLast($counter == $childrenCount);
$child->setPositionClass($itemPositionClassPrefix . $counter);

$outermostClassCode = 'level'. $childLevel;
$_hasChildren = ($child->hasChildren()) ? 'has-children' : '';

$html .= '
_getRenderedMenuItemAttributes($child) .'>';

$html .= 'getUrl() .'" class="'. $outermostClassCode .' '. $_hasChildren .'">'. $this->escapeHtml($this->__($child->getName())) .'';

if (!empty($childrenWrapClass)) {
    $html .= '
';
}
 $html .= '
';
 $staticBlock = trim($this->getLayout()->createBlock('cms/block')->setBlockId($child->getId())->toHtml());
if(!empty($staticBlock)){
$html .= '';
$html .= $staticBlock;
$html .= '';
}
$html .= '
';

$nextChildLevel = $childLevel + 1;

if (!empty($_hasChildren)) {
    $html .= '
';

    $html .=     $this->render($child, $childrenWrapClass);
    $html .= '
';
}

if (!empty($childrenWrapClass)) {
    $html .= '
';
}

$html .= '
';

$counter++;
}

return $html;

It works perfectly and is calling everything perfectly!


texts: Magento2 Add Media Gallery data in product collection

texts:
Index.php (Controller File)

$productCollection = $_objectManager->create('Magento\Catalog\Model\ResourceModel\Product\CollectionFactory');
$collection = $productCollection->create();

I want to check image is null or not I also check the filter of no_selection but its not working.

So I want to try the media_gallery attribute filter.

Please Help If You Know About This.

Thanks In Advance!


texts: product alphabet filter option in magento 2

texts:
Product alphabet filter option in magento 2
ref video :
https://www.loom.com/share/0b1de140088d41279ae2ec1d4222f3b2


texts: Magento 2: Create new customer address type

texts: How can we create new customer address type(like billing and shipping) in Magento 2.3.x ? That new address type should work same like billing or shipping i.e. it should be assigned to particular order, customer etc...


texts:
I want to add delivery data to order emails which will be 7 days after the order is created.
   Inside Mage_Sales_Model_Order::getCreatedAtFormated() function, following code returns order created date like November 29, 2015 7:04:52 PM IST

Mage::helper('core')->formatDate($this->getCreatedAtStoreDate(), $format, true);

If I'm using Mage::helper('core')->formatDate($this->getCreatedAtStoreDate()+(7*24*60*60), $format, true);, it's not returning correct result.


texts: Magento2 - Pagination getPagerHtml() returns empty

texts:
I am trying to get pagination on my collection in block when i call from PHTML file it returns nothing, not showing pagination but $pageSize is working fine.
This function getPagerHtml() in phtml is not working

here is my function

  public function getTransactionsArchive(){
        //get values of current page
        $page=($this->getRequest()->getParam('p'))? $this->getRequest()->getParam('p') : 1;
    //get values of current limit
        $pageSize=($this->getRequest()->getParam('limit'))? $this->getRequest()->getParam('limit') : 10;

        $customer_id = $this->request->getParam('id');
        $filters = array("customer_id" => $customer_id,"status" => 2,"cm_transaction_date" => array('to' => date("Y-m-01 00:00:00")));

        $transactionFactory = $this->_transactionFactory->create();
        $Collection = $transactionFactory->getCollection();
        foreach($filters as $filter => $value){
            $Collection->addFieldToFilter($filter, $value);
        }
        $Collection->setPageSize($pageSize);
        $Collection->setCurPage($page);

        return $Collection;
    }

and here is my layout function

  protected function _prepareLayout()
    {
        parent::_prepareLayout();
        if ($this->getTransactionsArchive()) {
            // create pager block for collection
            $pager = $this->getLayout()->createBlock('Magento\Theme\Block\Html\Pager','my.custom.pager');
             // assign collection to pager
            $pager->setLimit(10)->setCollection($this->getTransactionsArchive());
            $pager->setAvailableLimit([10=>10,20=>20,50=>50,100=>100]);
            $this->setChild('pager', $pager);// set pager block in layout
        }
        return $this;
}

and this is my pagerhtml

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

and in my phtml calling this as

<?php if ($this->getPagerHtml()):

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

<?php endif ?>


texts:
I'm using Magento 2.2.2 with the Ultimo theme. Straight away I'm getting an error with the mini cart in the header.

Products can be added to the cart but the mini cart appears to only half load and gives the following error:

TypeError: Unable to process binding "if: function (){return getCartParam('summary_count') }"
Message: Unable to process binding "if: function (){return getCartParam('possible_onepage_checkout') }"
Message: Unable to process binding "click: function (){return closeMinicart() }"
Message: $('[data-block="minicart"]').find('[data-role="dropdownDialog"]').dropdownDialog is not a function. (In '$('[data-block="minicart"]').find('[data-role="dropdownDialog"]').dropdownDialog('close')', '$('[data-block="minicart"]').find('[data-role="dropdownDialog"]').dropdownDialog' is undefined)

Any idea what the problem might be?


texts: Time is not correct in the form in admin

texts:
I have added the date field in the custom form using below code :

// Added start date field
        $fieldset->addField('start_date', 'date', array(
            'label' => Mage::helper('slider')->__('Start Date'),
            'required' => false,
            'class' => 'validate-date validate-date-range date-range-attribute-from',
            'name' => 'start_date',
            'image' => $this->getSkinUrl('images/grid-cal.gif'),
            'input_format' => Varien_Date::DATE_INTERNAL_FORMAT,
            'format' =>  Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT),
            'time' => true
            ));

        // Added end date field
        $fieldset->addField('end_date', 'date', array(
            'label' => Mage::helper('slider')->__('End Date'),
            'required' => false,
            'class' => 'validate-date validate-date-range date-range-attribute-to',
            'name' => 'end_date',
            'image' => $this->getSkinUrl('images/grid-cal.gif'),
            'input_format' => Varien_Date::DATE_INTERNAL_FORMAT,
            'format' =>  Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT),
            'time' => true
            ));

And use below code to add date fields in data array at the time of saving

$data = $this->_filterDateTime($data, array('start_date', 'end_date'));

Now suppose I am choosing 09/30/2016 08:08 AM as end date
After saving the form, Magento is showing 9/30/2016 12:00 AM in the field.
Whereas in the database table the end_date entry is correct i.e. 2016-09-30 08:08:00

What can be the issue here and how it can be fixed?
Any help would be appreciated.


texts:
Is there any plugin (free or commercial) which can translate latin into cyrillic? So plugin would work like this I would uplod data for news, products etc. in Magento Admin panel in Latin letters - but in frontend letters would be converted into Cyrillics?

Thanks for help


texts: Move child product category to parent api

texts:
I'm using Magento 2.2 REST api to create and update product category.
To change product category parent I use following url and request body and it works fine.
HTTP method: PUT
url: rest/V1/categories/153/move
request body : {"parent_id":337,"afterId":0}

But I want to change child category to parent category, then I tried to send following request body and it gives the following error.
HTTP method: PUT
url: rest/V1/categories/153/move
request body: {"parent_id":0"afterId":0}
error: "error :{"message":"Decoding error."}"

Please help to make the correct request for change child category to parent category.
Thanks


texts: Mageno 2 after programatically removing product attribute group the attributes are no longer visible

texts:
(Magento 2.2.6) Hi, normally when you remove attribute group from an attribute set you still see the attributes that belonged to the group under "Unassigned Attributes" section of attribute set edit page on adminhtml. I'm working on tiding up a store and want to do this programatically, I'm removing unused groups from couple sets in upgrade script with

$this->eavSetup->removeAttributeGroup(
     $entityTypeId,
     $set->getAttributeSetId(),
     $groupName
);

The code works and removes the group from sets but unfortunately the attributes that belonged to the group are no longer visible on attribute set edit page. The attributes are definitely not removed since they are visible on sets that were not touched with the upgrade script. I've tried reindexing, flushing cache, removing view_preprocessed and pub/static (bascially everything I could think of that could affect frontend) but it still doesn't work.

Maybe someone has experiece with such issue? I'm kinda lost here because it seems that the removeAttributeGroup works as intended but I would like to add these attributes back with admin panel in the future if such need occur.


texts:
There is a very strange issue on our Magento site. We are performing some custom write operations after order has been placed using checkout_submit_all_after event. These work fine for some order but the code breaks sometimes. I put a log on every step and got this error .

  Notice: Redis::exec(): send of 8192 bytes failed with errno=104
  Connection reset by peer in vendor/colinmollenhour/credis/Client.php

These errors only show for some random orders. I contacted our AWS server guy and he claimed its a coding issue and not Redis configuration. I don't really know Redis so I don't know the next step.

Please, does anyone has any clue on how I can solve this?? I also notice when we clear Magento cache, the issue will be fixed but if we don't clear cache, the code starts breaking.

Thanks


texts:
My application is showing error:

Magento 2.2.2 - Warning: SessionHandler::read() No space left on device (28) in /var/www/html/vendor/magento/framework/Session/SaveHandler/Native.php on line 22

I searched for information and many of them said it was lacking server space, but my server has 3GB of space.

Memory and CPU usage information also appears to be normal

But when I execute:

bin/magento cache:clear

everything returns to normal and my application works again.

Magento is running on an AWS EC2 T2.Medium 16GB disk drive and 4GB RAM.

Folders and files are set according to Magento documentation:

sudo find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} + && sudo find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} + && sudo chown -R :apache . && sudo chmod u+x bin/magento


texts: Magento2 - How can I setup Vue StoreFront in my local Magento2.4 version

texts:
How can I setup Vue StoreFront in my local Magento2.4 version
I have followed below steps
https://docs.vuestorefront.io/guide/cookbook/setup.html#_2-recipe-2
From where can I get consumer key, consumer secret, access token and token secret ?
Anyone have any idea please suggest or guide me.
Thanks in advance.


texts: Display previous orders shipping and billing address's in checkout

texts: I want to show previous order  shipping and billing in checkout instead of default billing and shipping address


texts: Creating Products returns %fieldName is required error

texts:
I'm trying to create products in magento2 via the Rest API. The POST request works fine when doing it with postman, but when the request is exported to php curl, Magento answers with:
{"message":"\"%fieldName\" is required. Enter one and try again.","parameters":{"fieldName":"product"}}

Also: when disabling the Content-Length attribute in Postman the request gets the same error, so it has something to do with that attribute, but isn't it automatically added in PHP curl? The exported PHP script from postman didn't have it neither. Is there any reason the postman request works while the php request doesn't.
Here is the PHP code postman created automatically.

function createproduct($token){
            $curl = curl_init();
            curl_setopt_array($curl, array(
                CURLOPT_URL => "https://yourdomain.com/index.php/rest/V1/products",
                CURLOPT_RETURNTRANSFER => true,
                CURLOPT_ENCODING => "",
                CURLOPT_MAXREDIRS => 10,
                CURLOPT_TIMEOUT => 0,
                CURLOPT_FOLLOWLOCATION => true,
                CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                CURLOPT_CUSTOMREQUEST => "POST",
                CURLOPT_POSTFIELDS =>"{\n    \"product\":{\n        \"sku\":\"1\",\n        \"name\":\"no product\",\n        \"status\":\"2\",\n        \"visibility\":\"2\",\n        \"attributeSetId\":\"4\"\n    }\n}",
                CURLOPT_HTTPHEADER => array(
                    "Authorization: Bearer ".$token,
                    "Content-Type: application/json",
                ),
            ));

            $response = curl_exec($curl);

            curl_close($curl);
            #echo $response;
            return $response;
        }


texts: How to set form key in form Ui Component

texts:
How i can add form-key input hidden into ui-form component manually? It is possible to get form-key data somewhere and put in input component. I have faced form-key missing problem in form when AJAX post data. Form-key missing and i need to add it inside form

<field name="form_key">
     <argument name="data" xsi:type="array">
          <item name="config" xsi:type="array">
              <item name="dataType" xsi:type="string">text</item>
              <item name="formElement" xsi:type="string">hidden</item>
              <item name="dataScope" xsi:type="string">form_key</item>
              <item name="value" xsi:type="string">getValueFormKeyAndPutInHere</item>
          </item>
     </argument>
</field>


texts: How to pass custom option values from product detail page to cart page in Magento 2?

texts:
I want to pass custom option values from product detail page to cart page in magento2.

Refer screenshot

  I have selected here size: 5 and want to pass the value to cart page.

Here is my code:

<?php
    if (!$cartItem):
        //echo"Amyyyyyyyyyyyyyyyyyyy";
         foreach ($currentProduct->getOptions() as $option) {

          //echo $option['label'].'=>'. $option['value'].

          if ($option->getTitle() == 'Ring Size') {
            $values = $option->getValues();
            $name = "options[" . $option->getId() . "]";
            ?>

                <select name="options" id ="ringSize">
                    <option>SELECT SIZE</option>
                     <option value="5">SIZE: 5</option>
                     <option value="5.5">SIZE: 5.5</option>
                     <option value="6">SIZE: 6</option>
                     <option value="6.5">SIZE: 6.5</option>
                     <option value="7">SIZE: 7</option>
                     <option value="7.5">SIZE: 7.5</option>
                     <option value="8">SIZE: 8</option>
                     <option value="8.5">SIZE: 8.5</option>
                     <option value="9">SIZE: 9</option>
                    </select>

                    <?php echo "<input type= 'hidden' name = " . $name . " id = 'ringSizeText' > "; ?>

                 <?php
                        }
                    }
                endif;
                ?>

  In checkout cart page default.phtml

<?php if ($_options = $block->getOptionList()):
                     ?>
                    <?php foreach ($_options as $_option) : ?>
                            <?php if($helper_sdi->isInEngravingCustomOptions($_option['label'])) continue; ?>
                            <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option);   ?>
                    <?php endforeach; ?>
                    <?php endif; ?>

                      <?php if(!empty($_formatedOptionValue)) {

                        ?>

                        <?php if ($_options = $block->getOptionList()):  ?>

                            <?php foreach ($_options as $_option) :  ?>
                                <?php if($helper_sdi->isInEngravingCustomOptions($_option['label'])) continue; ?>
                                <?php $_formatedOptionValue = $block->getFormatedOptionValue($_option);
                                    //print_r($_formatedOptionValue);
                                ?>

<?php echo $block->escapeHtml($_option['label']) ?>

                                <dd style="margin: 20px 0 0px 0;"
                                <?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?> >
                                <?php echo $_formatedOptionValue['value'] ?>

                        <?php endforeach; ?>

                    <?php endif; ?>

                    <?php } ?>

fjhguityguihgjnhgf

please someone help where I am making mistake.

Any help would be appreciated.


texts: How to send email admin dynamically when order placed

texts:
In this I want to create custom module for Send email to admin from one email sending field to get email id and send email on that id after order placed successfully using event and observer and one system config field for entering email address.

please anyone can have idea about this functionality then please answer this question as soon as possible.

Thank you in Advance.


texts: Magento2: Set PO box validation on checkout page in shipping address in street field

texts:
How to set PO box validation on checkout page in shipping address in street field.

If anyone enter string like PO Box, P.O Box, Post Office Box.
So want throw java script error.


texts: Cancel changes in last 24 hours in magento adminpanel

texts:
At my work somebody that is not familiar with Magento did strange changes that affect my site badly,
is there any way to reset last changes.? As example: cancel the changes in last 24 hours


texts: Maximum number of products can be entered into website on Magento 2

texts:
Previously on my last job, the System Ayalyst said Magento CE (still in M1 era) can only support up to 20000 products, while EE can support unlimited products. But I can't find any references to support this statement.

I'd know the maximum products limits of Magento 2.X (as I only use this in my current job now) on both CE and EE.


texts: Magento 1 - Mage::getModel('catalog/product_website')->addProducts() not working in all cases

texts:
we are using a script to identify products missing from a website and programmatically adding them by using Mage::getModel('catalog/product_website')->addProducts(). This works in most cases, but not all.
When diving into the catalog edit screen we can see, when we do this via the GUI that a new option appears, see the image below

So the question(s) are as follows

Does Mage::getModel('catalog/product_website')->addProducts() return true/false upon success because now it seems when using this code all is well, but rather it is not
How can we circumvent this and still use addProducts() and tell it to use default values?
Out of interest. How/why is this question/option appearing, did we create the products not on default value level? or is at least 1 value different on some store view?


texts:
I'm trying to create an store language, and use a path on main domain to server that store. To do it I've already done all the nginx magic to made it select the correct store, but my problem is that store is giving 404 on all pages.
Now on my magento I have two stores:
https://example1.com/
https://example2.com/

The content managers has created a language store on https://pt.example2.com/ that seems to works, but now they want to move that subdmain to a path, so I've changed the Stores > Configuration > General > web to https://example2.com/pt/ and I've configured the Nginx to send the MAGE_RUN_CODE and MAGE_RUN_TYPE to Magento.
My problem is that all was working at the subdomain, but now in path I can see how the language changes to that store language, but everything gives me a 404 error (even the 404 page gives me an error saying that there's no 404 page configured).
I've tried everything I've found on internet, clearing cache, reindexing all, setup:upgrade in combination with cache clearing and reindexing,... trying to remove the path using nginx rewrites, remove the path from fastcgi_param REQUEST_URI (this creates a loop because the store detects that is not its main page and tries to redirect), but nothing works.
Someone knows how to fix this problem?
Thanks!


texts: PHP Fatal error: Call to a member function setData() on a non-object in Permissions/BlockController.php on line 113 - After Applying SUPEE-6788

texts:
PHP Fatal error After Applying SUPEE-6788:

  Call to a member function setData() on a non-object in
  app/code/core/Mage/Adminhtml/controllers/Permissions/BlockController.php
  on line 113

First I am not able to apply the patch SUPEE-6788. It said

  -e ERROR: Patch can't be applied/reverted successfully

Followed the Steps provided in link "Why does PATCH_SUPEE-6788 appear to have no effect on a 1.7.0.2 installation?" and then i was able to apply the patch.

But some Magento blocks are missing at the Home page. After a long search in Google I found that we have to create blocks under System > Permissions > Blocks

But I am not able to access it, because some tables not getting created ( permission_block and permission_variable )

This problem was solved by following procedure ( Tables permission_block and permission_variable did not get created after SUPEE-6788 )

But now I am not Able to edit or create block under permissions, Only List view visible. Getting the above mentioned error


texts: Magento 2 How do I sort mini cart items?

texts:
I am trying to sort the items based on the product ordered qty.

Is there any logical method to the way cart items are sorted by ordered qty?


texts: Where to add google analytics script code in magento2 file path?

texts: I don't know how to implement this task. I have to add google analytics code but where to add file path I don't know. Can you please tell me the file path in magento2?


texts: Get products collection from category id on homepage phtml file

texts:
$categoryId = 'category_id';
$objectManager =  \Magento\Framework\App\ObjectManager::getInstance();

$categoryFactory = $objectManager->get('\Magento\Catalog\Model\CategoryFactory');
$productFactory = $objectManager->get('\Magento\Catalog\Model\ResourceModel\Product\CollectionFactory');
$category = $categoryFactory->create()->load($categoryId);
$collection = $productFactory->create();
$collection->addAttributeToSelect('*');
$collection->addCategoryFilter($category);
$collection->addAttributeToFilter('visibility', \Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH);
$collection->addAttributeToFilter('status',\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED);
$collection->setPageSize(5)->load();

foreach($collection as $products){
// print_r($products->getData());
}


texts: Magento 2 store view for mobile and another for desktop

texts: When I used User Agent Rules and select another theme for iphone (for example), changes are done in CSS only, but I want to change content and layout too.


texts: Magento related products sort order not working

texts:
For some reason the sort order for related products is not working.

How can I sort the order asc to desc (low to high)?

Here is my current /catalog/product/list/related.phtml file:

    <?php $i = 0; foreach ($this->getItems() as $_item) : if($i < 2) {?>

<img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(150, 170) ?>" alt="<?php echo $this->htmlEscape($_item->getName()) ?>" />

<a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->htmlEscape($_item->getName()) ?>

                    <?php echo $this->getPriceHtml($_item, true, '-related') ?>
                    <?php if(!$_item->isComposite() && $_item->isSaleable()): ?>
                    <?php if (!$_item->getRequiredOptions()): ?>

                        <input type="checkbox" class="checkbox related-checkbox" id="related-checkbox<?php echo $_item->getId() ?>" name="related_products[]" value="<?php echo $_item->getId() ?>" />
                        <label class="label-related" for="related-checkbox<?php echo $_item->getId() ?>">order

                    <?php endif; ?>
                    <?php endif; ?>

    <?php } $i++; endforeach ?>


texts:
I'm trying to create a new store view for my Store.
When I added the store view, the following is the result.

After this I cleared my cache and reindexed the data.

Now When I navigate to System >> Configuration, I don't find the new store view in the list.
The following screenshot explains.

Any thoughts on why this happens?

Running Magento 1.9.0.1


texts: How to set discount amount in items ordered in magento?

texts:
I set a discount of 20$ in products. I displayed it in Invoice details. But could not display it in Items to invoice. how can I display it in Items to invoice in admin panel?

Here is my code:

<?php
class Test_Fee_Model_Sales_Order_Total_Invoice_Fee extends Mage_Sales_Model_Order_Invoice_Total_Abstract
{
    public function collect(Mage_Sales_Model_Order_Invoice $invoice)
    {
        $order = $invoice->getOrder();
        $feeAmountLeft = $order->getFeeAmount() - $order->getFeeAmountInvoiced();
        $baseFeeAmountLeft = $order->getBaseFeeAmount() - $order->getBaseFeeAmountInvoiced();

        if (abs($baseFeeAmountLeft) < $invoice->getBaseGrandTotal()) {
            $invoice->setGrandTotal($invoice->getGrandTotal() - $feeAmountLeft);
            $invoice->setBaseGrandTotal($invoice->getBaseGrandTotal() - $baseFeeAmountLeft);
        } else {
            $feeAmountLeft = $invoice->getGrandTotal() * -1;
            $baseFeeAmountLeft = $invoice->getBaseGrandTotal() * -1;
            $invoice->setGrandTotal(0);
            $invoice->setBaseGrandTotal(0);
        }

        $invoice->setFeeAmount($feeAmountLeft);
        $invoice->setBaseFeeAmount($baseFeeAmountLeft);

        return $this;
    }
}

I want to display discount amount here in Items to invoice as given below:


texts:
I have overridden magento SwatchRenderer.js file in app\code\Mydirectory\CustomSwatches\view\frontend\web\js\SwatchRenderer.js.

My problem is I get an error in my product page load:

  Uncaught TypeError: Cannot read property 'updateData' of undefined

I found out that data('gallery') on SwatchRenderer.js's following function is undefined.

updateBaseImage: function (images, context, isProductViewExist) {
        var justAnImage = images[0];

        if (isProductViewExist) {
            context
                .find('[data-gallery-role=gallery-placeholder]')
                .data('gallery')
                .updateData(images);
        } else if (justAnImage && justAnImage.img) {
            context.find('.product-image-photo').attr('src', justAnImage.img);
        }
    }

I checked a Magento 2 demo site. On that site the above data attribute is set as a JavaScript object. The target element is a div with the above attribute. But in my site it is undefined and obviously I think that data attribute is not set on my site. Can anyone help me to find the setter function/view/file for above element? Any help would be appreciated. Thanks.


texts: How to get Quote item id in edit page in magento 2

texts:
How can i get quote item id when entered into edit page after product has been

added to cart in magento 2.


texts: Alligning The Subtotal Title To The Right - New Order E-mail In Magento 1.9

texts:
I am trying to align the subtotal title to the right after I was told to remove the SKU from the new order e-mail, but everything I do in the coding in (app/design/frontend/base/default/template/email/order/items/order/default.phtml) is not working for me. The prices shown on the right is aligned just fine, however, the subtotal title is not.

Any help for me with aligning the subtotal title to the right in the new order e-mail along with the prices would be much appreciated. Is there something that I am doing wrong?

Here is the code in default.phtml that I have right now:

        <?php echo $this->__('Item') ?>
        <?php echo $this->__('Qty') ?>
        <?php echo $this->__('Subtotal') ?>

and here is the screenshot of the mis-aligned subtotal title in the new order e-mail in Magento 1.9:

As you can see, the subtotal title in the new order e-mail is not aligned to the right with the prices like it should be, leaving a white gap, which I do not like to see, and I do not like my customers to see at all.

Thanks.


texts: magento 2 EE should not save search terms with zero search results

texts:
I am using magento 2.1.8 Enterprise edition. I do not want to save search terms which have zero search results. Is there any solution ?

There is no option in configuration to stop saving the search terms with 0 search results.
Please help.


texts: Magento 2 checkout: How to trigger shipping methods block update programmatically?

texts:
I've seen the What Programmatically Triggers Magento 2's Shipping Rates to Update question, and also read related @AlanStorm's post on his website, but I still don't understand, what I need to add into my custom JS code so that the shipping rates block is updated.

i.e. it automatically updates when postcode field is changed. But even if I manually fire jQuery $(postcode_field).change() trigger, it works only if postcode really changed.


texts:
I have my upsells in a block on my product page as default but I would like to display a message or custom block in the same position as my upsells would go if a product has no upsells products ie "sorry this product has no upsell products".

This is my current upsell.phtml file

<?php if(count($this->getItemCollection()->getItems())): ?>

<?php echo $this->__('You might also like') ?>

    <?php // $this->setColumnCount(5); // uncomment this line if you want to have another number of columns. also can be changed in layout ?>

    <?php $this->resetItemsIterator() ?>

    <?php for($_i=0;$_i<$this->getRowCount();$_i++): ?>

        <?php for($_j=0;$_j<$this->getColumnCount();$_j++): ?>

            <?php if($_link=$this->getIterableItem()): ?>

                <a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->escapeHtml($_link->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_link, 'small_image')->resize(225) ?>" alt="<?php echo $this->escapeHtml($_link->getName()) ?>" />

<a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->escapeHtml($_link->getName()) ?>"><?php echo $this->escapeHtml($_link->getName()) ?>

            <?php else: ?>

Sorry we couldn't find any products simular to this

            <?php endif; ?>

        <?php endfor; ?>

    <?php endfor; ?>

<?php endif ?>

Thankyou.


texts: Magento 2 toggle shipping address form in checkout

texts:
I'm trying to implement a changes in checkout where by default, the shipping address fieldset is not visible for guest customer and when there's a certain button that toggle it to visible when it's click.

I've been playing around shipping.js but it seems it's not working. Any idea on how to implement this?


texts:
Can Magento 1.9.4 run using PHP 7.3.5?

I have seen a number of Stack Exchange posts to the contrary and some supporting it.

I have PHP 7.3.5 installed on the server but how (if possible) do I tell Magento to use the latest version?

Kevin


texts: how to get all store name with there categories?

texts:
I'm working on custom module in which i m using a admin panel form where i want to display all store with their category .

<?php

class Matrid_Feedmanager_Block_Adminhtml_Web_Edit_Tab_Categoryform extends Mage_Adminhtml_Block_Widget_Form
{
 protected function _prepareForm()
  {
      $form = new Varien_Data_Form();
      $this->setForm($form);
      $fieldset = $form->addFieldset('category_filter_form', array('legend'=>Mage::helper('web')->__('Category Filter Type')));

$fieldset->addField('includecheckboxes', 'checkboxes', array(

'label' => Mage::helper('web')->__(''),
'name' => 'Checkbox',
'values' => array( array('value'=>'1','label'=>'<b> Include </b>all products from the selected categories')),'onclick' => "",'onchange' => "",'value' => '1',
'disabled' => false,

'tabindex' => 1

));

$fieldset->addField('excludecheckboxes', 'checkboxes', array(

'label' => Mage::helper('web')->__(''),
'name' => 'Checkbox',
'values' => array( array('value'=>'1','label'=>'<b> Exclude </b>all products from the selected categories')),'onclick' => "",'onchange' => "",'value' => '1',
'disabled' => false,

'tabindex' => 1

));
     $fieldset = $form->addFieldset('category_mapping_form', array('legend'=>Mage::helper('web')->__('Category Selection and Mapping')));

      if ( Mage::getSingleton('adminhtml/session')->getWebData() )
      {
          $form->setValues(Mage::getSingleton('adminhtml/session')->getWebData());
          Mage::getSingleton('adminhtml/session')->setWebData(null);
      } elseif ( Mage::registry('web_data') ) {
          $form->setValues(Mage::registry('web_data')->getData());
      }

      return parent::_prepareForm();
  }
  protected function _prepareCollection()
{
 $store = $this->_getStore();
 $collection = Mage::getModel('web')->getCollection();
 $this->setCollection($collection);
 parent::_prepareCollection();
 return $this;
}
protected function _prepareColumns()
{
        $this->addColumn('store_id', array(
            'header' => Mage::helper('web')->__('storeid'),
            'index' => 'store_id',
            'type' => 'number',
        ));
        $this->addColumn('store_name', array(
            'header' => Mage::helper('web')->__('store name'),
            'index' => 'name',
        ));

    return parent::_prepareColumns();
}

}


texts: Get out of stock product collection in magento2

texts:
I want to get the wishlist collection for the customer.

$this->wishlist->create()->loadByCustomerId($this->session->create()->getCustomerId(), true)->getItemCollection();

How to add out of stock products with this collection whether the display out of stock product configuration is enabled or not.


texts: Get catalog rule by customer group id Magento 2

texts:
I would like to get the catalog rule using a customer group id.

I cant seem to find a method for it.

How would I go on about doing this in Magento 2?


texts: Magento 1: Can modify response as XML of wsdl SOAP v2?

texts:
Can get the response of wsdl SOAP v2 as required formate XML?

I Want to require formate XML response.

$proxy = new SoapClient('http://my_host/api/v2_soap/?wsdl', array('trace' => 1));
$sessionId = $proxy->login('tet', 'tet123');
$result = $proxy->ordersExport($sessionId, 33410);
echo htmlentities($proxy->__getLastResponse());

I am getting output as below :

<Order>
<item xsi:type="ns1:associativeEntity">
<key xsi:type="xsd:string">OrderID</key>
<value xsi:type="xsd:string">1234</value>
</item>
<item xsi:type="ns1:associativeEntity">
<key xsi:type="xsd:string">InvoiceNumber</key>
<value xsi:type="xsd:string">125465231</value>
</item>
<item xsi:type="ns1:associativeEntity">
<key xsi:type="xsd:string">TransactionReference</key>
<value xsi:nil="true" />
</item>
</Order>

Want output as :

<Order>
<OrderID>1234</OrderID>
<InvoiceNumber>125465231</InvoiceNumber>
<TransactionReference></TransactionReference>
</Order>

Does anyone have an idea regarding this?


texts: How to assign categories to a new product automatically?

texts: How do I assign a category to new products automatically?


texts: Magento 2 : How to pass json ecoded array in custom API

texts:
I have created custom API that excepting 'mixed' type parameter and returning the 'string' as I defined. In interface I define parameter type 'mixed'. As I am trying to pass array as json_encode, it giving me Warning: json_decode() expects parameter 1 to be string, array given in error.` Please let me know how can I pass json array as parameter and return the same.

Here is my code -
etc/webapi.xml

<?xml version="1.0" ?>
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
    <route method="POST" url="/V1/managecustomers">
        <service class="Namespace\Modulename\Api\ManageCustomerInterface" method="createUpdate"/>
        <resources>
            <resource ref="anonymous"/>
        </resources>
    </route>
</routes>

etc/di.xml -

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Namespace\Modulename\Api\ManageCustomerInterface" type="Namespace\Modulename\Model\Managecustomer"/>
</config>

Namespace\Modulename\Api\ManageCustomerInterface.php :-

namespace Namespace\Modulename\Api;

interface ManageCustomerInterface
{
    /**
     *
     * @param mixed $data
     * @return string
     */
    public function createUpdate($data);
}

Namespace\Modulename\Model\Managecustomer.php - :

namespace Namespace\Modulename\Model;

use Namespace\Modulename\Api\ManageCustomerInterface;

class Managecustomer implements ManageCustomerInterface
{
    /**
     *
     * @param mixed $data
     * @return string
     */
    public function createUpdate($data) {
        $data = json_decode($data);
        //echo "<pre>"; print_r($data); die;
        return "Hello";

    }
}

If i am passing 'data' parameter as string like  -
$customerData = [
    'data' => "Abcd"
];

Then its running fine.
But If i am trying to pass 'data' as array like-

$customerData = [
    'data' => [
        "email" => "user@example.com",
        "firstname" => "John",
        "lastname" => "Doe",
        "storeId" => 1,
        "websiteId" => 1,
        "address"=>[
            "street" => "phase-1",
            "phone_no"=> "321654213"
        ]
    ]
];

Then its giving error - Warning: json_decode() expects parameter 1 to be string, array given in error.`

Here is my testapi.php file code  -

$ch = curl_init("http://localhost/mage23/index.php/rest/all/V1/managecustomers");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($customerData));
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json"));

$result = curl_exec($ch);

echo '<pre>';print_r($result);

Please let me know how can I pass array as parameter in API.


texts: User Information using cookies/session in magento

texts:
I am working on a Magento extension. In this extension I would like that user can add products from front side. Those products will be shown on his account when is logged in or not. If the user is not registered he can save his information and when he logges in he can view all his products (For not logged in user see only his current products).

I can use custom php cookies for that for guest, but I don't think it's the best way, because I know Magento stores guest information in the session.
I want to use Magento user cookies functionality for that, How can I do that. Only the user handling part.


texts: Magento2 Fatal Error: Call to a member function isStatic() on boolean

texts:
I am getting

  Fatal Error: Call to a member function isStatic() on boolean

This error in addAttributeToSelect() function on module-eav\Model\Entity\Collection\AbstractCollection.php on line 480


texts: how to set payment method selection required alert on checkout page in magento 2

texts:
Is there any solution for this?
Without selecting any payment method there is nothing showing alert or required warning, how can I set there?


texts: M2 | How to configure store's timezone to set date as I am getting wrong date in magento?

texts:
I get different date from todays date. I tried below ways and all give difference in time:

1)

        \Magento\Catalog\Block\Product\Context $contexts,
..........
..........

        $this->_timezone = $contexts->getLocaleDate();
..........
..........
$this->_timezone->date()->format('Y-m-d');

2)

$obj = \Magento\Framework\App\ObjectManager::getInstance();
/** @var \Magento\Framework\Stdlib\DateTime\DateTime $dateTime */
$dateTime = $obj->create(\Magento\Framework\Stdlib\DateTime\DateTime::class);

$currentDate = $dateTime->gmtDate();

3)

 \Magento\Framework\Stdlib\DateTime\DateTime $date

As answered here, times are store in the database as UTC (+0:00). How can we set it to get correct date.


texts: How to get product's details using order id in Magento 2 admin grid?

texts:
In my Custom Module Magento 2 I want to get Ordered product info by using order id using the Admin grid.
Currently, I get the order id but I want the details of the ordered product also how did I fetch that.
Any help is appreciated.


texts: How can I fix an Integrity constraint violation about 'linked_product_id' (when importing)

texts:
During import I get errors like

PHP Fatal error:  Uncaught exception 'PDOException' with message
    'SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or
    update a child row: a foreign key constraint fails
    (`foo`.`catalog_product_link`, CONSTRAINT
    `FK_CAT_PRD_LNK_LNKED_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY
    (`linked_product_id`) REFERENCES `catalog_product_entity` (`entity_id`)'
    in lib/Zend/Db/Statement/Pdo.php:228

I already changed Mage_ImportExport_Model_Import_Entity_Product::_saveLinks() for debugging the single inserts:

        if ($linkRows) {
            foreach($linkRows as $row) {
                $adapter->insertOnDuplicate(
                    $mainTable,
                    $row,
                    array('link_id')
                );
            }

And now I get linked_product_id' cannot be null'

The full import stops because of this error.


texts: Find all products assigned a particular shipping group

texts: What would be the best method to show all products in a particular shipping group? I'm up to try either a MySQL query or possibly find a way to add as a column within the products listing of Magento admin.


texts: Trigger something when a catalog price rule is getting active/inactive

texts:
Basically, I need a way to find out when a price rule gets active/inactive, and which products that is being effected by it. Both when it's made manually, and per the date set in the rule.

I've tried using catalogrule_after_apply but I can't get any relevant data out of it.

Any suggestions?

Edit:

I've pretty much been fiddling around, dumping data:

<catalogrule_after_apply>
    <observers>
        <my_module_catalogrule_after_apply>
            <type>singleton</type>
            <class>My_Module_Model_Observer</class>
            <method>catalogruleProductApiUpdate</method>
        </my_module_catalogrule_after_apply>
    </observers>
</catalogrule_after_apply>

and

class My_Module_Model_Observer
{
    public function catalogruleProductApiUpdate (Varien_Event_Observer $observer)
    {
        $product = $observer->getEvent()->getProduct();
        Mage::log('crPAU ran:' . print_r($product, true));
    }
}

and similar stuff - just haven't found anything of relevance. I've used catalog_product_save_commit_after and catalog_product_attribute_update_before with success.

On a sidenote it also runs everytime i save a product - regardless of said product having a price rule or not - and then it prints out the product ID in the log.

I'm a bit unsure about this even being the right event to trigger on.


texts: how to get the total count of a products in a wishlist in magento 2

texts: I want to get the total count of products in a wishlist without affecting the collections.


texts: Display phtml block in another block page

texts:
As M1 if I need to display just some phtml in another block or page, so we have to create it in a current theme then we can retreive it via xml or the other block

xml:

<the_layout_handle>
    <reference name="root">
        <block type="core/template" name="block1" template="path/to/file.phtml">
    </reference>
</the_layout_handle>

then in the other file we get it like this: <?php echo $this->getBlockHtml('block1'); ?>

phtml:

or directly like this: <?php echo $this->getLayout()->createBlock('core/template')->setTemplate('path/to/file.phtml')->toHtml(); ?>

Question :

Directly in file I know that bu how to reproduce the same thing via xml in M2 ?

phtml:

echo $this->getLayout()->createBlock("Magento\Framework\View\Element\Template")->setTemplate("Magento_Luma::path/to/file.phtml")->toHtml();

Issue:

I have some phtml in app/design/frontend/Magento/Luma/template/block1.phtml

i want to display it in home page, so in content I have this: {{block class="Magento\Framework\View\Element\Template" name="block1" template="Magento_Luma::template\block1.phtml"}} but it doesn't work !


texts: Magento admin login process problem at first time after installing it.

texts: I am facing weird problem with magento admin login process. After installing fresh magento on live server, whenever I login at admin side first time, it will not login though the username and password are correct. Just after few seconds I will login with same username and password it will login successfully. I have searched a lot on net regarding the same. But I couldn’t get rid of this. Any help from you guys will appreciate.


texts: Check delivery availability depend on customer location

texts:
I'm developing a Magento 2 store, My client have several restaurants across the country and he wants to be sure that the customer is within the delivery range for his/her nearest store (5 km).

The customer should have a map to pin his address, if his is on the range he can place the order, otherwise a message will be displayed that he is out of the delivery zone.

I have found several modules that restricted the delivery but uses only zip codes to check the customer location. I need to do the exact same thing but by letting the customer pin his location on a map.

Here is an example of the functionality
https://www.mcdelivery.eg/eg/guest.html


texts:
Just a quick question I cannot seem to find a solid answer for, does Magento Enteprise 1.13 come with Redis for cache backend out of the box now?

Or do I still need to use https://github.com/colinmollenhour/Cm_Cache_Backend_Redis ?

I can see there is a Mage_Cache_Backend_Redis file within my enterprise base install, but I am not 100% sure how to configure it as have no working knowledge of Redis so far.


texts: joinLeft and get newest row from duplicate rows of right column

texts:
My database is as follow:

________________________________________________________________
|                        |                                      |
| sales_flat_order       |       custom_payment                 |
|________________________|______________________________________|
| id    customer         |       id     order_id    date        |
| 1       John           |       1         1        2016-1-1    |
| 2       Peter          |       2         1        2016-2-3    |
| 3       Sam            |       3         2        2016-2-5    |
| 4       Liam           |       4         4        2016-2-5    |
|________________________|______________________________________|

Now, I want the result like this:

id     customer       custom_payment_date
1      John           2016-2-3
2      Peter          2016-2-5
3      Sam            [empty] // no payment value exist for this
4      Liam           2016-2-5

My code is:

$collection = Mage::getResourceModel('sales/order_collection');
$collection->getSelect()
        ->joinLeft(
            array('custom_payment'=> $collection->getTable('module/model')),
            'main_table.entity_id = custom_payment.order_id'
        )
        ->group('main_table.entity_id')
        //->order('custom_payment.created_date', 'DESC') //this is not working either
        ;

This gives me result but it doesn't gives me newest row from custom_payment table, it always selects first one (oldest).

eg:

id     customer       custom_payment_date
1      John           2016-1-1 ------//selects first one (oldest)
2      Peter          2016-2-5
3      Sam            [empty] // no payment value exist for this
4      Liam           2016-2-5

How can I achieve this? Please suggest.


texts:
I'd like to add a generic promo message to the product description page (product information/detail page) under a certain brand. Is there any way to do this without extensions or additional code? Thanks.

Eg- All products under XYZ
Should show a promo message - Get a bonus product when you spend $80 or more on products from Brand XYZ

The shipping cart rules etc have been all set-up to implement this, need help with displaying this message across all the qualifying product page.

Thanks


texts: Can I delete media directories left over from an unused non-composer installed module in Magento 2?

texts:
I have been trying to clear space on my server (every little bit helps).  I recently installed the FishPig extension and had no use for the Magefan_Blog module that was installed in my Magento 2 store.

I'm not exactly sure if Magefan_Blog comes with Magento 2.1.2 out of the box.  However, I didn't need it.  I tried uninstalling through CLI (command line), but I was only able to disable through command line with the magento module:disable command.

I then proceeded to delete the module and necessary table entries in the db, however I noticed that there were some files in media/magefan_blog/b/l/ that were no longer being used.  There were only about 6, but like I said, I want to to clean everything.

Those image DID NOT show up when I installed the Shreeji Unusedimages extension, so it left me wondering, (if the Shreeji extension actually found unused images outside of the catalog) whether or not these images were still attached to something somewhere that could break my store in anyway.

Does anyone know if these images can be deleted without consequence?  Again, I have already removed the Magefan_Blog module from my Magento install.

In addition, can I also deleted the images from the directory "downloadable" as I've already deleted all the product entries for the sample data?


texts: Is there a way to edit the pre stored address in the Onepage checkout page?

texts: My issues, After launching the website I have made some of the street lines mandatory, which was not initially. So some of the customers already have address stored without the new mandatory street line. So is there a Magento way to show the selected stored address in the Onepage adress form and customer can edit it and save it(Save in same ID) and continue with Checkout.


texts: Table rates -> Free shipping from X € - different taxes

texts:
Is there a way to set free shipping in tablerates for a Total inkl. Tax? The problem is tablerates are using the subtotal without tax but i need it including tax. Because we use two different taxes, we can´t just calculate the price without tax.

I want to set free-shipping in my tablerates .csv for a Total of 19€ including tax. How is this possible?


texts: Appear error when upgrade from magento 2.3.2 to 2.3.3

texts:
When we execute command line upgrade done appear error in the log:

Broken reference: the 'catalog.compare.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
Broken reference: the 'sale.reorder.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
Broken reference: the 'wishlist_sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
Broken reference: the 'yotpo_bottomline' element cannot be added as child to 'product.info.main', because the latter doesn't exist [] []
Broken reference: the 'footer_blog_link' element cannot be added as child to 'footer_links', because the latter doesn't exist [] []
Broken reference: the 'paypal.partner.right.logo' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
Broken reference: the 'bml.right.logo' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []

- Broken reference: the 'yotpo_bottomline' tries to reorder itself towards 'product.info.addto', but their parents are different: 'product.info.main' and '' respectively. [] []

This is error via the screenshot:
http://prntscr.com/pntyo3

Backend admin still working normal, only frontend not working (don't showing anything only show white page).emphasized text
Anyone can help me.
Thank you so much!


texts:
I have 4 websites within 1 Magento instance. Is it possible to have 1 general login page and magento will then detect which website the customer belongs to and redirects them to the correct one.

At the moment Magento is only letting customers sign in if they click the login from the relevant website.


texts: Can't view catalog in front-end after upgrading to 1.9

texts:
After upgrading to 1.9.1.1 and running security patch SUPEE-5994 I couldn't view the system configuration page so I followed this suggestion:

http://www.tjcafferkey.me/magento/blank-system-configuration-page-magento-1-9-0-1-upgrade/

and went to /app/code/core/Mage/GoogleCheckout/etc and removed all files except config.xml

It's important to note that I do not know if removing everything from the GoogleCheckout/etc folder is the cause to this because I didn't try to load the catalog after the upgrade. I think it is more likely the upgrade caused this. also it is possible to search for the items and they show up in the search result and also you can enter to the items page just not the category pages.

Now when I am trying to view the catalog in the front-end, I am granted with this error after enabling developer mode:

Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Mage_Wishlist_Helper_Data' does not have a method ''  in /home/username/public_html/app/code/core/Mage/Core/Model/Layout.php on line 324

#0 [internal function]: mageCoreErrorHandler(2, 'call_user_func_...', '/home/username/...', 324, Array)

#1 /home/username/public_html/app/code/core/Mage/Core/Model/Layout.php(324): call_user_func_array(Array, Array)

#2 /home/username/public_html/app/code/core/Mage/Core/Model/Layout.php(214): Mage_Core_Model_Layout->_generateAction(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))

#3 /home/username/public_html/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))

#4 /home/username/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()

#5 /home/username/public_html/app/code/core/Mage/Catalog/controllers/CategoryController.php(148): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()

#6 /home/username/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Catalog_CategoryController->viewAction()

#7 /home/username/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view')

#8 /home/username/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))

#9 /home/username/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()

#10 /home/username/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)

#11 /home/username/public_html/index.php(88): Mage::run('', 'store')

#12 {main}

Thank you for any help you could provide!


texts: How can I add a Static Block between Discount and CrossSell

texts:
i want to add a block between Apply Discount form and crossell Block on Cart page in magento 2

I have tried this Code but its not working

 <referenceContainer name="checkout.cart.items">
     <block class="Vendor\Module\Block\Block.php" cacheable="false"
     name="my.static.block" before="checkout.cart.crosssell" template="Vendor_Module::file.phtml"  />
 </referenceContainer>


texts: New Magento VM redirecting to old website

texts:
I created a new Azure VM machine using the clone/image of a previous one.

However, when I can newwebsite.com/magento, it's automatically redirecting to oldwebsite.com/magento. I looked at the .htaccess in the main magento directory, and I found no reference to the old website. Also, I cleared the cache and sessions, but neither of those things seemed to fix the issue.

What could be causing it?


texts: Magento 2 How to allow special characters like "/" in catalog search?

texts:
Using Magento 2.3, I have 3,000 products that are fittings for a plumbing warehouse. Currently, it is impossible to search for a fitting that is 1/2" or 3/4".

How do I allow special characters like "/" or quotation marks in catalog search?

Thanks.


texts: Magento 2 Get product collection filter by atributes does not give the exact match

texts:
I have created a filter to get product bellow is an examples:

$filter = array(
  array('attribute' => 'color', 'eq' => '2'),//id of option
  array('attribute' => 'size', 'eq' => '5'),// tried with many variations 'like', '=', 'in'
  array('attribute' => 'length', 'eq' => '8')
)

$productCollection->addAttributeToSelect('*')
            ->addAttributeToFilter($filter)
            ->load()->getItems();

The above in the front end the selection is:

But my first result is ->

I am only able to see exact matching filter somewhere down to the 10th result. not ideal.

How can I get just the exact match result? in this example I should only get product that has

color:blue, size:2 length:30

Thanks.


texts: How we can save the newsletter to true for customer on checkout page in Magento 2?

texts:
I have created a Js component in which i am showing a checkbox of Register for Newsletter.It is showing above shipping form that is correct.

What i want that when i will check this checkbox then it should be saved to the customer for subscribed to newsletter.


texts: how to show all attributes even filters applied in magento 2.1

texts: how to show all attributes even filters applied i.e., if we click on like color options then some options get's cleared so i want to display all filters whether if we choose another option also.


texts: Add label to the text field-magento2 checkout field

texts: I want to add labels in the checkout page text fields.I used IWD free extension for one step checkout.here with i enclose the screenshot and link to IWD free extension. Refer https://www.iwdagency.com/extensions


texts:
We have created 4 customers groups:

1) group1

2) group2

3) group3

4) group4

And we use custom shipping:

https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/

Our website required login. How to display this custom shipping only for group1 and group2 ?


texts: Magento 2 GET API request to external api

texts:
In magento 1 you can make get request like this:
First Authorizing object-

public function authorize($url)
{
    $cookie = $this->getCookieDir();
    $user = $this->getApiUser();
    $curl = curl_init($url);

    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_USERAGENT, '.....-API-client/1.0');
    curl_setopt($curl, CURLOPT_POST, true);
    curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($user));
    curl_setopt($curl, CURLOPT_HEADER, false);
    curl_setopt($curl, CURLOPT_COOKIEFILE, $cookie);
    curl_setopt($curl, CURLOPT_COOKIEJAR, $cookie);
    curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
    curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);

    $response = curl_exec($curl);

    curl_close($curl);
    return $response;
}

Then

public function get($url)
{
    $cookie = $this->getCookieDir();
    $curl = $this->initCh($url);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_USERAGENT, '.......-API-client/1.0');
    curl_setopt($curl, CURLOPT_HEADER, false);
    curl_setopt($curl, CURLOPT_COOKIEFILE, $cookie);
    curl_setopt($curl, CURLOPT_COOKIEJAR, $cookie);
    curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
    curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);

    $out = curl_exec($curl); # Initiate a request to the API and stores the response to variable
    $code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
    curl_close($curl);
    return $out;
}

Now in Magento 2

\Magento\Framework\HTTP\Client\Curl::get($uri); calls makeRequest();

In makeRequest(); curl_init() is called and all curlOption() are set. So there shouldn't be anymore need to do like in Magento 1? If so how this is how it should be done? -

/**
 * @param $url
 * @return void
 */
public function doGet($url){
    $user = $this->getApiUser();
    $this->_curl->setHeaders(CURLOPT_POSTFIELDS, http_build_query($user));
   //setting everything else
    $this->_curl->get($url);
}


texts: A client placed an order on our site twice in one day, but the order never came through on the Magento side.  It did get processed successfully through Heartland payments, though.  Any idea on why this order is missing?  I did see the order in the databased sales_flat_quote, but I wasn't sure why it was there and no where else.  Please help.


texts: Difference between Magento 2 and Google Analytics Revenue with Cart Price Rules

texts:
I want to know if you have any idea why when I set some Cart Price Rules, for example a 30% discount, is not reflected on my Google Analytics revenue.
Here is an example:
X product, full price: $100
With a Cart Price Rule Discount of 30%= $70 Total Order
Google Analytics Revenue: $100 (Discount doesn't apply)
Please let me know if you can help me.
Thanks in advance,
Lucas


texts: Turn off "Low Stock Alert" for all Configurable Products

texts:
Wanna ask whether we can turn off "Low Stock Alert" that is being triggered every time customer places an order for Configurable Product?

In Inventory setting - there is no way to increase or decrease quantity of Configurable Product. And I believe quantity for Configurable Products are being set as "0" and that's why "Low Stock Alert" is triggered.

Solution needed : is there a way to prevent the "Low Stock Alert" global configuration to have its effect on Configurable Products? So that no notification mail is sent to respective vendor.


texts: Sitemap Generation Issue - URLBuilder - must be type of string - error

texts:
I am trying to generate a sitemap.xml file in the Magento 2.3.5-p1 admin area, however I get a blank screen after clicking generate. I check the php logs and receive this error:

    AH01071: Got error 'PHP message: PHP Fatal error:
Uncaught TypeError: Argument 1 passed to Magento\\Catalog\\Model\\Product\\Image\\UrlBuilder::getUrl() must be of the type string, null given, called
in /home/363882.cloudwaysapps.com/qzzbnfgmbr/public_html/vendor/mageworx/module-xmlsitemap/Model/ResourceModel/Catalog/Product.php on line 527 and
defined in /home/363882.cloudwaysapps.com/qzzbnfgmbr/public_html/vendor/magento/module-catalog/Model/Product/Image/UrlBuilder.php:65\nStack trace:\n#0
/home/363882.cloudwaysapps.com/qzzbnfgmbr/public_html/vendor/mageworx/module-xmlsitemap/Model/ResourceModel/Catalog/Product.php(527):
Magento\\Catalog\\Model\\Product\\Image\\UrlBuilder->getUrl(NULL, 'product_page_im...')\n#1
/home/363882.cloudwaysapps.com/qzzbnfgmbr/public_html/vendor/mageworx/module-xmlsitemap/Model/ResourceModel/Catalog/Product.php(480):
MageWorx\\XmlSitemap\\Model\\ResourceModel\\Catalog\\Product->getProductImageUrl(NULL)\n#2
/home/363882.cloudwaysapps.com/qzzbnfgmbr/public_html/vendor/mageworx/module-xmlsitemap/Model/ResourceModel/C...\n', referer:

I have checked sys.log and exception.log with no additional information. Has anyone come across this before? This is the first time I have tried to generate a sitemap. I have also disabled the mageworx module and it still produces the same result. I migrated from M1.6.2, so I think there may have been something not quite right with one or more images in the DB that would cause this. Any tips, suggestions etc... would be great appreciated. Thank you very much for anyone's time.


texts:
I am new in magento extension devlopment.

I have to change my textbox value when i am click on button, in magento. Following are some important part of my code. when this same I try in simple PHP it works so why not in magento?

My script is:

This is button code:

    *<?php echo $this->__('City') ?>

        <input type="text" name="city" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>"  title="<?php echo $this->__('City') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="city" />

This is my phtml code:

<input type="text" value="xyz" id="newcity">
<input type="submit" name="truemagentosubmit" value="This will real submit the form" onclick='changeText2()'/>

When I am click on submit button it dosent change the value of textbox whose id is city.

please give me some suggestion on this code. How can I resolve this.


texts: How to convert latin characters into the english characters?

texts:
I have following brand name which contains Latin character. How to convert the brand name into English?

Latin characterise string:  RéVive LeurCrème

Want to convert into - Revive LeurCreme


texts: Calling "Payment Method" in Order Details

texts:
I'm calling:

$payment_name = Mage::getSingleton('checkout/session')->getQuote()->getPayment()->getMethodInstance()->getTitle();

in an extension for payment fees, so I can get the name of the payment method used for that order and display it. The problem is that the order details page (when a user is logged in) and the order details print (on the success page) both lead to an error:

The requested Payment Method is not available.

Trace:
#0 /var/www/kd/dev.aaronia-shop.com/app/code/core/Mage/Payment/Model/Info.php(82): Mage::throwException('The requested P...')
#1 /var/www/kd/dev.aaronia-shop.com/app/code/core/Mage/Sales/Model/Quote/Payment.php(218): Mage_Payment_Model_Info->getMethodInstance()

...

But sales e-mails, admin-backend and everything else is working fine, just the order details giving me a headache. Commenting out/removing the $payment_name = ... line fixes it.

Is there a different way to call for the order payment method?

Edit: When I load the working code and log-in as a user, then go to an order details page, load the problematic code and refresh the page - it works. Then I can go back and check other order detail pages, all until I make a new order, then it breaks again and I get the error again when I try to see them.


texts: MAGENTO 2 Customer grid backend "no such entity" issue

texts:
after deleting a store in my Magento 2, if I go to the customer page I find the error "No Such Entity". On the DB there are all and even changing the website_id, store_id and created_in I do not solve anything.
I tried everything, reindex, deploy, upgrade but nothing ...
I also noticed that if I delete all the clients from the DB, I visualize the structure with the header but without any records. As soon as I add a customer, the NO SUCH ENTITY error appears
Solutions ?????


texts: Is it possible to create an order only if payment is completed?

texts:
I am using Magento 1.9.2 and i want to modify one of my payment methods. When this specific method is selected and the user clicks on Complete Order they are redirected on another website where they are able to make their payment. When the payment is done, the payment processor a.k.a the website where they pay sends us back a confirmation so we can know the payment is done.

Only when this payment is selected i want to force magento to NOT create an order until payment is confirmed.

Simple as that:
How can i make magento to create an order only when i receive a confirmation of payment? Is it possible?

I am asking for suggestions any information from where i can start will be very nice.

Thanks in advance!


texts: Explain the add to cart flow in magento 2. I need which files call after we click add to cart button in magento 2. Please help me


texts: Request dispatched by checkout_cart_add_product_complete event is missing data

texts:
I have an observer which listens to the checkout_cart_add_product_complete event in Magento (this works correctly) but when I try to access the request data returned by the dispatched event it doesn't seem to work as expected.

The source code which dispatches the event can be found here, lines 117-120 dispatch the event and you can see the request parameter is present in the dispatched data.

The same source code uses the same request to get the qty param, which for example is present in my request data.

This is how I am accessing the data dispatched by that event:

public function execute(\Magento\Framework\Event\Observer $observer) {
    $event = $observer->getEvent();
    $product = $event->getData('product');
    $request = $event->getData('request');

    $params = $request->getParams();

    $this->myhelpername->log("PARAMS: " . var_export($params, true));

Which returns:

PARAMS: array (
  'uenc' => 'aHR0cDovL21hZ2VudG8uaW50aWxlcnkuY29tL2NhdGFsb2dzZWFyY2gvcmVzdWx0Lz9xPXRlc3Q,',
  'product' => '2',
  'form_key' => 'F6GFMhoJHPpeoOaa',
) [] []

As you can see this is clearly not the same request returned as it doesn't contain the qty value. You can see this is access in the source code on lines 86-94.

Any idea why this is?

Note: If I inject my own Request listener and do $params = $this->request->getParams(); (where request is an instance of \Magento\Framework\App\RequestInterface then this prints the exact same data as using the above which makes me think I am doing something wrong.


texts:
WYSIWYG Editor in Magento stopped working, when I click on show/hide editor, the insert image button disappears and nothing happens

I am unable to figure out the issue, I am using Magento ver. 1.9.3.6

these are the content management settings

and one thing that is also weird now that if I edit a product no default tab comes, I have to select it. previously spec tab open my default.


texts: display error disabled, but still show errors!

texts:
I disabled display error in index and deleted cache but still errors display and don't let me to continue my job!
How can I solve this issue ?


texts:
I want to deploy my magento 1.9 project on server.
I have done these steps:

Export DB and inmport it into new server
Change local.xml DB Connection repositories

I am facing the problem with url because when i call the project in browser it is redirect to my local project url.

Can anyone help me with this problem?


texts: Inline style doesn't work in Email header logo on custom template

texts:
Can you please tell why the inline css doesn't work on header logo.

I use the custom email template for sending email.

I send two custom emails. 1st works fine but in second email the inline style doesn't work on header logo.

Please see the email template 1st and 2nd.

1st email template is :

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

Dear {{var customerName}},

Thankyou, For uploading your image in lifestyle gallery. Our team will review the image and you will be notify by email when your image will gets appove.

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

And Second email template is

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

Dear {{var customerName}},

Congratulations, Your Lifestyle Gallery image has been approved. Please click here to see your image.

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

Please tell me why this happening.


texts: Get Product Collection Containing In-Stock Products Only

texts:
There may be a simple answer to this, but I can't find it. I'm trying to retrieve a product collection, excluding products that are enabled, but out of stock.

I've tried the following approach, but this kicks out an error:

$productIds = array('3','4','9');

$productCollection = Mage::getResourceModel('catalog/product_collection')
    ->addAttributeToSelect(
        array('name', 'image', 'price')
    )
    ->addIdFilter($productIds)
;

$this->_productCollection = Mage::getSingleton('cataloginventory/stock')
    ->addInStockFilterToCollection( $productCollection )
;

The following error occurs:

PHP Fatal error: Call to a member function getTypeInstance() on a non-object in app/code/core/Mage/Catalog/Block/Product/Abstract.php on line 117

app/code/core/Mage/Catalog/Block/Product/Abstract.php:117 has the following method:

/**
 * Retrieve url for add product to cart
 * Will return product view page URL if product has required options
 *
 * @param Mage_Catalog_Model_Product $product
 * @param array $additional
 * @return string
 */
public function getAddToCartUrl($product, $additional = array())
{
    // line 117:
    if (!$product->getTypeInstance(true)->hasRequiredOptions($product)) {
        return $this->helper('checkout/cart')->getAddUrl($product, $additional);
    }
    $additional = array_merge(
        $additional,
        array(Mage_Core_Model_Url::FORM_KEY => $this->_getSingletonModel('core/session')->getFormKey())
    );
    if (!isset($additional['_escape'])) {
        $additional['_escape'] = true;
    }
    if (!isset($additional['_query'])) {
        $additional['_query'] = array();
    }
    $additional['_query']['options'] = 'cart';
    return $this->getProductUrl($product, $additional);
}

Is there a simple way to filter a collection to get only products that are in stock? Obviously I know about isSaleable() inside the loop. Thanks.


texts: I need to enable foreign key checks on table

texts: I manually import category table but after impport there is no connection between table entries thats why categories in admin does not show whole data.how can i enable or make these checks or links.


texts: How to override the vendor/magento/module-swatches/Block/Product/Renderer/Configurable.php in magento2 app/code/ custom module

texts:
How to override the vendor/magento/module-swatches/Block/Product/Renderer/Configurable.php file in magento2 app/code/ custom module
I'm updated the const SWATCH_RENDERER_TEMPLATE = 'Magento_ConfigurableProduct::product/view/type/options/configurable.phtml';
please provide any suggestions
Thanks


texts: How do I get the proper syntax for media path in image link url

texts:
What is the proper syntax for adding the media path to the base/full/ and base/thumbnails/ link urls?

echo "";

Full code for reference:

    <?php
    $images = scandir('/home/xxxxxxx/xxxxxxx/public_html/app/code/Martens/Showroom/view/frontend/web/images/base/thumbnails/');
        $ignore = Array('.', '..');
        foreach($images as $curimg){
        if(!in_array($curimg, $ignore)) {
        echo "";
        }
      };
    ?>


texts: Magento 2.2.4 & 2.2.5 Bug - Cannot update theme bug fix: Not able to override the abstract class AbstractTemplate

texts:
I am having trouble to update the theme in Magento 2.2.5 due to the known issue in setForcedAre function of the file Magento\Email\Model\AbstractTemplate.php

As per the fixes by Daniel Ruf, updating the setForcedArea function will fix the error, but I am having trouble to override the core file Magento\Email\Model\AbstractTemplate.php.

Let me know how to override this core file. I have tried overriding this file using the preference way and also by the plugin way, but it's not working.


texts: paypal refreshing issue when goto checkout

texts:
enter image description hereI am new to Magento 2.1.

I have an issue related to paypal.

when I am going to select payapal radio button and enterPlace order the product for payment and hit the paypal button then it will refreshing the page and redirect to checkout page.


texts: Payments pro not working in magento2.1.7?

texts:
I have integrated Payments pro payment method in my magento2.1.7 site.

Refer screenshot.

I have referred this link for integrating Payments pro https://docs.magento.com/m2/ce/user_guide/payment/paypal-payments-pro.html

With Debit or Credit it is working and I can see the transaction amount in the merchant acount.

But when I click Paypal it is redirecting to checkout cart page. Please help.

Any help would be appreciated.


texts: Trying to edit the page title template in Magento 2

texts:
I am trying to edit the template used to generate page titles on product pages.

I have duplicated:
vendor/magento/module-theme/view/frontend/templates/html/title.phtml

into my theme folder:
app/design/frontend/MyDirectory/MyTheme/Magento_Theme/view/frontend/templates/html/title.phtml

I thought that Magento picked up this new version of the file, but it does not seem to be recognizing the new template.

Am I missing some obvious step here?


texts: What bare-bones starter theme should I use given a certain layout?

texts:
I am working on a Magento 2.1.7 shop. I need to create a custom theme where most pages have the layout below:

I have not done a great job at creating a child theme from scratch. I need an alternative. I thought of starting from a bare-bones theme (that will not be overwritten by updates).

My question is: What bare-bones starter theme should I use given the layout above?


texts: How does magento calculate max uses per coupon for a promo rule

texts:
I have observed that customers can no longer apply a specific promocode to their orders although the uses registered per coupon are lower than the value set in the rule.  The only way I have to solve the issue is to increase the value for uses per coupon (uses per customer is set to 1 always).

At reviewing the DB, I see that coupon is used in the sales_flat_quote as well in sales_flat_orders. Don't know if this is the expected behaviour (summing up quotes + orders for uses calculations) or if there's a bug I should report / correct.


texts:
I imported the csv file named magmi.csv which is new one containing only 3 rows. But,the magmi importer imports from previous magmi.csv file which had 624 rows.
What might be the issue on this. Please help me to find the solution.


texts: Showing recently viewed products on the basket page

texts:
Is it possible to show recently viewed products in the basket?

i.e. a customer views product a, product b and product c.

They add product b to their basket.

When they view their basket I would like to show product a and product c underneath their basket.


texts:
I'm working on a module with a custom namespace session. I extended the Session class and created a new object, but every time I use the new object it overwrites the parent one while I need 2 different instances

Can a custom session be instantiated twice ?
thanks


texts: what file to change for this to remove compare block?

texts:
when going to www.domain.com/customer/address/edit/id/1/

where one can edit their address

for some reason there is a block compare in left sidebar

what file do i need to edit to remove this?

Thanks

Carlo

In my layout.xml (app/design/frontend/mythemepackage/default/layout/local.xml)

i have this:

 <!-- CUSTOMER ACCOUNT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -->
<customer_account>

    <reference name="left">
        <!-- Remove cart from the left column -->
        <action method="unsetChild"><name>cart_sidebar</name></action>

        <!-- Remove Compare block, it is already inserted in DEFAULT section -->
        <action method="unsetChild"><name>catalog.compare.sidebar</name></action>
    </reference>

</customer_account>

the default section it refers to is this i guess in same file:

<?xml version="1.0" encoding="UTF-8"?>

<!-- Left ====================================================================== -->
    <reference name="left">
        <remove name="left.newsletter"/> <!-- Moved newsletter to the footer -->
        <action method="unsetChild"><name>left.permanent.callout</name></action>
        <action method="unsetChild"><name>left.reports.product.viewed</name></action>
      <block type="catalog/product_compare_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
        <!--  <block type="reports/product_compared" name="right.reports.product.compared" template="reports/product_compared.phtml" />
       <block type="reports/product_viewed" name="left.reports.product.viewed" template="reports/product_viewed.phtml" />
       <block type="wishlist/customer_sidebar" name="wishlist_sidebar" as="wishlist" template="wishlist/sidebar.phtml"/>
       <block type="poll/activePoll" name="right.poll">
           <action method="setPollTemplate"><template>poll/active.phtml</template><type>poll</type></action>
           <action method="setPollTemplate"><template>poll/result.phtml</template><type>results</type></action>
       </block>
       <block type="tag/popular" name="tags_popular" template="tag/popular.phtml"/>
       <block type="paypal/logo" name="paypal.partner.right.logo" template="paypal/partner/logo.phtml"/> -->

        <action method="unsetChild"><name>tags_popular</name></action>
        <action method="unsetChild"><name>cart_sidebar</name></action>
        <action method="unsetChild"><name>right.reports.product.compared</name></action>
        <action method="unsetChild"><name>right.reports.product.viewed</name></action>
        <action method="unsetChild"><name>wishlist</name></action>
        <action method="unsetChild"><name>sale.reorder.sidebar</name></action>
        <action method="unsetChild"><name>right.poll</name></action>
        <action method="unsetChild"><name>paypal.partner.right.logo</name></action>
    </reference>


texts: Sort order field in PayUMoney checkout payment method is not showing in admin panel

texts:
I integrate PayUMoney checkout payment method into my website successfully.Two  payment option is available on frontend :

1.Payu Checkout
2.Check / Money order

but I want to change display order of payment methods i.e

1.Check / Money order
2.Payu Checkout

In admin panel i fill all fields

but "sort order" field is not showing in setting.see image


texts: Asynchronous loading of CSS file (prototype default.css)

texts:
I decided to test my site for speed (google check speed).
And he caught this warning:

  Eliminate render-blocking JavaScript and CSS in above-the-fold content
  Your page has 1 blocking CSS resources. This causes a delay in
  rendering your page. None of the above-the-fold content on your page
  could be rendered without waiting for the following resources to load.
  Try to defer or asynchronously load blocking resources, or inline the
  critical portions of those resources directly in the HTML. Optimize
  CSS Delivery of the following:

https://www.example.com/js/prototype/windows/themes/default.css

I implement this file in the layout:

<reference name="head">
            <action method="addItem"><type>js_css</type><name>prototype/windows/themes/default.css</name></action>
 </reference>

And this css :

.overlay_dialog {
    background-color: #666666;
    filter:alpha(opacity=60);
    -moz-opacity: 0.6;
    opacity: 0.6;
}

.overlay___invisible__ {
  background-color: #666666;
    filter:alpha(opacity=0);
    -moz-opacity: 0;
    opacity: 0;
}

.dialog_nw {
    width: 9px;
    height: 23px;
    background: transparent url(default/top_left.gif) no-repeat 0 0;
}

.dialog_n {
    background: transparent url(default/top_mid.gif) repeat-x 0 0;
    height: 23px;
}

.dialog_ne {
    width: 9px;
    height: 23px;
    background: transparent url(default/top_right.gif) no-repeat 0 0;
}

.dialog_e {
    width: 2px;
    background: transparent url(default/center_right.gif) repeat-y 0 0;
}

.dialog_w {
    width: 2px;
    background: transparent url(default/center_left.gif) repeat-y 0 0;
}

.dialog_sw {
    width: 9px;
    height: 19px;
    background: transparent url(default/bottom_left.gif) no-repeat 0 0;
}

.dialog_s {
    background: transparent url(default/bottom_mid.gif) repeat-x 0 0;
    height: 19px;
}

.dialog_se {
    width: 9px;
    height: 19px;
    background: transparent url(default/bottom_right.gif) no-repeat 0 0;
}

.dialog_sizer {
    width: 9px;
    height: 19px;
    background: transparent url(default/sizer.gif) no-repeat 0 0;
    cursor:se-resize;
}

.dialog_close {
    width: 14px;
    height: 14px;
    background: transparent url(default/close.gif) no-repeat 0 0;
    position:absolute;
    top:5px;
    left:8px;
    cursor:pointer;
    z-index:2000;
}

.dialog_minimize {
    width: 14px;
    height: 15px;
    background: transparent url(default/minimize.gif) no-repeat 0 0;
    position:absolute;
    top:5px;
    left:28px;
    cursor:pointer;
    z-index:2000;
}

.dialog_maximize {
    width: 14px;
    height: 15px;
    background: transparent url(default/maximize.gif) no-repeat 0 0;
    position:absolute;
    top:5px;
    left:49px;
    cursor:pointer;
    z-index:2000;
}

.dialog_title {
    float:left;
    height:14px;
    font-family: Tahoma, Arial, sans-serif;
    font-size:12px;
    text-align:center;
    width:100%;
    color:#000;
}

.dialog_content {
    overflow:auto;
    color: #DDD;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 10px;
    background-color:#123;
}

.top_draggable, .bottom_draggable {
  cursor:move;
}

.status_bar {
  font-size:12px;
}
.status_bar input{
  font-size:12px;
}

.wired_frame {
    display: block;
  position: absolute;
  border: 1px #000 dashed;
}

/* DO NOT CHANGE THESE VALUES*/
.dialog {
    display: block;
    position: absolute;
}

.dialog table.table_window  {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
    margin: 0px;
    padding:0px;
}

.dialog table.table_window td , .dialog table.table_window th {
  padding: 0;
}

.dialog .title_window {
  -moz-user-select:none;
}

May be anybody know what this warning can be and how to spill it. Perhaps assisting the asynchronous loading.

Thanks in advance


texts:
Is there any module to take payments via PayPal from Magento admin. Currently Paypal does not seem to support payments from admin?
Are there any other options? We do not have merchant account so Sage pay might not be suitable.


texts: Best way to reproduce the Order grid view as a printable report?

texts:
Below is an image of the screen at this URL in our Magento Community edition.

It is the grid view of all sales orders.

I have been tasked with building a printable worksheet report that will list all the orders in our Magento so in a nutshell I need to get the data that you see on this image below along with a couple other items about an order, such as the image for the products and dimensions.  As well as be able to sort the data based of different order statuses.

I am not sure the best way that I can get all this data though.

Is it possible to query the database for all this data?  What I build does not even have to be a Magento extensions, if it;s possible to simple query the database and build these reports that would be fine too.

Another idea, is perhaps the API is the best route to get all this data?

As I am new to Magento and haven't touched it in the past month even, I am just not sure where to start here.

Would appreciate any tips on how you would achieve this task.

All orders in our System have a Status and my boss would like these printable reports to list each Status as a heading section and then list all orders under each status section, so that is how I need to sort the data

http://www.domain.com/index.php/admin/sales_order/index/key/d99d05283bcf037b8476eb938cdd8649/


texts: How to remove the bottom toolbar using css in mobile view?

texts:
In product listing page there are two toolbars one at the top of list as shown below:

another toolbar at bottom of list as shown below:

Both of them are has outer div as: <div class="toolbar toolbar-products">

I need to hide the lower one when in mobile devices. For that I'm planning to write css which hides the lower one. I need to add a class to any one of the div so that those two can be distinguished and apply different css for those two. How may I accomplish this?


texts:
Our Magento store is loading on https, not only on the checkout as we wanted.
I set unsecure to http://www.yourdomain.com/ and secure to https://www.yourdomain.com/

Also set the use secure URL's on frontend to yes.

.htaccess does not contain any rewrite rule, we use the default Magento .htaccess.

Does anyone know where this rewrite rule is taking place?


texts: Not able to add configurable products into wishlist with color value

texts:
For add to wishlist anchor button, I have used the following code on my product details phtml file.

<?php if ($block->isWishListAllowed()) : ?>
<a href="#"
class="action towishlist"
data-post='<?= /* @noEscape */ $block->getWishlistParams() ?>'
data-action="add-to-wishlist"><?= $block->escapeHtml(__('Add to Wish List')) ?>
<?php endif; ?>

But when I click the att to wishlist link, it added the product into the wishlist without color option and when I try to add to cart from the wishlist section it shows me below error.


texts: Generating other classes beside the core ones

texts:
As described in https://devdocs.magento.com/guides/v2.3/extension-dev-guide/code-generation.html some classes are autogenerated on request (or at di:compile) based on some rules.
For example if a class that ends with Factory does not exist it is generated with a predefined content. Same goes for Proxy and maybe others.
My question is:

How / if I can do this for my own custom rules.
For example if a class name ends with Something and it does not exist, then it should be generated in the generated/code folder?


texts:
Info

I'm quite new to Magento and now I've to develop an external service (C# web service), which needs to add a product to a customers cart (using the SOAPv2 call shoppingCartProductAdd). The only information I got is the encrypted customer session id and the quote id (if the customer has already a cart).

Problem

If I've the qoute id (cart id), everything works just fine. Without the qoute id the product can't be added of course.

Question(s)

Is it possible to create a cart for a session? Yes I've already seen the method shoppingCartCreate, but this will only create a cart and doesn't connect it with the customer session. Is there a method for connecting the a cart with a session?


texts: how can add Proceed to checkout for single single product in cart in magento 2.3.2

texts:
Magento provides proceed to checkout button in cart and when we click it
all the items in cart goes for checkout
like this.

And on payment page it is calculated for all products.

But i want checkout button for each product in cart.
I want my user to checkout each product individually.
I am sure there will be a solution for this in magento 2.


texts: Product images returning 404 after updating Magento 2

texts:
I just updated Magento 2 CE from 2.0.7 to 2.1.5. I used the terminal method and all seems well. Everything is working and the new version is reflected in the bottom of the admin section. Only problem I'm having is that the product images now return a 404.

An example path that use to work but is now 404:
https://example.com/media/catalog/product/i/p/iphone6s_family_280x420.png

What does actually work:
https://example.com/pub/media/catalog/product/i/p/iphone6s_family_280x420.png

How can I correct this? Thanks.


texts: Unique constraint violation found when submitting an order

texts:
Has anybody came across, after update to Magento 2.3 a "Unique constraint violation found" error when generating a shipment? I could only find answers with same error regarding categories or products.

There was bunch of errors in Klarna checkout module 7.1.0, and I updated it to 7.3.0 - now the payments are getting through.

For the "Unique constraint violation found" error, Magento doesn't add anything to logs. So it's kinda hard to check where it comes from.

It looks like a database issue, but even if I use backup sales tables from before the update to 2.3, the error still persists.

Can the error be generetad from Klarnas side and just displayed on Magentos backend?

How can I find what's causing the error in the first place?

Thanks for u all!


texts: Price filter with fixed price in magento

texts:
I am trying to filter products with price. But getting some issue with my requirement. Like in default magento price filter is working with range. When we need with fixed price filter.

1. $0.00 - $10.00
2. $100.00 - $200.00
3. $300.00 - $400.00

Above is how it comes in default magento. When i click on 2nd filter i can see url like ?price=2-10 and it is filtering products between $10 to $20.

Now in our case we have only three fixed product price in store. So we dont need range filter but instead should be with fixed price filter.

1. $10
2. $25
3. $45

and when i click on 2nd filter, url should be like ?price=25

Thanks,


texts: How to use $_product on Magento Catalog template pages

texts:
I have overridden the Magento catalog phtml file in our store's custom template to display a link to a custom instructional page that we created.

Problem is, I only want this link to display on certain product pages.

I've noticed that on this page we have access to the variable $_product through the call to

$_product = $block->getProduct();

I've tried logging this object using print_r, etc. but nothing seems to work. How can I see the shape of this object so that I can figure out how to locate something like: $_product->category

Any advice on a better procedure to get this kind of functionality into the catalog?


texts: remove extra price from dropdown in configurable product

texts:
please see here

how to remove that from drop-down?
while at the same time if we choose this option the original price will change as well.


texts:
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (musice1g_musiciansmall.shipusa_singleboxes, CONSTRAINT FK_shipusa_singlebox_sku_entity FOREIGN KEY (sku) REFERENCES catalog_product_entity (sku) ON DELETE CASCADE ON UPDATE CASCADE)

I am using Magento platform for my E-commerce website. I'm new to coding and sql language. Can someone please explain me why is this happenning and how can I solve this error. I have tried installing an extension for Dimensional Shipping and when i try entering the dimensions for any product and saving this is the error i get.

After reading a lot on google for a day I have given up for now and seek help. I am able to open AdminControl and Cpanel for my website. I tried to do a few things in PHPmyadmin but they didn't work for me. I kep't on getting errors.


texts: Account get log out after editing account information

texts:
I have a problem with Magento 1.9.3. When I log in as a customer and I make changes to my account information, such as name, last name, etc, and I click save I get logged out. Sometimes everything works fine. I noticed that my frontend cookie value gets changed after clicking save.

Can you help me with this issue?

What should I check?

Thanks in advance for any help :)


texts: Match SKU with Product ID and is_in_stock

texts:
I am trying to get a table that displays:

SKU

product_id

is_in_stock

I got this which displays SKU and Product ID in a table and I want to add is_in_stock to it, I got this:

SELECT entity_id as product_id, sku FROM catalog_product_entity;

catalog_product_entity table:

I need to add is_in_stock column now from table cataloginventory_stock_item, this table holds the product ID column.

How can I do that?

This is my output, I need to add a column is_in_stock to it from different table but am struggling: