texts: Magento Model Filter by Category Returns No Products

texts:
I'm using Magento EE Lite (1.11.02) and I'm trying to load a collection of products by one single category. The following code functions as you would expect:

public function getProductList()
{
    $products = Mage::getModel('catalog/category');
    $productslist = $products->getProductCollection()->addAttributeToSelect('*');

    foreach($productslist as $product)
    {
        echo 'name: ' . $product->getName() . '
';
    }
}

It outputs the name of every product in the catalog (including the products in the category I'm trying to select in future examples). But as soon as I try to add any kind of category filter:

public function getProductList()
{
    $products = Mage::getModel('catalog/category')->load(3);
    $productslist = $products->getProductCollection()->addAttributeToSelect('*');

    foreach($productslist as $product)
    {
        echo 'name: ' . $product->getName() . '
';
    }
}

or:

public function getProductList()
{
    $products = Mage::getModel('catalog/category');
    $productslist = $products->getProductCollection()->addAttributeToSelect('*')
        ->addCategoryFilter(3);

    foreach($productslist as $product)
    {
        echo 'name: ' . $product->getName() . '
';
    }
}

It doesn't output anything. No errors, it just acts the way it would if zero products were loaded.

The products are in a subcategory of a root category. I've tried different categories, creating new categories, populating them with new items, I've checked their visibility, their status, I've tried a dozen different code snippets, nothing ever works.

Is there something wrong with my code? Is there some setting in categories that could cause it to be unfilterable? I'm running out of ideas, any help is very appreciated.


texts: How do I disable a manufacturer without deleting it

texts:
I need to temporary disable a manufacturer without deleting it completely
Is this possible?


texts: Magento2 - Price field is not visible with Custom Product Type

texts: I have created a custom product type but price field is not visible. Can some one help me to solve this problem


texts: Notification to the admin when any product goes out of stock in magento 2

texts:
Notification to the admin when any product goes out of stock in Magento 2
I used a module from GitHub to send a notification mail to the admin when any product stock quantity below 20,10,5. Also, I need additional customization to send a notification mail for out of stock product to the admin.


texts:
I have been working for 2 days for applying multiple coupon on cart
I know there are modules which are available for that. But i don't want to use it. I want some custom code so that i can apply more than 1 coupon code in the single order.

Please help. i am very tired after working on the same stuff.


texts: Magento 2 - How can we extend V1/products?searchCriteria to remove out of stock from the result

texts:
We are using Magento 2.3.5
When calling the V1/products?searchCriteria, the result contains out of stock items too.
We tried the filter option quantity_and_stock_status, but which is not working perfectly.
So is there any option to override the product collection in order to add stock condition with collection?
Tried with afterGetList by adding the stock condition, but the pagination getting wrong.


texts: Get Attribute With Underscore From Product Object?

texts:
The name of my attribute is Current Standards (default label)
The code of my attribute is current_standards
The type of my attribute is multiple select

However the following code run on a product object ($product) doesn't return any data that is clearly set, nor does it throw an error.

In Block:

class Display extends Magento\ConfigurableProduct\Block\Product\View\Type\Configurable
{

/* This class contains not construct method. */

public function getOptionsArray()
{
    $product = $this->getProduct();
    return $product->getTypeInstance()->getUsedProducts($product);
}

In Template/Summary:

foreach ($block->getOptionsArray() as $option) {
    $option->getData('current_standards')
    $option->getCurrentStandards()
}

Both fail to return any data.


texts: How use preference for core widget block class?

texts:
How override core block class for core Catalog Category Link widget?
I try:
<preference for="Magento\Catalog\Block\Widget\Link"
            type="Vendor\ModuleName\Rewrites\Block\Widget\Catalog\Category\Widget"/>

But this is not working.
Although, this is the correct block and I use deBag, I go into it, and it is also described in the widget itself.
Part from core widget.xml
<widget id="catalog_category_link"
            class="Magento\Catalog\Block\Category\Widget\Link"
            is_email_compatible="true"
            placeholder_image="Magento_Catalog::images/category_widget_link.png">
        Catalog Category Link
        <description translate="true">Link to a Specified Category</description>
        <parameters>
            <parameter name="id_path" xsi:type="block" visible="true" required="true" sort_order="10">
                Category
                <block class="Magento\Catalog\Block\Adminhtml\Category\Widget\Chooser">
                    <data>
                        <item name="button" xsi:type="array">
                            <item name="open" xsi:type="string" translate="true">Select Category...</item>
                        </item>
                    </data>
                </block>
            </parameter>
            <parameter name="anchor_text" xsi:type="text" visible="true">
                Anchor Custom Text 1234
                <description translate="true">If empty, we'll use the category name here.</description>
            </parameter>
            <parameter name="title" xsi:type="text" visible="true">
                Anchor Custom Title
            </parameter>
            <parameter name="template" xsi:type="select" visible="true">
                Template
                <options>
                    <option name="default"
                            value="category/widget/link/link_block.phtml"
                            selected="true">
                        Category Link Block Template
                    </option>
                    <option name="link_inline" value="category/widget/link/link_inline.phtml">
                        Category Link Inline Template
                    </option>
                </options>
            </parameter>
        </parameters>
    </widget>


texts: Theme custom css not work load MEDIA_URL

texts:
I have 3 stores view and I would like each of them loads a custom CSS file.
I see that in content > design > configurations there is an entry for this (scripts and styles sheets) but when I put something like :

<link  rel="stylesheet" type="text/css"  media="all" href="{{MEDIA_URL}}store/firstStore.css" />

It tries to load a CSS file from this URL https://mywebsite.develop/%7B%7BMEDIA_URL%7D%7Dstore/firstStore.css

Have you got an idea?


texts: A in front of the $ sign on my pricing. Like this (A$0.18)

texts: My page has all of the sudden started showing an (A) in front of the ($) sign on my page pricing. Like this (A$0.18). Can someone please shed some light as to where I can amend this problem?


texts: Remove "None" radio-button from custom option of product

texts:
I have added custom option in product as radion button. Its showing fine on frontend but above my custom option label its showing by default 'None' radio button. Is there a way to remove this.

Please check the screenshot for this -

Thanks.


texts:
I work with Magento 2.2.2
and I am trying to add different prices for different cities in my country.

I have only 2 shipping rates! One for my City and another for rest of my country: Norway.

Can I add the name of my City, “Oslo” in the “Region/State” and “*” for rest of the country?

Like this? would it calculate the shipping price correct?

  “Country” “Region/State”  “Zip/Postal Code”   “Order Subtotal (and above)”    “Shipping Price”
  NOR   Oslo    *   0   120
  NOR   *   *   0   240

Regards


texts: Category collection with filter Magento2

texts:
I have created custom Drop down attribute for category with attribute_code is "is_homecategory"

Used below methods to create it.

Setup/InstallData.php

  public function install(
        ModuleDataSetupInterface $setup,
        ModuleContextInterface $context
    ) {
        $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);

        $eavSetup->addAttribute(
            \Magento\Catalog\Model\Category::ENTITY,
            'is_homecategory',
            [
                'type' => 'int',
                'label' => 'Is Home Category',
                'input' => 'select',
                'sort_order' => 333,
                'source' => 'Magento\Eav\Model\Entity\Attribute\Source\Boolean',
                'global' => 1,
                'visible' => true,
                'required' => false,
                'user_defined' => false,
                'default' => '0',
                'group' => 'General Information',
                'backend' => ''
            ]
        );
    }

and view/adminhtml/ui_component/category_from.xml

<fieldset name="general">
        <field name="is_homecategory">
            <argument name="data" xsi:type="array">
            <item name="options" xsi:type="object">Magento\Eav\Model\Entity\Attribute\Source\Boolean</item>
                <item name="config" xsi:type="array">
                    <item name="required" xsi:type="boolean">false</item>
                    <item name="validation" xsi:type="array">
                        <item name="required-entry" xsi:type="boolean">false</item>
                    </item>
                    <item name="sortOrder" xsi:type="number">333</item>
                    <item name="dataType" xsi:type="string">string</item>
                    <item name="formElement" xsi:type="string">select</item>
                    <item name="label" translate="true" xsi:type="string">Is Home Category</item>
                </item>
            </argument>
        </field>
    </fieldset>

That is created with Yes/No drop down in admin.

I am getting collection like below in by block file.

class Index extends \Magento\Framework\View\Element\Template {
protected $collectionFactory;
public function __construct(
    \Magento\Catalog\Block\Product\Context $context,
    \Magento\Catalog\Model\ResourceModel\Category $collectionFactory,
    array $data = []) {

    parent::__construct($context, $data);
    $this->collectionFactory = $collectionFactory;
}

public function getCategoryData(){

    $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
    $category = $objectManager->create('Magento\Catalog\Model\ResourceModel\Category\Collection');
    $category->addAttributeToSelect('*')
    ->setPageSize(1)
    ->addAttributeToFilter('is_homecategory',['eq'=>1]
    ->setOrder('updated_at', 'desc')
    );
    return $category;
    /* $categories =   $this->collectionFactory->create()
    ->addAttributeToFilter('is_homecategory',1)->load();
    return categories; */
  }

}

Which is not returning any results to me.

All i am looking is I need to get only one category recently set as is_homecategory as 'Yes'.

Can i filter category collection in that way?
Please anyone check it and help me. Thanks in Advance.


texts: Override default breakpoints in Magento2

texts:
I want to override default breakpoints in magento2 css. suggest any ideas how to do this?

E.g. in magento2 default breakpoints are

@screen__xxs: 320px;

@screen__xs: 480px;

@screen__s: 640px;

@screen__m: 768px;

@screen__l: 1024px;

@screen__xl: 1440px;

I want to override them by

@screen__xxs: 320px;

@screen__xs: 479px;

@screen__s: 767px;

@screen__m: 991px;

@screen__l: 1440px;

@screen__xl: 2150px;

On Devdocs magento I found the way to add new but failed to override existing alls.


texts: Optimize revolution slider on magento home page

texts:
I have revolution slider on home page and need to optimize because on loading all the images are coming in request, So need to minimize the image request,

Any one have idea how can I hide this request during page load.


texts: Magento 2 Add some content before body closing tag on every page

texts: I'm using magento 2 , and I would need to add some content before the body closing tag , on every page. What's the most correct way to do that ?


texts: Remove images during Duplication of a product Programmatically

texts:
When Clicking the duplicate button, how do we NOT copy over the images when we duplicate a Magento product?

Attributes are easy.

  $new_product = $observer->getNewProduct( );

  $new_product->setErpBinLocation(null)


texts: Magento 1.7 redirecting URLs when URL rewrite table empty and non in htaccess?

texts:
Im just cleaning up my site and sorting out all the 404s in webmaster tools. To fix the 404s I was just putting in a manual 301 in the htaccess file like this.

Redirect 301 /football-rebounders/spot-rebounder/kickster-spot-7-x-7-rebounder.html http://www.quickplaysport.com/football-rebounders/spot/spot-rebounder-7x7.html

This was working fine until I tried to add the line above and I noticed it didnt redirect correctly. I thought it was something Id entered wrongly but couldnt find any problems with it so in trying to diagnose the problem I completely wiped my URL_rewrite table and deleted all the 301s in htaccess but the site kept redirecting even without anything in either of these, so my question is what is making my site redirect now if not the htaccess file or the URL rewrites in the table? I have tried refreshing the cache

The page I have trouble with is this one:

http://www.quickplaysport.com/football-rebounders/spot-rebounder/kickster-spot-7-x-7-rebounder.html

if you click the link, you will see the URL gets forwarded to this:

http://www.quickplaysport.com/football-rebounders/spot//kickster-spot-7-x-7-rebounder.html

so it is seems to be forwarding part of the URL and then appending the rest onto the end of that.

this has really confused me as it had been working fine for the other 50 or so redirects Id added.

Does anyone have any ideas?

Thanks


texts: backend and theme folder and not being rebuilt

texts:
I've cleared the the static and cache folders as recommended here -

Magento2: Re generate css file in pub/static folder

But now backend and my theme folder are missing from static, so I'm getting lots of missing files?

php bin/magento setup:static-content:deploy

doesn't help?


texts: Admin panel Ajax request value disappears

texts:
I'm trying to retrieve a value from the mysql db to be posted to a textbox on the admin panel.

I have everything working and connecting and returning the correct values.
When I step through the debugger, I see the values being assigned to the correct variables etc.

Problem I'm experiencing however, is that the values I retrieve, seem to disappear from the textbox after the function has finished processing.

phtml code:

function valChecker()
{

  var val = document.getElementById("test_attrib").value;

var url = '<? echo Mage::helper('adminhtml')->getUrl('machines/index/death'); ?>';

var response = "";

 new Ajax.Request(url, {
                    parameters:{test_attrib:val},
                onSuccess: function(transport){

        response = transport.responseText;
        document.getElementById("test_attrib").value = response;

                },
                  onFailure:  function(failer){
                  }
             });

}

if anyone would be so kind to assist please?


texts: Custom dashboard reports for different users

texts:
I’m working on a magento install, and would like some users NOT to be able to see total sales to date. (lifetime sales)

Is that possible / configurable?


texts: How to increase related products slider image size?

texts: I am using Ultimo theme. Does anyone know how to increase the related products slider image size on the product page in magento 2?


texts: Blank screen after creating invoice and redirect issues

texts:
I'm Having 2 issues in my magento 1.9.1 app.

When I'm trying to proceed one page checkout my page redirects me to cart (but I can see in magento admin that order is placed with success)

Second issue is , when I'm tring to create invoice with comment and send it to customer i got blank page and invoice is not created.
I can create invoice without sending e-mail without any error.

My system log shows:
1 Checkout issue

    2015-06-21T10:43:49+00:00 ERR (3): Warning: preg_replace_callback(): Requires argument 2, '', to be a valid callback  in /lib/Pelago/Emogrifier.php on line 269
2015-06-21T10:43:49+00:00 ERR (3): Warning: preg_replace_callback(): Requires argument 2, '', to be a valid callback  in /lib/Pelago/Emogrifier.php on line 269

Invoice Issue - error is the same , so I suspect that problem is with Emogrifier.php file. I found that problem could be not enabled mbstring extension is php. In my Php mbstring is enabled.

I'm having magento 1.9.1 installation with PHP Version 5.4.23

emogifier function

public function emogrify() {
    if ($this->html === '') {
        throw new \BadMethodCallException('Please set some HTML first before calling emogrify.', 1390393096);
    }

    $xmlDocument = $this->createXmlDocument();
    $xpath = new \DOMXPath($xmlDocument);
    $this->clearAllCaches();

    // before be begin processing the CSS file, parse the document and normalize all existing CSS attributes (changes 'DISPLAY: none' to 'display: none');
    // we wouldn't have to do this if DOMXPath supported XPath 2.0.
    // also store a reference of nodes with existing inline styles so we don't overwrite them
    $this->purgeVisitedNodes();

    $nodesWithStyleAttributes = $xpath->query('//*[@style]');
    if ($nodesWithStyleAttributes !== FALSE) {
        /** @var $nodeWithStyleAttribute \DOMNode */
        foreach ($nodesWithStyleAttributes as $node) {
            $normalizedOriginalStyle = preg_replace_callback(
                '/[A-z\\-]+(?=\\:)/S',
                function (array $m) {
                    return strtolower($m[0]);
                },
                //269 line below
                $node->getAttribute('style')
            );

            // in order to not overwrite existing style attributes in the HTML, we have to save the original HTML styles
            $nodePath = $node->getNodePath();
            if (!isset($this->styleAttributesForNodes[$nodePath])) {
                $this->styleAttributesForNodes[$nodePath] = $this->parseCssDeclarationBlock($normalizedOriginalStyle);
                $this->visitedNodes[$nodePath] = $node;
            }

            $node->setAttribute('style', $normalizedOriginalStyle);
        }
    }


texts: Issue with upgrading Magento Version from 2.1.7 to 2.1.12

texts:
We are trying to upgrade Magento Version from 2.1.7 to 2.1.12. The upgrade process went well but after running static content deploy we are facing the issue. Like this many, '.less' files failed.

Compilation from source: /var/www/html/btf_prod/app/design/frontend/Codazon/fastest/outdoor/web/css/email.less

Compilation from source:
frontend/Codazon/fastest_outdoor/en_US/css/email.less
Unable to get content for 'frontend/Codazon/fastest_outdoor/en_US/Magento_Bundle/css/source/_email.less'

......

Compilation from source: /var/www/html/btf_prod/app/design/frontend/Codazon/fastest/outdoor/web/css/email-inline.less

Compilation from source:
frontend/Codazon/fastest_outdoor/en_US/css/email-inline.less
Unable to get content for 'frontend/Codazon/fastest_outdoor/en_US/Magento_Bundle/css/source/_email.less'

......................

Compilation from source: /var/www/html/btf_prod/app/design/frontend/Codazon/fastest/outdoor/web/css/styles-l.less

Compilation from source:
frontend/Codazon/fastest_outdoor/en_US/css/styles-l.less
Unable to get content for 'frontend/Codazon/fastest_outdoor/en_US/Codazon_AjaxLayeredNav/css/source/_module.less'

......

Compilation from source: /var/www/html/btf_prod/app/design/frontend/Codazon/fastest/outdoor/web/css/styles-m.less

Compilation from source:
frontend/Codazon/fastest_outdoor/en_US/css/styles-m.less
Unable to get content for 'frontend/Codazon/fastest_outdoor/en_US/Codazon_AjaxLayeredNav/css/source/_module.less'

We tried many different solutions. Here are they

Disabled redis and Varnish in our server and tested. Tried in our local machine also, same error.
Some other source suggested to change the name and place underscore before the less files. In that case they are ignored but deployment is successful as a result UI is breaking.
We logged all the files which are going through the static content deployment process found that _email.less is getting generated after the error, which is of no issue. How can we control the order of static content deploy.
Added jobs=0 to the command while running.

None of the above is helping. Please suggest if there is anything else we can try.


texts: check admin loggedIn on frontend magento 2

texts:
i have tried through this method
public function isAdmin() {
        $this->_coreSession->start();
        echo $this->_coreSession->getMessage();
        echo 'session test4';
        exit;
    }


texts: Cannot Redeclare Class Error Following Compliation

texts:
Problem

Following compilation, I get the error Cannot redeclare class Mage_Catalog_Model_Productwhen accessing the admin panel.  Per this question, I attempted to clear the cache by deleting the cached folders (currently just using Magento's file-based caching to isolate the problem) and disabled all third-party modules to make sure that those weren't the problem.

At first I thought that for some reason the core files were getting loaded in addition to the compiled ones, but that doesn't appear to be the case.

To try to isolate the issue, I added the following code to index.php file (root) and then ran a grep on the get_included_files() files for Mage_Catalog_Model_Product -- it appears only in __adminhtml.php (though the file in which the class may be redeclared may not be included in the get_included_files() output because this is where it is choking.

ini_set('error_reporting', E_ALL);
register_shutdown_function("fatal_handler");
function fatal_handler() {
    $error = error_get_last();
    echo("<pre>");
    print_r($error);
    var_dump(get_included_files());
}

The resulting error:

Array
(
    [type] => 64
    [message] => Cannot redeclare class Mage_Catalog_Model_Product
    [file] => /Users/pbirnie/sites/city-gear/includes/src/__adminhtml.php
    [line] => 2065
)

I also grepped for the class declaration and only see it in 5 files -- __adminhtml.php seems to be the only one that is actually loading...

pbirnie:src pbirnie$ find . -name "*.php" | xargs -n 20 grep 'class Mage_Catalog_Model_Product '
./__adminhtml.php:class Mage_Catalog_Model_Product extends Mage_Catalog_Model_Abstract
./__catalog.php:class Mage_Catalog_Model_Product extends Mage_Catalog_Model_Abstract
./__checkout.php:class Mage_Catalog_Model_Product extends Mage_Catalog_Model_Abstract
./__cms.php:class Mage_Catalog_Model_Product extends Mage_Catalog_Model_Abstract
./Mage_Catalog_Model_Product.php:class Mage_Catalog_Model_Product extends Mage_Catalog_Model_Abstract

I'm currently running Magento Enterprise 1.13.1 if that is of consequence; I do not have APC or Memcached running..


texts: I want to add popup notify after adding products Magento 2

texts: I wanted to Add notify popup form after adding the products but I couldn't get the file in magento 2. I need someone help who already done this work.


texts:
How to redirect from Observer in Magento2 ? I am using the below code:

$controller = $observer->getControllerAction();
$action = $this->_request->getActionName();
$this->_actionFlag->set($action, \Magento\Framework\App\Action\Action::FLAG_NO_DISPATCH, true);
$controller->getResponse()->setRedirect('sales/order/address', array('address_id' => $addressId));
return $this;

event.xml

<event name="controller_action_predispatch_sales_order_addressSave">
    <observer name="verify_cod" instance="XXX\Ccc\Observer\Pincode" />
</event>


texts:
I have created a very simple module for Magento. All that I have done so far is declared a module and created its config.xml file. I am trying to read the xpath from the file, however nothing is showing up. The directory is correct and all files are in their place. Does anyone know what the problem might be, because I'm quite new to Magento and I have spent hours googleing it.

<!-- First_Module.xml -->
<!-- Path : app/etc/modules -->

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

<!-- config.xml -->
<!-- Path : app/code/local/First/Module/etc/ -->

<?xml version="1.0"?>
<config>
      <default>
            <some>
                  <random>
                        <xpath>Here is some value.</xpath>
                  </random>
            </some>
      </default>
</config>


texts:
I have the weirdest problem.  I think it has to do with an ERP we installed on Magento 1.9.3 but I'm not sure.  I have configurable products that have different sizes.  I use the configurable swatch to create a nice label for the sizes since I don't want to use drop down fields.  For the most part, the products came out correct.  However, when I add new products (after installing extension) I get a copy of the product image rather then labels.  Can someone help me troubleshoot the problem?

CORRECT
http://c6341.sgvps.net/~msrhp/index.php/default/riding-gear/nxt-39/jackets/nxt-jersey-red-navy.html

INCORRECT
http://c6341.sgvps.net/~msrhp/index.php/default/riding-gear/legend-71/test/legend-71-jersey-black-yellow.html


texts: How to add a new attribute in order response json in get order api

texts:
I have added a new column "old_order_id" in sales_order table using upgradeSchema.

Now, I need to set that "old_order_id" through API. So, how to add that attribute(old_order_id) in request json while creating a new order.

And I also need how to add it in fetching order (api: V1/orders/:orderid) response too.


texts: How to add data-validater in add field.?

texts:
I am able to put below data validater in phtml file but unable to finay way to add data validator in addfi
data-validate="{required:true, 'validate-english-letter':true}"

How to add above in addField ??
 $fieldset->addField(
                    'role_name',
                    'text',
                    [
                        'name'        => 'First_name',
                        'maxlength'  =>  '200',
                        'label'    => __('Role Name'),
                        'required'     => true
                    ]
                );


texts:
I'm trying to update Magento 2.1.0 to 2.1.1 using System Upgrade but I get this error:

  We cannot retrieve information on magento/product-community-edition

How can I resolve this?


texts: Magento 2.3.5 - Currency Dropdown Not showing in default Luma Theme

texts:
I have installed Magento 2.3.5 version. I have set all required settings for multi store currency.
We have one main website and 4 store views.
Store View and Currency Setup
Main Website

Main Store

Store View 1 - UK - Pound
Store View 2 - French - Euro
Store View 3 - Italy - Euro
Store View 4 - German - Euro

we have set Base currency as Euro and Store view display currency based on language.
Default display currency is Pound because UK is the default store view.

Currency Rates and Currency Symbol

Currency Symbol automatically added after setting currency setup
Currency Rates are imported manually.

Expected Result:
Currency dropdown and language dropdown at store front end header
Actual Result:
Language Dropdwon only shown. If i print Currency Count in Block file i get zero results.
Block file: Vendor\module-directory\Block\Currency.php
Function: getCurrencyCount()
Please anyone check this and let me know if anything i have missed or if this magento version have this problem.


texts: Magento 2 Change 'Add to Cart' button to 'Go to Cart' after product is added to cart

texts:
I have tried to achieve this using answer from the question here Magento 2 : Add to cart button change to go to cart after adding product

However the button text is not changed immediately as the code is from phtml file and not js file.

I wish to achieve this using js(catalog-add-to-cart.js).
To check if product is added to cart, I need to get cart items in this file. How do I get current user cart items here?
Once the text is changed to Go to Cart, I also want to change the button link to cart url.


texts: Add Review Form To Product Page Magento 1.9

texts:
I'm looking to move the product review form from /review/product/list/ to the product page, underneath existing reviews, on Magento 1.9.0.1 using a child theme of RWD.

This is the original review tab in review.xml:

    <catalog_product_view>
    <reference name="product.info">
        <block type="review/product_view_list" name="product.reviews" as="reviews" template="review/product/view/list.phtml" after="additional">
            <action method="addToParentGroup"><group>detailed_info</group></action>
            <action method="setTitle" translate="value"><value>Reviews</value></action>
        </block>
    </reference>
</catalog_product_view>

This displays the reviews and form on the product page:

    <catalog_product_view>
    <reference name="product.info">
                <block type="review/product_view_list" name="product.info.product_additional_data" as="product_additional_data" template="review/product/view/list.phtml">
                <block type="review/form" name="product.review.form" as="review_form">
                    <block type="page/html_wrapper" name="product.review.form.fields.before" as="form_fields_before" translate="label">
                        <label>Review Form Fields Before</label>
                        <action method="setMayBeInvisible"><value>1</value></action>
                    </block>
                </block>
            </block>
    </reference>
</catalog_product_view>

How do I put this into the 'reviews' tab?


texts:
In a cron job, I have to save a list of categories and sub-categories.
But I am constantly getting this error

  SQLSTATE[42S02]: Base table or view not found: 1146 Table          '{database_name}.catalog_category_product_cat_tmp' doesn't exist

Trace:
#0 /var/www/app/code/core/Enterprise/Catalog/Model/Index/Action/Catalog/Category/Product/Category/Refresh/Row.php(76): Enterprise_Catalog_Model_Index_Action_Catalog_Category_Product_Refresh->execute()
#1 /var/www/app/code/core/Enterprise/Mview/Model/Client.php(109): Enterprise_Catalog_Model_Index_Action_Catalog_Category_Product_Category_Refresh_Row->execute()
#2 /var/www/app/code/core/Enterprise/Catalog/Model/Index/Observer/Category/Product.php(144): Enterprise_Mview_Model_Client->execute('enterprise_cata...', Array)
#3 /var/www/app/code/core/Mage/Core/Model/App.php(1338): Enterprise_Catalog_Model_Index_Observer_Category_Product->processCategorySaveEvent(Object(Varien_Event_Observer))
#4 /var/www/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Enterprise_Catalog_Model_Index_Observer_Category_Product), 'processCategory...', Object(Varien_Event_Observer))
#5 /var/www/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('catalog_categor...', Array)
#6 /var/www/app/code/core/Mage/Core/Model/Abstract.php(344): Mage::dispatchEvent('catalog_categor...', Array)
#7 [internal function]: Mage_Core_Model_Abstract->afterCommitCallback()
#8 /var/www/app/code/core/Mage/Core/Model/Resource/Abstract.php(110): call_user_func(Array)
#9 /var/www/app/code/core/Mage/Core/Model/Abstract.php(322): Mage_Core_Model_Resource_Abstract->commit()
#10 /var/www/app/code/local/Rts/Cronjobs/Model/Cronjobsfiles/custom/brands/brands.php(120): Mage_Core_Model_Abstract->save()
#11 /var/www/app/code/local/Rts/Cronjobs/Model/Cronjobs.php(60): include('/var/www/app/co...')
#12 [internal function]: Rts_Cronjobs_Model_Cronjobs->brands(Object(Aoe_Scheduler_Model_Schedule))
#13 /var/www/app/code/community/Aoe/Scheduler/Model/Schedule.php(61): call_user_func_array(Array, Array)
#14 /var/www/app/code/community/Aoe/Scheduler/controllers/Adminhtml/CronController.php(89): Aoe_Scheduler_Model_Schedule->runNow(false)
#15 /var/www/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Aoe_Scheduler_Adminhtml_CronController->runNowAction()
#16 /var/www/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('runNow')
#17 /var/www/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#18 /var/www/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#19 /var/www/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#20 /var/www/index.php(87): Mage::run('base', 'website')
#21 {main}

This issues arises on

  $category->save()

statement.

Please help.


texts:
This may or may not have anything to do with my question HERE. While investigating the issue, I checked the system.log file and found these two entries listed over and over:

2015-05-27T16:00:47+00:00 ERR (3): Warning: shell_exec() [function.shell-exec]: Unable to execute
'/bin/sh /home/lbingman/public_html/cron.sh cron.php -mdefault 1 >
/dev/null 2>&1 &'  in /home/lbingman/public_html/cron.php
on line 64
2015-05-27T16:00:47+00:00 ERR (3): Warning: shell_exec() [function.shell-exec]: Unable to execute
'/bin/sh /home/lbingman/public_html/cron.sh cron.php -malways 1 >
/dev/null 2>&1 &'  in /home/lbingman/public_html/cron.php
on line 65

So, of course I take a look at cron.php and find this...

Line 64:  shell_exec("/bin/sh $baseDir/cron.sh $fileName -mdefault 1 > /dev/null 2>&1 &");
Line 65:  shell_exec("/bin/sh $baseDir/cron.sh $fileName -malways 1 > /dev/null 2>&1 &");

Is there some bad code that I am not aware of? Or is there something else going on that is causing these errors that isn't code related? I am having issues with cron not being executed. Then when I manually execute cron.php via my web browser, it runs and runs without stopping.


texts: How to get total discount amount of Coupon Code for all items in the cart

texts:
I'm using Magento 1.9.0.1 and here is the code on which I am working on:

$quote2 = Mage::getSingleton('checkout/session')->getQuote();
foreach ($quote2->getAllItems() as $item){
    $DiscountTotal = $item->getDiscountAmount();
}

This code is giving me the amount discounted with coupon code of the first item in the cart for the current session.

The problem is that this code is giving me the amount discounted only for the first item but not for all items in the cart for the current session.

So I have two questions:

How I can get the total discount amount for all items the cart for the current session?
How I can get the total discount amount for already completed order?


texts: 404 Not Found when displaying a product after reindexing

texts: Before reindexing Magento I can see a product detail but after reindexing, I can't see the product detail. And the weird thing is when I search for some products I can find it, this one works well before and after reindexing


texts: Magento : Call widget call from phtml file

texts:
I have created Widget and want to call it from header.phtml

In this widget i have called Static block but widget not called.This widget have id 2
i have set code below please help me to correct this or give me another for id = "2"

$widget = Mage::getModel('cms/widget_block')->load('2');
                    $widgetBlock = $this
                   ->getLayout()
                   ->createBlock($widget->getType(),
                                 $widget->getTitle(),
                                 $widget->getWidgetParameters());
echo $widgetBlock->toHtml();

And

<?php
$filter = new Mage_Widget_Model_Template_Filter();
$_widget = $filter->filter('{{widget type="cms/widget_page_link" template="cms/widget/link/link_block.phtml" page_id="2"}}');
echo $_widget;

?>


texts: Magento 2.1.7 custom module UpgradeSchema not adding column

texts:
I'm not able to add new column to existing table
UpgradeSchema.php:

 namespace Company\Module\Setup;

use Magento\Framework\Setup\UpgradeSchemaInterface;

use Magento\Framework\Setup\ModuleContextInterface;

use Magento\Framework\Setup\SchemaSetupInterface;

use Magento\Framework\DB\Ddl\Table;

class UpgradeSchema implements UpgradeSchemaInterface
{

    public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $context)
    {
        $setup->startSetup();

        //handle all possible upgrade versions
        $tableName = $setup->getTable('test_table');
        if(!$context->getVersion()) {
            //no previous version found
        }

        if (version_compare($context->getVersion(), '1.0.5') < 0) {
            $connection = $setup->getConnection();
            $connection->addColumn(
                $tableName,
                'test_test_1',
                ['type' => Table::TYPE_TEXT,
                    'nullable' => false,
                    'default' => '',
                    'afters' => 'created_at'],
                'Test 1'
            );
        }

        if (version_compare($context->getVersion(), '1.0.6') < 0) {
            $connection = $setup->getConnection();
            $connection->addColumn(
                $tableName,
                'test_test_2',
                ['type' => Table::TYPE_TEXT,
                    'nullable' => false,
                    'default' => '',
                    'afters' => 'created_at'],
                'Test 2'
            );
        }

        $setup->endSetup();
    }
}

My module.xml:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Company_Module" setup_version="1.1.5">

</module>

Can anyone give some advice please! Thanks.


texts: Product load by entity_id or row_id if both are different?

texts:
In my magento 2.3.0 My product catalog has 100k products. In this 10k Products are having different entity_id and row_id for same sku.
I have below questions.

If I load product collection using id it should be entity_id or row_id?
What could be the reason for sku having different entity_id and row_id?
Is it mandatory to have same values for both entity_id and row_id? If yes, How can I make it same values?

Thanks & Regards
Palani


texts: Unable to load next checkout step after editing translate file

texts:
A few weeks ago I started my own Magento webshop. Because I'm Dutch, I installed and applied the Dutch translation package. After editing the checkout translate file it isn't possible anymore to load step 2 of my checkout page. After clicking on the 'go further' button nothing really happens. I don't even get an error or something. I have refreshed my cache already.

Can anyone tell me how to fix this?

Many many thanks in advance for your reaction.

Dion Hoofwijk


texts:
What modules do you use in order to profile Magento with XHProf?

I tried:

liip / magento-xhprof
amacgregor / magento-xhprof

Other options / approaches?


texts: How to get total price of each item's category in the cart? in Magento 1.9X

texts:
I understand that getGrandTotal() will get the total price of the cart.

But now, I'd like to know how to get the total price of the cart based on product category in a cart?

I need this because there are different delivery charges based on the different categories in the site.

Thank you for the help!


texts:
I have several products with different colours. I use Configurables Swatches to display colors but I am having a little trouble it does not show me the colors of products when I click on the color.

To display the colors of products need images on all simple products that are not visible on the site? or only on the configurable product


texts:
how to make a accordion from standard horizontal tabs as shown in the picture

I looked at how to make tabs from simple blocks using the magento 2 widget but it worked out for me to apply this to a tab products

hope you help


texts: Custom options not saved in `sales_flat_quote_item_option` while adding product into cart

texts:
I have few products without custom options. This custom options plays main role in our back end process.

In the sales_flat_order_item table product_options field product_options is the proper field as serialized value.

But in sales_flat_quote_item_option table the custom field value should have been saved. In my store, most of the products are getting stored properly.

Only few products custom options values are not saving. Anyone facing this issue?

When I google this issue, got suggestion as PHP ini setting for max_input_vars should be raised. in my case it is 2000. So this wouldn't be the factor? Can some one advise.


texts: Magento 2 product page include custom phtml file before reviews section

texts:
Can anyone help me how to include custom phtml file before reviews section in magento2

please find the screenshot below:

When i click on the button it is going to add to cart.

Thanks


texts: i was able to successfully migrate from 1.9 to magento 2 using  data migration tool, from github. the tools migrates everything except for cms pages, and cms blocks. I dump the pages and blocks tables from old db to new db, but i am getting an error related to duplicate primary key. i am not good with sql queries - what is the  best way to dump this data?


texts: How to import product name with ™ and ® symbol?

texts:
I have products where it is important to have symbols like ™ and ®, as these are necessary to be with product name. When I tried to import such products, it says "General system exception happened" on "Check Data".

After removing same symbols, file is being validated successfully.

I am using Magento 2.1.0.


texts: how can Add a extra category attribute under general infomation tab

texts: I want to create yes/no  attributes in magento category in gerenraltab. can you please tell me where to change in file any module create for it. or any tutrorial give me suggetion. adding attributes what to do for it?


texts: How can I use local.xml to hide the currency switcher Magento1 RWD?

texts:
Our store accepts USD and for other currencies, we use paypal. I need to hide the currency switcher on the RWD theme.  I've tried variations of this in local.xml:

<layout>
  <default>
    <remove name="currency-switcher" />
  </default>
</layout>


texts: Google Invisible Captcha "something went wrong" error upon form submission

texts:
I have a similar issue to:
Amasty Invisible Captch issue

I have a register form that has an error "something went wrong" upon submission when using Magento Google Invisible Captcha.
There are no errors thrown into the console to help debug this issue.

The form submits perfectly when the captcha plugin is disabled but I need it enabled to stop spam form submissions.

Versions:

  Magento ver. 1.6.2.0

Any help would be much appreciated.
Cheers

EDIT
I have enabled logs to try figure this out.
amasty_InvisibleCaptcha.log:

  "exception 'Zend_Http_Exception' with message 'Invalid HTTP response
  version: 2'"


texts: how to find my new product's attribute into the MySql's table "sales_order_item" (magento2.5)

texts:
I have created a 'New Attribute' into the Product Attributes [/admin/catalog/product_attribute/] for products : [specificity_trait_type].

And then, I added this attribute into the my products [/admin/catalog/product/] for exemple [admin/catalog/product/edit/id/36/] by section Attributes.
I need this information into the mysql table "sales_order_item". I can find [sku] or [name] of items but I can not find my mew attribute [specificity_trait_type] of items .
What I must do ?

Thanks,

This is new comment :
Hi,
I need your help and until now, nobody know how can find my new attribute into the mysql table : sales_order_item

I find it into the 3 mysql'sw table :
eav_attribute and
eav_attribute_option
catalog_product_entity_int

like this :
 eav_attribute

`attribute_id`, `entity_type_id`, `attribute_code`, `           attribute_model`, `backend_model`, `backend_type`, `backend_table`, `frontend_model`, `frontend_input`, `frontend_label`,               `frontend_class`, `source_model`,                                               `is_required`, `is_user_defined`, `default_value`, `is_unique`, `note`
        158,                4,          'specificity_trait_type',   NULL,               NULL,           'int',           NULL,              NULL,           'select',           'specificity_trait_type',   NULL,               'Magento\\Eav\\Model\\Entity\\Attribute\\Source\\Table',        1,              1,              '5639',             0,          NULL);

eav_attribute_option

   `option_id`, `attribute_id`, `sort_order
    5639,           158,                1
    5640,           158,                2
    5641,           158,                3

catalog_product_entity_int

    value_id`,  `attribute_id`,     `store_id`,     entity_id`,     `value
(12708,          158,               0,              36,          5642
(12709,          158,               0,              37,          5642
(12710,          158,               0,              38,          5641
(12711,          158,               0,              39,          5640
(12712,          158,               0,              40,          5640
(12713,          158,               0,              41,          5639
(12714,          158,               0,              42,          5640
(12715,          158,               0,              43,          5641
(12716,          158,               0,              44,          5642

When a client buy some article, I can find his order into the this table of mySql, sales_order_item, with some information of product bought, like this information :

sku, name, product_id, product_type, weight, is_virtual

but without specificity_trait_type (it is my new attribut).
What I must do to add this information on the table "sales_order_item" ?

Thanks


texts: You need to choose options for your item while adding product to cart

texts:
Trying to add configurable product to cart with custom qty with below code but getting You need to choose options for your item error.

foreach($optionQty as $key => $qty) {
            $storeId = $this->_objectManager->get('Magento\Store\Model\StoreManagerInterface')->getStore()->getId();
            $productloaded = $this->_objectManager->create('Magento\Catalog\Model\Product')->setStoreId($storeId)->load($pid);

            if($qty > 0) {
                $params = [
                    'form_key' => $this->formKey->getFormKey(),
                    'product' => $productloaded->getId(),
                    'qty' => $qty,
                    'super_attribute' => [
                        $attributeId => $key
                    ],
                ];

                $productloaded->addCustomOption('additional_options', json_encode($additionalOptions));
                $this->cart->addProduct($productloaded, $params);

            }

        }
         $this->cart->save();
         $this->cart->getQuote()->setTotalsCollectedFlag(false)->collectTotals()->save();

Params array look like

    Array
(
    [form_key] => n6fGcdLmKgonfMRM
    [product] => 37226
    [qty] => 5
    [super_attribute] => Array
        (
            [135] => 105
        )

)

Can anybody help me with this

Thanks


texts: Getting useful information for Test Automation Framework

texts:
I'm having much more trouble with MTAF than what it's worth, and I am hoping some others here have had more extensive experience with it. The documentation is simply awful and it scares me that Magento even allowed it to be released in this state. I found a fork of MTAF at https://github.com/vashigor/taf that at least works better with my newer version of Magento, but sadly the documentation isn't any more clear.

In any case, it's my understanding that MTAF had a comprehensive amount of tests through all of the basic functions of Magento. This seems to be true for Admin tasks, but what about frontend?

I don't see any tests that validate the homepage, a category, or a product page. There's a test that adds a product to the cart, but where are the more basic things first? If I have to build them from scratch, I might as well abandon MTAF and go with CasperJS/ZombieJS or equivalent.

If these things are indeed available:
How can I tell MTAF to only run frontend tests? If I want to validate that the user experience is solid, I don't need to spend hours running any Admin tasks to do that.
How can I modify those tests to reflect the current theme?
Do I make a new directory to put these things, or should I edit the original files in place? (And which files?!)

Sorry for the million questions, but trying to research any solid usability steps have been wholly unhelpful, and I'm slowly losing my sanity. Thanks very much for any help.


texts: How to display static block based on applied filters in layered navigation?

texts:
I wrote the following code

    <?php $appliedFilters = Mage::getSingleton('catalog/layer')->getState()->getFilters();
    $_headerImage1 = $this->getLayout()->createBlock('cms/block')->setBlockId('movie')->toHTML();
    $_headerImage2 = $this->getLayout()->createBlock('cms/block')->setBlockId('music')->toHTML();
    foreach ($appliedFilters as $item) {
    if ($item->getFilter()->getRequestVar() == 'my_attribute1') {
    echo $_headerImage1;
    }

    else

    if ($item->getFilter()->getRequestVar() == 'my_attribute2') {
     echo $_headerImage2;
    }
    }
    ?>

It worked fine. But, if the first and second attributes are selected at the same time - on page appears two static blocks.

I need - when you select the second attribute - displaying only second static block.

Perhaps the use of a specific space for static block or resctict first static block if selected second attribute.

In any case , I do not know how to do it.

Please help!

UPDATED

I found another case.

                <?php $_filters = Mage::getSingleton('catalog/layer')->getState()->getFilters();
                $_headerImage = $this->getLayout()->createBlock('cms/block')->setBlockId('static_block_0')->toHTML();
                if (is_array($_filters)) {
                foreach ($_filters as $_filter) {
                if ($_filter->getRequestVar() == 'my_attribute_0') {
                    switch ($_filter->getRequestVar()) {
                case 'my_attribute_1' :
                    $_headerImage = $this->getLayout()->createBlock('cms/block')->setBlockId('static_block_1')->toHTML();
                    break;
                case 'my_attribute_2' :
                    $_headerImage = $this->getLayout()->createBlock('cms/block')->setBlockId('static_block_2')->toHTML();
                    break;
            }
        }
    }
}
echo $_headerImage;
?>

But it not worked.


texts: How to get the order status information on Magento2?

texts:
Currently we are working on Magento-2.2.6 website and on Porto theme.

I want to create one form to get the order details by entering the user email is and order id.

For this, we want to create one cms page and will be used as Track order.

We want to track the order without using any third party extensions.


texts:
How to override top menu and add icon in Magento 2?
I'm using Magento v2 and want to have icons added to each category menu item.?
How can I override this?
I added the Attribute for icon in category (Admin)
I need like this

Thanks


texts:
How can I convert a product attribute type from Text to Dropdown in Magento?

I already have attribute values assigned to many products, so don't want to lose these in the process.


texts:
Very new to Magento, helping a friend of mine after the developer went AWOL and left unfinished site.

I made a whole bunch of fixes to pages and such, including correcting some URL Rewrites. All was working fine, took System and DB/Media backups and then I decided to attempt an upgrade to the latest version.. . I just upgraded to the latest stable version of all components and now the site is not redirecting to correct website/store for one of the two websites/stores.

OVERVIEW. There are three domains each with their own pages; .hk, .com as well as .ch in Chinese, English and German respectively. For .com and .hk, a language switcher is used which shows english or chinese, this works fine.

PROBLEM. When visiting .ch it redirects to .com and for the life of me I cannot figure what is making a redirect.

Any suggestions? Muchly appreciated!!


texts: Admin panel is not login or not showing invalid credentials error in magento 1.9.0.1

texts:
I have an issue that in my magento website admin panel is not logging in with correct username and password and also not showing any error message of invalid login with incorrect credentials.

So please let me know how I resolve the issues of admin login.

Thanks


texts: How to display Attribute Group Name on Product page in Magento 1.9.0.1?

texts:
I would like to create an Attribute Sets with more grouped Attribute inside. In admin, the custom attributes are displayed in groups (tabs) as I created them. But, on the product page, all the attributes are listed together, without displaying the Attribute Group Name before listing the Attributes in that Group.

How can I display also the Attribute Group names, not only the attributes in Magento 1.9.0.1 RWD theme?

I tried extension "Display Attribute grouped by Attribute-Sets"  it worked on default theme but in RWD theme Additional Information Tab becomes hidden.

References:
1. https://stackoverflow.com/questions/5438750/how-to-display-attribute-group-name-on-product-page
 2. http://www.magentocommerce.com/magento-connect/display-attribute-grouped-by-attribute-sets.html

Any help would be appreciated great.
Thank you.


texts: Error customer email checkout 'Customer email is required”'

texts:
i have an important problem with checkout. When i try to do checkout with guest account or i want to register into site, i have a popup with error "Customer email is required”.

But i have inserted my email, it is correct, but i can't go on next step of checkout.

What is this bug? It's a problem of database or..?

Please help me to solve the problem because a user can't buy products.

EDIT - 1

the problem there is for all magento theme. This error is on the standard onepage checkout of magento.
This is an php error and none javascript, the value of email is don't save, it is seems blank.

i have view the phtml file and no problem, the table of database is correct.

I have commented  the line:

$errors[] = Mage::helper('customer')->__('Invalid email address "%s".', $this->getEmail());

in file /app/code/core/Mage/Customer/Model/Resource/Customer.php

So in this moment, with guest checkout, i don't have the error but Magento doesn't save the email address of customer in orders page. In backend i don't view the email.

Please help me to solve the problem.


texts: Magento 2 - Redirect to an URL after downloading a file

texts:
I want to redirect the user to an URL after downloading a file.

What I tried to do:

$this->fileFactory->create('file.pdf', $pdf);
return $this->_redirect($this->_redirect->getRefererUrl());

But it never executes the return statement.

How would I go about this problem?


texts:
My system log is creating massive amounts of DEBUG (7) log

it logs every layout xml from frontend and adminhtml

any suggestions how to stop/fix this?

Many Thanks

example

[...]
DEBUG (7): htdocs/app/design/frontend/base/default/layout/catalog_msrp.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/catalogsearch.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/payment.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/sales.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/sales/billing_agreement.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/sales/recurring_profile.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/cataloginventory.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/shipping.xml
DEBUG (7): htdocs/app/design/frontend/ultimo/default/layout/checkout.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/paypal.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/bml.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/poll.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/review.xml
DEBUG (7): htdocs/app/design/frontend/ultimo/default/layout/tag.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/reports.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/googleanalytics.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/wishlist.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/paypaluk.xml
DEBUG (7): htdocs/app/design/frontend/ultimo/default/layout/contacts.xml
DEBUG (7): htdocs/app/design/frontend/ultimo/default/layout/sendfriend.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/rss.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/productalert.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/oauth.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/authorizenet.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/bundle.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/captcha.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/centinel.xml
DEBUG (7): htdocs/app/design/frontend/ultimo/default/layout/configurableswatches.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/newsletter.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/pagecache.xml
DEBUG (7): htdocs/app/design/frontend/base/default/layout/persistent.xml

[...]

DEBUG (7): htdocs/app/design/adminhtml/default/default/layout/admin.xml
DEBUG (7): htdocs/app/design/adminhtml/default/default/layout/main.xml
DEBUG (7): htdocs/app/design/adminhtml/default/default/layout/report.xml
DEBUG (7): htdocs/app/design/adminhtml/default/default/layout/catalog.xml
DEBUG (7): htdocs/app/design/adminhtml/default/default/layout/customer.xml
DEBUG (7): htdocs/app/design/adminhtml/default/default/layout/promo.xml
DEBUG (7): htdocs/app/design/adminhtml/default/default/layout/adminnotification.xml
DEBUG (7): htdocs/app/design/adminhtml/default/default/layout/dataflow.xml
DEBUG (7): htdocs/app/design/adminhtml/default/default/layout/index.xml
DEBUG (7): htdocs/app/design/adminhtml/default/default/layout/cms.xml
DEBUG (7): htdocs/app/design/adminhtml/default/default/layout/search.xml
DEBUG (7): htdocs/app/design/adminhtml/default/default/layout/sales.xml
DEBUG (7): htdocs/app/design/adminhtml/default/default/layout/tag.xml
DEBUG (7): htdocs/app/design/adminhtml/default/default/layout/widget.xml
DEBUG (7): htdocs/app/design/adminhtml/default/default/layout/tax.xml
[...]


texts:
Elasticsearch is not working "No Alive Nodes in Cluster"
Magento 2.4.1
Elasticsearch : 7.12.0
Elasticsearch : https://cloud.elastic.co/
create deployments in Elasticsearch
Using server : siteground


texts: Magento 2 how to login user in specific store programmatically

texts:
How can I login customer in specific store programmatically in Magento 2?
I've tried to override execute method of

  Magento\Customer\Controller\Account\LoginPost

and did something like this:

$this->storeManager->setCurrentStore("store_code");
$store = $this->storeRepository->getActiveStoreByCode("store_code");
$this->httpContext->setValue("store", "store_code", "default");
$this->storeCookieManager->setStoreCookie($store);

$customer = $this->customerAccountManagement->authenticate($login['username'], $login['password']);
$this->session->setCustomerDataAsLoggedIn($customer);

But it didn't work.
I need to do main store, where customer will insert his credentials, and after that customer will logged in and redirected to store according to his customer group


texts:
Yesterday I created a new database, downloaded ver 1.8.1.0, and did a fresh install. However, I repeatedly got an error that I cannot get past.

a:5:{i:0;s:259:\"Error in file: \".../app/code/core/Mage/Catalog/sql/catalog_setup/upgrade-1.6.0.0.9-1.6.0.0.10.php\" - SQLSTATE[42S01]: Base table or view already exists: 1050 Table \'catalog_product_entity_group_price\' already exists\";i:1;s:1164:\"#0 .../app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception(\'Mage_Core\', \'Error in file: ...\')
#1 .../app/code/core/Mage/Core/Model/Resource/Setup.php(437): Mage_Core_Model_Resource_Setup->_modifyResourceDb(\'upgrade\', \'1.6.0.0.3\', \'1.6.0.0.18\')
#2 .../app/code/core/Mage/Core/Model/Resource/Setup.php(320): Mage_Core_Model_Resource_Setup->_upgradeResourceDb(\'1.6.0.0.3\', \'1.6.0.0.18\')
#3 .../app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 .../app/code/core/Mage/Core/Model/App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 .../app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#6 .../app/Mage.php(684): Mage_Core_Model_App->run(Array)
#7 .../index.php(87): Mage::run(\'\', \'store\')
#8 {main}\";s:3:\"url\";s:36:\"/index.php/install/wizard/installDb/\";s:11:\"script_name\";s:10:\"/index.php\";s:4:\"skin\";s:7:\"default\";}


texts: Rounding Product Price triggers tax issue

texts:
It's not the duplicate of this qst.

I am not trying to hide decimal, but trying to round the product price. But in same time not rounding the tax. So tax should be calculated having 2 decimal, but product price should be rounded to none-decimal.

Org Qst

I am trying to round product prices by changing following function in Mage_Directory_Model_Currency and it works:

/**
     * Format price to currency format
     *
     * @param float $price
     * @param array $options
     * @param bool $includeContainer
     * @param bool $addBrackets
     * @return string
     */
    public function format($price, $options = array(), $includeContainer = true, $addBrackets = false)
    {
        //return $this->formatPrecision($price, 2, $options, $includeContainer, $addBrackets);
        return $this->formatPrecision($price, 0, $options, $includeContainer, $addBrackets);
    }

However, above changes triggers tax issue. Because it also rounds my tax.

For example: when my product price is $1629 and qty in cart is 1, then my cart total area will look like this:

Subtotal                 $1,629
Grand Total Excl. GST    $1,481
GST (10%)                  $148
Grand Total Incl. GST    $1,629

Here, actual tax is $148.10 but because of rounding it is shown as $148. This is against the tax rule set by gov.

My question

How can I round all product prices but show GST with at least 2 decimal point?

OR

What I would like to have?

GST (10%)               $148.10
Grand Total Incl. GST    $1,629


texts:
I am facing strange issue. Session is reset on custom module controller. have anyone face the similar issue?
My code is simple

class Test_Testing_IndexController extends Mage_Core_Controller_Front_Action
{

    public function indexAction()
    {

        $this->loadLayout();
        $this->renderLayout();

    }
}

It is related to customer session other pages are working normally changing the login to logout but not on custom module page. I am not using any custom session only Magento own session.

My config.xml

 <config>
  <modules>
    <Test_Testing>
      <version>0.1.0</version>
    </Test_testing>
  </modules>
   <frontend>
    <routers>
      <testing>
        <use>standard</use>
        <args>
          <module>Test_Testing</module>
          <frontName>testing</frontName>
        </args>
      </testing>
    </routers>
   </frontend>


texts: Magento 2.3 : Load new custom items into Shopping Cart when an button is clicked

texts:
I am making my own module and now I added a button into it. If this button is clicked I want to get products with an AJAX request from a REST API (I already get my products, this is no problem).

Afterwards I want to load this products into the cart. This is were I have the main problem. I also want that the minicart gets updated. Is there a way to do this? I am very desperate.

This is my AJAX request (Yes I know that I currently not store the data I get back, I will add this when I have the solution for the problem I mentioned before):

jQuery("#getCart").on("click", function(){
            jQuery.ajax({
                url:"http://192.168.10.106:8080/api/cart/",
                type:"GET", //First change type to method here
                headers: {
                  'X-Requested-With':  'XMLHttpRequest',
                  'Accept': '*/*',
                  'Cache-Control':'no-cache',
                },
                contentType: "application/json; charset=utf-8",
                data:
                {
                    "_customerID": 1, //for tests
                }
                success:function(response) {
                },
                error:function(){
                  alert("An Error occurred. Try again later");
                }
            });
          }
      });

This AJAX is in my view/frontend/templates/button_getcart.phtml file.

Can someboy please help me? I really need a solution for this and I am new to Magento 2.


texts: How to get Customer Address in formated way and print it - Magento2.3

texts:
How to get the Customer Address like above format and how to print it, If there is more than one customer address how to get the particular address of the customer.

Thanks in Advance :)


texts: We have added full page caching to Magento (1.9.0.1).  The pages, once cached, open immediately.  However, when a page is being viewed for the first time, it still takes ages to load.  What is the best way of speeding up the first view of a page?


texts: Why is the Custom Megamenu not being cached at all?

texts:
We have a custom megamenu that is not being cached at all and is called on every page. We think it is a good candidate that is slowing down the site especially when profiled on a site with many categories.

The catalog_add_top_menu_items observer is called every time and not cached:

In frontend/custom_theme/default/template/page/html/header.phtml:

We are creating the main header and getting the the top links, search and topmenu in the normal way:

<?php echo $this->getChildHtml('welcome') ?>
<?php echo $this->getChildHtml('topLinks') ?>
...
<?php echo $this->getChildHtml('topMenu') ?>

Then in the topmenu block: RedLightBlinking_MegaMenu_Block_Page_Html_Topmenu extends Mage_Page_Block_Html_Topmenu

it changes the template to a different one:

/**
     * Change template if Mega Menu is enabled
     *
     * @return string
     */
    protected function _toHtml()
    {
        if(Mage::helper('megamenu')->isMegaMenuEnabled()){
            $this->setTemplate('megamenu/page/html/megamenu.phtml');
        }
        return parent::_toHtml();
    }

Then in the template `frontend/custom_theme/default/template/megamenu/page/html/megamenu.phtml:

<?php $_menu = $this->getHtml('dropdown', 'dropdown-menu') ?>

Which calls the getHtml function of Mage_Page_Block_Html_Topmenu which dispatches the event.

So I am unsure why it is not caching at all.
What I tried was remove the $this->setTemplate('megamenu/page/html/megamenu.phtml'); then I just moved the code in there to topmenu.phtml

Update:And that worked. It seems like it now caches.

But I don't know why? Anyone have ideas?

The layout is the standard page.xml:

<block type="page/html_header" name="header" as="header">
                <block type="page/template_links" name="top.links" as="topLinks"/>
                <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
                <block type="core/text_list" name="top.menu" as="topMenu" translate="label">
                    <label>Navigation Bar</label>
                    <block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
                </block>

It only caches the top menu per page. So first load of a unique page will always build the menu items from scratch. Then on subsequent requests, it is cached.


texts: Custom sort order using a product attribute, but this attribute isn't available whilst reindexing 'product flat data'

texts:
we have created a custom category sort order which uses a new product attribute with numerical value. This works great generally, but we are getting front end errors during any time when the Flat Product Data index is being reindexed.
We have flat catalog product enabled.
We have the attribute enabled for 'Used for Sorting in Product Listing'.
We've tried to use the isBuilt() value to detect when an index is being run and skip our sorting code during reindexing, but isBuilt() always returns true whether a reindex is being run or not.

How is this usually done? It seems magento blocks access to the value from the flat table whilst it is reindexing it. Do we need to define an alternative way of pulling the attribute value or is there a simple check to see if the index is running which we can include in an if statement, so that our code is bypassed whilst the reindex is occuring?


texts: Magento 2.4 get value of Dynamic Rows for Ajax

texts:
I've got a form that uses ajax to submit data. I recently added a dynamicRows component to the form and using ajax doesn't appear to be as straight forward.
What I was using (on Non DynamicRows input)
let weight = $('input[name="registration_fieldset[weight]"]').val();//single input from Ui form
        let url = registrationUrl;

        jQuery.ajax({
            url: url,
            type: "POST",
            data: {weight:weight},
            showLoader: true,
            cache: false,
            success: function(response){
                console.log(response.output);
            },
            error: function (response) {
                console.log(response.output);
            }
        });

Getting the value of the DynamicRows element is not the same as a standard input such as:
$('input[name="registration_fieldset[attributes]"]').val();

How can I get the data from the DynamicRows element, in array/json format, with Javascript?
-- Update --
I've managed to get the data in the required format. The problem now is loading data retrieved from ajax into dynamic rows.


texts:
I'm running my store on a Magento 1.9.2.4 installation and after installing a new theme it took ~55 seconds to load but with few changes it went down to ~8 seconds(which is still too much).

So i started searching for an answer and i found a post about TTFB. In my case it is around 4.5 sec(which is ... a lot).

Is there something i can do to fix this(at least cut it in half, instead of ~8sec to bring it down to ~4)?

I have a VPS server from Digital Ocean which has:

Ubuntu 14.04.1 LTS
Apache/2.4.7
MySQL innodb_version 5.5.41

So far i've done this:

Edit .htaccess file to activate compression(mod_deflate)
Activate Cache(and flush them and etc.)
Catalog to flat category/product
Merge Css/Js

Store specifications:

Magento 1.9.2.4
SKU 45.000

P.S: With the default theme and 45.000 products the store goes pretty smooth(~two seconds to load)

P.S.S: After @Haim recommended AOE Profiler i've managed to open one of the scans. Here it is:


texts:
How to get REST API for featured products, Best sellers and Sale products?
Is it possible with searchCriteria parameter?


texts: I have changed the URL of my site from DNS and I did the change on the admin for the new site but now it seems that I lost access, cant access the site or the admin panel, any ideas?


texts: How to enable Magento 1.9.x cache to store in database

texts:
I was searching on how to enable cache to store in database but found nothing. So, my question is:
Does magento do really has the feature to stores cache in the database?

I found out these tables - core_cache and core_cache_tag in the database. Does it meant to store Magento cache? I found that the tables is always empty even I enable cache from Magento admin panel.


texts:
How I can print product image labels that I imported with product csv by default it's showing product name or alt tag.
I just want to display labels of product images like "Big image label", "thumbnail image label", "small image label" ? on product view page, please help me anyone?


texts:
Moving Magento2 from one sub-folder to another sub-folder in same domain displaying 404 error everywhere except home-page. Admin is also displaying 404 error.

Steps to produce:

Copy all files from one folder to another-folder
Created new db and imported from current db
Updated database details in new sub-folder/app/etc/env.php (Only database name is changed).
Modify the value of web/unsecure/base_url and web/secure/base_url in core_config_data table
Clear cache and also tried to changed mode from production to developer and vica versa.

Magento version: 2.1.3


texts:
in Extension Manager i get this error:
Command "show" failed: Failed to clone the git@github.com:i-ways/magento2-paypal-plus.git repository, try running in interactive mode so that you can enter your GitHub credentials In Git.php line 354: Failed to execute git clone --mirror 'git@github.com:i-ways/magento2-paypal -plus.git'
What can I do?


texts:
I have a Magento site (CE 1.9.0.1) with images in the footer. I'm having trouble getting these images to display correctly on the checkout page. Sometimes when I view the page they are displaying correctly and we have a "padlock". Other times the images appear broken and browsers show our checkout as unsafe.

I've looked up this issue, and found that you can refer to the image source without using an http or https protocol. I've taken the protocol out and still off and on results.

Is there something I'm missing, or a better way to do this?

The site in question is here. I appreciate any help!


texts: Magento 1: pros and cons of disabling the indexing on mass product import

texts:
I've got a custom script that automatically import a lot of products at once.

I've seen here and there that it is a huge performance improvement to disable indexing when mass importing products.

My questions are:

Is that sentence true ?
What are the pros / cons of disabling the indexing before importing ?


texts: Product stock not returning to available stock in canceled order

texts:
Is there any explanation of why product stock from canceled order is not returning to available stock?

Step to reproduce:

  I tried to order an item X (until place order)
  Open admin site, edit order (will create a new order and cancel the old order)
  Change the item X to the item Y (assuming that admin recognizes item X is not available).
  At this step, a new order will be created (let's say order #0000001 to order #0000001-1)
  Create an invoice and ship the item.
  Order #0000001-1 status complete and order #0000001 status canceled.

After several steps above I notice that item X stock is not returning after the cancelation process.

I looked into the store configuration and check the setting about "Items' Status to be In Stock When Order is Cancelled" already set to "Yes".

Any advice or information will be appreciated.

Thank you in advance.


texts: Grabbing a Vendor ID from specific item in order

texts:
My site is a multi-vendor marketplace where I only allow customers to purchase items from one vendor at a time.

I'm trying to grab the vendor's name for the Recent Orders and My Orders tables, which seemed like it would be easy to do in my head, but is turning out to require a little more provoking of thought.

The only place on the site that successfully does this already is sales/order/items/renderer/default.phtml.

<?php $_item = $this->getItem() ?>

<tr class="border" id="order-item-row-<?php echo $_item->getId() ?>">

<?php echo $this->htmlEscape($_item->getName()) ?>

        <?php $vendor = Mage::getModel('csmarketplace/vendor')->load($_item->getVendorId());
        if($vendor && $vendor->getId()){
        ?>

<?php echo $this->helper('sales')->__('Vendor') ?>:
    <?php $url =  $vendor->getVendorShopUrl();
        echo "".$vendor->getPublicName()."";?>

    <?php }?>

It's grabbing the vendor's ID and then the URL to their personal shop page, along with their name.

So I'm using this to help me find a way to do the same in sales/order/recent.phtml and sales/order/history.phtml.

I've tried the following:

$vendor = Mage::getModel('csmarketplace/vendor')->load($_order->getVendorId())->getPublicName();

And it results in no error, but also displays nothing.

Relevant variables/statements from recent.phtml and history.phtml:

$order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
$_orders = $this->getOrders();

<?php foreach ($_orders as $_order):

<?php echo $this->__('Seller') ?>
//Insert Vendor name here

 ?>

My thought process thus far has been to try to grab the parent item or item collection and then getVendorId() using that, but have had no luck.  I understand there's a lack of code from the multi-vendor part, but I'm really just looking for ideas that could work.

I can't seem to find the connection between getItem(), used in default.phtml and getItems() which is used in the recent.phtml and history.phtml.


texts: Magento 2: Display Count With Admin tab menu link

texts:
i want to display count with the admin tab menu link to show the number of pending orders or what..

but this tab menu link is generated by xml, how can i do that.

Please suggest a solution.


texts: Magento 2 fieldset.xml; copy fields from quote to order

texts:
I have created a custom model to create order from quote;
I am using fieldset.xml to copy quote custom codes to order. I have created custom columns in both quote and order with matching fields. When order is placed values are storing in quote custom fields but not copying to order. Below  is my fieldset.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:framework:DataObject/etc/fieldset.xsd">
<scope id="global">
    <!--quote convert to order-->
    <fieldset id="sales_convert_quote">
        <field name="preorder_number">
            <aspect name="to_order" />
        </field>
        <field name="purchase_order_number">
            <aspect name="to_order" />
        </field>
        <field name="reference_number">
            <aspect name="to_order" />
        </field>
    </fieldset>
    <!--quote item convert to order item-->
    <fieldset id="quote_convert_item">
        <field name="preorder_number">
            <aspect name="to_order_item" />
        </field>
        <field name="purchase_order_number">
            <aspect name="to_order_item" />
        </field>
        <field name="reference_number">
            <aspect name="to_order_item" />
        </field>
    </fieldset>
</scope>

What else I need to do?


texts: Magento 1.9 - Share/copy wishlist between customers

texts:
Are there any ways to copy a customers wishlist, and then import it into another customers wishlist?

Thanks.


texts: How to Send Emai SMTP with template in magento 2?

texts:
I follow this respitory to send SMTP email and it successfully done, but right now if i want to set the template for email i have to use setBodyHtml() like this:

$body = '<html><head> </head> <body> <p> test </p> </body> </html>';
$this->_message->setBodyHtml($body);

the above code can generate html code for email in magento 2, but i think this is not the right way for using email template in magento 2, what i want is using template like magento documentation in here


texts: Configurable product displaying out of stock

texts:
Front end configurable product is showing a consistent "Out of stock" with a correctly set up configurable product. The following is what i have triple checked:

Configurable product is visible and set to in stock
Configurable product Manage stock is yes and qty increments no.
Configurable product has three associated simple products all are enabled with non-zero qty's and in stock.
All simple products are set to not visible individually.
Attribute is setup correctly with a Global scope and is applied to both simple and configurable products.
Another test configurable product was made from scratch to confirm it was not a one off issue.

I am 100% certain the issue is not with the creation of the configurable product itself and am putting it down to possibly a magento core code issue? However i will note none of the core magento code has been modified. My own custom theme is being used with appropriate layouts and templates. Perhaps i haven't loaded a specific javascript snippet or something in one of my templates? im not too sure of how the configurable product is any different from a standard product loading the stock status (which yes is working for my normal simple products).

Any help is much appreciated.


texts:
I upgraded an extension for points which can be used at checkout, and it seemingly broke my OPC. No payment methods are displayed at all.

I'm not sure what happened, but it caused my PayPal settings to force me to input API credentials, when it didn't before. It also forced me to use Express with Standard. I looked this up and changed it back manually via core_config_data.

I uninstalled the extension, however they still aren't appearing.

I'm looking for any suggestions on what to do. I did not take a backup before upgrading this extension. Yeah, I know, I've learned my lesson.

A backup of the entire app folder did nothing.


texts: Custom Dropdown Attibute in Custom Module In magento 2

texts:
I am using Magento 2.1.0, and i created one custom module.  i created form through ui_component. now i want to create one city dropdown and one status is_active field.

How is this both possible with Ui_component?

For Status:

<field name="is_active">
    <argument name="data" xsi:type="array">
                <item name="options" xsi:type="object">Magento\Cms\Model\Page\Source\IsActive</item>
                <item name="config" xsi:type="array">
       <item name="formElement" xsi:type="string">input</item>
                <item name="filter" xsi:type="string">select</item>
                <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
                <item name="editor" xsi:type="string">select</item>
                <item name="dataType" xsi:type="string">select</item>
    <item name="validation" xsi:type="array"><item name="required-entry" xsi:type="string">false</item>
    </item>
                <item name="label" xsi:type="string" translate="true">Status</item>
            </item>
    </argument>
    </field>

For City Dropdown:

field name="city">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
                <item name="filter" xsi:type="string">select</item>
    <item name="formElement" xsi:type="string">select</item>
                <item name="editor" xsi:type="string">select</item>
                <item name="visible" xsi:type="boolean">false</item>
                <item name="dataType" xsi:type="string">select</item>
                <item name="label" xsi:type="string" translate="true">city</item>
                <item name="sortOrder" xsi:type="number">50</item>
            </item>
        </argument>
    </field>


texts:
From the Magento , I can tell by folder name
Module-bundle is for bundle products
Module-configurable-product for configurable product

so what about the simple product? I can't find where it is, I want to make some change on it.

Thanks!


texts: Magento 2 All Products pages Redirect to catalog search

texts:
I am facing an issue which is I am not able to access any products pages.
Either trying to access them directly via product url or product page

Or via Search Results

Or via Site Navigation

every time i try to access a product I get redirected to
a search results page instead of the product page

catalogsearch/result/

for example

http://www.mydomain.co.uk/catalogsearch/result/?q=catalog+product+view+id+28307+s+test-20-june-products

This issue I noticed after I upgraded from Magento 2.2.2 to 2.2.6 But it may have been happening from before until most recent the site and links were working fine.

One other changes I made is to remove the .html for categories via the admin settings Admin - Stores - Catalog - Catalog

Search Engine Optmization
Category Url Suffix   -

I enabled Flat Catalog:

Use Flat Catalog Category - YES
Use Flat Catalog Product  - YES

Create Permanent Redirect for URLs if URL Key Changed - YES

I have run this extension to regenerate new rewrites
https://github.com/olegkoval/magento2-regenerate_url_rewrites

But same issue is there.

Also I noted that after the extension has run checking the url rewrites information in admin it showing redirect type - NO

should this be showing as Permanent  ?

I have Elastic search and Amasty Elastic search - Amasty Advance Search extensions installed but the site was working fine previously with these extension - I am not sure if the issue is Upgrade related pro Happened after I made the changes mentioned above

Really appreciate some help with this


texts: Best way to migrate from opencart 1.5.3 to magento 1.9

texts:
Hi Magento Developers ,

I have a opencart website with,

60 products
555 Orders
1837 Customers

I'm in need to migrate entire opencart to magento, so far i've done the fronted theme. Now the biggest issue I’m facing is with database migration for products, orders, customers.

I've googled a bit and found some of solutions,

http://www.shopping-cart-migration.com/ An expensive premium service
Manually creating and mapping all together. (An time taking process but not sure whether this will work or not)

So do you guys have any other way to solve this database migration from opencart to magento ?

Please share your ideas.


texts: Why does Luma sample use widget and block for home page?

texts:
In the sample data with the Luma theme the home page is implemented with a Widget ("Home Page" Widget of type "CMS Static Block") plus block ("Home Page Block" containing the page content area html).

Particularly for a learning example, why not simply use a Page? It seems you can put the content into the Page, and assign the page to the CMS Home Page > Main Content Area.  Would that not achieve the same effect?

(Related question with diagram: How does Luma theme home page work?)


texts: Notice: Undefined index: files in app/code/core/Mage/Core/Model/Translate.php on line 1

texts:
Notice: Undefined index: files  in /home//public_html/.com/app/code/core/Mage/Core/Model/Translate.php on line 139

#0 /home//public_html/.com/app/code/core/Mage/Core/Model/Translate.php(139): mageCoreErrorHandler(8, 'Undefined index...', '/home/farmacam/...', 139, Array)
#1 /home//public_html/.com/app/code/core/Mage/Core/Model/App/Area.php(146): Mage_Core_Model_Translate->init('adminhtml')
#2 /home//public_html/.com/app/code/core/Mage/Core/Model/App/Area.php(121): Mage_Core_Model_App_Area->_initTranslate()
#3 /home//public_html/.com/app/code/core/Mage/Core/Model/App/Area.php(93): Mage_Core_Model_App_Area->_loadPart('translate')
#4 /home//public_html/.com/app/code/core/Mage/Core/Model/App.php(774): Mage_Core_Model_App_Area->load()
#5 /home//public_html/.com/app/code/core/Mage/Core/Controller/Varien/Action.php(512): Mage_Core_Model_App->loadArea('adminhtml')
#6 /home//public_html/.com/app/code/core/Mage/Adminhtml/Controller/Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch()
#7 /home//public_html/.com/app/code/core/Mage/Core/Controller/Varien/Action.php(407): Mage_Adminhtml_Controller_Action->preDispatch()
#8 /home//public_html/.com/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#9 /home//public_html/.com/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#10 /home//public_html/.com/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#11 /home//public_html/.com/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#12 /home//public_html/.com/index.php(87): Mage::run('', 'store')
#13 {main}

TRANSLATE.PHP:

foreach ($this->getModulesConfig() as $moduleName=>$info) {
            Mage::log($moduleName);
            $info = $info->asArray();
            $this->_loadModuleTranslation($moduleName, $info["files"], $forceReload);

        }

var_dump($info["files"]):

array(1) { ["default"]=> string(13) "Mage_Core.csv" }


texts:
I need $this->getJsonConfig() but its empty and i dont know why or where to search
<?php $loadedProduct = $this->loadProduct(); ?>
<?php $this->setProduct($loadedProduct); ?>
<?php $_product = $this->getProduct(); ?>

...

var opConfig = new Product.Options(<?php echo $block->getJsonConfig() ?>);

Do i miss something?
I call this in an .phtml file


texts: How getRowTotalInclTax() is calculated for magento cart page

texts:
I am facing a problem in which row total of products are not taking special price for some products. I need to check the calculation from where it is calculated.

Anyone who knows the file in which it is calculated.


texts: Count of viewable products in a category

texts:
Is there any pre-defined way in Magento to get all "viewable" products ?

I want to calculate total count of the products that are viewable in the category page. I know that in each category page, there is a current_category registry that we can use to calculate the number of products in the current category but I want a way to do it for all categories and store the results in a table for each category in each website-store.

The getProductCount not giving the exact number of viewable-only products also simple getProductCollection or similar functions don't return correct results.

Of course viewable products should be enabled, visible, In stock and with qty > 0 and for configurable products there might be at least 1 associated product that have above conditions in the current store view. But there might be stores that show Out of stock products also and label with "Out of Stock".

I want to calculate the exact number shown in category page, how can I do that ? Is there any easy way for this ? Or I need to write complex queries and retrieve data directly from the database?

i.e: I want the exact number calculated here in category page:


texts:
I am trying to setup one of the magento 2 extension with cygwin which is from this source https://github.com/ibnab/magento2-extension-change-attribute-set
and I am getting this error during installion

PLEASE RE-RUN MAGENTO COMPILE COMMAND

  magento-2.0.5 - windows-7 X64 - terminal is = cygwin - opensshd is
  installed correctly.

I really need to setup that extension.

thank you.


texts: How to remove complete header and footer from checkout/cart and afterwards all pages in magento

texts: I have to remove complete header and footer from checkout/cart page to all onwards pages in magento 1.7. All I know that I need to add   <remove name="header"/> in the "checkout.xml" file but whenever I'm trying to add that same line, Either nothing reflecting on front-end or a blank page appear on front-end.


texts: How to fix the error generated by magento marketplace technical report

texts:
I have uploaded an extension to the Magento marketplace and during the technical review, an error is reported. The details are the following.

  Errors during installation

  Please visit the Magento DevDocs guide in order to learn how to
  install extensions and use CLI.

  Environment: Operating System - Centos 7, PHP Version - 5.6, Magento
  Platform - 2.1 CE

    Command: composer require mynamespace/myextension:1.0.0' Installation
    issue: Do not run Composer as root/super user! See
    https://getcomposer.org/root for details ./composer.json has been
    updated Loading composer repositories with package information
    Updating dependencies (including require-dev) Your requirements could
    not be resolved to an installable set of packages.

  Problem 1

    Installation request for magento/magento2ce 2.1.4 -> satisfiable by magento/magento2ce[2.1.4].
    mynamespace/myextension 1.0.0 requires magento/framework ~100.0.4 -> satisfiable by magento/framework[100.0.10, 100.0.11, 100.0.12,
    100.0.13, 100.0.4, 100.0.5, 100.0.6, 100.0.7, 100.0.8, 100.0.9].
    don't install magento/framework 100.0.10|remove magento/magento2ce 2.1.4
    don't install magento/framework 100.0.11|remove magento/magento2ce 2.1.4
    don't install magento/framework 100.0.12|remove magento/magento2ce 2.1.4
    don't install magento/framework 100.0.13|remove magento/magento2ce 2.1.4
    don't install magento/framework 100.0.4|remove magento/magento2ce 2.1.4
    don't install magento/framework 100.0.5|remove magento/magento2ce 2.1.4
    don't install magento/framework 100.0.6|remove magento/magento2ce 2.1.4
    don't install magento/framework 100.0.7|remove magento/magento2ce 2.1.4
    don't install magento/framework 100.0.8|remove magento/magento2ce 2.1.4
    don't install magento/framework 100.0.9|remove magento/magento2ce 2.1.4
    Installation request for mynamespace/myextension 1.0.0 -> satisfiable by mynamespace/myextension[1.0.0].

  Installation failed, reverting ./composer.json to its original
  content. Build step 'Execute shell' marked build as failure Finished:
  FAILURE

My composer.json:

{
  "name": "mynamespace/myextension",
  "description": "Decription will come here",
  "type": "magento2-module",
  "version": "1.0.0",
  "license": [
    "OSL-3.0",
    "AFL-3.0"
  ],
  "require": {
    "php": "~5.5.0|~5.6.0|~7.0.0",
    "magento/framework": "~100.0.4"
  },
  "autoload": {
    "files": [
      "registration.php"
    ],
    "psr-4": {
      "Mynamespace\\Myextension\\": ""
    }
  }
}

Can anyone please tell me how to fix this error.


texts:
I am looking for a solution in which asp.net web page place an order to my store. I have seen some solutions they are using the wsdl reference which is now obsolete . can anyone please help me in sharing it

Thanks in advance


texts: Catalog Search Sorting Broken With Umlauts / Special Characters

texts:
There is a catalog search Magento bug in 1.9.3.0 - 1.9.3.4. You can reproduce it like that:

Create a product with an umlaut in the name like "über".
Search for the umlaut like "ü" in the frontend.
Search results are shown. Now change the sorting from "relevance" (default) to e.g. "name".
Encounter the bug:

[expected] see the results ordered by name.
[actual] see a broken page:

Mind that this is NOT an .htaccess issue as described here. How can this be solved?


texts: Magento2: Hide custom module field if the Require Emails Confirmation is active

texts:
I need to hide the custom module field if the "Require Emails Confirmation" option is active.

Here is the screenshot for more detail

Here is my  code:

         <class>abc_settings</class>
         Settings
         <tab>mkt</tab>
         <resource>Abc_Mkt::abc_mkt</resource>

         <group id="general" translate="label" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
            Customer Sync
            <field id="mkt_lead_integration" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">

               Enable Customer Sync on Signup
               <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                <depends>
                    <field id="customer/create_account/confirm">1</field>
                </depends>
            </field>

         </group>

Please suggest how can I achieve this?


texts: magento extension to integrate with blue dart shipping company

texts:
we integrated with blue dart shipping company.

we want to know how to create labels, how to track the location for bluedart.

is there any extension which supports this kind of functionality

please help me to find solution.

thanks in advance.


texts: Calling custom js function after Knockout grid loads

texts:
I have a module to modify the Admin Order Grid using Javascript. As far as I can tell it doesn't work because the Knockout JS hasn't loaded when the custom function is called. If I run the function in the console, it works just fine.

All the files are loading as expected, the only thing that seems to be failing is the timing of when the function is called when the page loads.

My custom JS file - fancy.js:

define([
    "jquery",
    "jquery/ui",
    "domReady!"
    ], function($){
    "use strict";

    return {
        fancyFunction: function () {

            // Fancy code goes here

            });
        }
    }
});

The requirejs-config.js file:

var config = {
    map: {
        '*': {
            fancy: "Vendor_Module/js/fancy"
        }
    },
    shim: {
        fancy: {
            deps: ['jquery']
        }
    }
};

The custom phtml - fancy.phtml:

<script type="text/javascript">
    requirejs(['fancy', "domReady!"], function(fancy){
        fancy.fancyFunction()
    });
</script>

Last but not least, sales_order_index.xml to bring the phtml in:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="before.body.end">
            <block class="\Magento\Framework\View\Element\Template" template="Vendor_Module::fancy.phtml" name="fancy"/>
        </referenceContainer>
    </body>
</page>

How can I force fancyFunction() to wait until the Knockout grid is done loading?

I was looking into placing an afterRender into the grid but struggling to work out where the Admin Sales Order Grid html file even lives...

I don't want to use this JS on all grids, only the Admin Sales Order Grid


texts: Redirect multiple CMS forms to the original form pages

texts:
I have three contact-us forms that are CMS pages. They are on separate websites, and they all have different URL keys. The CMS pages have their own phtml forms but use the same controller action (form_action="/contacts/index/post") for posting as defined in the CMS.

Current behavior:

Each of these forms submit just fine, but, after submission, they are redirected to the /contacts/index/ (through $this->_redirect('*/*/')) and the redirected pages are not what the customer started from, of course.

Desired behavior:

I would like the redirected page to be the same form page that the customer starts from. What's one of the cleanest and make-sense way to do this? Should I create an extension with a controller that basically does what the Mage_Contacts module does, but with a different redirect logic?