texts:
I want to move the minicart to an offcanvas sidebar (foundation 6). I was able to move the minicart vial layout.

But it keeps rendering as a dropdown dialog (magento ui) so I would like the cart's items to render without having to klick on the title first.

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

    <?= $block->getChildHtml('minicart.addons') ?>

This is the code responsible. So far my understanding is that

will be replaced with the cart's actual content. I do not need or want the dropdown dialog so I removed the mage init part:

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

    <?= $block->getChildHtml('minicart.addons') ?>

This way only the top part of the minicart gets rendered and I see a JS error:

TypeError: $(...).find(...).dropdownDialog is not a function

How can I render the minicart "statically"? Or at least so that I can see the entire cart at once.

Actually I don't see the point of knockout js. It makes everything only more complicated. In addition the page renders with delay with items popping up after a while. How on earth can this be considered an advantage?


texts: The reasons for never writing or modifying the core of magento?

texts:
I know very well that it should never rewrite or modify in the core of magento. If we need to do this, there is the right way to do that in local codepool but is all that just for updates, That if we do some update to not lose our modifications?
If anyone ever knows more than that, he will be welcome to enlighten us all, it could be used for everyone.


texts: Override PHP class from a composer installed package in Magento 2

texts:
I want to override a class in a composer installed vendor package on Magento 2.

Firstly I have a child theme of the default theme Luma. Secondly I installed the vendor package via composer.

I have two questions.

Can I put my code in app/design/frontend/Myvendor/mytheme/<Vendorname_vendormodule>/ or do I need to put it in app/code/
How can I override this specific class only, which is vendor/<vendorname>/module-<vendormodule>/Block/Product/Info.php ?


texts: Magento 2 cookies not saved correctly and deleted sometimes

texts:
I have strange behavior in Magento 2.2.4 and also 2.2.5. If I add a product to the cart it is saved correctly and mini cart shows 1 product. Then I add another product and the first added product is lost in the cart, only the second added product is in cart.

If I disable full page cache everything is fine.


texts:
I'm trying to add captcha to custom form and i'm currently struggling with layouts here.

<reference name="content">
      <block type="page/html_wrapper" name="meistras.wrap" as="meistras-wrap"    translate="label">
           <block type="formailer/form" name="meistroforma" as="meistroforma" unique_id="e3t3aWRnZXQgdHlwZT0iZm9ybWFpbGVyL2Zvcm0ifX0-" template="asd/formailer/widget/form_template.phtml">
               <block type="studioforty9_recaptcha/explicit" name="studioforty9.recaptcha.explicit" template="studioforty9/recaptcha/explicit.phtml"/>
           </block>
      </block>
</reference>

When i try to call studioforty9.recaptcha.explicit block inside form_template.phtml file:

echo $this->getChildHtml('studioforty9.recaptcha.explicit');

I get nothing. Can anyone tell me what i'm doing wrong here?


texts: Cross-origin problem: Google Customer Reviews is not displaying on success page

texts:
We've recently implemented Google's Customer Review module into our success page.

However, the console bugs. It keeps telling me:

jquery.js:2998 Uncaught DOMException: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "http://my-dev-domain.tld" from accessing a cross-origin frame.

I understand that this is a problem from CORS, and therefore I added the following to my .htaccess:
Header set Access-Control-Allow-Origin "*"

However, this also didn't worked. The error is still showing.

Deactivating FPC hasn't changed something.

