texts: Magento Product Save Issues - Asymmetric Transaction Rollback

texts:
We have a Magento 2.3.2 CE instance running and it has been working for us for a while without issue. Recently our products stopped saving and instead starting throwing the Asymmetric transaction rollback error.

The only error being logged is the reference to the error line (Magento/Framework/DB/Adapter/Pdo/Mysql.php:324) without any further information.

I tried all the suggestions and fixes I could think of (or find online), including:

Full Reindex (completed successfully)
Cleared Cache (cache:flush, cache:clean)
Manually removed generated,var/page_cache,var/cache
Changed indexers to run on schedule rather than save
Verified search engine (elasticsuite) is running
Changed search engine to MySql
Ran the setup:upgrade and setup:static-content:deploy commands

After I tried these things and none of them changed, or fixed the error delved into the Magento code. After adding some logging and following the error through the logic I determined the error is being thrown due to a transaction being rolled back multiple times.

I was able to get my products to save again by changing:

public function rollBack()
{
    if ($this->_transactionLevel === 1) {
        $this->logger->startTimer();
        parent::rollBack();
        $this->_isRolledBack = false;
        $this->logger->logStats(LoggerInterface::TYPE_TRANSACTION, 'ROLLBACK');
    } elseif ($this->_transactionLevel === 0) {
        throw new \Exception(AdapterInterface::ERROR_ASYMMETRIC_ROLLBACK_MESSAGE);
    } else {
        $this->_isRolledBack = true;
    }
    --$this->_transactionLevel;
    return $this;
}

to

public function rollBack()
{
    if ($this->_transactionLevel === 1) {
        $this->logger->startTimer();
        parent::rollBack();
        $this->_isRolledBack = false;
        $this->logger->logStats(LoggerInterface::TYPE_TRANSACTION, 'ROLLBACK');
    } elseif ($this->_transactionLevel === 0) {
        throw new \Exception(AdapterInterface::ERROR_ASYMMETRIC_ROLLBACK_MESSAGE);
    } else {
        //changed to false to allow products to save - NOT SURE OF SCOPE OF THIS CHANGE
        $this->_isRolledBack = false;
    }
    --$this->_transactionLevel;
    return $this;
}

Does anyone know what could be causing the problem originally, why this change has seemed to fix the issue for now, and if there are any (negative) side effects of making the change?


texts: Add category settings and thumbnail programatically/in front end

texts:
I'm currently using the below to add a category programatically/in the front end

 <?php
 $category = Mage::getModel('catalog/category');
 $category->setName('new_category');
 $category->setIsActive(1);
 $category->setIsAnchor(0);
 $parentCategory = Mage::getModel('catalog/category')->load("X");
 $category->setPath($parentCategory->getPath());
 $category->save();
 ?>

There are 2 settings which i need to be able to add - the setting of use parent category settings = yes and the category thumbnail

How can this be done with the above?


texts: Get customer_logged_in value from http_context

texts:
I'm trying to check if the user is logged in. But the problem is in my code eventhough I already logged out it's still check and output that the user is still logged in. Below is my code

<?php
namespace Tcm\Goodgifts\Helper;

class Customer extends \Magento\Framework\App\Helper\AbstractHelper
{
    public function __construct(
        \Magento\Framework\App\Helper\Context $context,
        \Magento\Customer\Model\Session $customerSession,
        \Magento\Framework\App\Http\Context $httpContext
    ) {
        $this->customerSession = $customerSession;
        $this->context = $httpContext;
        parent::__construct($context);
    }

    public function isLoggedIn()
    {
        var_dump($this->context->getValue(\Magento\Customer\Model\Context::CONTEXT_AUTH));

        var_dump($this->customerSession);

        return $this->customerSession->isLoggedIn();
    }
}

So basically if I run the bin/magento setup:upgrade the correct output is being displayed. But after I log out or login it retains the old state and not the new one. When I outputted the value of $this->context->getValue(\Magento\Customer\Model\Context::CONTEXT_AUTH) it give me this

So as you can see it somehow get the value under _httpContext->data["customer_logged_in"] but when checking the value I think the correct value should be the one under the _httpContext->default["customer_logged_in"] but I don't know how to get this value.

Just by running $this->context->getValue(\Magento\Customer\Model\Context::CONTEXT_AUTH) will retrieve the object Data and not the Default.

Any idea how to get this value? I'm guessing the Default note returns the correct/updated value


texts: Make last image in galary Base, Small and Thumbnail query - Magento 2.3.5

texts:
The following sql query changes the Base, Small and Thumbnail to the first image.
We want to use something like this query, but then select the last image in position and make that Base, Small and Thumbnail, not the first. Because the last image position value is for every product different and dynamic, how can we achieve this?
UPDATE catalog_product_entity_media_gallery AS mg,
catalog_product_entity_media_gallery_value AS mgv,
catalog_product_entity_varchar AS ev
SET ev.value = mg.value
WHERE  mg.value_id = mgv.value_id
AND mgv.entity_id = ev.entity_id
AND ev.attribute_id IN (87, 88, 89)
AND mgv.position = 1;


texts:
1.I have to set the admin permisssion using ACL
   2. If the acl value is checked for the create acl value
3. Then it display the Product information else leave them blank

I have to set the admin permssion . I they don't have the permission then it display the the text in the Product Description. If they have the Permsission then it displays the Product name

How it would manage , I am using acl permission but everytime it shows the true value