I've learned that there's a fix for page-cache.js in future versions of Magento (> 2.1.5, see https://github.com/magento/magento2/pull/8005).

However, copying the new PR to the staging system doesn't resolve the error, it still bugs.

How could I now solve my problem?

Btw, this is the code I inject:

In head:

https://apis.google.com/js/platform.js?onload=renderOptIn

In body:

<script type="text/javascript">
  window.renderOptIn = function() {
    window.gapi.load('surveyoptin', function() {
      window.gapi.surveyoptin.render(
        {
          "merchant_id": "xxxxxxxxx",
          "order_id": "<?= $data['orderid']; ?>",
          "email": "<?= $data['email']; ?>",
          "delivery_country": "<?= $data['country_id']; ?>",
          "estimated_delivery_date": "<?= $data['delivery_date']; ?>"
        });
    });
  }
</script>

Basic:

we are on Magento 2.0.4
when trying to use my solution on a Magento 2.1.5 system nothing gets shown, nor is there an error in the console


texts: Why are my authorize transactions being settled before full payment has been captured?

texts:
I am using Authorize (not Direct Post) to capture payments as invoices are created. The problem is that many orders are becoming settled before the order is complete.

My default order status is "Order Attempted" with a state code of processing[processing].

Upon Authorization at checkout...

The order status is changed to Payment Authorized.
A cron job then looks at orders with these status, pulls them into our order fulfillment center and changes the status to Processing.
As parts of the order are fulfilled they're returned and invoiced.
For every invoice we attempt to capture the portion of the payment due.
If the order is still incomplete the order import module changes the order status to Partially Shipped (state code of processing[processing]).
Once all items are invoiced magento default functionality takes over and sets the order status to complete.

The issue:

After the first invoice, on some orders, the authorize transaction becomes settled. This is no good because, of course, we cannot capture the rest of the due payment unless we go into authorize and create a re-bill.

If it helps, I noticed that in the comment history that when a payment is captured the order status reverts to the processing default of Order Attempted and then is changed to Partially Shipped.


texts: Admin add product to order observer Event name

texts:
What i am trying I want After Add product to Order from admin i want to trigger my action . I tried with below event but its not working for me can you please let me what event i have to use

sales_order_place_before
adminhtml_sales_order_create_process_data
sales_order_save_after

config.xml

<config>
    <modules>
        <NameSpace_AdditionalProduct>
            <version>0.1.0</version>
        </NameSpace_AdditionalProduct>
    </modules>
    <global>
        <helpers>
            <additionalproduct>
                <class>NameSpace_AdditionalProduct_Helper</class>
            </additionalproduct>
        </helpers>
        <models>
            <additionalproduct>
                <class>NameSpace__AdditionalProduct_Model</class>
                <resourceModel>additionalproduct_mysql4</resourceModel>
            </additionalproduct>
        </models>
    </global>
    <adminhtml>
        <events>
            <sales_order_place_after>
                <observers>
                    <custom_promopack_order_observer>
                        <type>singleton</type>
                        <class>additionalproduct/observer</class>
                        <method>addPromoPack</method>
                    </custom_promopack_order_observer>
                </observers>
            </sales_order_place_after>
        </events>
    </adminhtml>
</config>

observer.php

public function addPromoPack(Varien_Event_Observer $observer)
{
    Mage::log("================================hello========================");
    die('heeeeeeeeeeeeeeel');
}


texts: Magento 1 Import - If "Use Default Value" checked, skip to default view?

texts:
I'm starting to learn a bit about Magento import / export tool.

The problem I'm having is that our store consists from 2 stores:

 - Default View
  - Canada
  - USA

The way that we set it up is that Canada uses Default View and USA uses USA view.

The problem I get when importing is that if the import is set to Canada View, it unchecks the "Use Default Value" and enters the new value into that field under Canada View.

This creates confusion of editing products manually where multiple store views have different content for Default vs Canada vs USA.

Is there a way to setup up the import so that it skips to Default view if "Use Default Value" is checked?


texts:
Magento 2.3.0 wysiwyg editor does not shows script tag while editor mode.
The <script> tag is always removed from the HTML that is inserted in the editor.
Thanks


texts: How PHP 5.4 support patch for Magento helps?

texts:
I've installed Magento 1.8 Community Edition and PHP version - 5.5.8
Operating System: CentOS 6.4
I have installed and configured nginx 1.0.15 and Redis for caching.

And it seems Magento 1.8 works well in PHP 5.5.8

So I would like to know what difference it will make if I apply this patch?

Or do I need to apply this patch?


texts: Manually Updating a Manually Installed Extension

texts:
I've been looking through plenty of recommendations and tutorials detailing how to install a Magento Extension from a compressed folder.

However, having manually installed a non-Connect extension, is there a method updating the package, should the  or is it simply to delete the old files and install the new (and what should be done with the database)?

In addition is there anyway to compare version numbers from the control panel to confirm that the package has been updated?


texts: Looking for a sample CSV file to upload product list on V 1.9

texts: Looking for a sample CSV file to upload product list on Magento 1.9 please help


texts:
I am basically trying to implement following thing. I have 2 parts in my app - one is magento for billing and another one is CMS which uses magento as biling gateway

CMS renders a page with hidden form where some encoded data is send with POST request to Magento.
Something like this:

<form id="order-form" method="post" action="magentourl/proceed">
    <input type="hidden" name="order_data" value="{{ encryptedOrderData }}" />
</form>
<script type="text/javascript">
    var form = document.getElementById('order-form');
    form.submit();
</script>

Magento receives data and saves it to session. After that I am making redirect and I can't access my data. Session id is somehow changed between URLs but what is the reason for that I don't understand.

public function proceedAction()
    {

        $encodedOrderJson = $this->getRequest()->getParam('order_data');

        Mage::getSingleton('core/session', array('name' => 'frontend'))->setEncodedOrderJson($encodedOrderJson);
        $this->_redirect('*/*/login');
    }

    public function loginAction()
    {

        $encodedOrderJson = Mage::getSingleton('core/session', array('name' => 'frontend'))->setSessionId()->getEncodedOrderJson();
    }

The problem is that in login action I have different session, and thus I can't access my data.

Where redirect from proceed to login is done SID parameter is added. While is doesn't help a lot.


texts: Why Payment Data is copied from Quote to Order when reordering via Admin?

texts:
When I issue a reorder from Admin Panel, Magento copies Order Payment data on the new Quote object.

This is confirmed by the code here.

As a result, if I reorder an Order paid with PayPal into one associated to Cash On Delivery payment method, PayPal's IPN data, stored into the additional_information of the Oerder Payment, will be copied into the additional_information of the new Quote Payment and thus into the new Order Payent.

Isn't it strange, given that this doesn't happen if a user reorder from Frontend?

Is there an explanation?

Thank you!


texts: Magento2 Stop order from placing if payment error occurs

texts:
Magento2 I am facing a strange issue where the order gets placed & details are displayed in admin even when I get the following error.

Status Code 101 - Invalid Credit Card Number - Description: Normal

How can I stop this?


texts: Magento1 memory exhausted issue when trying to execute order collection

texts:
I have written following code to travere through order collection but its giving me memory issue

$orders = Mage::getModel('sales/order')->getCollection();

foreach ($orders as $order) {....}

I there any suggestion on how can i access the order collection.


texts: Fatal error: Uncaught Error: Class 'scssc' not found in app\code\Magento\SampleScss\Preprocessor\Adapter\Scss\Processor.php:51

texts:
I have no idea regarding how to make magento use .scss instead of .less for all styling purpose.

So I went through official documentation available at

https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/css-topics/gulp-sass.html

https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/css-topics/custom_preprocess.html

and installed module-scss from it's github repo.

https://github.com/magento/magento2-samples/tree/master/module-sample-scss

and put it inside below directory and then run upgrade command.

  app\code\Magento\SampleScss

I have created newtheme from scratch for demonstration purpose of compilation of .scss.My theme directory structure looks like below.

  app\design\frontend\Magento\newtheme

and inside newtheme newstyle.scss is inside web/css subdirectory thus trying to convert into newtheme.css and also add the file to default_head_blocks.xml.

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <css src="css/newstyle.css"/>
    </head>
</page>

But when I ran deploy command, above error message appears in cli. I am not backend dev so don't know from where issue comes from.


texts: Magento 2 - Location path of the SQL query file which inserts orders in to database

texts:
I want to modify the values of the product items will be inserted to table 'sales_order_item'  right before the order is placed.

So im trying to locate where the exact query is.

Also the order confirmation mail should sent the modified item values not the original.


texts: Authentication Popup Close Icon and Background in Porto Theme

texts:
I am using Porto Theme (Magento 2.3.3) and I disabled guest check out. When the user clicks the "Proceed to Checkout" button, authentication popup opens but it has no background and there is a square instead of the close icon. So the text cannot be read.

I tried deploying static content but no change. Can anyone help me?

Thank you.


texts: how can i add to cart group and bundle products in magento 2 programmatically

texts:
for a single product, I am using
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$quote = $objectManager->create('Magento\Checkout\Model\Cart');
$params['qty'] = 2;
$quote->addProduct($_product, $params)->save();

now, how can I add group and bundle products to the cart?


texts: Removing images from product - problem with database data

texts:
I am trying to remove specific images, by given product ID and img value id.
My initial data is with array of product ID-s
My problem is that, when I use my custom function, everything seems fine, the images which I want to remove are removed, but still, ONLY after the first given product ID, in the database there is generated new row of data...
Here is my function for removing image:
function removeImagesFromMagento($productId, $imgId) {
    $product = $this->objectManager->create('\Magento\Catalog\Model\Product')
        ->load($productId);
    $productRepository = $this->objectManager->create('Magento\Catalog\Api\ProductRepositoryInterface');
    $existingMediaGalleryEntries = $product->getMediaGalleryEntries();
    $isDeleted = false;
    foreach ($existingMediaGalleryEntries as $key => $entry) {
        if ($entry->getId() == $imgId) {
            unset($existingMediaGalleryEntries[$key]);
            $isDeleted = true;
        }
    }

    if ($isDeleted) {
        $product->setMediaGalleryEntries($existingMediaGalleryEntries);
        $productRepository->save($product);
        return true;
    } else {
        return false;
    }
}

Again... when I debug the codeflow I can see how everything seems fine... but on the first product record given in the DB of magento, there is replicated another row entry for the first IMG...
I have searched a lot and I can't find anywhere someone even having that kind of trouble...


texts: Magento2 - remove tax / price-details from widget

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

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

Thanks.


texts: Why some images aren't returning status code 200 and they are also not cached? But the URLs are accessible and able to view images in the browser.


texts: How to find current xml loaded in product page

texts:
I understand the magento 2 template engine but I have difficulties in find the current xml loaded in the product page.

I have searched in the template folder for catalog_product_view.xml, I have found one but if I modify it, doesn't works.


texts:
I have following array in my code.
Array
(
    [items] => Array
        (
            [27411566] => Array
                (
                    [id] => 1566
                    [english_name] => water
                    [arabic_name] => ???
                    [amount] => 4.5
                    [details] => Array
                        (
                            [sub_type] => ecom
                            [price] => 2.25
                            [quantity] => 2
                            [vendor_name] => Cure Pharmacy
                            [vendor_slug] => curepharmacy
                            [product_slug] => water
                            [category_name] => Cure Kits
                            [category_name_ar] => حقائب كيور
                            [image] => water.png
                            [is_not_online_pay] => 1
                            [variation_name] =>
                            [variation_value] =>
                            [variation_id] =>
                        )

                    [lasttime] => 1592404057
                    [itemid] => 27411566
                )

        )
)

I have 1596 product id and want to search "27411566" from array I used following code but not works.Can anyone help ?
$key = array_keys(1566, array_column($this->_items, 'id'));


texts:
I am using SMTP pro extension for managing emails.

Customer email confirmation was working fine previously, although no configuration was changed, i am having issue with order email confirmation. Test email is working fine with SMTP pro extension but email is not sent upon placing order.

In log exception, i get exception error: exception 'Zend_Mail_Exception' with message 'Subject set twice' in /xyz.com/lib/Zend/Mail.php:721.

I am working on the version 1.4.x, so i don't think there is cron issue with this version in order confirmation.


texts: if customer login redirect him to account page

texts: i want when a logged customer visit a CMS page he should be redirect to account page and when customer is not login he can see page content.


texts: Magento 2 Add New Customer - The customer email is missing. Enter and try again

texts:
I am attempting to Add New Customer via the admin panel but there is no email address field nor any address details (See screenshot attached).
Does anyone have any ideas?
Thanks,
Rob


texts:
I want to create a QRCode (contains a simply string) in a new PDF file.

I use Endroid/QrCode which use BaconQrCode. However, I need to specify version and this is put in hard in the code. I don't know how to override this code. I post a question about that but, visibly, it's off of topic...

Here, you can see there are several version : https://en.wikipedia.org/wiki/QR_code

So now, I have a new question :

How to create a QrCode in Magento 2? What do I need to use?
I only want to encode (not decode)


texts: Is setIdFieldName dangerous for db objects?

texts:
Varien_Objects and their descendents provide a way to refer to objects by ids by another name.

/**
 * set name of object id field
 *
 * @param   string $name
 * @return  Varien_Object
 */
public function setIdFieldName($name)
{
    $this->_idFieldName = $name;
    return $this;
}

There is no issue here for unbound objects, but when interacting with the database, there's the fear that changing the apparent id of an item will create SQL errors at save time. And indeed, there is a chance of that happening. In Mage_Core_Model_Resource_Db_Abstract:

/**
 * Save object object data ()
 *
 * @param Mage_Core_Model_Abstract $object
 * @return Mage_Core_Model_Resource_Db_Abstract
 */
public function save(Mage_Core_Model_Abstract $object)
{
    …
    if (various_conditions) {
        $condition = $this->_getWriteAdapter()->quoteInto($this->getIdFieldName().'=?', $object->getId());
        $this->_getWriteAdapter()->update($this->getMainTable(), $data, $condition);
…

So the field used to find the item to save is altered by changing the idFieldName. As long as that field is unique and not null (and preferably indexed), you're fine. But nothing that I can see particularly guarantees that the idFieldName an arbitrary programmer chooses will meet those criteria. So it's up to the individual programmer to manually validate idFieldName before setting it, or risk broken writes to the database on save. Is that analysis correct?


texts:
I have created a webapi.xml in module vault:

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">

    <route url="/V1/vault/items" method="GET">
        <service class="Magento\Vault\Api\PaymentTokenManagementInterface" method="getListByCustomerId"/>
        <resources>
            <resource ref="self" />
        </resources>
        <data>
            <parameter name="customerId" force="true">%customer_id%</parameter>
        </data>
    </route>

</routes>

Give this type of error :-

  this is a result:"message": "Internal Error. Details are available in
  Magento log file. Report ID: webapi-5b7c371e39aa0" }

in my log file i see this error: -

Error:
main.CRITICAL: Report ID: webapi-5b7c371e39aa0; Message: Class \Magento\Vault\Api\Data\PaymentTokenSearchResultsInterfa does not exist {"exception":"
     [object] (Exception(code: -1): Report ID: webapi-5b7c371e39aa0; Message: Class      \\Magento\\Vault\\Api\\Data\\PaymentTokenSearchResultsInterfa does not exist at /<dir>/vendor/magento/framework/Webapi/ErrorProcessor.php:205, ReflectionException(code: -1): Class \\Magento\\Vault\\Api\\Data\\PaymentTokenSearchResultsInterfa does not exist at /<dir>/vendor/magento/framework/Reflection/MethodsMap.php:155)"} []

Can help me?


texts: Magento not use extends in some observer.php file in created module?


texts: Why Mage::getStoreConfig always return NULL

texts:
I create a system.xml:

<?xml version="1.0"?>
<config>
    <sections>
        <checkout translate="label" module="checkoutext">
            <groups>
                <remove_step_login translate="label">
                    Remove Step Login
                    <sort_order>10</sort_order>
                    <show_in_default>1</show_in_default>
                    <show_in_website>1</show_in_website>
                    <show_in_store>1</show_in_store>
                    <fields>
                        <step_login translate="label">
                            Step Login
                            <frontend_type>select</frontend_type>
                            <source_model>adminhtml/system_config_source_yesno</source_model>
                            <sort_order>3</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>1</show_in_store>
                        </step_login>
                    </fields>
                </remove_step_login>
            </groups>
        </checkout>
    </sections>
</config>

i tried get value from field and display to screen but failed:

public function testAction(){
        $test = Mage::getStoreConfig('checkout/remove_step_login/step_login');
        echo $test;
    }

it's alway return null.


texts: extending product view page in Magento 2

texts:
I'm trying to extending product view page, But Unable to overriding.

catalog_product_view.xml

<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="catalog_product_opengraph" />
    <update handle="page_calendar"/>
    <body>
        <referenceBlock name="product.info">
            <block class="Learning\Product\Block\Share" name="sharing_tool" template="Learning_Product::share.phtml"></block>
        </referenceBlock>
    </body>
</page>

share.phtml

<h1> Hi I'm sharing tool!!!!!</h1>

Share.php

<?php

namespace Learning\Product\Block;

use Magento\Framework\View\Element\Template;

class Share extends Template{

    protected function _construct()
    {
        parent::_construct();
        $this->setTemplate('Learning_Product::share.phtml');
    }
}

Any suggestions?


texts: Get Stock Data for Individual Products - No Admin

texts:
Is it possible to check if an individual product is in_stock OR even the actual stock quantity without being the admin?
The GET Request http://magentohost/api/rest/products/:id obviously returns access denied.
Is there another way to get stock data without the need for authorization?


texts: Shipping is not showing in checkout magento2

texts: Installed the Magento2 in my host.Added some Products for testing purpose.In front end checkout page shipping information is not showing.can u plz give me suggestions for solve this issue...?


texts: Change the size of the catalog image "small_image"

texts:
I want to change the size of the catalog image "small_image" in mytemplate/template/catalog/product/list.phtml

But it doesn´t work.

So i killed the code of list.phtml from my template and the base folder, but nothing happen.

If I kill the php script or the xml line in catalog.xml, the catalog is empty. Work!

When I kill these two list.phtml files, why the catalog is still working. Which file do I need to edit? Which files create the productlist of the catalog too?


texts: Only one product url hitting from different IP

texts:
tail -f /var/log/apache2/access.log
after using this command I got know same product is hitting again & gain from different IP.

1.136.106.111 - - [13/Feb/2020:10:48:55 +0000] "GET /js/prototype/prototype.js HTTP/1.1" 200 32325 ""**SAME PRODUCT URL**" " "Mozilla/5.0 (Linux; Android 10; SAMSUNG SM-G975F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/11.0 Chrome/75.0.3770.143 Mobile Safari/537.36"
69.117.173.13 - - [13/Feb/2020:10:48:55 +0000] "GET /media/wysiwyg/authrize.png HTTP/1.1" 200 9604 ""**SAME PRODUCT URL**" " "Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"
69.117.173.13 - - [13/Feb/2020:10:48:55 +0000] "GET /media/wysiwyg/trus.png HTTP/1.1" 200 7429 ""**SAME PRODUCT URL**" " "Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"
85.255.234.23 - - [13/Feb/2020:10:48:55 +0000] "GET /skin/frontend/cendo/ma_cendo3/css/styles.css HTTP/1.1" 200 34341 ""SAME PRODUCT URL" " "Mozilla/5.0 (iPhone; CPU iPhone OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"
1.136.106.111 - - [13/Feb/2020:10:48:55 +0000] "GET /js/scriptaculous/effects.js HTTP/1.1" 200 7492 ""**SAME PRODUCT URL**" " "Mozilla/5.0 (Linux; Android 10; SAMSUNG SM-G975F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/11.0 Chrome/75.0.3770.143 Mobile Safari/537.36"
69.117.173.13 - - [13/Feb/2020:10:48:55 +0000] "GET /media/wysiwyg/ssl.png HTTP/1.1" 200 7892 ""**SAME PRODUCT URL**" " "Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"
85.255.234.23 - - [13/Feb/2020:10:48:55 +0000] "GET /skin/frontend/cendo/ma_cendo3/css/bootstrap.css HTTP/1.1" 200 24579 ""SAME PRODUCT URL" " "Mozilla/5.0 (iPhone; CPU iPhone OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"
85.255.234.23 - - [13/Feb/2020:10:48:55 +0000] "GET /skin/frontend/cendo/ma_cendo3/css/bootstrap-theme.css HTTP/1.1" 200 7568 "**SAME PRODUCT URL**" "Mozilla/5.0 (iPhone; CPU iPhone OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"

I think they are not bots, How to stop hitting the same product URL again & again from different IP? Actually I am facing Ram issue & Magento site down again & again.

Thanks.


texts:
Is there any way in Magento where you can forcefully generate cache for only one page?

Something like adding a parameter after the URL similar to the following:

http://localhost/computers.html?cache=true?

I am working on development and don't want to enable cache for all the pages for debugging purposes, but would like to see some pages with cache how they are performing.


texts: Ribbon on homepage for Product attribute

texts:
I have two kind of Products; Physical and Electronic, on basis of a custom attribute "Product Type".
I want to show a ribbon on my home page for the products with "Product Type = E-Products".
How can I achieve this thing?

There are many extensions that provide ribbons on basis of Newly Added, Sale, Best Seller and Most Viewed. But I can't find any for product custom attribute.

Thank you very much.


texts: Magento 2 : Menu does not appear on home page

texts:
In Magento 2.2.4 CommunityOrEnterprise edition default menu not appear on  home page when enabled Varnish Cache.

Actually problem is related to Varnish Cache if I set Varnish Cache from Store -> Configuration -> Advanced -> System -> Full page cache -> Caching Application Set to **Varnish Cache** then menu is not displaying.

If I set to 'Built-in cache' then it's working fine.

But on other all pages it's appear.

I checked and found that JS is not showing in inspect element on home page, so reason for this menu is not displaying.

in inspect element on home page showing like this

<esi:include src="http://127.0.0.1/rb-ee/page_cache/block/esi/blocks/%5B%22catalog.topnav%22%5D/handles/WyJkZWZhdWx0IiwiY21zX2luZGV4X2luZGV4IiwiY21zX3BhZ2VfdmlldyJd/"></esi:include>

Can anybody know it is necessary to select Varnish Cache (Magento Enterprise Edition 2.2.4) and what happens if we not select  Varnish Cache?

Any help would be appreciated. Thanks.


texts: Magento 2 : Minicart always showing loader after product add to cart?

texts:
When I am clicking on Add To Cart button then product was added to my cart and mini-cart count also updated but loader on mini-cart showing always.

After refreshing my page mini-cart shows updated count.

What should I do to remove that loader after mini-cart count update?

Update:
Below is response of add to cart ajax call:


texts: Best way to manage sensitive custom Module Server-side properties on ConfigProviderInterface

texts:
While building a custom module for the checkout process, I need to add certain configuration properties (strings) to use as part of my plugin. These properties need to be kept "secret" on the server side.
However, if I use the standard ConfigProviderInterface with getConfig() the values of the configured properties are "leaked" to the client/frontend in the window.checkoutConfig =   section (when viewing the source of the page during checkout) like:
"source":{"authorizenet_directpost":"http:\/\/magento.example.com\/pub\/static\/version1610132869\/frontend\/Magento\/luma\/en_US\/blank.html","payflowpro":"http:\/\/magento.example.com\/pub\/static\/version1610132869\/frontend\/Magento\/luma\/en_US\/blank.html"},"controllerName":{"authorizenet_directpost":"checkout_flow","payflowpro":"checkout_flow"},"cgiUrl":{"authorizenet_directpost":"https:\/\/secure.authorize.net\/gateway\/transact.dll","payflowpro":"https:\/\/payflowlink.paypal.com"},"placeOrderUrl":{"authorizenet_directpost":"http:\/\/magento.example.com\/authorizenet\/directpost_payment\/place\/","payflowpro":"http:\/\/magento.example.com\/paypal\/transparent\/requestSecureToken\/"},"saveOrderUrl":{"authorizenet_directpost":"http:\/\/magento.example.com\/checkout\/onepage\/saveOrder\/","payflowpro":"http:\/\/magento.example.com\/checkout\/onepage\/saveOrder\/"},"expireYearLength":{"authorizene...
What is the correct way to get module configuration settings from the Magento Admin for the checkout process so that they are not leaked to the client?


texts: Override Magento 2 checkout.cart.methods.onepage.bottom proceed to checkout button Block and template file

texts:
I see below configuration in Magento 2 layout at vendor\magento\module-checkout\view\frontend\layout\checkout_cart_index.xml. I created custom module and copied existing Link Block and link.phtml to the custom module folders.

<block class="Magento\Checkout\Block\Cart" name="checkout.cart.methods.bottom" template="Magento_Checkout::cart/methods.phtml">
    <container name="checkout.cart.methods" as="methods" label="Payment Methods After Checkout Button">
        <block class="Magento\Checkout\Block\Onepage\Link" name="checkout.cart.methods.onepage.bottom" template="Magento_Checkout::onepage/link.phtml" />
        <block class="Magento\Checkout\Block\QuoteShortcutButtons" name="checkout.cart.shortcut.buttons" />
    </container>
</block>

I tried to override by adding one of the entry in app/code/Vendor/Checkout/view/frontend/layout/checkout_cart_index.xml but getting error 500 with first approach.

<referenceContainer name="checkout.cart.methods">
    <block class="Vendor\Checkout\Block\Onepage\CustomLink" name="custom.checkout.cart.methods.onepage.bottom" template="Vendor_Checkout::onepage/customlink.phtml">
    </block>
</referenceContainer>

I do see custom Block and phtml files in Commerce Bug tool but not seeing any code getting displayed from these files. Please shed some light since none of the approaches listed at also didn't help.

<referenceContainer name="checkout.cart.methods.onepage.bottom">
    <block class="Vendor\Checkout\Block\Onepage\CustomLink" name="custom.checkout.cart.methods.onepage.bottom" template="Vendor_Checkout::onepage/customlink.phtml">
    </block>
</referenceContainer>


texts: Magento image upload not working even after giving all folders 777 permissions

texts: I am unable to upload images in magento admin panel , getting error "Destination folder is not writable or doen't exist". Recently moved all files from one hosting to another. Any solution for this?


texts:
I'm building rest API for mobile application and I need to track each visitor for the application, but when I call the api visitor not added to database.

I used the following code:

protected $session;

public function __construct(
...
\Magento\Framework\Session\SessionManagerInterface $session,
...
)
{
  ...
  $this->session = $session;
  ...
}

public function getVisitorId()
{
$visitor = $this->session->getVisitorData();
print_r($visitor);
}

but it always gives me null

So why it's not saved and how to added it


texts: Amasty Abandoned Cart Email give subtotal without VAT

texts:
I am using amasty Abandoned cart module. After one day we sent the 10% discount coupons for abadonded cart. But if product has a VAT , Subtotal deducted the vat price and calculate the 10% discount. Actual price should be subtotal calculate with VAT.
How to fix this issue.

Product price in 10.25
Subtotal calculate to reduce the VAT and second value calculate 10% of the subtotal


texts: Magento 1 Alternative Method for Magento 2

texts:
What is the alternative method of following Magento 1 for Magento 2

Mage::helper("tax")->getAllRatesByProductClass()


texts:
I have create a new design theme by myself at app\design\frontend
Its work at the first time, but I can't update the css using setup upgrade or clean cache after I edit the css. Are there any way to edit the css in design theme and update it?


texts: Unable to unserialize value. Error: Syntax error after upgrade 2.2.8 to 2.3.2

texts:
After the update process using the Composer has finished I am getting an Unable to unserialize value. Error: Syntax error error with any CLI command I try running (like upgrade or cache flush).

I followed the guide on Magento 2.2: Unable to unserialize value? and modified already. The error is still there, so I output the string that is serialized into a text file and the result is https://pastebin.com/PaqxNAfA.

This is my unserialize function in Json.php:

public function unserialize($string)
{

    if($this->is_serialized($string))
    {
        var_dump($string);
        $string = $this->serialize($string);
    }
    $result = json_decode($string, true);
    if (json_last_error() !== JSON_ERROR_NONE) {
        throw new \InvalidArgumentException("Unable to unserialize value. Error: " . json_last_error_msg());
    }
    return $result;
}

function is_serialized($value, &$result = null) {...}

I ran this CLI command to get the string:

php bin/magento cache:clean > output.txt

Any idea how to solve that?


texts: Setting Shopping Cart Rules Makes Site VERY slow

texts:
I am using Magento CE 1.8.1.0.
I set about 150 shopping cart rules.
I noticed that the rules validation process makes adding/updating/deleting a product VERY VERY slow.
For example if I add a product to a cart that contains already 20 products it take 5-10 minutes.
Any idea how to optimize the rule validation process?

Thanks


texts: Does collapsible js accept css icon content: "content: "\e622"";?

texts: I get blank space when I insert content: "\e622"; and I get the plus sign when i enter content: "+";.


texts: Product collection for subcategories of subcategories

texts:
I have the following menu/category structure in my store:

        root
          |
      products
|         |        |
cars    bikes     vans
|         |        |
bmw    carrera    fiat
audi   apollo     ford
ford   raleigh
lexus  voodoo
tvr

I need to be able to access just the subcategories of products subcategories as a collection.

So my page would access that collection and output a simple list like this:

bmw
audi
ford
lexus
tvr
carrera
apollo
raleigh
voodoo
fiat
ford

I can get products subcategories in a collection like below but how do I get the subcategories of them?

$category = Mage::getModel('catalog/category')->load($the_id);
$categories = $category->getCollection()
    ->addAttributeToSelect(array('name', 'thumbnail'))
    ->addAttributeToFilter('is_active', 1)
    ->addIdFilter($category->getChildren())

<?php
foreach ($categories as $category): ?>

<?php echo $category->getName() ?>

<?php endforeach;  ?>


texts: What are my options to bring back online refunds after upgrade?

texts:
When a store gets upgraded past Magento 1.5 it can lose the ability for online
refunds due to the following change
Mage_Adminhtml_Block_Sales_Order_Creditmemo_Create_Items

if ($this->getCreditmemo()->canRefund()) {
    if ($this->getCreditmemo()->getInvoice()) {

vs. new

if ($this->getCreditmemo()->canRefund()) {
    if ($this->getCreditmemo()->getInvoice() && $this->getCreditmemo()->getInvoice()->getTransactionId()) {

Unfortunately not many payment methods saw this change coming and therefore don't have the transaction_id present on the invoice.

Some payment method have now implemented the saving of the transaction_id by utilising/overriding

Mage_Payment_Model_Method_Abstract

public function processInvoice($invoice, $payment)
{
    $invoice->setTransactionId($payment->getLastTransId());
    return $this;
}

including Magento's own implementation for Authorize.net

/**
 * Mock capture transaction id in invoice
 *
 * @param Mage_Sales_Model_Order_Invoice $invoice
 * @param Mage_Sales_Model_Order_Payment $payment
 * @return Mage_Payment_Model_Method_Abstract
 */
public function processInvoice($invoice, $payment)
{
    $invoice->setTransactionId(1);
    return $this;
}

However the comment in the only place processInvoice is called
Mage_Sales_Model_Order_Payment

$this->getMethodInstance()->processInvoice($invoice, $this); // should be deprecated

makes me think this is not the best approach.

What is the best way to implement the saving of the transaction_id on the invoice in your payment method?
What are good options to deal with legacy invoices?


texts:
How we can use it in Magento 2.3.0?
In Magento 2.3.0, they claim PWA is supported one?
How can we start with this great feature to experience the new thing?


texts:
I'm looking for a solution that when Person A shares his wishlist (by email) with Person B, and Person B decides to buy this product for Person A the product has to be removed from the wishlish of Person A.

Any suggestions?

Tnx!


texts: Admin page won't load anymore after upgrade to Magento 2.3.3 (404 not found)

texts: In magento2.3.3 - after upgrade, Admin page not loading anymore.....


texts: Owebia Shipping selected country shipping list

texts:
Owebia Shipping implement in my store. how i disable country which i not want to shipped item. there are no any selection for specific country selected list. i want to ship item only in 50 country , other country not select from shipping step.
can you please give me answer ASAP.

thanks


texts: Change the product tab position in magento 2.2.9

texts:
I am trying to swap two tabs around, Product Details and Specification. I want Specification tab to show up first and then Product Details tab.

I already did some research on stackExchange and add the After="" tag but its not working.

<block class="Magento\Catalog\Block\Product\View\Attributes" name="product.attributes" as="additional" template="product/view/attributes.phtml" group="detailed_info">
<arguments>
<argument translate="true" name="title" xsi:type="string">SPECIFICATIONS</argument>
</arguments>
</block>

<block class="Magento\Catalog\Block\Product\View\Description" after="product.attributes" name="product.info.description" template="product/view/attribute.phtml" group="detailed_info">
<arguments>
<argument name="at_call" xsi:type="string">getDescription</argument>
<argument name="at_code" xsi:type="string">description</argument>
<argument name="css_class" xsi:type="string">description</argument>
<argument name="at_label" xsi:type="string">none</argument>
<argument name="title" translate="true" xsi:type="string">Product Details</argument>
</arguments>
</block>


texts: Magento load layout handle directive programmatically, setData() issue

texts:
Magento load layout handle directive programmatically

When I used the code given in the above link, It throws an error when cache is turned on. Noticed that this issue occurs when "Layouts" cache is enabled. This code is in the model class . I am using Magento 1.14 EE

  Fatal error: Call to a member function setData() on boolean in ....

It works fine when:

when cache is turned off.
Runs perfectly when code in external script( in the root folder of magento) and cache is turned on.

Anyone faced this issue ?


texts: Magento 2: Exclude category from magento product export not working?

texts:
I and trying to export the product from specific categoty. I am using following method to filter category id.

I have included all categories except 9. So i am expecting export result includes product from category 9. Is this correct? Please help me.


texts: Magento 2: change template for block in "sales.email.order.renderers"

texts:
There is layout configuration file module-sales/view/frontend/layout/sales_email_order_renderers.xml:

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" label="Email Creditmemo Items List" design_abstraction="custom">
    <body>
        <referenceBlock name="sales.email.order.renderers">
            <block class="Magento\Sales\Block\Order\Email\Items\Order\DefaultOrder" as="default" template="email/items/order/default.phtml"/>
        </referenceBlock>
    </body>
</page>

I need to change default template for block Magento\Sales\Block\Order\Email\Items\Order\DefaultOrder. I have created own configuration update .../view/frontend/layout/sales_email_order_renderers.xml in own module with:

        <referenceBlock name="default">
            <action method="setTemplate">
                <argument name="template" xsi:type="string">Vendor_Module::email/items/order/default.phtml</argument>
            </action>
        </referenceBlock>

but default template is used for the block as before.

Can I change template for block Magento\Sales\Block\Order\Email\Items\Order\DefaultOrder using layout updates?


texts:
Is there any way to get images next to the custom options for a product.

I have created a new custom layout for a product. Is there anyway to edit this template to hack in images next to individual custom options

Thanks


texts: Magento 2 from Bitnami on Amazon Lightsail VPS servers won't upgrade and requires reindexing all the time

texts:
I've been testing this for the last day or so and it seems to be working fine (though slow as h*ll sometimes, considering I'm using the free tier server).

But I'm havinge some minor issues though. Bear in mind that this might all be due to way too low hardware specs for Magento 2 considering that the Amazon Lightsail free tier VPS is a 1vCPU, 512MB RAM server with 20gb diskspace.

Even still, before consider paying for a more beefed up server I would like some opinions on whether the following issues are due to hardware, the bitnami Magento Package or perhaps something else.

I cannot upgrade from Magento 2.1.2 to 2.1.3, in the Magento upgrade "Readyness check" gives the very generic error message "We found conflicting component dependencies." And no additional info.
Could this be due to the low specs on the VPS server?
Almost every action I perform in the administrator console for Magento will result in one of the indexes being required to reindex. This happens basically all of the time, again - is this perhaps due to the low amount of memory or is it a known issue with Magento 2 or the Bitnami set-up of Magento?

Besides this, the set up seems to be working suprisingly well for such a low spec server so I'm really considering getting a more beefed up version, I just wanted some input from anyone here who might know if these issues can be resolved as soon as I get bigger and better hardware.


texts: Magento : How to get small images of all items in bundled product

texts:
I want to show all images of item(product) of bundled product on product listing page ,is there any Magento function to do so, please guide me way to do it.

I created bundled product with 4 items say a,b,c,d

Now on product listing page I want to show all 4 small_images of these product .

How can I do it ?


texts:
I have a function like that:

public function aAction()
{
    $productId = $this->getRequest()->getParam('id');
    $block = Mage::getBlockSingleton('catalog/product_view_options');
    $product = Mage::getModel('catalog/product')->load($productId);
    $block->setProduct($product);
    echo $block->toHtml();
}

the method toHtml doesn't have a template set and returns nothing.
How can I fix it?


texts: Customer registration: how to validate 'date of birth' of customer?

texts:
Need to check whether user has 18 years old (that's simply to do in javascript) then display error/success message and pass further.

How to add validation for 'date of birth' field in customer registration form?

Which js I should extend for this purpose?


texts: Magento 1.9.x - Blocks not being displayed from local module

texts:
I am creating a module to add some extra call to action buttons.
I cannot get an output to display.   I believe I am getting either the naming conventions or the file location (or both) wrong.

It may also be the way I am trying to insert the block. I dont want to modify the phtml files if I can avoid it.

As you can see from my files, I am trying a number of ways to get the anything to be output - with no luck.

The aim is to be able to add additional CTA buttons after Add to Cart - such as 'Request Samples'

File structure:

app
    Code
        local
            CompanyName
                CtaAttributes
                    Block -> CtaButtons.php
                    etc -> config.xml
    design
        frontend
            base
                default
                    layout->ctabuttons.xml
                    template
                        ctaattributes
                            catelog
                               product ->ctabuttons.phtml

config.xml

<config>

    ... includes Module and Resource

    <global>
      <blocks>
        <ctaattributes>
            <class>CompanyName_CtaAttributes_Block</class>
        </ctaattributes>
      </blocks>
    </global>

</config>

CtaButtons.xml

<?xml version="1.0"?>

<layout version="0.1.0">
    <catalog_product_view>
        <reference name="content">

                <block type="core/text_list" name="product.info.addtocart" before="addtocart" template="ctaattributes/catalog/product/ctabuttons.phtml"/>
                <action method="append">
                        <block>ctabuttons</block>
                </action>
        </reference>

        <reference name="product.info.addtocart">
            <block type="core/text_list" name="core-text"><action method="setText"><text><![CDATA[
Test
]]></text></action></block>
        </reference>
    </catalog_product_view>
</layout>

ctabuttons.phtml

<?php
/**
*/
Mage::log(get_class($this));
echo 'this is my test';

CtaButtons.php

<?php

class CompanyName_CtaAttributes_Block_CtaButtons extends Mage_Core_Block_Template  {
    echo 'test';

}


texts: Magento 2 update add-to-button as Ajax button on home page

texts: I have added products on the home page using widgets, how to add ajax to my add-to-cart button.


texts: Magento CE - Store pickup shipping option & transactional email variables / spec emails

texts:
we enabled store pickup, actually we enabled "free shipping" and named it Store Pickup.

And we now have the following issues we need to address:

the standard shipping email contains text explaining how we ship. We now need a depend or if/else statement: pickup text 1, other text 2. How can this be done?
as I understand there is no other way to do this other than utilizing the "Free Shipping" or "Fixed rate" option. Or am I missing something?

Question: how can we best implement store pickup? (interested in experiences and esp. simple solutions)


texts: Magento 2: Website not working after enable Full page cache?

texts:
I am using Magento 2.1.1, When i enabled all caches excepts Full page caching then my site front-end is working fine but when I enabled Full page caching and refresh all cache also then front-end is not working.

Can anyone tell me what is the issue and how to fix this?

UPDATE:

After enable error reporting, I am getting issue with one extension only.

ERROR: Fatal error: Call to a member function getIdentities() on null in /home/salusdcw/public_html/vendor/magento/module-catalog/Block/Product/View.php on line 373


texts: Change the position of customtab in catalog_product_edit page

texts:
I have a custom module which I am using to do some advanced operation on product. Using my module, I have overwrite the tabs file of adminhtml_catalog_product_edit_tabs in order to appear my custom tab on catalog_prdouct_edit page in admin. Now the tab appears above all default tabs.

(See Combo Products tab)

I need to appear this tab below cross-sells tab(which is a default tab).

local/Mysite/combooffers/etc/config.xml

<config>
<modules>
    <Mysite_Combooffers>
        <version>0.1.0</version>
    </Mysite_Combooffers>
</modules>
<frontend>
    <routers>
        <Combooffers>
            <use>standard</use>
            <args>
                <module>Mysite_Combooffers</module>
                <frontName>combooffers</frontName>
            </args>
        </Combooffers>
    </routers>
    <layout>
        <updates>
            <combooffers>
                <file>combooffers.xml</file>
            </combooffers>
        </updates>
    </layout>
</frontend>
<admin>
    <routers>
        <combooffers>
            <use>admin</use>
            <args>
                <module>Mysite_Combooffers</module>
                <frontName>combooffers</frontName>
            </args>
        </combooffers>
    </routers>
</admin>
<global>
    <blocks>
        <combooffers>
            <class>Mysite_Combooffers_Block</class>
        </combooffers>
        <adminhtml>
          <rewrite>
                 <catalog_product_edit_tabs>Mysite_Combooffers_Block_Adminhtml_Catalog_Product_Edit_Tabs</catalog_product_edit_tabs>
            </rewrite>
        </adminhtml>
    </blocks>
    <helpers>
        <combooffers>
            <class>Mysite_Combooffers_Helper</class>
        </combooffers>
    </helpers>
</global>
</config>

local/Mysite/Combooffers/Block/Adminhtml/Catalog/Product/Edit/Tabs.php

<?php

class Mysite_Combooffers_Block_Adminhtml_Catalog_Product_Edit_Tabs extends Mage_Adminhtml_Block_Catalog_Product_Edit_Tabs
{
protected function _prepareLayout()
{
    $this->addTab('combooffer', array(
            'label'     => Mage::helper('catalog')->__('Combo Products'),
            'content'   => $this->getLayout()->createBlock('combooffers/adminhtml_catalog_product_edit_tab_Combooffer')->toHtml(),
        ));
    return parent::_prepareLayout();
}
}

Mysite/Combooffers/Block/Adminhtml/Catalog/Product/Edit/Tab/Combooffer.php

<?php

class Mysite_Combooffers_Block_Adminhtml_Catalog_Product_Edit_Tab_Combooffer extends Mage_Adminhtml_Block_Widget_Form
{
 protected function _prepareForm()
 {
 $productId      = $this->getRequest()->getParam('id');
 $storeId = $this->getRequest()->getParam('store');
 if(!$storeId) $storeId=0;

  $form = new Varien_Data_Form();
  $fieldset = $form->addFieldset('combooffer_form', array('legend'=>Mage::helper('combooffers')->__('Combo Products')));

// You can write your code here

   $this->setForm($form);
  return parent::_prepareForm();
  }

  public function getTabTitle()
  {
    return Mage::helper('combooffers')->__('Combo Products');
   }

  public function canShowTab()
  {
    return true;
  }

  public function getTabUrl()
  {
    return $this->getUrl('*/*/combooffers', array('_current' => true));
  }

  public function isHidden()
  {
    return false;
  }

}

How can achieve this. Please give a hint for this problem.


texts: Hi. How can I Change the text of these fields in magento. midle name/Innitial

texts: I would like to know how to change the text like Middle Name or Firstname and lastname. Can you help me?


texts:
Magento can not even start the installation on a web server.
When we start the installation on the local server all goes well,
I've reviewed all the prerequisites on the folders and files and everything seems ok.

Since we do not have access to ssh on the server, we need to install the magento via the web interface.
We have also tried to start the installation directly from the setup but throw out the same error.

We even tried to transfer the cloned version of the installation from a local server, but again the same error without success.

We tried to install magento 2.21 vesrion,
Our web server is on apache and we have mariadb 10.2.8 with php 7.0.24

This is the error what we got...

Notice: Undefined property: DOMDocument::$documentElement in /home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/Config/Mapper/Dom.php on line 58

Notice: Trying to get property of non-object in /home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/Config/Mapper/Dom.php on line 58

Warning: Invalid argument supplied for foreach() in /home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/Config/Mapper/Dom.php on line 58

Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Config\CacheInterface in /home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50 Stack trace: #0 /home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Framewo...')
#1 /home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(144): Magento\Framework\ObjectManager\ObjectManager->get('Magento\Framewo...')
#2 /home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\Framewo...', NULL, 'cache', 'Magento\Framewo...') #3 /home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgu in /home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 50


texts:
This may be a stupid question, but why does the latest version of Magento (without sample data, downloaded from http://magento.com) not include any files within the app directory? I successfully installed, but when looking at the code there is only app/design/frontend & app/design/adminhtml directories but nothing inside. All the other folders in the root directory have the expected files.

Seems strange as everything is working on the admin. This is for 2.1.5


texts:
I know that IPv6 connections work against a Magento via sockets.  However, any feature that logs (or filters if there are any) don't support IPv6.

For example, in logs I see an IP address of 0.0.0.0 for any connections coming from IPv6.

Anyone know if there is IPv6 support on the roadmap?   Maybe in Magento 2?


texts: Magento 2 cookie not set when full cache enable

texts:
I have created one helper file that get, set and delete cookie.
This helper file I called in observer to set cookie.
The helper file called but cookie not set when full cache enabled.

<?php

namespace Hs\Mageenhancement\Helper;

use Magento\Framework\App\Helper\AbstractHelper;
use Magento\Framework\App\Helper\Context;
use Magento\Store\Model\StoreManagerInterface;
use Magento\Framework\Stdlib\CookieManagerInterface;
use Magento\Framework\Stdlib\Cookie\CookieMetadataFactory;
use Magento\Framework\Session\SessionManagerInterface;

class Cookie extends AbstractHelper
{
    protected $_storeManager;
    protected $_cookieManager;
    protected $_cookieMetadataFactory;
    protected $_sessionManager;

    public function __construct(
        Context $context,
        StoreManagerInterface $storeManager,
        CookieManagerInterface $cookieManager,
        CookieMetadataFactory $cookieMetadataFactory,
        SessionManagerInterface $sessionManager
    )
    {
        parent::__construct($context);
        $this->_storeManager = $storeManager;
        $this->_cookieManager = $cookieManager;
        $this->_cookieMetadataFactory = $cookieMetadataFactory;
        $this->_sessionManager = $sessionManager;
    }

    /**
     * Get data from cookie
     *
     * @return value
     */
    public function get($name)
    {
        return $this->_cookieManager->getCookie($name);
    }

    /**
     * Set data to cookie in remote address
     *
     * @param [string] $name    [name of cookie]
     * @param [string] $value    [value of cookie]
     * @param integer  $duration [duration for cookie] [Default value 30 days]
     *
     * @return void
     */
    public function set($name, $value, $duration = 2592000)
    {
        //echo $name . ' ' . $value . ' ' . $this->_sessionManager->getCookiePath() . ' ' . $this->_sessionManager->getCookieDomain();
        $metadata = $this->_cookieMetadataFactory
            ->createPublicCookieMetadata()
            ->setDuration($duration)
            ->setPath($this->_sessionManager->getCookiePath())
            ->setDomain($this->_sessionManager->getCookieDomain());

        $this->_cookieManager->setPublicCookie(
            $name,
            $value,
            $metadata
        );
    }
}

Is there any mistake or any other way to set a cookie with full cache module?


texts: Not Getting Values of selected Custom Options On Add to Wishlist In Magneto 2

texts:
I want to add to wishlist for guest user i want to store selected product custom options i have added a plugin on Add to Wishlist Button

<type name="Magento\Wishlist\Controller\Index\Plugin">
        <plugin name="guest_wishlist_plugin" type="Vendor\Module\Plugin\GuestPlugin" sortOrder="10"/>
    </type>

i am getting Custom Options empty.. i don't know what is the reason

Array
(
    [product] => 1754
    [uenc] => aHR0cDovL2xvY2FsaG9zdC9ndWVzdHdpc2hsaXN0MjMzL3dvbWVuL3RvcHMtd29tZW4vdGFua3Mtd29tZW4uaHRtbA,,
    [super_attribute] => Array
        (
            [142] =>
            [93] =>
        )

    [form_key] => f4ny48SW4tSwUDPX
)

Here is My plugin Code

use Magento\Customer\Model\Session as CustomerSession;
use Magento\Framework\App\Action\Context;
use Magento\Framework\App\RequestInterface;
use Magento\Framework\Controller\ResultFactory;
use Magento\Framework\Session\SessionManagerInterface;
use Magento\Framework\Stdlib\CookieManagerInterface;
use Magento\Framework\Stdlib\Cookie\CookieMetadataFactory;

class GuestPlugin
{
    /**
     * Name of cookie that holds private content version
     */
    const COOKIE_NAME = 'cookie_wishlist';

    /**
     * CookieManager
     *
     * @var CookieManagerInterface
     */
    private $cookieManager;

    /**
     * @var CookieMetadataFactory
     */
    private $cookieMetadataFactory;

    /**
     * @var SessionManagerInterface
     */
    private $sessionManager;

    /**
     * @var \Magento\Customer\Model\Session
     */
    protected $customerSession;

    /**
     * @var \Magento\Customer\Model\Session
     */
    private $customSession;

    private $resultFactory;

    protected $registry;

    public function __construct(
        Context $context,
        \Vendor\Module\Helper\Data $helper,
        ResultFactory $resultFactory,
        CookieManagerInterface $cookieManager,
        CookieMetadataFactory $cookieMetadataFactory,
        SessionManagerInterface $sessionManager,
        CustomerSession $customerSession
    ) {
        $this->resultRedirectFactory = $context->getResultRedirectFactory();
        $this->customerSession       = $customerSession;
        $this->cookieManager         = $cookieManager;
        $this->cookieMetadataFactory = $cookieMetadataFactory;
        $this->sessionManager        = $sessionManager;
        $this->helper                = $helper;
        $this->resultFactory         = $resultFactory;
    }
    public function beforeBeforeDispatch(
        \Magento\Wishlist\Controller\Index\Plugin $coreSubject,
        \Magento\Framework\App\ActionInterface $subject,
        RequestInterface $request
    ) {

        $obj = $request->getParams();
        if (!empty($obj['product'])) {
            if (!$this->customerSession->isLoggedIn()) {
                $cookieValue = explode(', ', $this->cookieManager->getCookie(self::COOKIE_NAME));
                if (empty($cookieValue)) {
                    $cookieValue = array();
                }
                array_push($cookieValue, $obj['product']);
                $this->set(implode(', ', $cookieValue), 100);
            }
        }
    }
private function set($value, $duration = 86400)
    {
        $metadata = $this->cookieMetadataFactory
            ->createPublicCookieMetadata()
            ->setDuration($duration)
            ->setPath($this->sessionManager->getCookiePath())
            ->setDomain($this->sessionManager->getCookieDomain());
        $this->cookieManager->setPublicCookie(
            self::COOKIE_NAME,
            $value,
            $metadata
        );
    }
}


texts:
where do i find the phtml file for the picture above. i want to adjust the table itself. i actually know where the css is. i searched in already in /vendor/magento/module-costumer/view/frontend/
/app/design/frontend/.../magento-checkout

thank you


texts:
Im trying to create an Ajax call in frontend but I get redirect to Homepage when I get to the controller. Can anyone explain why? Many thanks.
Here my script in phtml
<script type="text/javascript">
require(["jquery"],function($) {
    $(document).ready(function() {
        var customurl = "<?php echo $block->escapeUrl($block->getUrl('webentry/index/search'))?>";
        $("#search-button").on('click', function () {
          $.ajax({
            url: customurl,
            type: 'POST',
            dataType: 'json',
            data: {
              postCode: $('#headquarter_post_code').val()
          },
          success: function(response) {
            console.log("Success!!");
          },
          error: function (xhr, status, errorThrown) {
            console.log(errorThrown);
          }
        });
      });
    });
});

My controller
class Search extends \Magento\Framework\App\Action\Action {
protected $resultFactory;
public function __construct (
    \Magento\Framework\App\Action\Context $context,
    ResultFactory $resultFactory
) {
    $this->resultFactory = $resultFactory;
    parent::__construct($context);
}

public function execute()
{
    $resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE);

    $response = $this->resultFactory->create(ResultFactory::TYPE_RAW);
    $response->setHeader('Content-type', 'text/plain');
    $country = 'india';
    $state = 'gujarat';
    $response->setContents(
        $this->_jsonHelper->jsonEncode(
            [
                'default_country' => $country,
                'state' => $state,
            ]
        )
    );
    return $response;
}

}


texts: Disable cart sharing between different Stores of website in Magento 2?

texts:
My website is with Three different Stores and I'd like to disable the cart sharing feature between stores. So when I switch from one store to the other store, the product in my cart shouldn't be valid or not display to another store.

Product added to the specific store should be displayed on the specific store only.


texts:
Note: I am not using UI component

I have a file Grid.php where I have a column image, in this column, image URL is populating

I want to show the image in this column instead of image URL


texts:
I'm using magento 1.9, I changed the values  of:

URL Base of JavaScript: {{unsecure_base_url}}js/

URL Base of Skin:{{unsecure_base_url}}skin/

URL Base of Media:{{unsecure_base_url}}media/
I deleted the values...

URL Base of JavaScript: {{unsecure_base_url}}

URL Base of Skin:{{unsecure_base_url}}

URL Base of Media:{{unsecure_base_url}}

And I'll changed it again in the database, now it's ok, but there isn't CSS and Javascript , it's just HTML at the admin panel and the store.
You can check it here: tienda.mabaonline.com
I don't know what can I do, I want to restore the defaults values maybe that can fix it.


texts: Show Configurable Products in Magento Low Stock Report

texts:
Is it possible for Configurable Products to be shown in Magento Reports? More specifically the Low Stock Report. I tried attributing an individual quantity to a Configurable Product but it still didn't show up in the Report.

My configurable products have the Manage Stock field set to 'No'.


texts: Magento : Mobile Theme is Not Always Loading

texts:
We use following settings to load mobile theme to mobile users:

This is Matched expression:

(iPhone|iPod|BlackBerry|Pre|Palm|Googlebot-Mobile|mobi|Safari Mobile|Windows Mobile|Android|Opera Mini|mobile)|(!iPad|Silk|Kindle|Xoom|SCH-I800|Tablet)

When we test website from our phone - all types, it always works fine.

But we use visitor screen recording, on that one for every 7th visitor we see that it's loading desktop theme for mobile user.
Not sure if it's just there recording bug, or it really sometimes loads incorrect theme.

It's happening for same phones we use - iphone 6s, 7 (we can see by iOS version, screen resolutions ,etc)

What can be problem?


texts:
I have form:

<form action="" class="ui-form">

Быстрый заказ

        <input type="text" id="fastname" required autocomplete="off">Ваше имя

        <input type="text" id="fastphone" required autocomplete="off">Телефон

        <input type="text" id="fastaddr" required autocomplete="off">Адрес доставки

<input type="button" value="Заказать" onclick="fastorder(<?php echo  $this->getProduct()->getId()?>, <?php echo  $this->getProduct()->getPrice()?>)">

</form>

And I have JavaScript that is called after I click a button on the form:

function fastorder(pr_id, pr_price){
    var pr_name = document.getElementById("fastname").value;
    var pr_phone = document.getElementById("fastphone").value;
    var pr_addr = document.getElementById("fastaddr").value;
    alert('ProductID:'+pr_id+'  Price:'+pr_price+'  Name:'+pr_name+'  Phone:'+pr_phone+'  Adress:'+pr_addr);
}

In the alert I get all the necessary information to create an order.

How to create an order help please?

I'm using (Magento 1.9.2.4)


texts: I am trying to implement something new, I guess. I want to use magento as shopping cart for my new site where I WANT TO SEND few custom fields that will be filled during checkout process TO EXTERNAL application, that may or may not reside on same server, ONLY IF PAYMENT IS SUCCESSFUL. These custom fields upon succesfull transaction need to be sent through post method. I hope I am clear on this. Please guide me on this, how I can achieve this.


texts: Magento 2.2 error when tried to load product or order in external file

texts:
I tried to load a product or an order form an external file using Object Manager but everytime i receive the same err:
"PHP message: PHP Fatal error:  Uncaught Magento\Framework\Exception\NoSuchEntityException: Requested store is not found in ..."

My code:

require __DIR__ . '/app/bootstrap.php';
$params = $_SERVER;
$bootstrap = Bootstrap::create(BP, $_SERVER);
$objectManager = $bootstrap->getObjectManager();
$storeManager = $objectManager->get('\Magento\Store\Model\StoreManagerInterface');

and then i tried to load my order :

$order = $objectManager->create('Magento\Sales\Model\Order')->load($orderID); or product

$product = $objectManager->get('Magento\Catalog\Model\Product')->load($product_id);

Does anyone know why i receive this err?


texts: how to upgrade from magento 2.3.0 to 2.3.1 steps (composer)

texts: I want to upgrade my magento to the latest version. what are the steps to upgrade from Magento 2.3.0 to Magento 2.3.1 via composer?


texts:
I really don't know a huge amount about duplicate links.

I am told that www.example.com/greenshoe and www.example.com/shoes/greenshoe are duplicate pages and need adjusting. I have added the following code into my product 'greenshoe' under the 'Design' and 'Custom Layout Update':

<reference name="head">
<action method="addLinkRel">
<rel>canonical</rel>
<href>https://www.example.com/shoes/greenshoe.html</href>
</action>
</reference>

but it doesn't appear to be working. I.e. if I visit www.example.com/greenshoe it's not sending me over to /shoes/greenshoe. Does that make sense? Should it be redirecting the URL and, if so, what am I missing?

I know that 301 redirects are particularly bad for SEO.

Also, as a side note I do have the SEO Canonical turned on in the backend already.

Thanks in advance!


texts: Magento2.4.2 - After Installing Fresh Instance All Pages Messy

texts:
I have tried to install Magento2.4.2 in both way.

Using Composer & 2. Downloading .zip

Both time I have found root index.php file is missing. After adding from Magento2.4.1 in console getting error

From very first view we can see the path becomes wrong.
In correct Path : http://127.0.0.1/magento242/static/version1613139426/frontend/Magento/luma/en_US/images/logo.svg
Correct Path : http://127.0.0.1/magento242/pub/static/version1613139426/frontend/Magento/luma/en_US/images/logo.svg
Anyone face the same issue ?
Thank you.


texts: Constant inserts into catalogsearch_result

texts:
We have a Magento 1.9.1.0 shop and it's constantly doing this operation:

Waiting for table level lock | INSERT INTO `catalogsearch_result` SELECT 237 AS `query_id`, `s`.`product_id`, MATCH (s.data_index)

This is crashing the site every day resulting the following error:

User X already has more than 'max_user_connections' active connections

Is this resource related or something else? What could be doing the constant inserts?


texts:
I have a custom form like this. how can I get all product attribute and
Pour it into the select option in the job field. Hope anyone help me. Thank you.


texts: Remove Item from Minicart throws Invalid Form Key error in Magento 1.9

texts:
I had installed a fresh setup of Magento ver 1.9.3.9 and when I add the product to cart and click on Remove Item from Minicart it gives me exception error and page goes to There has been an error processing your request

When I checked my var/reports it shows this error:

  "Invalid form key";i:1;s:1012:"#0 /public_html/app/code/core/Mage/Checkout/controllers/CartController.php(641): Mage::throwException('Invalid form ke...')

I had again download the fresh zip of Magento 1.9.3.9 and again integrated the app/code/Mage/Checkout module by disabling previous one. But still it gives me the same error.


texts: Magento 2 What limit for create Attributes sets and Attributes Groups?

texts:
Is anyone there to tell me how many we can create Attribute sets?

How many can we create Attribute group?

Is any limit for this?


texts: How to reate two different headers for desktop and mobile using xml?

texts:
I want to create two headers one for desktop and other for mobile.

How can I achieve this, do i need to edit default.xml or need to add some conditions to meet the requirements ?


texts: Do I have to create a new attribute set for each configurable product?

texts:
I'm just wondering if I'm getting this right, it's achieving the result I want but feels like overkill. I have lots of products that need drop downs like in the image below. However they all have different requirements for what the dropdown contains. So for each configurable product I create a unique attribute.

I then create an attribute set for each product based on the default attribute set but with the unique attribute I created for that product added. Is this correct?

I tried to create products with the default attribute set after adding the unique attribute to the default set but then when I created subsequent configurable products, I couldn't remove the previous attribute from the default set. So I was ending up with an increasing list of attributes in the default set that I would only use once.

The bottom image is of all the attribute sets for each individual product.

Appreciate any help.

UPDATE

Appreciate your comments Steve.

Okay, so I created a color attribute unique to an individual product. I added that to the default attribute set which is the kind of thing I think you were suggesting. That's okay when I create that configurable product but when I then try to create subsequent configurable products I get this...

but I don't need that attribute for the second product and I can't then remove that attribute from the default attribute set because I get this...

That is why i went down the road of creating a unique attribute set to go with the attribute. It seemed like a lot of duplication but I see no way round it. For each of my configurable products the configurable element is going to be unique rather than a general small, medium, large etc. They will generally not be reused. What do you do differently that allows you to get round what you suggest I'm doing wrong?


texts: Order not placed in Server with Product price zero. Whereas in local server order placed successfully. Only zero priced products are not getting placed in server. What might be the issue? Help me to find out the issue.


texts: Change in custom options the file size requirement from maximum to minimum

texts:
I want to change the custom options the file size requirement from maximum to minimum.

I want that the system check the minimum size but not the maximum size. Example:

If I write in system 1000px x 1000px
If I upload a picture 800 x 800 than it must throw the error
But the picture is greater than 1000px x 1000px than can this uploaded.


texts: Difference between Description & Short Description

texts: What's the difference between Description & Short Description Magento Backend. Whether we need to fill both the column in Magento Backend panel while adding the listing the new products?


texts: Magento 2.4 Export Invoice csv export programmatically with cron to FTP

texts:
In the Admin Panel Sales > Invoices, one can manually export a list of invoices to a CSV file.
Unfortunately, sales invoices cannot be scheduled by default for exports like products or customers.
Is there a way how to add the sales invoices from sales_invoice_grid to the scheduled export? I am working with the Enterprise Edition.
Many thanks.


texts: How to run a query to deactivate quotes as Magento code?

texts:
I need a Magento code query to set all quotes to Not active.
How do I write this query as a Magento code?

UPDATE `sales_flat_quote` SET `is_active`=0 WHERE `customer_email`='user@gmail.com'


texts: Checkout shipping summary doesn't display Region name at checkout page

texts:
In checkout page sidebar, there's a block that displays shipping information, based on the shipping address that customer uses.

The file that displays it is

vendor/magento/module-checkout/view/frontend/web/template/shipping-informations/address-renderer/default.html

and it uses the following code:

Region is a selectbox that contains values like this:

<option data-title="Region A" value="570">Region A</option>
<option data-title="Region B" value="571">Region B</option>
<option data-title="Region C" value="572">Region C</option>

address().region displays "571" instead of "Region B".

How can I fix this?


texts: how to reduce the magento website page load time?

texts:
I presume the website pages are slow down because of this filter to get only configurable products..

I used ->addAttributeToFilter('type_id', array('eq' => 'configurable')); this code works perfectly.. problem is page load is very very slow.

But when I try alternative methods(as follows) to reduce the page load time.. Its not working as expected and page load time is reducing but I see the duplicated product price and images on the page..

1) $_productCollection = clone $this->getLoadedProductCollection();
// Unset the current products and filter before loading the next.
$_productCollection->clear()
                   ->addAttributeToFilter('type_id', 'configurable')
                   ->load();

2) Mage::getResourceModel('catalog/product_type_configurable_product_collection')

3) ->setVisibility(Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH) //catalog and search visibility

4) ->setVisibility(4);

all above methods are not working for me to show the original title, price, images.. But the page load time is reduced..

Please suggest me is there any other method to get only configurable products with correct image, price, product name.,..

Thanks,


texts: Magento2: Delivery date - how to uncheck required

texts:
We use delivery date:
https://github.com/sohelrana09/magento2-module-delivery-date/tree/master/SR/DeliveryDate

Currently this field is required. Any solution how to uncheck to set this filed not required?


texts:
So, given 2 magento sites, and soon to be 3, I would like to implement some kind of SSO between the admin areas of the given sites. AD/Kerberos integration would be sweet, but any other option would be great to have (separate SAML provider, OAuth, whatever works to have the guys have the same user pass between sites and not have them to separately login in every admin area).

I haven't found yet any extension to do that, and I'm not sure where to start (I'm not a dev, but I would like at least to know what to ask from the devs).


texts: What would be the best method to import a CSV to a multi-site. Currently they have a site full of products and they want some of the same products on one of there multi-sites. Is this possible?


texts: MAGENTO 2 - Show custom block by attribute on product page [size chart]

texts:
I would want to show different size chart pop up by attribute on product page. For example:
I have an attribute called size chart, and this attribute can be 1 or 2. When the attribute value is 1, the product page should show the size chart template number 1. And on the other hand, when the value is 2, it has to show table number 2.
Thanks!!!


texts: Magento 2.3.5 - Remove product groups in the cart programmatically

texts:
I'm trying to remove simple and virtual products in groups through a custom form I created.
The code is this and it seems to work but in reality when you reload the page the minicart does not update and in the shopping cart there always seems to be something left because the summary of the cart is always visible with sub total at 0.00.
Why?
ShoppingCart.php
namespace Catalog\Product\Block;

use Magento\Checkout\Model\Cart as CustomerCart;

class ShoppingCart extends \Magento\Framework\View\Element\Template
{
    protected $cart;

    public function __construct(
        \Magento\Framework\View\Element\Template\Context $context,
        \Magento\Checkout\Model\Session $checkoutSession,
        CustomerCart $cart,
        array $data = []
    ) {
        $this->_checkoutSession = $checkoutSession;
        $this->cart = $cart;
        parent::__construct($context, $data);
    }

    public function getCart(){
        return $this->cart;
    }

    /**
     * Get quote object associated with cart. By default it is current customer session quote
     *
     * @return \Magento\Quote\Model\Quote
     */
    public function getQuoteData()
    {
        $this->_checkoutSession->getQuote();
        if (!$this->hasData('quote')) {
            $this->setData('quote', $this->_checkoutSession->getQuote());
        }
        return $this->_getData('quote');
    }
}

My action form file: RemoveItemCart.phtml
$blockCMS = $block->getLayout()->createBlock('\CMSpage\CMS\Block\BaseUrl');
$baseUrl = $blockCMS->getBaseUrl();
$currentUrl = $this->getUrl('*/*/*', ['_current' => true, '_use_rewrite' => true]);

$blockCart = $block->getLayout()->createBlock('\Catalog\Product\Block\ShoppingCart');
$blockGetCart = $blockCart->getCart();
$blockCartItems = $blockCart->getQuoteData()->getAllVisibleItems();

    foreach($blockCartItems as $item){
        $text = $_POST['valDelPosPrin'];
        $mystring = $item->getPosprintprod();
        if(strpos($mystring, $text)  !== false){
            $blockGetCart->removeItem($item->getItemId())->save();
        }
    }


texts: URL Rewrite (1.9) - more then one Request Path

texts: Is it posible to add more then one request path but same target,  http://prntscr.com/qbhr6e , i tried with just space, coma... I use 1.9 ver...


texts: Top menu links problem - Magento Community

texts:
My site is http://envybeautydirect.com/ (still under construction)

The problem: if you click link to any category from top menu, after redirection, this link appears still as hovering over. Click, for instance: Nails or Jewellery

And it happens only to real categorries, If link from top nav follows to a page, it stays normal after redirection. Click, for example: About Us or Delivery

It happened suddenly this morning, before everything was warking fine. I didn't touch the top menu, while it happened.

Any ideas what is it and how to fix it?


texts:
I currently call a custom phtml file in CMS pages to display a single product with description, price etc.

 {{block type="catalog/product" product_id="7160" template="catalog/product/dynamic-product-image_howto.phtml"}}

I'm trying to include this in a custom widget - is it possible to call in phtml?


texts: Base table or view not found: 1146 Table SQLSTATE[42S02]: doesn't exist

texts:
error:  "Base table or view not found: 1146 Table"

when i run a collection query in my magento 2 application i get the above message.

The problem is that the table does indeed exist. however magento 2 appears to add the name of my 'database'  to the main table name.This is why the query is unable to locate the table.

  If i am correct, it means that i need to remove the automatic creation of a table prefix by magento

This is the collection query:

$accountTypesCollection = $this->_modelConstantAccounttypes->create();
                                    $accountTypesCollection
                                    ->addFieldToFilter('brandId', 'barclays')
                                    ->addFieldToFilter('brandId', array('eq'=>'barclays'))
                                    ->addFieldToFilter('suppress', array('nlike' => '1'));
        $accountTypesCollection->addAttributeToSort('priority');

echo $accountTypesCollection->getSelect();

This is the full print out of the select query:

SELECT `main_table`.* FROM `constants_account_types` AS `main_table` WHERE (`brandId` = 'barclays') AND (`brandId` = 'barclays') AND (`suppress` NOT LIKE '1') ORDER BY priority ASC

when i run this query directly into mysqlAdmin it returns the correct values.

so, i am unclear why magento adds the name of the database to the query.

this is the full error :

Base table or view not found: 1146 Table 'magentotwo.constants_account_types' doesn't exist, query was: SELECT `main_table`.* FROM `constants_account_types` AS `main_table` WHERE (`brandId` = 'barclays') AND (`brandId` = 'barclays') AND (`suppress` NOT LIKE '1') ORDER BY priority ASC

this is my database config file:

/<Magento Install Dir>/app/etc/env.php

 'db' =>
  array (
    'table_prefix' => '',
    'connection' =>
    array (
      'default' =>
      array (
        'host' => 'localhost',
        'dbname' => 'magentotwo',
        'username' => 'root',
        'password' => '',
        'active' => '1',
      ),
    ),
  ),

you can see that the table prefix column is left blank.


texts: Ajax call on checkoutpage regarding address and shippingcosts not executed anymore

texts:
Magento ver. 2.1.6

Suddenly the one page checkout is not working anymore, the user can not go to the next step after she/he entered a valid address.

I can see in chrome developer network tab that the ajax call, which checks if the email exists in the system, is executed.

But after then, nothing happens anymore. I type in the address, but no ajax call is executed to transfer the address and calculate the shipping costs and so no "proceed checkout" button is shown.

I MUST refresh the browser (ie. press F5) in order to be able to continue.

I know, i did a "Flush Magento Cache" two days ago, but i can not believe that this caused this weird behavior.

Any suggestions are highly appreciated.


texts: Style-l.css and Style-m.css is missing in my theme

texts:
Can anyone tell me how to find Style-l.css and Style-m.css file in my theme.

I want to make some change in these file but I do not find these file in my theme I find these file in

/pub/static/frontend/mythemename /nl_NL/css/styles-m.css
/pub/static/frontend/mythemename/nl_NL/css/styles-l.css

I do change in this file but change does not reflect on my site
and can we change the CSS is pub folder I have some doubt because when we make static deploy then change has gone so I want to style-m.css and style-l.css in my design theme folder can anyone Magento experience developer help me


texts: Magento 2.4 Custom Filter on product collection, wrong collection size

texts:
I created a custom filter to filter products on category pages and in search. Filter itself seems to be correct (two products are visible from origin twelve) but pagination is wrong (total size is still 12 and link to 2nd page is rendered) (see 1st screenshot: ).
This filter is also not taken into account when list of other filters is rendered (see 2nd screeshot: there is still 12 products calculate instead of 2).
Filter itself is rather simple:
public function apply(\Magento\Framework\App\RequestInterface $request)
{
    $filter = $request->getParam($this->getRequestVar());
    if (!$filter) {
        return $this;
    }

    $collection = $this->getLayer()->getProductCollection();
    $customCollection = $this->collectionFactory->create();
    $customCollection->addFieldToFilter('value', $filter);
    $customIds = $customCollection->getColumnValues('entity_id');

    $collection->addAttributeToFilter([['attribute' => 'available_custom_ids',['in' => $customIds]],['attribute' =>'available_custom_ids',['null'=>true]]], null, 'left');
    $this->getLayer()->getState()->addFilter($this->_createItem($filter, $filter));
    return $this;
}

I injected this filter to the \Magento\Catalog\Model\Layer\FilterList with:
public function aroundGetFilters(
    \Magento\Catalog\Model\Layer\FilterList $subject,
    \Closure $proceed,
    \Magento\Catalog\Model\Layer $layer
) {
    $result = $proceed($layer);
    $result[] = $this->_objectManager->create(
        \Vendor\Module\Model\Layer\Filter\ExampleFilter::class,
        ['layer' => $layer]
    );

    return $result;
  }

What I'm doing wrong? It seems Magento is using two different collections on the same page, but I'm totally lost which is which (and why).
Side note: I used custom filter instead of simple make "available_custom_ids" filterable because I wanted to include also products with available_custom_ids == NULL to the results. Is it correct approach?


texts: Reduce the original product image size to 1000x1000 dimension

texts:
We uploaded product images to our site. Lot of images are in the range of 1600x1200 dimension.

We want to reduce the original size of the product images to 1000x1000.

How to reduce the image dimension so that image file size will decrease respectively?

Can you please explain how to implement in Magento site, in which file, what code do I have to place...?

Please help me to find a solution.


texts: Magento 1 - Color Picker does not show in backend

texts:
I developed a extension where you can set specific settings in the backend. I made an input field which should spawn a color picker on click.

It works great on Magento 1.8 but fails with Magento 1.9.

This is how I defined it:

<subscribe_bgcolor>
    <label>Anmelden Hintergrund Farbe</label>
    <comment>Hex Code</comment>
    <frontend_type>text</frontend_type>
    <validate>color</validate>
    <sort_order>35</sort_order>
    <show_in_default>1</show_in_default>
    <show_in_website>1</show_in_website>
    <show_in_store>1</show_in_store>
</subscribe_bgcolor>

I used <frontend_type>text</frontend_type> and <validate>color</validate>, but no color picker is getting spawned.


texts: Magento 2 admin ui component grid is not working

texts:
In Magento 2.2.5, I am creating custom admin grid using ui_component. But it is not working. Admin page showing but the grid part is keeps on loading.

Here is my di.xml code.

Here is my ui component code.

Here is my collection code.

Reference link


texts: I manage whole e commerce multi designer fashion website. today, i create GST Tax Classes as per indian law for different - different products(ex: footwear, carpets, sarees, jewelery, dresses), but i am confusing if somebody place order on website from out of country, GST will applicable or not for international orders?.


texts:
While installing database from cmd I am getting below error.

  Unable to apply data patch
  Magento\Msrp\Setup\Patch\Data\ChangeMsrpAttributeLabel for module
  Magento_Msrp. Original exception message: Notice: Undefined index:
  attribute_id in D:\wamp64\www\magento2\vendor
  \magento\module-msrp\Setup\Patch\Data\ChangeMsrpAttributeLabel.php on
  line 43

In ErrorHandler.php line 61:

  Notice: Undefined index: attribute_id in
  D:\wamp64\www\magento2\vendor\magento\module-msrp\Setup\Patch\Data\ChangeMsrpAttributeLabel.php
  on line 43

I am also attaching screenshot of error. Can anyone please help me on that?


texts: how to bring a core_config_data to its last state?

texts:
I have done an update which I should not have and backup functionality on magento was not enabled, how can I rollback that last command?
is there a chance somewhere I can get the data back?
since I did not flush the cache, site is stable at the moment

please help me.


texts: Magento 2.4 elasticsearch crashed while reindexing

texts:
I installed Elasticsearch and when I want to reinxed Magento by the below command it gives me an error.
php bin/magento indexer:reindx
Amasty: Advanced Search  - Categories index has been rebuilt successfully in 00:00:00

Catalog Search index process unknown error:
No alive nodes found in your cluster
I know if I restart the elasticsearch the error has been fixed.but I needs to a real solution.
-Xms1g

-Xmx6g


texts:
I am trying to change the phtml file for the messages block. I found in the base theme template/core/messages.phtml and copied that over to my theme and made the changes. My changes didn't show so I tried modifying the source in the base file and the changes still were not applied.

Where is this template file located or how can I overwrite it?


texts: Catalog URL Rewrites - Index Management and rebuild required indexes in Magento 1.9

texts:
I am seeing this message in the Magento admin-area:

  One or more of the Indexes are not up to date: Catalog URL Rewrites.
  Click here to go to Index Management and rebuild required indexes.

I already Read this article: Product Attributes - Index Management and rebuild required indexes

But I have not found a solution.


texts: Magento2 display swatch options on left & right on details page based on category

texts: Magento2 How can I display color swatches on left side under image on product details page for 1 category & size swatch on right size under name for another category product details page


texts: Nested Fieldsets breaks forms inputs within UI Components

texts:
I am building a form within admin of magento 2 using ui components and want to organise the fields within fieldsets like below:

<fieldset name="ticket">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="label" xsi:type="string" translate="true">Ticket</item>
        </item>
    </argument>

    <field name="ticketingo_tickets_id">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="visible" xsi:type="boolean">false</item>
                <item name="dataType" xsi:type="string">text</item>
                <item name="formElement" xsi:type="string">input</item>
                <item name="source" xsi:type="string">ticket</item>
            </item>
        </argument>
    </field>

    <fieldset>
        <settings>
            <label translate="true">Customer Information</label>
            <collapsible>true</collapsible>
        </settings>
        <!--Fields within this nested fieldset no longer function-->
        <field name="customer_name">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="label" xsi:type="string">Customer Name</item>
                    <item name="visible" xsi:type="boolean">true</item>
                    <item name="dataType" xsi:type="string">text</item>
                    <item name="formElement" xsi:type="string">input</item>
                    <item name="source" xsi:type="string">ticket</item>
                </item>
            </argument>
            <settings>
                <validation>
                    <rule name="required-entry" xsi:type="boolean">true</rule>
                </validation>
            </settings>
        </field>
    </fieldset>
    ...
</fieldset>

However my form breaks as soon as I attempt to add a child fieldset to the main fieldset. Any inputs within the new fieldset values include the new fieldsets in the name and i do not really cant this. I have tried with containers to achieve similar but not much luck and really just want these collapsible fieldsets to work.


texts:
We're currently having a weird bug on our magento site. Sometimes a customer send us an email complaining about the shopping cart. The subtotal is indeed calculated wrong.

See an example here : http://imgur.com/ZDtgm9r

Our team was unable to reproduce it by any mean. Today we have the case where a SINGLE, simple product got its total mult by 3...

I dont know how i can help you, which file you may need or so. Neither totals.phtml nor Totals.php (where renderTotals() is defined) have been overriden.

This is probably close to this question : Why Magento Shopping Cart show wrong price and sometime not allow to add product?

We're stuck with it for weeks now... And we have no clue since we're unable to reproduce it. So here's my call to community. Did you have this bug ? How did you resolve it ? Or maybe do you have an advice from where it may come from ?

EDIT : If a customer checkout the whole cart, all the prices during checkout are OK.

Thanks to all of you


texts:
I installed the magic 360 trial version on my magento 2.1 and it does not work well with my theme. With the Luma theme works perfectly, with the theme that i bought it crashes when i open the product lightbox.
How could it be possibile?