texts:
I have a issue in Paypal express checkout Error bellow.
PayPal gateway has rejected request. The totals of the cart item amounts do not match order amounts (#10413: Transaction refused because of an invalid argument. See additional error messages for details).

I use two currency base currency is INR and payment currency is USD and I use Magento 1.7.0.2 version.

Please any one help me.


texts:
I have magento 1.9.2.3. I want to apply the discount to whole category.

Actually, I have 2 categories and both have same products, but I want to apply the discount to one category.

I go to Promotions -> Catalogue Pricing Rule and Apply the Rule to one category, but discount is showing on both categories, although both categories have different id's.

Is it possible to apply the discount to one category?


texts: /index.php/rest/V1/modules File not found after upgrading to magento 2.4.2

texts:
after upgrading to 2.4.2 there is a problem with rest api
the url /index.php/rest/V1/modules responds with "File not found"
the url /rest/V1/modules works well
https://magento-560832-1812590.cloudwaysapps.com/index.php/rest/V1/modules
https://magento-560832-1812590.cloudwaysapps.com/rest/V1/modules
any idea?
Thank you


texts: Magento 2 : Add extra "Proceed to Checkout" Button on top of grid on shopping cart page

texts:
On the shopping cart page, there are a proceed to checkout button display after order summary. I want to display also before the shopping cart grid.
How to display it?
Any help would be appreciated.
Thanks.


texts: After quick research product doesn't appear and redirect me to other store language

texts:
The problem appear when I search a product from his SKU, I found it but when I tried to click on it I am redirecting to the main page with a different language code store (default is German, but after clicking I am on http://THESHOP.de/en).

This problem appear only with some specials products. So I tried to compare the product with others but I don't find any differences (in rewrite rules also).

I also noticed that if I search the product in the English store I will find it and if I switch after to German, I've got the product in German and if I make the research again, I will find my product without any problem; but if I am clearing my cookie ... I've got the same problem again.

I tried to re-index data, clearing the cache, made the comparison between different products, look into my cookie configuration but nothing looks to work.

The shop is running under Magento CE 1.9.1.0.


texts: How to Integrate Magento Social in Magento 2.2

texts:
I would like to know more about Magento Social which was recently introduced in Magento 2.2. The module is available in the following location.

System -> Extension -> Integration -> Magento Social

I would like to know about this module and how to integrate and configure it with the latest Magento 2.2.


texts: Magento 2 - What are the native required attributes to customer and products?

texts: When we export the sample of the basic CSV (Customers and Products) at the admin panel on Magento 2 all attributes are exported, whose are the basic attributes to put?


texts: Remove item from Quote item - Magento1.9

texts:
Hi I was trying to remove an item from the sales quote item.

$quoteItemCollection = Mage::getModel('sales/quote_item')->getCollection()->addFieldToFilter('quote_id', $quoteId)->addFieldToFilter('product_id', $product_id)->getFirstItem();;
    $itemId = $quoteItemCollection->getItemId();
    $quoteItemCollection->removeItem($itemId);
    $quoteItemCollection->save();

This is returning me the following error.

  {"messages":{"error":[{"code":0,"message":"Invalid method
  Mage_Sales_Model_Quote_Item::removeItem(Array\n(\n [0] =>
  1355\n)\n)"}]}}

If this is not the way,is there any other way to do or what made me wrong here.Please help.


texts: Why is Magento's "Tier Price" attribute of the type "text"?

texts:
I have an extension that allows an admin to select attributes from a list to show in tabs on the detail page on the frontend.

The list of attributes is filtered by the type "text" and "textarea". The values of these attributes are then echoed in the tabs.

However, I just noticed that both the "Tier Price" and "Group Price" attributes show in the list. On checking those 2 attributes, I found that they are indeed of the "text" type:

I'm wondering why that is, considering the input for them is most definitely not a simple text box:

and they in fact output an array.


texts:
I have a custom module, it has two fields, table_name and table_number and I have added new field like is_reserve to check if table is reserved,

I have added column in table with integer data type, now I need to add a checkbox for this field on admin form:

$fieldset->addField(
                 'is_reserved',
                 'checkbox',
                 array(
                     'name' => 'is_reserved',
                     'label' => __('is reserved'),
                     'title' => __('is reserved'),
                     'onclick'   => 'this.value = this.checked ? 1 : 0;',
                     /*'required' => true,*/
                 )
             );

I have added this in block file, what else I need to do to get my checkbox working? It will be a great help if someone can give any hint about this.

Thanks


texts: Payment process failed because checkboxes/button does not work correct (PayPal)! - Version 1.9.2.4

texts:
The problem
... is, that customers could not complete the order, because after the PayPal login they return back to the order overview and can't click on the "Jetzt bezahlen (Pay now)" button. The button is disabled, even if the checkbox of AGB (T&C) etc. are checked.
Curiously, the button is active and clickable before clicking a checkbox. After clicking one checkbox the button is disabled and it stays disabled. Its only at the payment method PayPal on Magento Community Ver. 1.9.2.4.
The question:
Is there any fix for this problem yet? German Magento shops still have problems with greyed 'Jetzt kaufen' buttons, T&C checkboxes and PayPal.
BTW.: PayPal seems to work fine! If you deactivate the requirement of the checkboxes, the order can be placed, as usual!
What about the newer version Magento +2.0? Does it the trick?
Here is an screenshot (German order process, after redirect from PayPal):


texts: Magento 2.2: Add Customer Attribute to Custom Tab in Admin

texts:
I'm trying to a add some custom attributes to a custom tab I created in the Customer Admin page.  I've created the custom tab with the following code:

Vendor\MyModule\view\adminhtml\layout\customer_index_edit.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  <body>
    <referenceBlock name="customer_form">
      <block class="Vendor\MyModule\Block\Adminhtml\Edit\Tab\Branding" name="customer_edit_tab_branding">
        <action method="setTabLabel">
          <argument name="label" xsi:type="string">Branding Information</argument>
        </action>
      </block>
    </referenceBlock>
  </body>
</page>

Vendor\MyModule\Block\Adminhtml\Edit\Tab\Branding.php

<?php

namespace Vendor\MyModule\Block\Adminhtml\Edit\Tab;

use Magento\Ui\Component\Layout\Tabs\TabWrapper;
use Magento\Ui\Component\Layout\Tabs\TabInterface;

class Branding extends TabWrapper implements TabInterface
{
    public function canShowTab()
    {
        return true;
    }
}

I can see my custom tab in the customer admin page, but now would like to add some custom editable attributes to this tab.


texts:
As title suggest i want to override Mage_Payment_Model_Method_Abstract class , I know that it is abstract class. and we can easily override abstract class using local directory like app\code\local\Mage\Payment\Model\Method\Abstract.php. But i want to know is there any other option for me ? Because this option is not safe with different magento version.

Any help will be appreciated.

Thank you


texts:
I can't seem to see any of the upload of browse image buttons on my magento backend, I have tried Firefox and chrome with no luck. I get these errors in Firefox inspect element:

  TypeError: flashPlugin is undefined flex.js:164:7
  ReferenceError: id_a13736761dc61600b7a42cbca740d27f_UploaderJsObject is not defined

I found out that I should check these files exist but annoying they found.

/skin/adminhtml/default/default/media/uploader.swf
/skin/adminhtml/default/default/media/uploaderSingle.swf
/skin/adminhtml/default/default/media/editor.swf
/skin/adminhtml/default/default/media/flex.swf
/app/design/adminhtml/default/default/template/media/uploader.phtml
/app/design/adminhtml/default/default/template/media/editor.phtml

any other suggestions what could be the problem?


texts: Change order state from processing to closed

texts:
How can I change order state from processing to closed in Magento 1.9?

Normal Magento workflow says that we can get status as closed after creating the credit memo. In my application, I can create credit-memo for 2 cases: Store credit or online refund. But I want another case where I want to refund customer money via cheque and mark that order as closed.
But this is not in Magento workflow.

Any idea to accomplish this would be a great help!


texts: Magento 2 - How I can move the limiter at the top

texts:
how I can move limiter from bottom to top toolbar.

I check the code in console and at the top toolbar already exist but is hidden, how I can do to see this at the top.

Thanks


texts: Magento 2 : Add custom tabs to product details page

texts:
How to show information (Shipping rates,Report an issue,Questions and Returns) in product details page tabs.It shows only Details,More information tabs.

Is there any back-end configuration available to add custom tabs with custom information?


texts: How can I remove a custom attribute from a product via REST?

texts:
I can add or change a custom attribute of a product, i.e. via

curl -X PUT --header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer MYTOKEN" -d '{"product":{
  "id":1,
  "attribute_set_id":10,
  "name": "Testproduct",
  "sku": "test",
  "custom_attributes": [
      {
         "attribute_code": "test_attribute",
         "value": "the value"
      }
  ]
},
"saveOptions":true}' "https://magentohost/rest/default/V1/products/test"

but how can I remove that attribute(-value) again?

Using the admin-backend, I can remove it by setting its value to an empty string, however trying that with the rest api does not change anything. (just as if I leave out the attribute)
I also tried it with '"value": null', but then I get an error "Error occurred during \"custom_attributes\" processing. Value is not set for attribute code \"test_attribute\""

I am using Magento 2.1.3 (EE)


texts:
The m2e Pro extension now has a "Reserve QTY" option that seems to be used to better handle out of stock conditions... but for the life of me I cannot figure out how it is supposed to work.

Here is the doc link and the "help" copy:

  You should use this option to prevent the item being sold, before
  Magento Order created (as the Product Stock QTY only reduces after
  Magento Order creation). It removes items from Magento Stock at once
  eBay Order comes from eBay. Reserve qty will be used when Magento
   Order is created or released when the term of qty reservation has
   expired. Orders-ReserveQTY

I read this to say,

"You should use this option to prevent an item in your Magento store from being sold after Amazon or eBay sells your last one, and before the Magento order for that sale is created. Magento store inventory only updates after the Magento order is created; there is a delay between the sale and the order creation. So, this option reduces the relevant Magento store inventory immediately when the Amazon / eBay sale comes in from the marketplace... then there is some bit about reserve quantity which I totally cannot understand.

I mean... in what case would it ever take m2e longer than like 15 minutes to create that order? Right? 15 days? Where does that come from? Shouldn't the options be more like 5min / 10min / 15min / etc?


texts: where is "admin/url/custom" path in magento site database file

texts:
i am following this : https://stackoverflow.com/questions/7202950/magento-admin-url-not-working-404-after-changing-it-cant-go-back

in core_config_data, i want to know where is this path : admin/url/custom admin/url/custom_path

means usually in which page these path will be available ?

in core_config_data , there are 55 pages with 30 rows each,

i want to know in which page these paths i can find : admin/url/custom admin/url/custom_path
?


texts: Porto theme header CSS customization fail - Magento 2.3

texts:
I hope someone will help me, I have searched everywhere on the community looking for this.

Porto theme gives 20 pre-made styles for the header, but for the website that I am trying to make I wanted to do something different mixing between the styles already given.

I have tried to modify colors and add custom settings from the Stores > Configuration > Porto theme panel, but nothing happens.

So I have been started searching for the stiles directly inside the child theme folder to modify them manually, and I have found the styles in the pub\media\porto\web\css\header folder.
I have tried to make some changes to them and flushed the cache, but nothing still happens.

So I thought the theme takes the info from another part, and not from the types folder.
I have searched for the header.phtml, found in the root app\design\frontend\Smartwave\porto_child\Smartwave_Porto\templates\html, and the file is kinda like:

<?php
    $header_type = $this->getConfig('porto_settings/header/header_type');
    $header_new_skin = $this->getConfig('porto_settings/header/new_skin');
    $class = $header_type == 17 || $header_type == 19 || $header_type == 16 || $header_type == 20 ? 'header-newskin':'';
    if(isset($header_new_skin) && $header_new_skin && ($header_type == 2 || $header_type == 5 || $header_type == 6 || $header_type == 7 || $header_type == 8 || $header_type == 13))
        $class = 'header-newskin';
    if(isset($header_new_skin) && $header_new_skin && $header_type == 10)
        $class = 'header-new-skin';
?>
<header class="page-header type<?php echo $header_type; ?> <?php echo $class;?>" >
<?php echo $this->getChildHtml("header_customer_form_login"); ?>
<?php if($header_type == 3 || $header_type == 4 || $header_type == 9): ?>

    <?php echo $this->getChildHtml("logo"); ?>
    <?php echo $this->getChildHtml("navigation.sections"); ?>

                <?php echo $this->getChildHtml("skip_to_content"); ?>
                <?php /* @escapeNotVerified */ echo __('Toggle Nav') ?>
                <?php echo $this->getChildHtml("header.links"); ?>

                    <?php echo $this->getChildHtml("top.search"); ?>

                <?php echo $this->getChildHtml("currency"); ?>
                <?php echo $this->getChildHtml("store_language"); ?>
                <?php echo $this->getChildHtml("minicart"); ?>

And it continues with else if for every type.

Actually I have this header as in the attached photo, but I want to make a new one with links on the sides, logo in the middle, and menu under all with a black background with opacity of 60%.

Obviously you won't see very well category links because they are black, I have tried to give them white color but ant try works!

I am conscious that I am talking about a third-party extension but it is a very diffused theme so I think someone could find this question useful too.

Thanks in advance to everyone!


texts: magento 2 migrate data of specific date from magento 1

texts:
I have setup Magento 2 store and migrated Magento 1 data to Magento 2 store using the data-migration tool.

  https://github.com/magento/data-migration-tool

I have migrated data from m1 to m2 last week and from last week to till date in m1 18 orders placed and 34 customers are registered.

How can I migrate the customers and orders that placed in last week to till date only?

Is there any parameter or method to mention in map.xml file or any other file?


texts: help with importing customers into magento 2.2.7

texts:
I have tried to import the attached listed using the example CSV sheet from Magento. But I keep getting an error that the headers are wrong. I attached the two files can you tell me what I am doing wrong.
Thank you,
Ron

template used from magento


texts: Different quantity for different size add to cart product

texts: i've created configurable product which has different sizes and different colors, In my product details page currently there's only one quantity input field and i need to select the size before add to cart. Is there a way i can add multiple quantity input field for each sizes like this :


texts: Magento2: create product attribute in non install/upgrade scripts

texts: What is the right way to create a product attribute in a non install or upgrade scripts in Magento2?


texts: In magento2 admin dashboard , We have an option for Search. When we search for "rma" for example it is showing "rma in products" , "rma in pages" etc but I need to know if rma found in any of the admin menus then it will come in search results. As we have almost 30 magento extensions installed for my store I am unable to access them properly from left menu. If any extension that provides this search for menus will helpful. If anybody knows about how to search for admin menus please help me.


texts: How to create custom Widget programmatically that will allow me to show the newest Products in Home Page?

texts: I want to create a Custom widget through codes that will allow me to display the newest products on the home page where my widget will get inserted.


texts:
I was trying to add this solution link but it's only removing links but without adding new ones. My parent theme is Blank theme, so I use header.links (not top.links)

Edited file app/design/frontend/Myvendorname/Mytheme/Magento_Theme/layout/default.xml

    <referenceBlock name="header.links">
<block class="Magento\Framework\View\Element\Html\Link" name="new.link" after="register-link">
    <arguments>
        <argument name="label" xsi:type="string" translate="false">New Link</argument>
        <argument name="path" xsi:type="string" translate="false">newlink</argument>
    </arguments>
</block>

<!-- here you can remove whatever link you feel unwanted -->
<referenceBlock name="register-link" remove="true" />           <!--for Create Account Link-->
<referenceBlock name="authorization-link" remove="true" />      <!--for Sign In Link  -->
<referenceBlock name="wish-list-link" remove="true" />          <!--for WishList Link-->
<referenceBlock name="my-account-link" remove="true" />         <!--for My Account Link-->
</referenceBlock>


texts:
What would be your recommendations about warming a varnish cache? The particular case is a site that has not too many visits, but from time to time we need to flush the cache (the reasons for this would be a whole different matter).

So, the particular request is: "we want to warm the cache as soon as a flush is done". We are just looking for information and found the standard method of using crawlers and/or sitemaps-based scripts, however, we don't want to be too aggressive and harm the server in the process.

Any advice, experience, opinion, etc. that you share would be very appreciated.

Thank you!


texts:
After clicking insert/edit embedded media in the editor (wysiwyg) in magento admin, appears an error in my console. Indeed I can upload a video, but I can't insert it to my page. it says :

  Uncaught TypeError: Cannot read property 'params' of undefined

  editor_plugin_src.js

FYI im using magento 2.2.9 upgraded from 2.1.7, in nginx environment, and im using pub directory for docroot following this article https://support.hypernode.com/knowledgebase/installing-magento-2-on-hypernode/

Does anyone have any idea?
Thanks in Advance.


texts: Magento 1.9: Missing translation of the minicart "remove item" pop-up buttons?

texts: The pop-up window which is shown when clicking "Remove item" in the mini-cart ("Are you sure you would like to remove this item from the shopping cart?") shows two buttons "OK" and "Cancel". In my localized version these buttons remain untranslated. Mage_Checkout.csv does not contain a translation for "OK" and the one for "Cancel" is obviously not used. Where/How can I add a translation for these buttons? I am using the RWD theme.


texts: Mage v1.9.0 - want to change the chinese for how China is translated in the list of countries

texts:
I'm trying to track down where the list of countries are located, and their corresponding chinese translation. I want to change some of the chinese translation.

It's definitely not located in one of the app/local folders.

Anybody know?


texts:
I am getting the following error when i was printing the shipment
Fatal error: Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::__construct()

I also tried the links for the answer as follows.
https://stackoverflow.com/questions/19516620/magento-php-5-4-pdf-invoice-zend-error

But no solution , Pls help .


texts: How to implement paypal using Web Api on Magento2?

texts: I am developing a mobile app using Magento2 Web Api. I am wondering how to implement Paypal for my mobile app. What versions of Paypal (express, etc.), is it used as an offline payment method?, do I need to configure something in Paypal's website, in Magento2?


texts:
So when I look online, it looks super simple... Even the swagger docs show it to be simple, but I've tried 2 different Magento sites now (different versions) and the API simply doesn't work...

Order ID:1 (first ever order)

Magento Version 2.3.1

POST TO: index.php/rest/V1/orders/2/comments

Content:

{
  "statusHistory": {
    "comment": "TEST ORDER COMMENT",
    "entity_id": 1,
    "entity_name": "string",
    "is_customer_notified": 0,
    "is_visible_on_front": 0,
    "parent_id": 1,
    "status": "Waiting_on_Supplier",
    "extension_attributes": {}
  }
}

All I seem to get back is the content... I can even see my custom comments I added - but it's not giving back a boolean as per the docs...

Here is the response I'm getting back:

{
    "items": [
        {
            "comment": "test",
            "created_at": "2019-08-15 18:16:27",
            "entity_id": 1,
            "entity_name": "order",
            "is_customer_notified": 0,
            "is_visible_on_front": 0,
            "parent_id": 1,
            "status": "processing"
        },
        {
            "comment": "tes2",
            "created_at": "2019-08-15 18:49:03",
            "entity_id": 2,
            "entity_name": "order",
            "is_customer_notified": 0,
            "is_visible_on_front": 0,
            "parent_id": 1,
            "status": "processing"
        }
    ],
    "search_criteria": {
        "filter_groups": [
            {
                "filters": [
                    {
                        "field": "parent_id",
                        "value": "1",
                        "condition_type": "eq"
                    }
                ]
            }
        ]
    },
    "total_count": 2
}

Hope someone can shed a bit of light! I'm very confused.


texts: 1.9.0.1 shopping cart rules using stop further rule processing

texts:
Would someone please share his knowledge in setting up discount:

Tried like 1000x combinations, but I cant get it to work as expected, so pls tell me if it is possible or not:

   I have coupon-codes 50%,30%,20%,10% - Priority high (works standalone)
   I have a 10% discount on a specific category if product form other    category is in cart. - Priority mid (works standalone)
   I have mass discount 3 5% and 10 10% (works standalone)

Now when all comes together I need the following:

   1. Discount of discount code on all items
   2. Discount of 10% specific discount on specific items
   3. STOP mass discount from being discounted

Any suggestions? :)

Thx in forward


texts:
Magento Product Video Autoplay base not working for Vimeo Video.

The video is not loading when video icon is clicked.

Is there any other way to make the video auto play ?


texts: How to change other values along with size change?

texts:
When I change the size of configurable product, its price is changing. But along with that, I need to change the attribute value and other information as in the following image also. How can we do that?

It changes the total price only


texts:
I am trying to install the newly release security patch for magento 1.8 in my distant server when I get this errors.

Checking if patch can be applied/reverted successfully...
ERROR: Patch can't be applied/reverted successfully.

patching file app/code/core/Mage/Admin/Model/Observer.php
Hunk #1 FAILED at 44.
Hunk #2 FAILED at 58.
Hunk #3 FAILED at 69.
3 out of 3 hunks FAILED -- saving rejects to file app/code/core/Mage/Admin/Model/Observer.php.rej
patching file app/code/core/Mage/Core/Controller/Request/Http.php
Hunk #1 FAILED at 76.
Hunk #2 FAILED at 534.
2 out of 2 hunks FAILED -- saving rejects to file app/code/core/Mage/Core/Controller/Request/Http.php.rej
patching file app/code/core/Mage/Oauth/controllers/Adminhtml/Oauth/AuthorizeController.php
Hunk #1 FAILED at 55.
1 out of 1 hunk FAILED -- saving rejects to file app/code/core/Mage/Oauth/controllers/Adminhtml/Oauth/AuthorizeController.php.rej
patching file app/code/core/Mage/XmlConnect/Model/Observer.php
Hunk #1 FAILED at 143.
Hunk #2 FAILED at 160.
2 out of 2 hunks FAILED -- saving rejects to file app/code/core/Mage/XmlConnect/Model/Observer.php.rej
patching file lib/Varien/Db/Adapter/Pdo/Mysql.php
Hunk #1 FAILED at 2834.
1 out of 1 hunk FAILED -- saving rejects to file lib/Varien/Db/Adapter/Pdo/Mysql.php.rej

I tried to change the content of files with those magento-1.9-patch-1533-5344

But always got the same errors.

Is there a way to be fixed

Thank you in advance

ps: My magento version is 1.8.1.0


texts: Magento 2 : Cart page total block messed up in AWS server

texts: I have one query. I have 2 copy of one site one is in AWS server and another one is in Site ground. In site ground all works fine but in AWS it will messed up total block in cart page.


texts: How to add customer details in change email template in magento 2.3

texts:
How to add the customer email in "change email address template" in magento 2.3

Config : Stores -> Configuration -> Customer Configuration -> Account Information Options -> Change Email Template  (Default Config)

Email Template :
{{template config_path="design/email/header_template"}}

{{trans "Hello,"}}

    {{trans "We have received a request to change the following information associated with your account at %store_name: email." store_name=$store.frontend_name}}
    {{trans 'If you have not authorized this action, please contact us immediately at %store_email' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at %store_phone' store_phone=$store_phone |raw}}{{/depend}}.

{{trans "Thanks,
%store_name" store_name=$store.frontend_name |raw}}

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

Output now :
Hello,

We have received a request to change the following information associated with your account at My Store: email. If you have not authorized this action, please contact us immediately at example@test.com.

Thanks,
Main Web Store

Expected Result :
Hello,

We have received a request to change the following information associated with your account at My Store: email **"Customer Email"**. If you have not authorized this action, please contact us immediately at example@test.com.

Thanks,
Main Web Store


texts: On every deployment magento 2 folders and files permissions changed

texts:
I'm using Ubuntu 16.04 and installed magento 2 on it. When I'm deploying magento 2 site with

Php magento setup:upgrade
Php magento setup:static-content:deploy

I'm getting file permissions errors and HTTP 500 error.

Can anyone help me to solve this issue?

Thanks in advance.


texts: How to Debug {"identifier":"LOCKED_RECORD_INFO_SYSTEM_CONFIG"}} []

texts:
My Centos - Nginx Configuration,

etc/nginx/conf.d/magento.conf

server {
listen 8087;
server_name abc;
set $MAGE_ROOT /usr/share/nginx/html/abc;
include /usr/share/nginx/html/abc/nginx.conf.sample;

error_log /usr/share/nginx/html/abc/abc_error.log;
access_log /usr/share/nginx/html/abc/abc_access.log;

}

upstream fastcgi_backend2 {
        server  127.0.0.1:9000;
}

And i am getting following response,

  [2020-01-18 07:02:27] main.DEBUG: cache_invalidate:
  {"method":"GET","url":"http://192.168.1.64:8085/","invalidateInfo":{"identifier":"interception"}}
  [] [2020-01-18 07:02:31] main.DEBUG: cache_invalidate:
  {"method":"GET","url":"http://192.168.1.64:8085/","invalidateInfo":{"identifier":"LOCKED_RECORD_INFO_SYSTEM_CONFIG"}}
  []

How to debug above response?


texts:
I would like to center my products display, but I really don't know how...I have tried several CSS changes but none of them had success...

The products are aligned to the left :\

Here's the link to my website:

Home Page:

http://wwww.buysmartcardsonline.com

Product Page:

http://buysmartcardsonline.com/index.php/contact-cards/siemens-sle5542.html

Thanks in advance :)


texts: Order email not working in CE 1.9 in hostgator shared hosting plan

texts:
Hello could anyone help me to resolve my order email problem, i am struggling with setting up cron job in hostgator, currently i am running on shared plan, as per hostgator, in shared service plans PHP version 5.4 is installed.

and i have installed Magento CE 1.9.1.0.

i have tried following two commends from the cpanel and scheduled it for 15 mins.

/opt/php55/bin/php -q /homedirectory/username/public_html/cron.php

/opt/php54/bin/php -q /homedirectory/username/public_html/cron.php

and i am not receiving order emails :(.

other than scheduling cron.php from magento, is there anything else i need to do in the magento itself inorder to receive emails? ( i have already enabled and setup "order email" in "Sales email" tab)

Also i confirm order emails are going in core_email_queue table.

Thank you in advance for any helps..


texts: Magento cart item html not render after upgrade 1.7 to 1.9.2.4

texts:
I have upgrade magento from 1.7 to 1.9.2.4, everything is working good but I am getting issue with magento cart items are not showing in the cart but product total and other things are fine.

  this was before upgrade

  After upgrade it is showing like

I have checked code with my app/design/frontend/theme-xx/default/template/checkout/cart.phtml

<?php foreach($this->getItems() as $_item): ?>
       <?php echo $this->getItemHtml($_item) ?>
<?php endforeach ?>

What is the possible reason for issue? how to fix this?


texts: Getting a cutomer attribute value from a parent block inside child block

texts:
I am trying to get a value of my custom attribute linkedin_value to populate a form I have added to customer account edit page but I cannot get to it. As soon as I call $block->anything or $this->getParentBlock()->anything, the page sort of crashes. $this->getParentBlock() returns false. Could you please explain why and how can I get my value.

It is working 80% because the field appears where I want it to appear, and I can even type in a value and it gets saved.

The idea was to do something like this. I can do it from the edit.phtml but I don't want to override the whole template, just add one field.

<?php $linkedinAttribute = $block->getCustomer()->getCustomAttribute('linkedin_profile');
    $linkedinDefaultValue = '';
    if ($linkedinAttribute) {
        $linkedinDefaultValue = $linkedinAttribute->getValue();
    }
?>

This is the stock layout customer_account_edit.xml:

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="customer_account"/>

    <referenceBlock name="head.components">
        <block class="Magento\Framework\View\Element\Js\Components" name="customer_account_edit_head_components" template="Magento_Customer::js/components.phtml"/>
    </referenceBlock>
    <referenceBlock name="page.main.title">
        <action method="setPageTitle">
            <argument translate="true" name="title" xsi:type="string">Edit Account Information</argument>
        </action>
    </referenceBlock>
    <referenceContainer name="content">
        <block class="Magento\Customer\Block\Form\Edit" name="customer_edit" template="Magento_Customer::form/edit.phtml" cacheable="false">
            <container name="form.additional.info" as="form_additional_info"/>
        </block>
    </referenceContainer>

</page>

My addition to the layout inside my module:

        <referenceContainer name="form.additional.info">
            <block class="Magento\Framework\View\Element\Template" name="additional_info_edit_customer_linkedin_profile" template="MyVendor_MyModule::customer/editadditionalinfocustomer.phtml"/>
        </referenceContainer>

My template:

<fieldset class="fieldset edit linkedin_profile" data-hasrequired="<?php /* @escapeNotVerified */ echo __('* Required Fields') ?>">
<legend class="legend"><?php /* @escapeNotVerified */ echo __('Additional Information') ?></legend>

    <?php /* @escapeNotVerified */ echo __('Linkedin Profile') ?>

        <input type="text" name="linkedin_profile" data-role="edit-linkedin-profile" id="linkedin_profile" title="<?php /* @escapeNotVerified */ echo __('Linkedin Profile') ?>" class="input-text"/>

</fieldset>

My template is getting called inside the edit.phtml like so:

<?= $block->getChildHtml('form_additional_info') ?>

I reckon this should be easy, because the value is getting saved, so it must be connected to the correct underlying block and logic.
My guess is that this snag has something to do with how getChildHtml() works.


texts:
I want to inform customers with email all the details of their orders and I want to be able to show the difference. For example:

Those items shipped: ...
Those items cancelled: ...
Those items ...

credit memo, hold, invoice, ship, reorder, create returns... There so many situations. What should be the best way to achieve this?

Still I tried to use events for invoices (sales_order_invoice_save_after - sales_order_invoice_register):

public function execute(\Magento\Framework\Event\Observer $observer)
{
    $order = $observer->getEvent()->getOrder();
    $stateProcessing = $order::STATE_PROCESSING;

    $collection = $order->getItemsCollection();
    foreach ($collection as $item) {
        $this->logger->info('item = '.$item->getName());
        $this->logger->info('   qty_invoiced = '.$item->getData('qty_invoiced'));
        $this->logger->info('   qty_invoicedorig = '.$item->getOrigData('qty_invoiced'));
    }

    return $this;
}

But quantities are the same, couldn't get the difference.


texts:
I'm spending 2 days on google to solve this problem(s), and tried many solutions without any success. Please help. :)

I'm new to Magento and using version 1.9.3.1 on WAMP 3.0.6(64bits).

Tried many extensions to install via Magento Connect but without any success.
It keeps give me a message: "Exception during cache and session cleaning".

Also tryed to manualy download and copy/paste content in root folder, and then logout/login to admin panel to see changes and they are installed, but doesn't work becuse cache isn't cleaned i suppose. Here is the example of Advanced Code Editor extension.

I disabled caches in admin panel, as well(right after installing Magento), and go to downloader/lib/Mage/Archive/Helper/File/Gz.php and changed line of code from

$this->_fileHandler = @gzopen($this->_filePath, $mode);

to

$this->_fileHandler = @gzopen64($this->_filePath, $mode);

but then is even worse, because after try to install it extension it gave me an error on front end and backend page, and can't access it at all.


texts:
Admin Import Has Issue:

https://github.com/magento/magento2/issues/6939

I'm able to Manually Add Product.

https://magento.stackexchange.com/questions/140234/magento-2-after-entry-in-database-tables-unable-to-save-new-entry-record-solv

For Images, i'm checking previous uploaded Product's Images & following.

I have put my new image in pub\media\catalog\product\a\b\abc.png

Made respective entry in below tables

catalog_product_entity_varchar
catalog_product_entity_media_gallery
catalog_product_flat_1 -> Updated fields image, small_image, swatch_image, thumbnail

Frontend: Images are displaying on Listing Pages. On Product Detail page it's not Showing Image.

Admin: On Catalog listing it's displaying, while edit product it's not Showing Image.

What if i have same image name, But Image is different for Different Product.

As path is pub\media\catalog\product\a\b\abc.png it will override Image?

If this is not going to work i have do edit 2K SKU manually & upload Images. Crazy


texts: How to fetch First Name Last Name using Magento 2

texts:
Fetch customer details using query or object manager

Want to display the following fields

  First Name Last Name Email telephone State /region pincode


texts: Free shipping code is not working for UPS in magento 2

texts:
If you create a cart price rule for free shipping, it works on all shipping methods (Flat rate, table rates, ...) except in the UPS method. I have tried several configurations but nothing.

I have seen a thread in stackoverflow that is referenced:
https://stackoverflow.com/questions/45936908/free-shipping-code-is-not-working-for-ups-for-magento-2

Although the answer gives solution to mark a UPS shipping method as free ALWAYS. I need it works only with the coupon.

Does anyone have a solution to this problem?

Thanks in advance.


texts: Get product Quantity in cart for every single product

texts:
$cart = Mage::getModel('checkout/cart')->getQuote();
    $cartTotal =$cart->getGrandTotal();
    $cartItems = $cart->getAllItems();
            foreach ($cartItems as $item)
            {
                $_product = $item->getProduct();
                $id=$_product->getId();
                $qty = $_product->getQty(); //get product Qty
                $image=$_product->getImageUrl();
            }


texts: Shopping Cart Price Rules: Fixed amount % Percentage MIX

texts:
Magento 1.9.1

I want to give my clients 28$ discount on a list of particular items. My problem, is that some of the item's price is below 28. So with my "fixed price" rule i end up giving customers free money.

Question: Is it possible to have a mix of % and fixed value? So the rule will be "give 100% discount on the item, but this 100% should not exceed 28$?"


texts: How to display Order subtotal in Order success page in Magento2?

texts:
I have tried the steps mentioned in this link:

Magento 2 Get order total on success page?.

In one of the answer, it is saying that to update the block

"Magento\Checkout\Block\Success"

to

"Magento\Checkout\Block\Onepage\Success".

Can anyone help me for this? I tried from my end but it gives me a blank page.

As a frontend developer, I am not that much good in Magento2 coding.


texts:
$emails = ["'".$c_email."'", "'".$em."'"];
 $pdfFile = 'pub/pdf/13_rajeshnagappan2016@gmail.com.pdf';
 $this->inlineTranslation->suspend();
 $transport = $this->_transportBuilder->setTemplateIdentifier('enquiry_test_template')->setTemplateOptions(
     [
         'area' => Area::AREA_FRONTEND,
         'store' => $this->_storeManager->getStore()->getId(),
     ]
 )->setTemplateVars(
     [
         'message' => 'this is test with send mail',
     ]
 )->setFrom(
     [
         'email' => 'rajeshnagappan2017@gmail.com',
         'name' => 'Test'
     ]
 )->addTo($eml)


texts: Magento 2 - jQuery validation remote method

texts: I'm developing a custom form with a username that require validation at server side to check if the username exists. How can I apply the remote method of jquery validation plugin in Magento 2?


texts: What is Cleanup Probability Settings For OAuth

texts:
I am not getting the implementation of Cleanup Probability settings which you can find at Stores > Configuration > Services > OAuth > Cleanup Settings > Cleanup Probability.
From the Magento docs, it has below definition

Specifies the number of OAuth requests before cleanup is launched. Do
not enter 0 to disable cleanup.

But if you check it's usage, you will see below code
Method: \Magento\Integration\Model\Oauth\Token::afterSave()
public function afterSave()
{
    parent::afterSave();

    // Cleanup old entries
    if ($this->_oauthData->$this->_oauthData->isCleanupProbability()()) {
        $this->_getResource()->deleteOldEntries($this->_oauthData->getCleanupExpirationPeriod());
    }
    return $this;
}

So whenever a token saves happens, then if the condition $this->_oauthData->isCleanupProbability() met, then it will remove then old token entries.
Now checkout the isCleanupProbability() method.
Method: \Magento\Integration\Helper\Oauth\Data::isCleanupProbability()
public function isCleanupProbability()
{
    // Safe get cleanup probability value from system configuration
    $configValue = (int)$this->_scopeConfig->getValue(self::XML_PATH_CLEANUP_PROBABILITY);
    return $configValue > 0 ? 1 == \Magento\Framework\Math\Random::getRandomNumber(1, $configValue) : false;
}

The default value of $configValue above is 100. That means the above method depends on 1 == \Magento\Framework\Math\Random::getRandomNumber(1, 100) expression. The chance of becoming this condition true is rare.
So basically, removing expired tokens based on a random condition does not make sense to me. I can update this setting to 1 which will always trigger the removal process. I feel this settings needs to be a select box with values "Yes", "No" and do the operation accordingly.
Or we dont need this checking here at all. This operation makes sense in a cron job and do not need to do in a token save operation.
If you see any other valid usage of this setting, then please share it here. Cheers!


texts: Magento 1.7: I can't stop reindex process

texts:
I'm trying to separate magento back end and front end in 2 nodes. I follow the HOW-TO on magento site. Now I have two installation of magento that work properly. My problem comes when  magento start reindex process. It doesn't stop, it's in pending state since friday (5 days).
I try to stop it by removing all locks file in /var/locks folder and restarting apache, but nothing has changed. Now I can't restart it because magento throw me an exception because reindex is in progress and I can't install any extension.

How can I restore the state of reindex process?


texts: Are truncate, nl2br, and escape real UI Component Column Configurations

texts:
In Magento 2.1, the review_listing UI component contains column configurations that look like this

#File: vendor/magento//module-review/view/adminhtml/ui_component/review_listing.xml
<column name="detail">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="filter" xsi:type="string">text</item>
            <item name="label" xsi:type="string" translate="true">Review</item>
            <item name="sortOrder" xsi:type="number">50</item>
            <item name="truncate" xsi:type="number">50</item>
            <item name="nl2br" xsi:type="boolean">true</item>
            <item name="escape" xsi:type="boolean">true</item>
        </item>
    </argument>
</column>

There are three arguments (truncate, nl2br, and escape) that don't exist in any other UI Component's configuration.

Additionally, the current grid listing available at Marketing -> Reviews is not a UI Component generated grid listing -- its an old school PHP generated grid.  i.e. ui_component/review_listing.xml.

All that leads me to the question: Do the truncate, nl2br, and escape attributes actually do anything?  If so, where's this functionality implemented?  A cursory search of the KnockoutJS template and RequireJS view models for a UI component don't turn up anything obvious -- but it's pretty easy to miss things in a system this complex.


texts: Magento - Canonical URL for catagory page is not taking

texts:
I am trying to add a canonical URL in category page custom design. But it is not taking.

Here is my code,

<reference name="head">
    <action method="addItem"><type>skin_js</type><name>technopro/vendors/js/moment.min.js</name></action>
    <action method="addItem"><type>skin_js</type><name>technopro/vendors/js/bootstrap-datetimepicker.js</name></action>
    <action method="addItem"><type>skin_css</type><name>slider/slick.css</name></action>
    <action method="addItem"><type>skin_css</type><name>slider/slick-theme.css</name></action>
    <action method="addItem"><type>skin_js</type><name>slider/slick.js</name></action>
    <action method=”removeItem”>
        <type>link_rel</type>
        <name>https://www.examplesite.com/cochin/mri-scan-cost</name>
    </action>
    <action method=”addLinkRel”>
        <rel>canonical</rel>
        <href>https://www.examplesite.com/cochin/mri-scan-cost/</href>
    </action>
</reference>
<reference name="content">
    <block type="forms/forms" template="healthcheckupforms/mriscan.phtml"/>
</reference>

Canonical URL is not taking it is showing in source code as,

a href="https://www.examplesite.com/cochin/mri-scan-cost"

But it should be shown as,

link rel="canonical" href="https://www.examplesite.com/cochin/mri-scan-cost"


texts: How can i set limit to text area in " Email to a friend "

texts: I want to set a maximum length of words to the "message" text field in the "email to a friend" template.


texts: How to add **Note in Product Custom Option Magento 2

texts:
I want to add some description below to the each product custom option, Is there any way?

Plese find below product screenshot:


texts: bundles - how to remove price from associated products in cart

texts:
I have Bundle product, with fixed price. but when I add it to the cart it shows 0.00 or price for individual items associated in bundle below product.
http://prntscr.com/clt0em

How to removce those individual prices and leave only main price for bundle.
Additional problem is that those prices are without tax, so customer is confused. I would like to remove them completely, which file to change?

Thanks


texts: Magento and Authorize Suspected Fraud Credit Memo

texts:
When using authorize.net as payment gateway,

why does it set transaction_id to null on the invoice generated when authorize.net returns a suspected fraud code. Later when the transaction is approved on authroize.net and I run get payment update to so that it changes the magento order state to processing allowing me to ship the product which is all fine.

Then later if I need to perform a credit memo on this transaction I can't. After tracing all the conditionals in magento I realized it was because "transaction_id" is set to null on all authorize.net suspected fraud transactions.  This needs to be set to 1 in order for the refund option to be given.

Are there any explanations on why the behavior is like this and if there are any solutions to this?


texts: Magento 2 not load google fonts google pagespeed

texts:
Is there a way to not load the
    http://fonts.googleapis.com/css?family=Bitter|Open+Sans:300,400,600,700

Because pagespeed gives a penalty for render blocking css...

Also maybe other tips and tricks for the render blocking JS?


texts:
I have a question while I were trying to get report (customer by number of order purchase) from magento admin, I got the memory limit error when tried to pull report for last 6 month and I selected "yearly" option from "show by dropdown".

I checked the memory limit and found 512M, so I changed it to 1G.

Now for last 6 month there is no problem but when I tried to pull report for last 1 year there is again memory limit issue.

I can extend the memory limit but is it really needed? like is there any problem with magento set up because if I will extend it to 2G then it will create problem for last 2 years, so extending memory limit is not seem to be a solution.

Please let me know if is there anything which I can do here?


texts: Loading a product collection through multiple stores

texts:
We've created an additional indexer that is started by using the backend indexer functions. We have flat tables enabled. We have multiple storeviews that correspond to different languages.

The following code is an excerpt from the indexer code.

public function rebuildIndex ($productIds) {
  $stores = Mage::app()->getStores();
  foreach ($stores AS $store) {
    Mage::app()->setCurrentStore($store);
    $products = Mage::getModel('catalog/product')
      ->getCollection()
      ->setStore($store)
      ->addAttributeToFilter('status', 1)
      ->addAttributeToFilter('visibility', array ('in' => array (Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_SEARCH, Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH)))
      ->addAttributeToSelect('*')
      ->setPageSize(1000)
      ->setCurPage(++$page);
  }
}

The problem is that for the second and third store, the products loaded use the language of the first storeview.

We've tried finding out what the problem is. So far, we've seen that when using flat tables, the product flat tables created are these:

catalog_product_flat_1
catalog_product_flat_2
catalog_product_flat_3

The number at the end corresponds to the storeview (and therefor the language). However, in all cases, the generated SELECT statement selects from the first table, making the language of the products loaded in all 3 storeviews the language of the first storeview.

We can't disable flat tables (which we tried, and that fixes the problem). Is there any way to load the products for each of the storeviews?


texts: Can't find category_ids in of each product in product collection

texts:
How can we include category_ids in product collection getData? Join field didn't work for me.

For example, look at the below code

Mage::getModel('catalog/product')->getCollection()
            ->addAttributeToSelect('color','left')
            ->addAttributeToSelect('footerwear_style','left')
            ->addAttributeToSelect('footwear_common_features','left')
            ->addAttributeToSelect('keywords_for_search','left')
            ->addAttributeToSelect('url_path', 'left')
            ->addAttributeToSelect('image', 'left')
            ->getData();

Not returning category_ids, See the result i got

{
0 => [
  attribute_set_id: "4"
 color: null
 created_at: "2020-05-28 03:04:52"
 entity_id: "40"
 entity_type_id: "4"
 final_price: "0.0000"
 footerwear_style: "50,53,59,63"
 footwear_common_features: "111,194,118"
 has_options: "1"
 image: "/3/5/35500249_g_1400x1630_4.jpg"
 keywords_for_search: "35500249, 00249, GB00249, Georgia, Georgia Boots, Georgia Boot Georgia Giant Waterproof Work Boot, black work boots, work boots, waterproof work boots, black waterproof work boots, waterproof boots, 6" soft toe boots, 6 inch soft toe boots, 6" boots, 6 inch boots, soft toe work boots, comfortable boots, quality work boots, slip resistant work boots, leather work boots, boots, lace up boots, botas de Trabajo con punta suave, botas impermeables, botas de trabajo impermeables, botas de trabajo comodas, botas antideslizante
↵
↵
↵
↵
↵"
max_price: "144.9800"
min_price: "144.9800"
minimal_price: "144.9800"
name: "Georgia Giant Waterproof Work Boot"
price: "0.0000"
required_options: "1"
sku: "35500249"
tax_class_id: "4"
tier_price: null
type_id: "configurable"
updated_at: "2020-05-28 03:04:52"
url_path: "georgia-giant-waterproof-work-boot"
visibility: "4"
]
}

Please advise. Thanks


texts:
I've set limit display product 24/each page.

Every time when I try open page, then display all products.

https://czasowewyprzedaze.pl/accessories-men.html

Any solution?


texts:
I was trying to add a camelCased class into the body tag, is there some way to do it? I'm using this:

<reference name="root">
  <action method="addBodyClass"><classname>camelCasedClass</classname></action>
</reference>

But it outputs:

<body class="catalog-category-view camelcasedclass">

Obviously i could change the class name, but it come from a third party lib and I don't wanna change it.


texts: Product attributes: what's the effect of scope options

texts:
Comparing product attributes in two magento installs, I see that some attributes have a global scope in install 1, and store view scope in install 2. I haven't created these attributes myself, and I don't know if there was a special reason to do this.

Now I wonder what the effect is of this setting.

Edit: at first I wrote "system scope" instead of "global scope", because it was translated like that for my language.


texts:
Magento1 to Magento2 Migration Process Step

Know you free tool plugin available and file both migration

Lets me know


texts: Which phtml is used for displaying the results of searched products

texts:
To display the result of the searched products(CatalogSearch), which phtml template is getting called.

I need to place that phtml file in my custom theme for overriding the same.

I belv it is result.phtml


texts:
Preconditions

Magento 2.2.4 (upgraded from Magento 2.2.3 successfully)

Steps to reproduce

Go to configurable product in Frontend and add it to Shopping Cart (e.g. 1 x T-Shirt in Size L and colour white )
In the same product, add another one (e.g. 1 x T-Shirt in Size M and colour red) to Shopping Cart

Expected result

There are two products (1 x T-Shirt in size L and colour white and 1 x T-Shirt in size M and colour red)
in Mini-Shopping Cart and normal Shopping Cart

Actual result

By adding 1 x T-Shirt (L, white) everything is ok.
But if I add a second T-Shirt (M, red) within the same product, in the shopping carts is shown 1 x T-Shirt in L, white and 2 x T-Shirts in M, red, although I only added one product each.
The strange thing is, that if I refresh the site between adding the two T-Shirts, everything is shown correctly.
That means:
Adding first T-Shirt (L, white) to cart -> ok -> refresh the product site in frontend-> adding second T-Shirt (M, red) to cart -> everything is ok.

Can somebody reproduce this error?

Thanks a lot for your help!


texts: URL to login with redirect URL after completion

texts:
I have used ->isLoggedIn() method to detect whether a Magento user is logged in at that exact point.  Now, I need to direct them to login IF they are not logged in, and specify a redirect URL upon success (which is not the same as the current URL - instead it will need a few extra parameters).

How do I do this?  BTW we have Magento 1.4

I will be using:

Mage::getUrl(‘customer/account/login’);

to get the url, but it's how to redirect to a point that I don't know.

EDIT..
@Marius' post below was helpful and worked, but in some cases you may need to do a base64_encode yourself.  essentially, whatever your login url is, make sure you add a trailing slash /, then add referer/nnnnnn where nnn is the base64_encode'd URL.  To encode with JAVASCRIPT, I found this function, you can add it to your utilities:

https://stackoverflow.com/questions/246801/how-can-you-encode-a-string-to-base64-in-javascript
to here:
http://phpjs.org/functions/base64_encode/

base64_encode: function(data) {
    //  discuss at: http://phpjs.org/functions/base64_encode/
    // original by: Tyler Akins (http://rumkin.com)
    // improved by: Bayron Guevara
    // improved by: Thunder.m
    // improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // improved by: Rafał Kukawski (http://kukawski.pl)
    // bugfixed by: Pellentesque Malesuada
    // example 1: base64_encode('Kevin van Zonneveld');
    // returns 1: 'S2V2aW4gdmFuIFpvbm5ldmVsZA=='
    // example 2: base64_encode('a');
    // returns 2: 'YQ=='
    var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
    var o1, o2, o3, h1, h2, h3, h4, bits, i = 0,
        ac = 0,
        enc = '',
        tmp_arr = [];
    if (!data) return data;
    do { // pack three octets into four hexets
        o1 = data.charCodeAt(i++);
        o2 = data.charCodeAt(i++);
        o3 = data.charCodeAt(i++);

        bits = o1 << 16 | o2 << 8 | o3;

        h1 = bits >> 18 & 0x3f;
        h2 = bits >> 12 & 0x3f;
        h3 = bits >> 6 & 0x3f;
        h4 = bits & 0x3f;

        // use hexets to index into b64, and append result to encoded string
        tmp_arr[ac++] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4);
    } while (i < data.length);
    enc = tmp_arr.join('');
    var r = data.length % 3;
    return (r ? enc.slice(0, r - 3) : enc) + '==='.slice(r || 3);
}


texts: Fatal Error : when get child block using controller

texts:
When get block using controller got fatal error like

  Fatal error: Call to a member function getPostUrl() on null in
  /app/design/frontend/theme/Vendor_Module/templates/post/list/item.phtml
  on line 16

Here is controller.

<?php

namespace Vendor\Module\Controller\Category;

class Index extends \Magento\Framework\App\Action\Action
{

    public function execute()
    {
        $id = $this->getRequest()->getParam('id');

        $objectManager =  \Magento\Framework\App\ObjectManager::getInstance();
        $category_postdata = $objectManager->get('\Vendor\Module\Model\PostFactory');

        $layout = $this->_view->loadLayout();
        $this->_view->renderLayout();

        $_postCollection = $category_postdata->create()->getCollection();
        $_postCollection->addCategoryFilter(['in' => $id]);

        $objectManager =  \Magento\Framework\App\ObjectManager::getInstance();
        $resultJsonFactory = $objectManager->get('\Magento\Framework\Controller\Result\JsonFactory')->create();

        $resultPage = $objectManager->get('\Magento\Framework\View\Result\PageFactory')->create();
        $block_set = $resultPage->getLayout()->createBlock('Vendor\Module\Block\Index')->setTemplate('post/list.phtml');
        $block = $resultPage->getLayout()->createBlock('Vendor\Module\Block\Post\PostList\Item')
                ->setTemplate('post/list/item.phtml')
                ->setChild('test.posts.list.item',$block_set)
                ->setPost($_postCollection)
                ->toHtml($_postCollection);

        $response = $resultJsonFactory->setData($block);

        return $response;
    }
}

Here is item.phtml

<?php
$_post = $this->getPost();
$_postUrl = $_post->getPostUrl(); // line num 16
$_postName = $block->escapeHtml($_post->getTitle(), null, true);
?>

<li class="post-holder col-sm-4 col-xs-12   post-holder-<?php echo $_post->getId() ?>">

            <a href="<?php echo $_post->getPostUrl() ?>">
                <img src="<?php echo $block->resize($_post->getThumbnailimage(),335,280); ?>"/>

                <a class="post-item-link"
                   href="<?php echo $_postUrl ?>">
                    <?php echo $_postName; ?>

                <a class="post-item-link"
                   href="<?php echo $_postUrl ?>">
                    <?php echo $_postName; ?>

Here is block

<?php

namespace Vendor\Module\Block\Post;

class PostList extends \Vendor\Module\Block\Post\PostList\AbstractList
{

    public function getPostHtml($post)
    {
        return $this->getChildBlock('test.posts.list.item')->setPost($post)->toHtml();
    }

}


texts: magento 2 how to add bootstrap classes in checkout_index_index.xml?

texts:
How to use bootstrap classes in checkout ?
Example -

here shipping information & payment information show

And here order summary will be show


texts: How to assign Bulk products to Attributes in an easy way?

texts:
I had  lots of products in my magento site. I created some few attributes like color, size etc.

A) Is there any easy of assigning those bulk products to the respective attributes?

B) Is that possible to use some SQL queries in phpmyadmin and so can able to assign products to  respective attributes?

pls kindly clear me this..


texts:
I cannot translate the text "in stock" on a product sheet.
I translated it in the csv file but when I change the size of the product the text changes back to "in stock"
After several hours of research and modifications I despair


texts: Mixing up of option labels of (multi)select attributes after saving

texts:
I upgraded to Magento 1.9.3.0 and now the following bug occurs:

If I save a select or multiselect attribute in admin panel, the option labels for the stores get mixed up or deleted.
Example: After saving the attribute the option label for english store is now on the german store but the label from another store gets completely deleted. After each saving one more store loses his option label until all labels are deleted and the labels are mixed up (randomly!?) again.
(note: i am talking about the select or multiselect option labels, not the attribute labels)
note2: the mixing of the labels occurs only between stores and not between the options

Can anyone confirm this behavior or can anyone test this on a dev machine?

I am wondering if it is a Magento bug or some interference with my extensions.


texts: Display a custom attribute below product name in the front-end Magento 1.9.3.8

texts:
I need to display a custom attribute bellow the product name and I don't know how can I call this attribute.

I am editing the file /app/design/frontend/templatemela/MAG100219_1/template/catalog/product/view.phtml
But how can I call this attribute in php? I tried calling a string echo with the name I put in the attribute, but it didn't work.

Code is as below:

<?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?>

<?php echo $_helper->productAttribute($_product, $_product->getName(), 'registroinmetro') ?>


texts: How to create home page cms template from local.xml in magento

texts:
I am creating a magento theme. I set 2columns-right layout for all page. Now I want to create a template and set 1columns layout for home page from local.xml. But admin home page cms selected layout still remains and my created and admin home page cms content both still show. So how can I avoid admin home page cms layout and content without disable and set 1columns layout for home page.  Any suggestion and help are appreciated. Thank you.

Here is my code:

<?xml version="1.0" encoding="UTF-8"?>
<layout>
    <!-- Global Operations -->
    <default>
        <reference name="root">
            <action method="setTemplate">
                <template>page/2columns-right.phtml</template>
            </action>
            <reference name="content">
                <block type="core/template" name="some_random_name" template="cms/home.phtml"/>
                <action method="setTemplate"><template>page/1column.phtml</template></action>
            </reference>
        </reference>
    </default>
</layout>


texts: Method 'getExtensionAttributes' must be overridden Error in Magento 2.1.2 - NGINX Server

texts:
I have installed a fresh clean package of Magento 2.1.2 but i am getting the following error:

  Method 'getExtensionAttributes' must be overridden in the interfaces which extend 'Magento\Framework\Api\ExtensibleDataInterface'. Concrete return type must be specified. Please fix :\Magento\Catalog\Api\Data\ProductInterface

I have changed the opcache.save_comments to 1 in my opcache.ini file, and still didn’t work, anyone have a clue how to fix this?

By the way, I have installed a earlier version of Magento 2 and everything works fine with no error, it this a Magento 2.1.2 Bug?


texts: product collection still show not in stock products

texts:
Hi I'm going crazy with this function. Although I added In stock Filter, it still return Not in Stock products. Where I'm wrong ?

public function getRelatedProducts($limit = false) {
        $product = Mage::registry('current_product');

        if ($category = Mage::registry('current_category')) {

        } elseif ($product) {
            $ids = $product->getCategoryIds();

            if (!empty($ids)) {
                $category = Mage::getModel('catalog/category')->load($ids[0]);
            }
        }

        if ($category) {
            if ($limit === false) {
                $limit = Mage::getStoreConfig('autorelated/general/limit');
            }

            $products = Mage::getResourceModel('catalog/product_collection')
                ->addAttributeToFilter('visibility', array(
                    Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH,
                    Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG
                ))
                ->addAttributeToFilter('status', 1)
                ->addAttributeToFilter('is_in_stock', 1)
                ->addAttributeToFilter('qty', array("gt" => 0))
                ->addAttributeToFilter ('price', array ('gt' => 1))
                ->addCategoryFilter($category)
                ->addAttributeToSelect('*')
                ->setPageSize($limit);

            Mage::getSingleton('cataloginventory/stock')->addInStockFilterToCollection($products);

            if ($product) {
                $products->addAttributeToFilter('entity_id', array(
                    'neq' => Mage::registry('current_product')->getId())
                );
            }

            $products->getSelect()->order('updated_at','desc');

        } else {
            return false;
        }

    return $products;
}


texts: How to confirm newsletter subscriber mail id in magento admin panel

texts: I have gotten a few new subscribers via my website. But the subscriber status not activated in Magento panel. How do I change the status?


texts: Magento 2 Commerce Edition custom theme product image not showing on home page

texts:
The product image showing on Both PLP & PDP page, when i try to add on home page by using widget is not visible, the name and price showing but image missing,
I am creating custom theme from blank theme, anything else i need to configure based on file structure.


texts: Magento2 How to get parent product(configurable) by child product using REST API

texts:
How to get parent product(Configurable) by child product(Simple) sku or id using REST API?

I can't find in this list:
https://devdocs.magento.com/swagger/index_22.html

plz help me..


texts:
so I would like to change this css

  .navigation,
  .breadcrumbs,
  .page-header .header.panel,
  .header.content,
  .footer.content,
  .page-wrapper > .widget,
  .page-wrapper > .page-bottom,
  .block.category.event,
  .top-container,
  .page-main {
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
    padding-left: 20px;
    padding-right: 20px;
    width: auto;
  }

so it does not appy to .page-main

  .navigation,
  .breadcrumbs,
  .page-header .header.panel,
  .header.content,
  .footer.content,
  .page-wrapper > .widget,
  .page-wrapper > .page-bottom,
  .block.category.event,
  .top-container{
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
    padding-left: 20px;
    padding-right: 20px;
    width: auto;
  }

i get that I can change the variables for example @layout__max-width with my _theme.less but where does it say for which classes those styles apply?

Also I still refuse to believe that this is really the best way to customize my css. Do I really have to search 20 minutes trough all those .less files just to find some variable so i can override it with my _theme.less file.


texts: Install bluefoot on Magento 2.3.0 Commerce

texts:
When I try to install gene/bluefoot on Magento EE 2.3.0 with composer I've got this error :

Problem 1
- Conclusion: don't install gene/bluefoot 1.0.31
- gene/bluefoot 1.0.30 conflicts with magento/magento2-base[2.3.0].
- gene/bluefoot 1.0.30 conflicts with magento/magento2-base[2.3.0].
- magento/magento2-base 2.3.0 conflicts with gene/bluefoot[1.0.30].
- Installation request for gene/bluefoot ^1.0 -> satisfiable by gene/bluefoot[1.0.30, 1.0.31].
- Installation request for magento/magento2-base (locked at 2.3.0) -> satisfiable by magento/magento2-base[2.3.0].

I followed documentation by typing :

composer require gene/bluefoot:^1.0

I saw in composer.json of magento2-base this line :

"conflict": {
    "gene/bluefoot": "*"
 }

Does someone already install this module ?


texts: Getting Fatal Error while creating order from admin

texts:
I am getting below error on Select customer step after clicking on Create Order button.

Call to a member function getStore() on a non-object in /app/code

/core/Mage/Sales/Model/Quote/Payment.php

    public function getMethodInstance()
    {
        $method = parent::getMethodInstance();
        return $method->setStore($this->getQuote()->getStore());//Error line
    }

I googled this error and found that if we truncate or delete rows from table sales_flat_quote_payment it works perfectly.

But I can't do this on my live site. Is there any other solution?


texts: Magento 2 in how to remove the frontend in products empty values?

texts:
How to remove the products empty values ?

How to solve this?


texts: Vue Storefront - how to install and integrate with Magento2

texts:
How to Vue storefront install in magento2
i have find here documentation
but not more clarification how to connect with magento2

Any help would be appreciated.

Thanks.


texts: How content from layout_update table is set?

texts:
I have a row in the layout_update table that adds element to pages. I'd like to know how [some xml] from this row was set in the backed:

id  | handle  | xml        | sort_order | updated_at
194 | default | [some xml] | 1          | 0000-00-00 00:00:00

Can it be edited in backend or do I need to do this directly in the db?


texts: An error occurred while saving the URL rewrite Magento

texts:
I'm currently running Magento ver. 1.9.0.1
I would like to remove the .html prefix at the end of all url's on my site, but when I remove the .html from System > Configuration > Catalog > Search Engine Optimizations > Category URL Suffix and I try to reindex the "Catalog URL Rewrites", I got this error "An error occurred while saving the URL rewrite".
How can I fix this, so I can just remove the .html prefixes from my links?


texts: i moved magento1 store from one server to another server, it is displaying only half page except for homepage and admin, phtml files and cms pages are not loading.


texts: how to get main product image url in phtml file?

texts:
I want to get image url of  product showing ,on product description page in phtml file.
any help ?


texts: Installation issue : Uncaught ReflectionException: Class Magento\Framework\App\ResourceConnection\Proxy does not exist

texts:
I'm getting this error when I try to access the base website url

Fatal error: Uncaught ReflectionException: Class Magento\Framework\App\ResourceConnection\Proxy does not exist in /var/www/html/vendor/magento/framework/Code/Reader/ClassReader.php on line 19

I have deleted all the cache files with :
sudo rm generated/* var/cache/* di/* page_cache/*

The setup:upgrade run without issues. Any ideas where the error comes from ?


texts: How I can maintain an active session in Magento (user session)?

texts: Anyone know how I can keep a user session within Magento , I wish that even if the user closes the browser or turn off the computer to access my website your account or session is still open , as I can do it active ? so far I have only lengthened the time Cookie, someone will know a method that can be applied or how this is done ?


texts: Magento2 terms and condition in popup with cms block not working

texts:
I have Magento 2.2.3 and activated terms and conditions. And I added

{{block class="Magento\\Cms\\Block\\Block" area='frontend' block_id="agb"}} {{block class="Magento\\Cms\\Block\\Block" block_id="agb"}}

but in popup no text is shown, only above code is shown. Anyone an idea what is wrong? I use same snippet in other shop and it is working

Thanks!
Martin


texts: How to add validation on custom textbox field on checkout page Magento 2.2

texts:
I added custom field in shipping method division on checkout page.

But i want to add validation on it.

So, how to add validations required and numeric to that field.


texts: Package fabpot/php-cs-fixer is abandoned message in Magento 2

texts:
I am using Magento 2.0.5. When I run the composer update or composer install command it's showing the following warning.

  Package fabpot/php-cs-fixer is abandoned, you should avoid using it.
  Use friendsofphp/php-cs-fixer instead.

I read https://github.com/paliarush/magento2-vagrant-for-developers/issues/46 but didn't get anything.


texts: Magento 1.8 - Very strange issues with redirects caused by our hosts tech support team

texts:
We asked our hosts tech support to change the 302 redirects to 301's...after numerous attempts by them i gave up on them and accepted that they could not do it.

Now they have left us where none of the sidebar menus on our homepage work because they link to a page which looks like the correct one but has no functioning price drop downs & the url is wrong in the browser bar. (The correct page still works if typed into the browser bar so it still exists.)

When most links are clicked, the page fades out and a blue loading icon appears which is dramatically slowing the load time down. This does not happen when you click the " about us" link for some reason.

We have cleared cookies, tried different pcs, cleared the CDN cache & empited the var/sessions and var/cache folders but nothing has fixed the issue.

If you visit the homepage and click the "home" button, the side menu works but the homepage has no banner slider so to me it seems it is a different version of the website...

This has been through about 10 technical gurus and they have not been able to fix it at all.

Does anyone have any idea what siteground have done to my website or how to fix it? I have tried restoring the .htaccess file that was in place previously but this has not fixed the issue so basically my website is broken.


texts: Strange error - custom module template calling by using {{block class="" name="" template="" }} not working

texts:
I am trying to call 3 the script on my cms page pagebuilder,
The thing is, first one only return the value, but i individually tested each values is working, if add at the same time three values first value only working, if add two scripts first only working, i mean which script first that is only working, remaining not working.
{{block class="Amasty\Storelocator\Block\Location" name="location.block.address" template="Zero_Storelocator::home-page-mobile1.phtml" }}
{{block class="Amasty\Storelocator\Block\Location" name="location.block.mobile" template="Zero_Storelocator::home-page-mobile2.phtml" }}
{{block class="Amasty\Storelocator\Block\Location" name="location.block.hours" template="Zero_Storelocator::home-page-mobile3.phtml" }}


texts: Upgrade from Magento 2.2.8 to 2.3.6, which steps do i have to follow?

texts:
I have a Magento store and want to Upgrade from Magento 2.2.8 to 2.3.6.
I would like to retain customers and orders, reviews, newsletter data, category and products.
Current store using Porto theme and no other heavy 3rd party modules and site does not have more customization.
Other notable points

Catalog size around 2K
Customers and orders around 2000
Single domain with single store, no storeview

Here are the steps that are following:

Taken backup of code base
Taken backup of database
downloaded latest Porto theme
PHP version changed to latest 7.4
All 3rd party modules are downloaded compatible with Magento 2.3
will be running following command
composer require magento/product-community-edition=2.3.6 --no-update
composer update -vvv
then regular m2 upgrade commands with var,generated remove and all

Question:

Are the above steps enough to go ahead with Magento upgrade? Just want to make sure that I have seen a lots of questions related to 2.2.x to 2.3.x?
do i have to create a separate theme? Is it good?
Any hints on Porto theme upgrade, I do have latest Porto theme version.


texts: Magento 2 - How to run a script asynchronously?

texts:
In Magento 2, I trigger catalog_product_save_before event.
But this observer takes a lot of time to run and it result with a 504 error.
So i would like to know if it is possible and how to run an observer asynchronously even if the event is "save_before" ?
Thanks for your help


texts: Class rewrite / extends and constant validity?

texts:
I try to implement a module in which I need to rewrite Mage_Catalog_Model_Product_Option.

I then add the following file to the module

<?php
class Mine_Custoptiontype_Model_Catalog_Product_Option extends Mage_Catalog_Model_Product_Option
{
    const OPTION_GROUP_FILESSTATE       = 'filesstate';
    const OPTION_TYPE_FILESSTATE_TYPE   = 'filesstate_type';
    /**
     * Get group name of option by given option type
     *
     * @param string $type
     * @return string
     */
    public function getGroupByType($type = null)
    {
        if (is_null($type)) {
            $type = $this->getType();
        }

        $group = parent::getGroupByType($type);
        if( $group === '' && $type = self::OPTION_TYPE_FILESSTATE_TYPE ){
            $group = self::OPTION_GROUP_FILESSTATE;
        }
        return $group;

    }
    /**
     * Group model factory
     *
     * @param string $type Option type
     * @return Mage_Catalog_Model_Product_Option_Group_Abstract
     */
    public function groupFactory($type)
    {
        if( $type === self::OPTION_TYPE_FILESSTATE_TYPE ){
            return Mage::getModel('custoptiontype/catalog_product_option_type_filesstatetype');
        }
        return parent::groupFactory($type);
    }
}
?>

and modify my model config.xml file :

<models>
  <catalog>
    <rewrite>
      <product_option>Mine_Custoptiontype_Model_Catalog_Product_Option</product_option>
    </rewrite>
  </catalog>
</models>

but when I would like to access the OPTION_GROUP_FILESSTATE and OPTION_TYPE_FILESSTATE_TYPE using app/code/core/Mage/Catalog/Model/Resource/Product/Option.php,

I have got errors saying these 2 constant do not exist…

Help me please !


texts: Magento ver. 1.9.1.0 Sending 1st email only / not removing form core_email_queue

texts: i setup Cron Job for Magento 1.9.1.0 its sending emails but sending 1st email again and again. I check table "core_email_queue", i think after Sending, Email should remove form this Queue/table but its still exist in the table & other emails are on pending.


texts: How to get Sub category names of a particular Parent category in magento 2.3

texts:
I want to fetch Sub categories name of a particular Parent category using Parent category Id.
Please note, i dont want to use Object manager directly in phtml file.
I am using block to write function.


texts: Magento 2 add an attribute to product using rest

texts:
I want to add an attribute to a product using rest api. I have created the attribute but not added to the product.

How can i add it to respective product using rest api?


texts: Magento 2: quote_address moved to sales_order_address automatically?

texts:
I created two new columns in quote_address and sales_order_address as shown below. When I first land on checkout, I manually (in the database using Sequel Pro) added '999' into the quote_address custom column 'custom_module_table_id' and then proceeded to checkout successfully.

Unfortunately, the data '999' wasn't automatically copied over into my new column in sales_order_address. Am I missing something? Do I need to make Magento aware that there's more data for it to copy across, or should the above have worked?

        $installer->getConnection()->addColumn(
        $installer->getTable('quote_address'),
        'custom_module_table_id',
        [
            'type' => \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
            'unsigned' => true,
            'nullable' => true,
            'default' => null,
            'comment' => 'Custom Table Id'
        ]
    );

    $installer->getConnection()->addColumn(
        $installer->getTable('sales_order_address'),
        'custom_module_table_id',
        [
            'type' => \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
            'unsigned' => true,
            'nullable' => true,
            'default' => null,
            'comment' => 'Custom Table Id'
        ]
    );


texts: Magento 1.9 change base url form http to https

texts:
I see HTTP mixed content found on my website.
I recently did https. This is my site

  https://www.legacyfurniture.net/

when i load i still see http  links for menu and base url.

I followed below steps still same.

  https://support.hypernode.com/knowledgebase/change-baseurl-magento1/
  and
  How to change base url from https://www.example.sg/ from https://www.example.sg/aaa?

Please help.


texts: 403 Permission Denied when exporting subscriber list

texts:
I am getting permission denied when attempting to export a csv list of subscribers. XML works fine. I am guessing there is a file that needs permissions updated.

I just can't find it.

Thanks.!


texts:
My category structure is set up like this:

Default Category

Category A

Category B

Category C
Category D

Category E

Category F

For each of the subcategories I'd like to retrieve the ID for the parent category directly below the default category. For example, on Category B, Category C and Category D, Category E, and Category F pages, Category A is the parent ID that I want.

I've tried every solution on this thread: How to get top parent Category from current category object?

None of these work for me on Magento 1.7.0.2.

Below is the code that I have so far, but in this code the value of $parentId becomes 0 (Default Category's id).

<?php
$_category = Mage::getModel('catalog/category');
$parentId = $_category->getParentId();

if ($parentId == 3): ?>
    echo $this->getChildHtml('banner_sale_mens');
endif;
if ($parentId == 59):
    echo $this->getChildHtml('banner_sale_womens');
endif;
?>


texts: Magento 2: Add specification tab to product page

texts:
At Magento 2 I had create attribute sets for every category.

In attribute set I had a folder with some attributes (visible on
frontend)
I need to add all this attributes to a tab with name specifications.
All these attributes are visible in comparison

How can I do this? Is any extension for that?


texts: Magento 2 : How can i add custom customer address field in e-mail template?

texts:
I have added one custom Field for customer address, and i want to display in checkout page, customer my account section and in All sales email template (In Billing and Shipping Address). Please help me, Thanks in advance.

I am using Magento 2.0.7


texts:
I inserted a product into the catalog from Magento admin panel with correct attributes (visibility, status, etc..). I checked into Magento db and the product exists.
The theme installed is the default theme and, at frontend, there isn't some products display and I don't see the inserted product. I try to search the product into entire store but the research don't produce some results.
Can you help me, please?
Thanks.


texts: Loading Product List Withing Module Configuration Section?

texts:
I've been asked to write a module which gives the option to add a simple (string) value to one or more products in the store.

I've created this functionality to add the attribute by editing an individual product. But it's been requested that the user should also be able to edit any product through the module's settings in Stores > Configuration > MyModule.

I have not seen this done in any other module so I would like to know if this is possible?

Eg:

In Stores > Configuration > MyModule > Settings, a table would be displayed showing every product for that store, with the option to set a value or a null value for the "my_attribute" field for that product.

Is this is something that is doable / good practice in magento 2, or would this sort of thing always be done through the "Products" view?


texts: Which [varien] object is required to successfully run getCompilerStatus()?

texts:
I'm attempting to programmatically determine if Magento's compilation status is enabled or disabled. I found the function getCompilerStatus() in app/design/adminhtml/default/default/template/compiler/process.phtml that allows you to determine the status in the admin panel. I am however trying to run this from a "workbench" script outside of the admin panel. Here is what I have:

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

# workebench script
require_once('app/Mage.php');
umask(0);
Mage::app();

echo "Checking Compilation Status<br />";

// Code that would work in admin panel
echo $this->getCompilerStatus();

The result: Fatal error: Using $this when not in object context

So I Googled the function and came across the following link from Magento which shows the "Varien Objects" required: http://docs.magentocommerce.com/Mage_Compiler/Mage_Compiler_Block_Process.html#getCompilerStatus

From this it appears that I need to load Mage_Core_Block_Abstract, Mage_Core_Block_Template and I'm assuming I can drop Mage_Adminhtml_Block_Template as my function does not require the admin panel.

Can anyone tell me if I'm going about this the right way? Thank you.


texts: Add html attribute maxlength to street input field in magento 2 checkout page

texts:
How to add new html attribute maxlength="10" to street input field on shipping address form.

Thanks


texts: set category page as default list page in magento 2

texts:
In Magento 1.x we can set category page as default list page by adding below coding into local.xml file

<catalog_category_default translate="label">
<reference name="content">
<block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
<block type="page/html_pager" name="product_list_toolbar_pager"/>
<action method="setDefaultListPerPage">
<limit>all</limit>All
</action>
<action method="setDefaultGridPerPage">
<limit>all</limit>
All
</action>
<action method="addPagerLimit"><mode>list</mode><limit>10</limit></action>
<action method="addPagerLimit"><mode>list</mode><limit>20</limit></action>
<action method="addPagerLimit"><mode>list</mode><limit>30</limit></action>
<action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit>All</action>
<action method="addPagerLimit"><mode>grid</mode><limit>12</limit></action>
<action method="addPagerLimit"><mode>grid</mode><limit>16</limit></action>
<action method="addPagerLimit"><mode>grid</mode><limit>24</limit></action>
<action method="addPagerLimit" translate="label">
<mode>grid</mode>
<limit>all</limit>
All
</action>
</block>
</reference>
</catalog_category_default>

In Magento 2.x Is there any option to change default page style as list page instead of Grid style.


texts: Is there a way to get the 5 tops search terms like in the Dashboard as array without having to query database->table directly sorting them popularity limit 5?


texts: How to load phtml file in checkout/onepage payment information section

texts:
I'm trying to load epayment.phtml file in checkout/onepage payment information section.

Page can't loaded in  checkout/onepage payment information section.

this is my code.

app\design\frontend\coolbaby\default\template\checkout\onepage\payment\methods.phtml

<!-- load epatment page-->
<?php
    echo $this->getLayout()->createBlock('core/template')->setTemplate('epayment/index.phtml')->toHtml();
?>
<!-- load epatment page-->

Epayment.xml:
app\design\frontend\coolbaby\default\layout\epayment.xml

<?xml version="1.0"?>
<layout version="0.1.0">
  <epayment_index_index>
    <reference name="root">
      <action method="setTemplate"><template>page/1column.phtml</template></action>
    </reference>
    <reference name="content">
      <block type="epayment/index" name="epayment_index" template="epayment/index.phtml"/>
    </reference>
  </epayment_index_index>
</layout>


texts:
I have the error  PHP Fatal error:

  Allowed memory size of 805306368 bytes exhausted

It is when I use one filter in catalog on Magento 2.

I changed php.ini memory_limit = 1G, but it is not working.

This is phpinfo:

and this catalog:

and the error is when I click in anywhere filter.

The code is in the core of Magento, It is supposed to work if it does not change.

Only I changed the site of filters

What I can do?

Thanks


texts: Magento 2: How to setup separate theme for desktop and mobile?

texts:
I want to load device wise (like mobile and tablet) theme in Magento 2.

How can I do that?

I have tried below code in User Agent Rules but not working for me:

 iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini


texts: Start Mailchimp automated campaign after products shipped

texts: how can I start an automated Mailchimp campaign after shipping products?


texts: Send an email a month after order is "complete"?

texts:
I neeed a recommendation on what's the best way to send an email 1 month after order is completed (it's an email that asks to review the product).

Should I use cronjob and check every day for orders that were created 1 month earlier? Or is there more elegant solution?


texts: Why is my category "vanishing" from the navigation menu after a period of time?

texts:
Let's say I open my product page and now I got following structure:

home -> category_x -> product_y

I think this is the normal case which we all knew. But after sometimes if I let the page open it will change to this:

home -> product_y

What is happening here and how could I prevent this?


texts: Remove map-content space on contacts page

texts:
I have a theme my mom bought and for the contacts page they had a map-content static block but I deleted it because I don't want a map but I see that there is still a space on the contacts page for it. How can I remove this space?

See link https://www.discreetlynice.co.za/english/contacts/


texts: Customer Fields for Edit on Admin Side Are Not Showing Up

texts: My Magento version is 1.8.1.0. The fields are missing on the customer edit page on admin side. Nothing shows up after I clicked on the green rows. How do I resolve this problem? Please see screenshot in the comment below.


texts: coupon code error message for guest customers

texts:
we created a coupon code for registered customers.

when guest try to apply coupon code, than it displaying message like "coupon code is not valid".

but i want to display message "coupon code will apply only for registered customers.

how to write different error message for different coupon codes.

let me know if you need any clarifications

please help me to find solution

thanks in advance


texts: Recurring Payment IPN variables confusion

texts:
I have created subscription type of products in Magento 2.2.5 CE. And when i tried to purchase subscription type product( recurring payment type) paypal returns three IPNs.

'txn_type' = cart/express_checkout(some times)
'txn_type' = recurring_payment_profile_created
'txn_type' = recurring_payment

The first one contains 'invoice' - magento's 'increment_id' but other two don't.

Instead they contains 'rp_invoice_id'. My question is how can I decide that all three IPNs are for the same order?

Thanks


texts: Magento 2 Paypal express checkout error on checkout page

texts:
I'm using magento 2.0.7 , and yesterday my website start to have a strange issue , without any change. Basicly I have 2 payment gateway options , one is for cc and it works fine , the other one is paypal express checkout , and it was working fint till yesterday. Now , when I go on the checkout page , and press the "Pay with Paypal" button , I get an error saying:

  You will be redirected to the PayPal website.

And if I press it while inspecting the page, I get this error:

  jquery.js:9666 PUT https://xxxxxx.xx/rest/default/V1/guest-carts/c4f575f8d139addc9bc11795acaf25fe/selected-payment-method 501 (Method Not Implemented)


texts: After upgrade to Magento ee 1.13 javascript breaks on single quote translations

texts:
I have recently upgraded an environment from a french customer form ee1.11 to ee1.13.

I am getting javascript errors allover for strings with single quotes, Alltough this was fixed a few versions ago the problem now turned up again.

While waiting for a response from Magento i would like to ask if anyone had any experience with this / has a possible temporary solution.

Example error below:

 SyntaxError: missing ) after argument list

'Qu'est-ce que c'est ?',