texts: Custom Products - Big Options - Multi page sequence problem

texts:
I'm creating a product (it's always a custom build - so there is never any stock to manage) with a massive number of options.....
I want to break the product down into sub sets and allow the user to select from drop down boxes or enter text fields for each of the sub sets. Some of the options will have an extra cost.
Some of the options also have their own sub sets (which complicates things even more)
To better explain
PRODUCT
SIZE
SEX (Drop Down Selector)
HEIGHT
WEIGHT
MEASUREMENT A
MEASUREMENT B
MEASUREMENT C
MEASUREMENT D
MEASUREMENT E
CUSTOM OPTIONS
OPTION 1 (Yes/No) +£0.00
(If Option 1 = Yes)
SubOption 1 (Text Field),
SubOption 2 (Dropdown)
OPTION 2 (Yes/No) +£0.00
OPTION 3 (Drop Down) +£5.00 - £355.00
OPTION 4 (Yes/No) +£45.00
OPTION 5 (Yes/No)
OPTION 6 (Text Field)
FURTHER OPTIONS
OPTION 1 (Drop Down)
OPTION 2 (Drop Down)
OPTION 3 (Drop Down)
OPTION 4 (Drop Down)
OPTION 5 (Drop Down)
OPTION 6 (Drop Down)
..... and so on...
I don't want all the options to be listed on the same page, as it's going to look pretty overwhelming and lead to dropped sales.
The Magento system doesn't quite appear to be able to handle this - or I'm missing how to do it, so any help would be very much appreciated.


texts: When searching the products displayed page title is different in magento2. Before login display customer login title and after login shown correct title.Please help me any one.


texts: Get product Image from Review Collection

texts:
I have a ReviewCollection, im trying to each "Review/Product" get a product image so i can pass on and display on template file:

public function getCollection()
{
    $collection = $this->_reviewsColFactory->create()->addStoreFilter(
            $this->_storeManager->getStore()->getId()
        )->addStatusFilter(
            \Magento\Review\Model\Review::STATUS_APPROVED
        )->setDateOrder();

    $arr = array();
    foreach ($collection as $_review) {
        $days = $this->returnDays($_review);
        if ($days <= $this->_days) {
            if (!isset($arr[$_review->getSku()])) {
                $arr[$_review->getSku()]['cont'] = 1;
            } else {
                $arr[$_review->getSku()]['cont']++;
            }
            $arr[$_review->getSku()]['productUrl'] = $_review->getProductUrl();
            $arr[$_review->getSku()]['productName'] = $_review->getName();
            $arr[$_review->getSku()]['productImg'] = $_review->getImage();
        }
    }
    // arsort($arr);

    return $collection;
}

In that case is every $_review a Model/Product ?
Ty


texts: How can i check whether user is logged in or not in magento 2.0

texts:
How can I check whether user is logged in or not in Magento 2.0
I using phtml file I want to check user logged in or not.

        <span data-bind="text: customer().fullname ? $t('Welcome,%1').replace('%1', customer().firstname) : '<?=$block->escapeHtml($welcomeMessage) ?>'">


texts:
I have used config.xml for permission allow to user. Here are my code. But i am getting error access denied for new user. Please suggest me where is i am wrong.

  <adminhtml>
    <menu>
        <formbuilder module="formbuilder">
            <title>Form Builder</title>
            <sort_order>77</sort_order>
            <children>
                <items module="formbuilder">
                    <title>Manage Forms</title>
                    <sort_order>0</sort_order>
                    <action>formbuilder/adminhtml_formbuilder</action>
                </items>
            </children>
        </formbuilder>
    </menu>
    <layout>
        <updates>
            <formbuilder>
                <file>formbuilder.xml</file>
            </formbuilder>
        </updates>
    </layout>
    <acl>
        <resources>
            <all>
                <title>Allow Everything</title>
            </all>
            <admin>
                <children>
                    <formbuilder module="formbuilder">
                        <title>Form Builder</title>
                        <sort_order>77</sort_order>
                        <children>
                            <items module="formbuilder">
                                <title>Manage Forms</title>
                                <sort_order>0</sort_order>
                                <action>formbuilder/adminhtml_formbuilder</action>
                            </items>
                        </children>
                    </formbuilder>
                </children>
            </admin>
        </resources>
    </acl>
</adminhtml>

In controller we are used this code

protected function _isAllowed(){  return true;}


texts: Magento 2: Update database table add new columns like created_at and updated_at from module

texts:
UpgradeScema.php

<?php
namespace Lucent\MegaMenu\Setup;

use Magento\Framework\Setup\UpgradeSchemaInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\SchemaSetupInterface;
use Magento\Catalog\Model\ResourceModel\Product\Gallery;
use Magento\Catalog\Model\Product\Attribute\Backend\Media\ImageEntryConverter;

/**
 * Upgrade the Catalog module DB scheme
 */
class UpgradeSchema implements UpgradeSchemaInterface
{
    /**
     * {@inheritdoc}
     */
    public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $context)
    {
        $setup->startSetup();

        //if (version_compare($context->getVersion(), '0.2.0', '<')) {

            $tableName = $setup->getTable('lucent_megamenu');
            $setup->getConnection()->addColumn('creation_at',Table::TYPE_TIMESTAMP,null,['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],'Creation Time')
            ->setComment('MegaMenu Table');
      //  }
        $setup->endSetup();
    }
}
?>


texts: Magento 2: Add new step in checkout under Reviews&Payments

texts:
I want to add a new step in checkout step 'Reviews&Payments'(like Apply discount code).

Please refer the screenshot.
http://i.prntscr.com/Gb4G60gFRfWbSl1uqFu4vA.png

I have tried many links, but getting added as a separate step. Please refer the screenshot.
http://i.prntscr.com/TvFf_G6LTFOjUawOBhmWgg.png

I want to display it under 'Reviews&Payments' Step.

Please help!


texts:
I have an interesting situation where on a CMS page, I am defining some new blocks in the update_layout_xml section - that need to be referenced from within the CMS content itself using shortcode syntax {{block ...}}

I know it is possible to define new blocks to be instantiated from a CMS textarea - but is it possible to reference an existing block to define the exact position that it needs to be inserted.

Using update_layout_xml only permits positioning using before= or after= - whereas I need more granular control for positioning the element within the content block itself. If this were to be done via a phtml file - it would just be a case of using getChildHtml - but there doesn't seem to be an equivalent for CMS.

I know I can extend Mage_Widget_Model_Template_Filter and add a new function - but is there already a core method for doing this?


texts: Detect order status change on DB and send email [Magento 2]

texts:
We are updating the order status from external system directly on the database and it works fine for presentation purposes. However, Magento does not recognise the order status change to trigger relevant emails.

So the questions are:

Is there a way to 'tell' Magento that an order status changed and to process the change as normal (triggering the email as normal) ? No REST API known to us.

If not, should we be implementing a custom REST API end-point to trigger the email to be sent (even if that means statuses and email templates relations are stored elsewhere) ?


texts: 302 Redirection https to http is not working

texts:
I want to redirect website from https to http 302. I am using below code:

    RewriteEngine on
    RewriteBase /
    RewriteCond %{HTTPS} on
RewriteRule ^/?$ http://%{www.example.com}/ [L,R=302]

But it is not working. How can I do?


texts: Magento 2 : Module to send Delivery Notification

texts:
Anyone know a Module for Magento 2.1

Which will able to send Delivery Notifications of items?
( For UPS or FedEx )

  Ex:
  Item in Transisit Notification.
  Item Arrived to Destination Country Notification.
  Item Delivered Notification.


texts:
I'm trying to compare an attribute value with a custom value.
We use the getAttributeRawValue to get the product's attribute. That give's me the ID of the value. (If that makes sense).

Currently I use this line:

$col = Mage::getResourceModel('catalog/product')->getAttributeRawValue($simp, 'manufacturer_color', 0);`

Attribute with code manufacturer_color is of type Select

which outputs 1587, I want it to output the 'label' value which in my case should be blue.


texts: CMS pages showing under product category dropdown

texts: I created navigation links for CMS pages like AboutUs, Contact, How-it-Works etc using the rewrite URL method for categories. The page links are now showing and working on the home page. But now, the issie is that these CMS pages are also showing under category drop down. But they are not product categories but static pages. How to remove them from category dropdown ?


texts:
In the product list, I want to check if product video exists show button video

  like this:

and when I click on the button video will be played like modal.

Any way to solve it?
Thank in advance.


texts:
If I install Magento 2 via composer, I end up with a root level folder named update/

This contains the stand-alone updater application.

Where do the updater come from?  I know Magento's composer installer copies a lot of stuff out of the

vendor/magento/magento2-base

module, but the update application isn't in this this folder.  In fact, none of the files in the update application appear anywhere in vendor folder. (or do they?)

Does anyone know where these files come from, and what puts them on your system when installing Magento via the composer.phar create-project method?


texts: Which EE version (release) is analog to which CE version?

texts: Is there anywhere an official list which EE version is equivalent to which CE version? Thanks


texts: how to associate simple product to configurable product magento 2

texts: I have 6 simple products and 2 that have same attributes( number of page and color ) so when i tried with the geneerate configuration i just have 6 products childs but i can't add the two others so i deleted all the product the i created the child (simple pdoduct) then i tried to associate them manually but i am just able to add 6 and the others product that have same attributes i can't add them is there a way to add from BO a simple product to configurable product not according to configuration and do anyone faced this issue ?? help please


texts: Attributes IF function - Displays custom product availability status

texts:
I'm trying to have custom product availability messages displayed instead of the standard "In/Out of Stock" messages by using product attributes.

e.g "1-2 Weeks", "In Workshop" etc.

I've been editing these messages in template/catalog/product/view/type but I'm having a bit of trouble with the syntax and calling attributes correctly.

<?php
<?php if ($this->displayProductAttribute()): ?>
    <?php if ($_product->isAttributeText('weeks')): ?>

<?php echo $this->__('Availability:') ?> <link itemprop="availability" href="http://schema.org/InStock" /><?php echo $this->__('2-3 Weeks') ?>

    <?php else: ?>
<?php if ($this->displayProductStockStatus()): ?>
    <?php if ($_product->isAvailable()): ?>

<?php echo $this->__('Availability:') ?> <link itemprop="availability" href="http://schema.org/InStock" /><?php echo $this->__('In stock') ?>

    <?php else: ?>

<?php echo $this->__('Availability:') ?> <link itemprop="availability" href="http://schema.org/OutOfStock" /><?php echo $this->__('Out of stock') ?>

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

Learning PHP as I go and I'm not 100% sure of Magento's native attribute call.
If somebody could have a quick scan and give me their thoughts I'd be very grateful.


texts: How to set up multiple admin with their own orders?

texts:
In my magento website i have multiple admin system so what i need here is to make such a system in which, when the customer place an order the super-admin can assign it to the sub-admin and these admins can see only those orders in sales orders grid which have assigned to them only.

Is it possible if yes then please reply,

Thanks in advance,

Sarvagya


texts: how to check customer attribute in module?

texts:
I want to get the custom customer attribute in the module and see if it is empty or not but this code doesn't work for me, can we get customer attribute in our module?
should I use the products to get the customer attribute?

class X_MyCarrier_Model_Carrier extends Mage_Shipping_Model_Carrier_Abstract implements Mage_Shipping_Model_Carrier_Interface {

protected $_code = 'x_mycarrier';

public function collectRates(Mage_Shipping_Model_Rate_Request $request) {
   if(Mage::getSingleton('customer/session')->isLoggedIn()) {

        $customerData = Mage::getSingleton('customer/session')->getCustomer();
        $cust_id= $customerData->getId();
        $_customer = Mage::getModel('customer/customer')->load($cust_id);
        $_attr=$_customer->getCustomAttribute();
    }

and to check the attribute I used this:

   if(!empty($_attr)&& $_attr=='my_attribute')
            $result->append($this->_getExpressShippingRate());

also because of $request I can have :

  if ($request->getAllItems()) {

            foreach ($request->getAllItems() as $item) {
                if ($item->getProduct()

but I don't know how to get the customer here
if I want to get the attribute with this way:


texts: Magento 2.3 FedEx Customs Clearance is required

texts:
FedEx provided us a Production account but they pointed out they do not SUPPORT third-party extensions even if it's a built-in Magento FedEx extension.

Shipping Rates are generated

But we can't SHIP an order as it is showing Custom Clearance is Required here: Admin> Sales > Order
Could you help which Log file should be checked to find the culprit easier also, is there an XML response and request file that we can check for FedEx extension?
Now the error when processing an order is:
Invalid item description for clearance for package 1.


texts: Shopping Cart Price Rule for European Union Countries

texts:
In Shopping Cart Price Rule I can set condition as "Shipping Country" "is" or "is not". I need to extend this condition to all European Union Countries. Since Magento has this configuration in

system > configuration > general > countries options

there is a way to use it in Shopping Cart Price price condition?


texts:
I need to make a website, let's call it shop.com, that manages other providers on subdomain (p1.shop.com, p2.shop.com...).

So, I successfully make all the websites works, but now I need to make shop.com "manage" websites on home page:

I need a nav bar to go to subdomain websites
Display information about providers, there will be possibility for customer to evaluate provider (so I need to make another database for that, I think).

My question is: how do I set this up? I mean I know how to make it in PHP but how do I implement this?

I have already done some research but I'm still lost..

I found how I can make a custom module, so I suppose, if I go this way, I will need to make some modules:

management module, that will have some page layout, home page with all providers, detail of provider etc...
navbar module that will display the navbar.

The problem is: I can access the module with its URL ( shop.com/module/controller/controller) and I found this :

{{block class="Tutorial\SimpleNews\Block\NewsList" name="tutorial_simplenews_news_list" template="Tutorial_SimpleNews::list.phtml"}}

to implement the module on the home page, but CSS styles don't work on the home page.

So here it is, all I know at the moment. Do you think it's a good solution, or are there better solutions? If you want more information just ask me, I understand that it can be not really clear.


texts: Show custom attribute in sidebar wishlist

texts:
I have a sidebar whislist
/app/design/frontend/base/default/template/wishlist/sidebar.phtml
I need to add a "custom attribute" called manufacturer.

I have tried many options like these but all don't show a thing:

<?php echo $this->getManufacturer()) ?>

<?php echo $this->htmlEscape($_item->getData('manufacturer')); ?>
<?php echo $_product->getManufacturer() ?>

<?php $_item = $this->getItem()?>
<?php $_product= Mage::getSingleton('catalog/product')->load($_item->getProductId()) ?>
<?php echo $_product->getResource()->getAttribute('manufacturer')->getFrontend()->getValue($_product); ?>

<?php echo $item->getAttributeText('manufacturer') ?>
<?php echo $item->getResource()->getAttribute('manufacturer')->getFrontend()->getValue($item); ?>

Thisone shows "3" and no manufacturer name, at least showing something..

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

How can I get my manufacturer there? I can show them about everywhere else..


texts: how to override subcategory description page magento 2....?

texts:
Actually i want to move subcategory description left.Is it possible please suggest me.

below code not useful.

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

<?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="Mage_Tempjs" setup_version="2.0.2" active="true">

    </module>
</config>


texts: coupon code only allowed to be used programmatically

texts:
I am looking for a way to have a coupon code that can only be used through code and not be allowed to be used in the cart.  I am programmatically adding the coupon code to the cart when the user is redirected to the site through a 3rd party system to a hidden url.   This way the coupon code can not be distributed on the net and only used when coming from the 3rd party system.

Any idea how I can do this?


texts:
So i am trying to override the module-customer -> Block -> Account -> AuthorizationLink.php

What i did is:

I made a folder Customer in:

app -> code -> Theme -> Customer

in the Customer Folder there is 2 more folders: etc and Block/Account

in the etc folder there is xml called di

di.xml:-

 <?xml version="1.0"?>

 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Magento\Customer\Block\Account\AuthorizationLink" type="AXAStudios\Customer\Block\AuthorizationLink" />
</config>

and in my Block/Account i have a file called: AuthorizationLink.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace AXAStudios\Customer\Block\Account;

use Magento\Customer\Model\Context;
use Magento\Customer\Block\Account\SortLinkInterface;

/**
 * Customer authorization link
 *
 * @api
 * @SuppressWarnings(PHPMD.DepthOfInheritance)
 * @since 100.0.2
 */
class AuthorizationLink extends \Magento\Customer\Block\Account\AuthorizationLink
{
    /**
     * Customer session
     *
     * @var \Magento\Framework\App\Http\Context
     */
    protected $httpContext;

    /**
     * @var \Magento\Customer\Model\Url
     */
    protected $_customerUrl;

    /**
     * @var \Magento\Framework\Data\Helper\PostHelper
     */
    protected $_postDataHelper;

    /**
     * @param \Magento\Framework\View\Element\Template\Context $context
     * @param \Magento\Framework\App\Http\Context $httpContext
     * @param \Magento\Customer\Model\Url $customerUrl
     * @param \Magento\Framework\Data\Helper\PostHelper $postDataHelper
     * @param array $data
     */
    public function __construct(
        \Magento\Framework\View\Element\Template\Context $context,
        \Magento\Framework\App\Http\Context $httpContext,
        \Magento\Customer\Model\Url $customerUrl,
        \Magento\Framework\Data\Helper\PostHelper $postDataHelper,
        array $data = []
    ) {
        parent::__construct($context, $data);
        $this->httpContext = $httpContext;
        $this->_customerUrl = $customerUrl;
        $this->_postDataHelper = $postDataHelper;
    }

    /**
     * @return string
     */
    public function getHref()
    {
        return $this->isLoggedIn()
            ? $this->_customerUrl->getLogoutUrl()
            : $this->_customerUrl->getLoginUrl();
    }

    /**
     * @return string
     */
    public function getLabel()
    {
        return $this->isLoggedIn() ? __('Sign Out') : __('Sign In');
    }

     /**
     * @return string
     */
    public function getLabelOrder() {
        return __('My Orders');
    }

    /**
     * Retrieve params for post request
     *
     * @return string
     */
    public function getPostParams()
    {
        return $this->_postDataHelper->getPostData($this->getHref());
    }

    /**
     * Is logged in
     *
     * @return bool
     */
    public function isLoggedIn()
    {
        return $this->httpContext->getValue(Context::CONTEXT_AUTH);
    }

    /**
     * {@inheritdoc}
     * @since 101.0.0
     */
    public function getSortOrder()
    {
        return $this->getData(self::SORT_ORDER);
    }
}

But whenever i upload it to the server and flush cache there is nothing that changed.

so any help?

Thanks.


texts: i want to create a registration form in luma page#magento2#php#html

texts: i created a contact form and i want the data that is written in that form to show up in admin panel can you let me know the process for performing and any links or code would be helpful for my training in magento 2


texts: Magento how to incorporate product attribute set into URL for XML sitemap and canonical URL

texts:
By default the Magento XML sitemap and canonical URL features ignore categories and write all URLS as

www.example.com/model1a

It appears that these features can't use categories because a product can be under more than one category. However, a product can only be under one attribute set, and it just so happens that my attribute sets line up pretty well with my base level categories so I was wondering what changes I would need to make to get Magento to use attribute sets in the XML sitemap and canonical URL tags? For example, if product "Model1A" was of attribute set "Foo", I would like the XML sitemap and canonical URL to show:

www.example.com/foo/model1a

I've been looking around for a bit but could not find a straight forward explanation about this. I suppose for the canonical URLs I could disable the feature and edit a phtml template to include the tag manually the way I want to build it, but I'm particularly lost when it comes to changing how the XML sitemap is generated. Any suggestions?


texts: Error logging in the admin panel Fatal error: Class 'Magpleasure_Filesystem_Helper_Data' not found .../app/Mage.php on line 546

texts:
When I log into the admin panel I get this error at the top, Fatal error: Class 'Magpleasure_Filesystem_Helper_Data' not found  .../app/Mage.php on line 546

and i can see any menu?

Mage.php

 public static function helper($name)
    {
        $registryKey = '_helper/' . $name;
        if (!self::registry($registryKey)) {
            $helperClass = self::getConfig()->getHelperClassName($name);
            self::register($registryKey, new $helperClass);
        }
        return self::registry($registryKey);
    }


texts: how to get configurable product price on recently viewed products in magento 2?

texts:
first one simple product it is getting discount price but configurable does not getting discount price in recently viewed product.

getRegularPrice: function (row) {
        return row['price_info']['formatted_prices']['regular_price'];
    },

<if args="isSalable($row())">
    <if args="getRegularPrice($row())">

                <if args="!hasSpecialPrice($row())">
                    <each args="data: getAdjustments(), as: '$adj'">
                        <render args="$adj.getBody()"/>
                    </each>
                </if>

    </if>
</if>
##this function not working for configurable product.

how to solve this issue anyone help me


texts: Add custom form in magento create order page

texts: How do I add a custom form in the magento create order page like the following ?


texts: Importing simple products and associating them with grouped products

texts:
In my store I have grouped products and asociated simple products.

Is there a way to set simple products to a grouped product with importing file (csv, xslx,...)?


texts:
I am working on a project based on Magento Commerce Cloud.
Can anyone please guide me on how can I access the database of the staging branch?
Thanks!


texts:
When i edit product in magento2 i am getting below error guide me what should i do?

  Undefined offset: 90 in
  /opt/lampp/htdocs/magento2/vendor/magento/module-eav/Model/ResourceModel/ReadHandler.php
  on line 168


texts: I have updated the design of my magento store and set the background color to grey. When I go to the front end now, I see the grey background. However actually the background is only grey for the part that is initially shown on the screen. When I scroll it is visible that the lower page has a white background. I have tried this on different size screens and every time the same issue happens: The background if the initial shown part is grey, the rest is white (when scrolled down). What am I doing wrong? I have set the color in the skin.css - did I miss something?


texts: Can't save Category Display Mode in Magento 1.9

texts:
I can't save Display Mode setting when updating a category in Catalog > Category session.

Only Products is working. Another 2 options are not being saved.

  Is there an issue about it? How to solve?

Magento 1.9.3.4 on PHP 7


texts: Category name update with category Id in magento2

texts:
I am trying below code to update category name and parent id by categoryId,

 public function __construct(
    \Magento\Catalog\Model\CategoryFactory $categoryFactory

) {
    $this->categoryFactory = $categoryFactory;

}
 $catId = 5;
$name = 'test';
try {
   $category = $this->categoryFactory->create()->setStoreId(1)->load($catId);
   $category->setName($name);
   $category->save();
  echo "Category is updated successfully";
}
catch (Exception $e) {
        print_r($e->getMessage());
}

But category name is not updating for me. Where i am wrong please anyone suggest me


texts:
I'm really new to Magento and really confused of what's going on in there. I need to fix IE 8 bugs so I create a new css file in my theme directory. I link the css file in the head.phtml with conditional css comment. So far so good. I clean all the cache, browser, magento. Disable the css files merge, flushing css cache. I see that the declaration "" is in the header. But when I write something in the file and refresh the page in IE 8 (in compatibility mode) changes does not take effect. I need some help guys.
Thanks in advance!

This is what I've added to my head.phtml file:

<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="/skin/frontend/ft001-sofia/mod/css/ie8-fix.css" media="all" />
<![endif]-->

Here's the website. You can see the head with Inspect Element:

http://dev.elmaira.bg/


texts: I need Products to always be instock and manage inventory. Magento ver. 1.9.0.1

texts:
My business is 50/50 drop shipped or products that I have in my inventory.

I'm looking for a solution that will allow me to show all the products as in stock and I also need to be able to manage the inventory that I do have.

From what I have seen in the configuration I can either manager the inventory or show my product in-stock.

Is there a solution or recommendation that would help me with this issue that I have.

Thank you for your time to read and suggest.

Norris


texts: Magento 2 GitHub version different to installed version

texts:
I am trying to debug an issue and looking at Magento 2 on https://github.com/magento/magento2 have noticed that it is different to the version I have installed.

In the folder "app" I only have 2 folders "design" and "etc" however the Github version has 4 folders - "code", "design", "etc" and "i8n".

Why is there a difference?


texts: Someone advise for checkout progrmatically

texts: I am trying with checkout through externally programmmatically file. but no luck


texts:
As I understand in Magento it sets the status of a new order to processing and then goes away and sorts out  the payment etc.

The problem is that if the payment gateway for worldpay fails/crashes etc it then means I have an order that is set to processing even though no payment has been made.

Unfortunately the software we have interprets processing as ordered and to send it.  Therefore to fix I need to somehow set the initial order status to Pending, which I believe will fix it.  So my question is how do I set the initial status of all orders to Pending?  I found this page but it doesn't seem to work:
problem in magento default order status changes


texts: Magento 2 how to use function $this->_getReadAdapter(); in model

texts:
in magento 1 their is method $this->_getReadAdapter(); in model class.
How we can use this in Magento 2.


texts: Magento 2 overwrite submitted_form.html in module-contact [SOLVED]

texts:
I'm trying to customize the content of the emails that get sent to the administrator when a site visitor uses the contact form, but I can't figure out how I'm supposed to get Magento to use the new submitted_form.html..

I thought I could just do it in the same way that I overwrite html files in the frontend folder, that is, create a directory structure that matches the original, and create a new file with the exact same name, then make sure to remove the symlink to the original file from the pub/static/ folder, so that Magento will create a new symlink to the new file. However that doesn't seem to work, hence why I'm here.

How am I supposed to overwrite this file specifically vendor/magento/module-contact/view/adminhtml/email/submitted_form.html?


texts: Identify All products with Images not showing on front end

texts:
I currently have a store with quite a few broken images, I need a list of all the products on the store which do not have working images,

I believe that the reason is because the products are referencing images that do not exist on the Server,

Is there a way I can export a list of all these products, so I can then find the images that I need and fix this issue,

going through this manually will take endless time with the amount of products on the website


texts: How to debug: Broken reference: No element found with ID 'customer'

texts:
Getting a critical error that doesn't seem to be affecting anything on the frontend that I can notice.

  main.CRITICAL: Broken reference: No element found with ID 'customer'.

Error is caught in Magento\Framework\View\Layout\GeneratorPool::moveElementInStructure when it's trying to do

$structure->setAsChild($element, $destination, $alias);

The arguments have values...

$element = top.links
$destination = customer
$alias = top.links

I've narrowed it down to the file app/design/frontend/MyConpany/default/Magento_Theme/layout/default.xml causing this problem. When this file is removed, no errors are logged, but there are no top.links or customer references there. How do you debug this?

app/design/frontend/MyConpany/default/Magento_Theme/layout/default.xml:

 <container name="above.header.msg" htmlTag="div" htmlClass="above-header--msg">
        <block class="Magento\Framework\View\Element\Template" name="top-header-content" template="Magento_Theme::html/top-content.phtml" />
     </container>
     <referenceContainer name="header.panel" htmlClass="panel header page-content">
        <block class="Magento\Framework\View\Element\Html\Links" name="header.links">
           <arguments>
              <argument name="css_class" xsi:type="string">header links</argument>
           </arguments>
        </block>
     </referenceContainer>
     <referenceBlock name="logo">
        <arguments>
           <argument name="logo_img_width" xsi:type="number">250</argument>
           <argument name="logo_img_height" xsi:type="number">60</argument>
        </arguments>
     </referenceBlock>
     <referenceContainer name="main">
        <container name="content.top" label="Main Content Top" />
        <container name="content" label="Main Content Area" />
        <container name="content.aside" label="Main Content Aside" />
        <container name="content.bottom" label="Main Content Bottom" />
     </referenceContainer>
     <referenceContainer name="page.bottom.container">
        <container name="page.bottom" label="Before Page Footer" htmlTag="div" htmlClass="content" />
     </referenceContainer>
     <referenceContainer name="footer-container">
        <block class="Magento\Cms\Block\Block" name="footer">
           <arguments>
              <argument name="block_id" xsi:type="string">footer</argument>
           </arguments>
        </block>
        <block class="Magento\Theme\Block\Html\Footer" name="copyright" template="html/copyright.phtml" />
     </referenceContainer>
     <referenceContainer name="content">
        <block class="Magento\Framework\View\Element\FormKey" name="formkey" />
     </referenceContainer>
     <move element="copyright" destination="before.body.end" />
  </body>


texts: i must write command lines but can not find cmd

texts: I have searched for the language packs and extensions and there is a way that we must write command lines, where i must write them? I'm working on cpanel to customize my website


texts: Magento 2 - How to change the error placement in a custom form on checkout page

texts:
I wish to place the error after the parent of the element being validated.
I tried to change the place via error placement function like below

<script>
    require([
        "jquery",
        "mage/mage"
    ], function($){
        var dataForm = $('#reward-points-form');
        dataForm.mage('validation', {
            errorPlacement: function(error, element) {
                if (element.hasClass('input-reward')) {
                    error.appendTo('.input-error');
                }
                else {
                    error.insertAfter(element);
                }
            }
        });

    });
</script>

However, the script is not working as it's written in the Knockout HTML file.
Please advise.


texts: Magento 2 Redis Session Storage Database Table

texts: I have added Redis Session Storage to my Magento 2.1 site and am assuming it is working correctly because keys are in the database. I have looked at the table "session" in phpMyAdmin and noticed that it is still being filled with data even if I delete all entries. Why is this happening?


texts: www.domain.com/pub/ shows the web page without css/javascript loaded

texts:
I can access my site correctly like www.domain.com ( with all the content loads correctly), but if I type in www.domain.com/pub/ it is still accessible ( without js & css loaded). How do I fix this problem?

I tried to redirect www.domain.com/pub/ to www.domain.com/ but it will also redirect the content in /pub/media to /media.
I also tried to put a .htaccess file in /pub directory but didn't work.

Refused to apply style from '<URL>' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
logo.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
require.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
mixins.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
computer_button.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
requirejs-config.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
(index):202 Uncaught TypeError: require.config is not a function
    at (index):202
(index):375 Uncaught ReferenceError: requirejs is not defined
    at (index):375
(index):635 Uncaught ReferenceError: requirejs is not defined
    at (index):635
(index):695 Uncaught ReferenceError: requirejs is not defined
    at (index):695
(index):907 Uncaught ReferenceError: requirejs is not defined
    at (index):907
av_button.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
(index):2689 Uncaught ReferenceError: requirejs is not defined
    at (index):2689
(index):2724 Uncaught TypeError: require is not a function
    at (index):2724
(index):4405 Uncaught ReferenceError: requirejs is not defined
    at (index):4405
(index):4440 Uncaught TypeError: require is not a function
    at (index):4440
(index):4722 Uncaught ReferenceError: requirejs is not defined
    at (index):4722
CE-MT2111-S1.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
USB_Hi-Speed.gif:1 Failed to load resource: the server responded with a status of 404 (Not Found)
hdmi_logo.gif:1 Failed to load resource: the server responded with a status of 404 (Not Found)
logo.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
payment.gif:1 Failed to load resource: the server responded with a status of 404 (Not Found)
USB_SuperSpeed.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
digital_signage_logo.gif:1 Failed to load resource: the server responded with a status of 404 (Not Found)
logo-small.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)


texts:
Maybe a stupid question, but how do I display the "Starting at:" price?

Inside price.phtml I see this line

<?php if ($showMinPrice): ?>

But I cannot find the setting inside the admin panel.


texts: Change variable to uppercase in transactional email

texts:
How can i change a variable to uppercase / lowercase in transacional email?

I need to change the customer name

{{htmlescape var=$customer.name}}

and the store name

{{var store.getFrontendName()}}

Here's an attachment showing the problem:

As you can see, I'm using css to uppercase word exemplo but inline preview text doesn't show as uppercase.

Already tried looking for another functions in templates without any success. Is there any documentation about transactional emails language being used?

Thanks in advance


texts: Orders are not being associated with customers for register and checkout option

texts:
The orders are saving to the sales grid correctly. Sales > Orders
The problem is when i look for the order under Magento Admin->Customers->Manage Customers->[CUSTOMER]->Orders; there is nothing.

Has anyone encountered this problem before? Nothing really to report in the system.log or exception.log, here is both below.

2018-02-02T08:02:44+00:00 ERR (3): Notice: Undefined index: compressor  in /home/_magento/master/html/app/code/community/Swarming/Pagespeed/Model/Observer/ConfigData.php on line 70
2018-02-02T08:02:44+00:00 ERR (3): Notice: Undefined index: compressor  in /home/_magento/master/html/app/code/community/Swarming/Pagespeed/Model/Observer/ConfigData.php on line 72
2018-02-02T08:02:44+00:00 ERR (3): Notice: Undefined index: enable_less  in /home/_magento/master/html/app/code/community/Swarming/Pagespeed/Model/Observer/ConfigData.php on line 83
2018-02-02T08:02:44+00:00 ERR (3): Notice: Undefined index: less_js  in /home/_magento/master/html/app/code/community/Swarming/Pagespeed/Model/Observer/ConfigData.php on line 89
2018-02-02T08:02:44+00:00 ERR (3): Notice: Undefined index: less_js_watch  in /home/_magento/master/html/app/code/community/Swarming/Pagespeed/Model/Observer/ConfigData.php on line 89
2018-02-02T20:40:56+00:00 DEBUG (7): Max retry:6 retry power:2
2018-02-02T21:26:35+00:00 DEBUG (7): Max retry:6 retry power:2
2018-02-02T21:41:33+00:00 DEBUG (7): Max retry:6 retry power:2
2018-02-05T21:04:56+00:00 ERR (3): Strict Notice: Declaration of Uni_Fileuploader_Block_Adminhtml_Fileuploader_Edit_Tab_Productfile::getRowUrl() should be compatible with Mage_Adminhtml_Block_Widget_Grid::getRowUrl($item)  in /home/_magento/master/html/app/code/community/Uni/Fileuploader/Block/Adminhtml/Fileuploader/Edit/Tab/Productfile.php on line 9
2018-02-06T15:31:11+00:00 ERR (3): Strict Notice: Declaration of Uni_Fileuploader_Block_Adminhtml_Fileuploader_Edit_Tab_Productfile::getRowUrl() should be compatible with Mage_Adminhtml_Block_Widget_Grid::getRowUrl($item)  in /home/_magento/master/html/app/code/community/Uni/Fileuploader/Block/Adminhtml/Fileuploader/Edit/Tab/Productfile.php on line 9

exception.log

exception 'Mage_Core_Exception' with message 'API Request Failed: 404 returned.' in /home/_magento/master/html/app/Mage.php:595
Stack trace:
#0 /home/_magento/master/html/app/code/local/Swarming/Erp/Model/Abstract/Connector.php(152): Mage::throwException('API Request Fai...')
#1 /home/_magento/master/html/app/code/local/Swarming/Erp/Model/Abstract/Connector.php(180): Swarming_Erp_Model_Abstract_Connector->post(true)
#2 /home/_magento/master/html/app/code/local/Swarming/Erp/Model/Observer.php(277): Swarming_Erp_Model_Abstract_Connector->postData(Array)
#3 [internal function]: Swarming_Erp_Model_Observer->syncSubmissionQueue(Object(Aoe_Scheduler_Model_Schedule))
#4 /home/_magento/master/html/app/code/community/Aoe/Scheduler/Model/Schedule.php(196): call_user_func_array(Array, Array)
#5 /home/_magento/master/html/app/code/community/Aoe/Scheduler/Model/Schedule.php(582): Aoe_Scheduler_Model_Schedule->runNow(true)
#6 /home/_magento/master/html/app/code/community/Aoe/Scheduler/Model/Observer.php(39): Aoe_Scheduler_Model_Schedule->process()
#7 /home/_magento/master/html/app/code/core/Mage/Core/Model/App.php(1358): Aoe_Scheduler_Model_Observer->dispatch(Object(Varien_Event_Observer))
#8 /home/_magento/master/html/app/code/core/Mage/Core/Model/App.php(1337): Mage_Core_Model_App->_callObserverMethod(Object(Aoe_Scheduler_Model_Observer), 'dispatch', Object(Varien_Event_Observer))
#9 /home/_magento/master/html/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('default', Array)
#10 /home/_magento/master/html/shell/scheduler.php(377): Mage::dispatchEvent('default', Array)
#11 /home/_magento/master/html/shell/scheduler.php(37): Aoe_Scheduler_Shell_Scheduler->cronAction()
#12 /home/_magento/master/html/shell/scheduler.php(403): Aoe_Scheduler_Shell_Scheduler->run()
#13 {main}


texts: Magento2 - Successfully add new column and field for registration. But where does the data save for new field?

texts:
I have successfully added new field for the registration form.

But the problem I'm facing right now is where does the data save? In which table in database?

I tried looking in the customer_entity but the data is not saved there. Any idea?

enter image description here

And here's my code for the front end.

  Magento_Customer/templates/additional.phtml

  <?= $block->escapeHtml(__('Account ID')) ?>

   <input type="text" name="account_id" id="account_id" value="" title="<?= $block->escapeHtmlAttr(__('Account ID')) ?>" class="input-text" data-validate="{required:true}">


texts:
With the new release of Magento, a lot of questions have been flying around the office.

My one biggest concern is third party integrations and compatibility with the latest version.

A couple of things

Does upgrading typically break third party modules?
Should we be considering upgrading right after the release, or should we wait until our third party modules have been verified to work with the latest version?
Does upgrading typically go smoothly, or is it a nightmare?
Does upgrading typically effect theming?
Is there anything else I should be considering before upgrading?


texts: Annoyed by tons of classes for DI in constructors of Magento 2 - is there a better way?

texts:
At this time I am annoyed of writing similar constructors en masse like the following within my modules.

public function __construct(
    \Magento\Framework\Model\Context $context,
    \Magento\Framework\Registry $registry,

    /* ... */

    \Foo\Bar\Model\Baz $baz,

    /* ... */

    \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null,
    \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,
    array $data = []
) {
    $this->registry = $registry;

    /* ... */

    $this->baz = $baz;

    /* ... */

    /* some awesome stuff */
}

In many many many cases I need instances of the same classes all over my module.

So I was questioning myself, if it would be an acceptable way to use one or two central helper classes, which provide the necessary classes, instead of defining them in every single constructor.

This means a pattern like this:

Helper Class

namespace Foo\Bar\Helper

class Main
{
    protected $baz;

    public function __construct(
        \Magento\Framework\Model\Context $context,
        \Magento\Framework\Registry $registry,

        /* ... */

        \Foo\Bar\Model\Baz $baz,

        /* ... */
    ) {
        $this->registry = $registry;

        /* ... */

        $this->baz = $baz;

        /* ... */

        /* some awesome stuff */
    }

    public function getBazInstance()
    {
        return $this->baz;
    }
}

The shorter constructor

public function __construct(

    \Foo\Bar\Helper\Main $mainHelper,

    \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null,
    \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,
    array $data = []
) {
    $this->mainHelper = $mainHelper;

    /* some awesome stuff */
}

At this point I am not sure if I will have to deal with big disadvantages in future caused by this structure. Would this be an acceptable way to reduce the amount of DI definitions?


texts:
I want to do following in Magento 2

Only one product in an entire cart
If the cart is not empty and I add a product to the cart then product in the cart will remove and newly added replace it(a concept like swiggy)


texts: Hide Magento Admin Url from outside world

texts:
We have a magento server up and running. The server had the default 'admin' url which was then changed to some random string for security purpose, which only our team knows. Now we also have an admin monitoring system and log to monitor failed login attempts.
The log shows multiple attempts to login into the admin dashboard. My question is, how the admin url gets leaked to the outside world. We have changed the admin urls several times. Even then, how does outsiders find our admin url ? Or Is it possible to find the admin url through the website's frontend ?


texts: We can not remove or move category in category tree by using install scripts?

texts:
We can not remove or move the category in the category tree by using install scripts?

this question had asked in Magento 2 professional developer Exam.

can anyone explain this?


texts: Send emails after the order was placed - Magento 1.9

texts:
I want to have the following function in my store, I have two payments methods: CC and Bank Transfer Payment

if the CC method was used, after the order was placed I need to send one email to the vendor company with product name and quantity. For vendor we can use a attribute that will contain email for each vendor in part.

If Bank Transfer Payment was used, then we need to have a button in the back-end in order to can start the same action but manually.

How I can do something like this? Someone can point me in the correct direction?


texts: tool to make /var/report errors readable

texts:
Just what the subject says. Is there anything to reformat the /var/report errors to be more readable? Strip the slashes, replace the new lines?

I've been dicking with the damn thing all morning and can't seem to fully get the


texts:
quite strange but is happening with me...Mag version is EE 1.12

Calendar is working fine on front end
it works fine in admin back end on normal pages see this

but when calendar is in pop up page, it does not work....(try
creating an order from admin backend, add product, configure, and try
to select date if you got some product with custom options (date-time
picker)) ...see this

I am trying to solve this issue for more than a month, no success...I have tried seeing the source code, and it looks that calendar.js, calendar_setup.js and other files are includes just as those page which got working calendar on it..

Dont know should I do it or not, but to get more views and possible solutions, I asked it here too

any idea?

thanks


texts: Custom URL Rewrite If a condition is met

texts:
I'm looking for a way to change URLs if a condition is met. Something like:

URL: http://mysiteurl/

$url = 'http://mysiteurl/';

if ($userGroup == 'ABC') {
    $url .= 'user/ABC/';
}

The new URL will be:  http://mysiteurl/user/ABC/

But the page accessed will be the same.


texts: Url_Key & Store_Id (Attribute Already Exists)

texts:
When we create or modify a product -- the url_key doesn't seem to associate with the store_id of the product. For example:

$product = Mage::getModel('catalog/product')->load($prodid);
$product->setUrlKey('product-url-key')
$product->setStoreId(1);
$product->save();

But here lies the problem:

I would expect url_key in the Table catalog_product_entity_url_key to have a store_id of 1, but it gets set to 0. How else should a product be saved to that the url_key gets the proper store_id?

Background on this problem:

We are writing scripts for updating programs and have been getting a lot of these errors:

Uncaught exception 'Mage_Eav_Model_Entity_Attribute_Exception' with message 'Product with the 'product-url-key-added' url_key attribute already exists.' in /var/www/mage02/app/code/core/Mage/Core/Model/Config.php:1348

Looking further into the code, this problem seems to be created because of how the store_id is getting set. We can make the problem go away by manually updating the store_id.. however, on the re-save -- the store_id for the url_key gets set back to 0.

Magento Version used: 1.13.1.0 (Fresh Install)


texts: How to show "apply discount" option on checkout magento 2

texts: I want to use apply discount option on the checkout page. How can I show this?


texts: magento 2 execute 2 events in 1 observer

texts:
I create 2 events in 1 observer & I tried to execute them in 1 time but it just display error. How to solve it ? Is there any solution ?

=> Event :

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
  <event name="checkout_cart_product_add_after">
    <observer name="customprice" instance="Test\Show\Observer\CustomPrice" />
  </event>
  <event name="catalog_product_collection_load_after">
    <observer name="loadupdate" instance="Test\Show\Observer\CustomPrice" />
  </event>
</config>

=> Observer :

public function execute(\Magento\Framework\Event\Observer $observer) {
        //event for change price when product added to cart
        $item = $observer->getEvent()->getData('quote_item');
        $price = $item->getProduct()->getPrice() - 800;
        $item->setCustomPrice($price);
        $item->setOriginalCustomPrice($price);
        $item->getProduct()->setIsSuperMode(true);

        //event for change product price when product data loaded
        $collections = $observer->getEvent()->getCollection();
        foreach( $collections as $collection ) {
            $collection->setPrice(25000);
            $collection->save();
        }
    }


texts: City wise product listing in Magento 1.9.2.4

texts:
This is very common question asked in multiple Magento forums, but rarely answered or properly answered.
With this expectation that may be I'm lucky and some one will show me the right way to achieve the following requirements -

1. Need a popup on startup of web site, allowing user to select his/her State
   and City (India Only).

2. Display products and their respective prices ONLY from selected state-city by
   user.

3. If user want then they can able to change their city from dropdown at the top
   left corner of the every page

I have 2-3 ideas for achieving my requirement, as a new to Magento may be my ideas are not feasible or viable, so I need suggestions /advises / guidance

Idea 1. Creating Multi View Store

Idea 2. Creating Category Structure like this:
        State->City->Product_Category->Product->Sub_Product(if any) and then
        fetch state and cities to popup where both he value will be in drop down
        from where where user will select state and city, finally depending on
        the selections product and price attribute will filtered and displayed.

Idea 3. Adding custom attribute for all the cities like this- key->City_State,
        value->Kolkata(WB) for each product, means suppose there are total 100
        cities from all states, and 100 products, this means 100x100 records.

Idea 4. Make the products configurable where, city is one of the configurable
        fields.

Now I request you all Magento experts to tell me whether my ideas are correct or garbage. Which one is the best and easy to implement for my situation, obviously also keep Performance of the site in mind.

For better understanding of requirement, may these 2 sites help. http://bigbasket.com/ and http://www.naturesbasket.co.in/

Waiting for expert views.

Thank you all for participation.


texts: Magento 2 Which .htaccess file to use for mod_expires.c (Leverage Browser Caching)?

texts:
In Magento 2 there are many .htaccess files in different locations. If I want to add the below code to my .htaccess file to increase the Leverage Browser Cacheing score, in which specific .htaccess file do I need to do it? I have .htaccess file in my Magento root, in pub folder, in app folder, and one in pub/static/ folder. And it seems no matter which .htaccess file i'm using, there no effect with the code. I'm quite confused.
<IfModule mod_expires.c>

   ExpiresActive On
   ExpiresByType image/jpg "access plus 1 year"
   ExpiresByType image/jpeg "access plus 1 year"
   ExpiresByType image/gif "access plus 1 year"
   ExpiresByType image/png "access plus 1 year"
   ExpiresByType text/css "access plus 1 month"
   ExpiresByType application/pdf "access plus 1 month"
   ExpiresByType text/x-javascript "access plus 1 month"
   ExpiresByType application/x-shockwave-flash "access plus 1 month"
   ExpiresByType image/x-icon "access plus 1 year"
   ExpiresDefault "access plus 2 days"

   #ExpiresDefault "access plus 1 year"
   ExpiresByType text/html A0
   ExpiresByType text/plain A0
</IfModule>

and I do have expires mod enabled in apache2.  a2enmod expires


texts: Magento2 Grid: Select all disabled with two dropdown filters

texts:
A client running a magento 2.3.2. store noted that he can not use the Select All when two Filters are enabled. This pertains to the Magento Grid with orders on the Sales page. The filters the client is using are Status & Storeview.

I tested this behavior and can confirm that when he uses 2 Dropdown filters, the Select All functionality gets disabled. The disabling works through adding a 'disabled' attribute to both the input & button element. Other combinations of filters do not seem to have this behavior. When I manually remove the attributes (devtools) the functionality seems to work properly.

My questions.

Is there a good reason why the 'Select All' gets disabled on selecting 2 dropdown filters? The disabling seems intentional, so I figure it is not a bug?
If there is no reason, I might want to adjust this behavior. Could you point me in the right direction to where this behavior is set?

I appreciate any helpful input.


texts: Unloading icons and photos in Magento2.2.3

texts:
Unloading icons and photos in Magento
In general, it can be said that the admin panel does not work


texts: Why Magento 2.1.2 cannot delete watermark?

texts:
After Going Content->Design->Configuration->Product Image Watermarks

Deleting and Saving the Configuration

Reloading the page and it is still there

Flippen annoying


texts: Run entire website on https, except API URLs under http

texts:
I have a whole shop set up under https (unsecure and secure URL set to https), because 1) I do not see why not and 2) I use a theme from themeforest which has problems with mixing http and https (exclamation mark in the address bar because of mixed secure and unsecure content, and ugly security warning when putting stuff into the shopping cart).

Unfortunately, the shop POS system can ONLY use the API via http (yes, seems out of date and risky, but they won't change it).

I tried playing around with the .htaccess and rewrite everything under /api from https to http, but did not find a solution, the whole system goes into a redirect loop. I guess the problem lies between the htaccess redirect and the Magento internal redirection system.

Since this is a very specific problem, I did not really find a solution, even after googling for hours.

Can anybody give me pointers on what possibilities I have in order to achieve a complete https setup with just the API URLs unsecure?


texts: Magento 2 : Contact us email is not sending to admin

texts:
I have checked with all latest and oldest version of magento 2 but contact us email is not sending to admin.
I have already set the configuration in admin with admin email and etc.
I am getting rest all the emails like registration, newsletter subscription etc. but don't get contact us email.


texts: How do I fix order item details in email template?

texts: We have installed v1.9.1.0 rwd theme on this site. The order email is doing something wierd on one of our sites. The item details are supposed to be printing acroos the whole width of the page. I checked the email-inline.css and the 'items' class width is 100%, but it appears to be around 40% width. I cannot figure out what to edit to fix this.


texts: M2.4 - How to add OG tag for categories?

texts:
I am created OG tag for the Homepage and products,
For Homepage :
1)app/design/frontend/Zero/my_theme/Magento_theme/layout/default_head_blocks.xml
<meta name="og:title" content="Welcome to our store"/>
<meta name="og:description" content="Buy Online - Best price/>

For Products :
2)app\design\frontend\Zero\my_theme\Magento_Catalog\templates\product\view\opengraph\general.phtml
<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

/** @var $block \Magento\Catalog\Block\Product\View */
?>

<meta property="og:type" content="product" />
<meta property="og:title"
      content="<?= /* @noEscape */ $block->stripTags($block->getProduct()->getName()) ?>" />
<meta property="og:image"
      content="<?= $block->escapeUrl($block->getImage($block->getProduct(), 'product_base_image')->getImageUrl()) ?>" />
<meta property="og:description"
      content="<?= /* @noEscape */ $block->stripTags($block->getProduct()->getShortDescription()) ?>" />
<meta property="og:url" content="<?= $block->escapeUrl($block->getProduct()->getProductUrl()) ?>" />
<?php if ($priceAmount = $block->getProduct()->getPriceInfo()->getPrice(\Magento\Catalog\Pricing\Price\FinalPrice::PRICE_CODE)->getAmount()) :?>
    <meta property="product:price:amount" content="<?= $block->escapeHtmlAttr($priceAmount) ?>"/>
    <?= $block->getChildHtml('meta.currency') ?>
<?php endif;?>

and added general.phtml into
3) app\design\frontend\Zero\my_theme\Magento_Catalog\layout\catalog_product_opengraph.xml
<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <attribute name="prefix" value="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# product: http://ogp.me/ns/product#" />
    </head>
    <body>
        <referenceBlock name="head.additional">
            <block class="Magento\Catalog\Block\Product\View" name="opengraph.general" template="Magento_Catalog::product/view/opengraph/general.phtml">
                <block class="Magento\Directory\Block\Currency" name="opengraph.currency" as="meta.currency" template="Magento_Catalog::product/view/opengraph/currency.phtml"/>
            </block>
        </referenceBlock>
    </body>
</page>

4)How to do it for all categories?


texts: Is there a way to apply for a price discount (e.g. 10% off) specific products? Will I have to do this for each product one by one?


texts: Form Block Override seems to work but is Never Called

texts:
This is a very common question, but this one is a little different.

I'm trying to overwrite/rewrite a Form block from another module. I'm already rewriting other blocks from this module without issues, I have Extension Conflict module that tells me my override is there, and it can properly display the object trace. I've done a dump of Mage::getConfig()->getNode() with the block I'm overriding and it correctly lists only my override.

My cache is disabled, and I've cleared it multiples times. I've checked a lot of things, and this is either a very weird issue or a very dumb one (that I will punch myself for when I find it).

So, my config file :

<config>
    <modules>
        <Digitagri_Extendedmdn>
            <version>1.0.0</version>
        </Digitagri_Extendedmdn>
    </modules>

    <global>
        <blocks>
            <digitagri_extendedmdn>
                <class>Digitagri_Extendedmdn_Block</class>
            </digitagri_extendedmdn>
            <AdvancedStock>
                <rewrite>
                    <Warehouse_Edit_Form>Digitagri_Extendedmdn_Block_MDN_AdvancedStock_Warehouse_Edit_Form</Warehouse_Edit_Form>
                </rewrite>
            </AdvancedStock>
        </blocks>

The original block that I'm rewriting :

<?php

class MDN_AdvancedStock_Block_Warehouse_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
{

    protected function _prepareForm()
    {
        $form = new Varien_Data_Form(array('id' => 'edit_form', 'action' => $this->getData('action'), 'method' => 'post'));
        $form->setUseContainer(true);
        $this->setForm($form);
        return parent::_prepareForm();
    }

}

The new block from my module :

class Digitagri_Extendedmdn_Block_MDN_AdvancedStock_Warehouse_Edit_Form extends MDN_AdvancedStock_Block_Warehouse_Edit_Form
{
    protected function _prepareForm()
    {
        //$form = new Varien_Data_Form(array('id' => 'edit_form', 'action' => $this->getData('action'), 'method' => 'post'));
        //$form->setUseContainer(true);
        //$this->setForm($form);
        Mage::log("Rewrite works!",null,"test.log",true);
        //return Mage_Adminhtml_Block_Widget_Form::_prepareForm();
        //return parent::_prepareForm();
    }

}

And just in case, here's a screenshot of my folder structure :

And that's it. When I add a Mage::log in the original block, it works, but when I do in the override, nothing shows up. Even if I comment the whole rewritten block, the page behaves as usual.
It seems to never be called at all, even though everything else (magento, modules..) says "I see this rewrite and it's fine".

I'm ready for the really silly mistake.


texts: Magento2.3: How to add a new menu link in My Account page?

texts:
I want to add a new menu link in My Account page. Please see the below screenshot:

I want to add a new menu after to the menu link, Newsletter Subscriptions. In order to add the new menu and its fields, where I have to update the code.

Also, when a user clicks that new menu, I want to show the fields like Education, Occupation, etc., and those data should be store in database. This is my primary expectation.

Could anyone please point me out where to update the code?

Any help will be appreciated!

Code of UpgradeSchema:

<?php

namespace Vendor\CustomerNavigation\Setup;

use Magento\Framework\Setup\UpgradeSchemaInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\SchemaSetupInterface;

class UpgradeSchema implements UpgradeSchemaInterface
{

    /**
     * {@inheritdoc}
     */
    public function upgrade(
        SchemaSetupInterface $setup,
        ModuleContextInterface $context
    ) {
        $installer = $setup;

        $installer->startSetup();
        if (version_compare($context->getVersion(), '0.1.1', '<')) {
        $installer->getConnection()->addColumn(
            $installer->getTable('customernavigation_customernavigation'),
            'field_1',
            [
                'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
                'length' => 255,
                'nullable' => true,
                'comment' => 'Field_1'
            ]

        );
        $installer->getConnection()->addColumn(
            $installer->getTable('customernavigation_customernavigation'),
            'field_2',
            [
                'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
                'length' => 255,
                'nullable' => true,
                'comment' => 'Field_2'
            ]
        );
    }
        $installer->endSetup();
    }
}


texts: Override phtml if the module doesnt have in design theme folder?

texts:
How to override the phtml files using custom theme method if the phtml files are not present in the core design theme folder?

Eg: CatalogSearch module, how to override result.phtml file?

app\design\frontend\Magento\luma\Magento_CatalogSearch\ has only web folder... no templates folder.

Should i copy result.phtml from modules code/../view folder to my custom theme in app/design
?


texts:
quick broad question. Does the REST API in Magento 2 still accept XML input? According to the introduction, it does. But further on in the documentation, there is no mention. I have been able to receive XML Formatted data (product) but I have not been able to submit any new products.

If this is still possible, is there any documentation I have overlooked?


texts: Zend_Db_Expr in Magento Model - Update to Value on Save Avoiding _afterSave

texts:
I am looking for a way to improve a model I have created.

What I am doing is using the model to create new pricing information on the fly, and set this information along with expiry times. The approach I am using is to offload some of the timing operations to the Database server using a Zend_Db_Expr to achieve this.

The problem I have is that after doing this I need to further make use of the model itself for further purposes. This means I need to get the actual result of the Expression inserting in to the database.

I have removed some of the code from this example as its business logic and should not impact on the question or answer anyway.

class My_Module_Model_Price extends Mage_Core_Model_Abstract {
public function getPrice()
{
      $this->addData(
            array(
                'current_price'     => $this->getSpecialPrice(),
                'product_id'        => $this->_product->getId(),
                'price_from'        => new Zend_Db_Expr('NOW()'),
                'price_to'          => new Zend_Db_Expr('DATE_ADD(NOW(), INTERVAL ' . $endTime . " MINUTE)"),
            )
        );
$this->save();
}
    public function _afterSave()
    {
        if ($this->getData('price_from') instanceof Zend_Db_Expr) {
            $this->load($this->getData('id'));
        }
    }

This logic gives me what I require, i.e. after calling it I am able to use $model->getData() and this returns the fields generate db the DB Expressions but I feel like I am doing an extra DB Query round for no useful reason just to get back some information. So my goal would be to convert the _afterSave such that I dont need it at all, or that I dont need to trigger a load within the model.


texts: Step-by-Step checkout with multiple subscription products

texts:
I'm a complete magento rookie so forgive me but can anyone tell me what plugins/addons this site is using? https://perkyjerky.com/ - I'd be trying to achieve the monthly 'box' approach where users select multiple items from a list of 'products' within that category and that then becomes their recurring subscription product based on number of items selected.

So almost like one product with multiple options I suppose.

It'd be a bonus if users could alter their subscription products after the fact. So if I ordered 5 of product #1 I could log in and change that to 4 of product #1 and 1 of product #2 for instance.

thanks!


texts: How to implement admin product form's "Categories" field in category form?

texts:
in magento 2.1 there is user friendly box generated for "Categories" field.

I am trying to apply this box for custom field in category form, but without success so far.

I tried to create similar, like in https://github.com/magento/magento2/blob/2.1.0-rc3/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Categories.php, but without success. It makes it harder, that form implementation is different between product and category.

XML file for category form https://github.com/magento/magento2/blob/2.1.0-rc3/app/code/Magento/Catalog/view/adminhtml/ui_component/category_form.xml

XML file for product form https://github.com/magento/magento2/blob/2.1.0-rc3/app/code/Magento/Catalog/view/adminhtml/ui_component/product_form.xml

Someone knows, how to achieve this ?


texts: Magento2 How to Integrate background image in my email template

texts:
I want to integrate a image in tag as background in style for my account creation email template.

Where can I place this image in my folder and how can I call the image as background.


texts: Magento 1.9.0.1 order email is changing to a previous order email

texts:
We have a issue with a Magento 1 store in that order emails are being changed after an order has been placed. This specifically happening after repeat orders. I will try to explain.

Admin takes a call to place an order. This first order is a fresh order, not a repeat.
Admin then takes another call and its a repeat order. When the order is placed all the details are correct including the email address.
After placing the repeat order you notice that the email address has changed to that of the first order.

Any ideas or comments would be greatly appreciated.


texts: Catch and verify custom parameters at registration

texts:
i've added some attributes for each user on my Magento installation.
Each attribute is correctly showed in the registration fields, user can fill them, they're mandatory and they are also validated by Magento's javascript validation (followed the tutorial here : http://inchoo.net/magento/programming-magento/validate-your-input-magento-style/)

I need to validate also server side, i started creating a module following a tutorial online.

Every example that i've found overrided Magento's standard attributes.
What should i override to validate my custom attributes?
Which event should i catch?
I'm a bit confused...

UPDATE : here is a zip file of my module https://www.dropbox.com/s/7nxjx6mh0hly6yn/MyModule.zip?dl=0. Let me know if you spot the error.


texts:
I have plugin that works fine in magento 2.3 but in magento 2.4 i am getting below error :
Argument 3 passed to Magento\Catalog\Model\Layer\FilterList::__construct() must be an instance of Magento\Catalog\Model\Config\LayerCategoryConfig, array given Shopby/Model/Layer/FilterList.php on line 77
code of filterlist.php as below :
use Magento\Catalog\Model\Layer;
use Magento\Store\Model\ScopeInterface;
use Amasty\Shopby\Model\Source\VisibleInCategory;

class FilterList extends Layer\FilterList
{
    const PLACE_SIDEBAR = 'sidebar';
    const PLACE_TOP     = 'top';
    const ALL_FILTERS_KEY     = 'amasty_shopby_all_filters';

    /**
     * @var \Amasty\Shopby\Helper\FilterSetting\Proxy
     */
    private $filterSetting;

    /**
     * @var \Magento\Framework\App\Config\ScopeConfigInterface
     */
    private $scopeConfig;

    /**
     * @var \Magento\Framework\App\Request\Http
     */
    private $request;

    /**
     * @var string
     */
    private $currentPlace;

    /**
     * @var bool
     */
    private $filtersLoaded  = false;

    /**
     * @var bool
     */
    private $filtersMatched = false;

    /**
     * @var bool
     */
    private $filtersApplied = false;

    /**
     * @var  \Magento\Framework\Registry
     */
    private $registry;

    public function __construct(
        \Magento\Framework\ObjectManagerInterface $objectManager,
        Layer\FilterableAttributeListInterface $filterableAttributes,
        \Amasty\Shopby\Helper\FilterSetting\Proxy $filterSettingHelper,
        \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
        \Magento\Framework\App\Request\Http $request,
        \Magento\Framework\Registry $registry,
        array $filters = [],
        $place = self::PLACE_SIDEBAR
    ) {
        $this->currentPlace = $place;
        $this->filterSetting = $filterSettingHelper;
        $this->scopeConfig = $scopeConfig;
        $this->request = $request;
        $this->registry = $registry;
        parent::__construct($objectManager, $filterableAttributes, $filters);
    }

Error is on line  parent::__construct($objectManager, $filterableAttributes, $filters);
Please help with what we need to change


texts: Configurable Swatches - "Some" Images not changing

texts:
I am trying to setup configurable swatches.  I have a configurable products with 300 underlying simple products.  I have uploaded images to all 300 simple products to allow the base image to change when I select the swatches.....however only some of the swatches force an image change.  My demo page is at:

http://www.infinityfuneralstationery.co.uk/order-of-service/infinity/classic-infinity-design-1.html

Only "Pattern 1, Colour 1" is different to any of the other images at the moment BUT if you select that and then click to "Pattern 2, Colour 1", I do not get a change.  However other swatch changes will invoke the image to swap.  Any ideas how to start debugging this problem?  From what I can see all the simple products have images, so I can't see what the problem is......Only my second week on Magento, so struggling a bit to make sense of all this....Any help appreciated.

Thanks
Gary


texts: How to display selectable attributes in product listing?

texts:
I want to display a size attribute in product listing as shown in the image

I created an attribute and configurable product. In the product detail page i am able to select attributes. I set 'Used in Product Listing to yes' for the attribute. I am not able to show it in the frontend listing. Is there any way to show attribute like this?.


texts: Getting issue to uninstall ebizmarts/MailChimp module

texts:
I try to remove Ebizmarts/MailChimp extension using the "composer remove Ebizmarts/MailChimp"
this module install using composer through but getting issues at a time to uninstall can you please suggest in solution to solve these issues
these error show in terminal
"ebizmarts/mailchimp is not required in your composer.json and has not been removed
Package "ebizmarts/mailchimp" listed for the update is not installed. Ignoring."

Magento version 2.3.3


texts: How magento stores date in created_at field

texts:
I am working on cron extension in which i need to use difference of time. While working on this extension i observed one thing that magento has some difference in time while saving data in the table.

I need to deal with created_at field of sales_flat_order table. to get a time i use following two methods.

Mage::getModel('core/date')->date('Y-m-d H:i:s');
date("Y-m-d H:i:s", Mage::getModel('core/date')->timestamp(time()));

when i place a order both of this two method shows time as 2016-05-11 18:04:47 but after placing a order the value for created_at field of sales_flat_order was 2016-05-11 07:04:43.

Can any one please explain me how it is done? How magento insert value for this field?

Note: if i change H with h in above date function then it shows time as 2016-05-11 06:04:47 i.e. 12 Hour time but still their are healthy difference. which affects my functionality.

Thanks in advance.


texts: how to add billing and shipping addrrss seprately

texts:
i want to add customer billing and shipping address programtically via php code below i code i found to add address:

$_custom_address = array (
    'firstname' => 'Branko',
    'lastname' => 'Ajzele',
    'street' => array (
        '0' => 'Sample address part1',
        '1' => 'Sample address part2',
    ),
    'city' => 'Osijek',
    'region_id' => '',
    'region' => '',
    'postcode' => '31000',
    'country_id' => 'HR', /* Croatia */
    'telephone' => '0038531555444',
);
$customAddress = Mage::getModel('customer/address')
//$customAddress = new Mage_Customer_Model_Address();
$customAddress->setData($_custom_address)
            ->setCustomerId($customer->getId())
            ->setIsDefaultBilling('1')
            ->setIsDefaultShipping('1')
            ->setSaveInAddressBook('1');
try {
    $customAddress->save();
}
catch (Exception $ex) {
    //Zend_Debug::dump($ex->getMessage());
}

but this add same billing and shipping address how to insert different values for billing and shipping


texts:
I am trying to create a static block on my homepage. So I added Static Block to the CMS Page Layout Update XML FIeld

Here is my code:

<reference name="left_first">
    <block type="cms/block" name="Offers"  before="-">
      <action method="setBlockId"><block_id>offer-link</block_id></action>
    </block>
</reference>

Here I was expecting one block in the left side of my Home page and i am getting that but in addition to this i am getting it twice.


texts: Beginner - where to place SCSS files in a Magento structure

texts:
I'm a FE devleoper just beginning to work with an existing Magento 1.8 CE website from a git repository. I find it difficult to understand all the rules, but working my way through it.

One of the first things I want to change is switch to using COMPASS/SASS - installing and using GruntJS alongside.

Can I simply install Grunt using the default dirctories without irritating Magento?
Where can I place the SCSS files that will then be compiled into the css files in /skin/frontend/PROJECTNAME/PROJECTNAME/css/?

Could I simply create and use e.g. a directory named /skin/frontend/PROJECTNAME/PROJECTNAME/source/, or will Magento be irritated by that?

Sorry if this is a dumb question, but I'm really unsure about the complex directory structure and Magento's coding by convention rules and don't want to make a bad decision when introducing GruntJS and COMPASS.

Thank you all.


texts: Magento 2 bin/magento command prompting php version message

texts:
I'm running Magento 2 on MAMP Pro local dev server (mac osx). I have site installed and running fine.

If I try to run following command in site root in terminal, php bin/magento indexer:reindex I get following message:

  Magento supports PHP 5.5.0 or later. Please read
  http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html

How do I fix this?


texts: Magento 2 calculate custom text fields length and width on product view page

texts:
How is possible in magento 2.0?
I successfully active in magento 1.9 for bellow thing.
I am trying to create a product with two custom text fields: Length and Width. When the user types, both a length and width, the price needs to calculate via custom formula.

I'm trying to find the correct event to connect an observer. Anybody know what that might be?

Here's what I know and have tried:

The custom field text box in the product view has an onChange event
that I haven't figured out how to tap into yet via an observer event
opConfig.reloadPrice()
If I build an observer on the event sales_quote_add_item, then I can
change the price via formula when it's added to the cart. With this
method I still need a way to change it in the product view before
it's added to cart.
I've also tried the event catalog_product_get_final_price but this
seem to only fire when the product page is loaded, so after a
product length or width is added, it doesn't re-fire.

Any ideas would be greatly appreciated!


texts: How do I add custom content at the bottom of the product category page?

texts: My B2C has different product categories. I want to add some custom content at the bottom of each product category page, such as: text, banner image. I know that the product category is the same module that is called uniformly, so it is not clear how to achieve it?


texts: Around Plugins ( Interceptors) in magento can be used to suppress before and after plugin execution?

texts: In around plugin function, if we don't use proceed() then after plugin execution will be suppressed. Is there anyway by which we can suppress before plugin execution?


texts: Can I install MSP_Common module using Magento Connect, although I haven't paid for anything?

texts: I want to install MSP_Common module, in order to get my BancaSella module to work properly. Can I do this through Magento Connect or do I have to find another way? If I can install module using Magento Connect, then please help me know how to do this? I tried to access Magento Connect page by clicking on System -> Magento Connect -> Magento Connect Manager, but I am just redirected to htp://localhost/dashboard page.


texts:
I am trying to login via soap from an external server

$api_url_v2 = "http://www.example.com/api/v2_soap/?wsdl=1";
$username = 'username';
$password = 'password';
$cli = new SoapClient($api_url_v2);
$session_id = $cli->login($username, $password);

The error message I get is Fatal error:

  Uncaught SoapFault exception: [2] Access denied

However if I look in the api_user table in magento db, then the lognum column increments by 1 when I have the correct username / password combo... so it seems like the system knows the details are correct, but is giving me access denied.

The users role I have ticked all options for and assigned the role to the user

I can't seem to see many examples of this issue anywhere.

Has anyone come accross this issue, or can you provide any tips to solve?


texts: Configure Apache and Elasticsearch Magento2 CE (Version 2.4.0), Any advice?

texts:
Ok, I found a post seems already answer my question, but still would like someone to confirm it.
From this post, we know that Magento2 CE, should use this elasticsuite, instead of Elasticsearch. Is my understanding correct ?
Now seem like I am almost finished installing Magento2 CE since now I am able reach the point of see "https://www.testing.com/setup/#/landing" page with Welcome message.
Not sure if I am not technical enough to follow this guide. I get stuck at step 6,
(Verify the proxy works by entering the following command, honestly, not even sure I got the all previous steps correct though)
My env. is GCP, OS: Centos-release-8.2-2.2004.0.2.el8.x86_64
I believe that Elasticsearch is installed correctly since we can tell by
    curl -X GET "localhost:9200/"
{
  "name" : "testing",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "O4DAzmpwRVm8XCg",
  "version" : {
    "number" : "7.9.2",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "d34da0ea4a966c4e49417f2da2f244e3e97b4e6e",
    "build_date" : "2020-09-23T00:45:33.626720Z",
    "build_snapshot" : false,
    "lucene_version" : "8.6.2",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

and
sudo systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
   Active: active (running)

When I run
        curl -i http://localhost:8080/_cluster/health
[Fri Oct  9 13:36:56 2020] [::1]:39052 Accepted
[Fri Oct  9 13:36:56 2020] [::1]:39052 [404]: (null) /_cluster/health - No such file or directory
HTTP/1.1 404 Not Found
Host: localhost:8080
Date: Fri, 09 Oct 2020 13:36:56 GMT
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 548

This should be not the expected output?
However, when I run
curl -i http://localhost:9200/_cluster/health
HTTP/1.1 200 OK
content-type: application/json; charset=UTF-8
content-length: 389

Where is my directory structure.
[root@testing httpd]# ls
conf  conf.d  conf.modules.d  logs  modules  run  sites-available  state

[root@testing sites-available]# ls
000-default.conf  ius-installer.sh  magento.conf

  [root@testing sites-available]# cat 000-default.conf
    Listen 8080
    <VirtualHost *:8080>
        ProxyPass "/" "https://localhost:9200/"
        ProxyPassReverse "/" "https://localhost:9200/"
    </VirtualHost>

[root@testing sites-available]# cat magento.conf
<VirtualHost *:80>
     ServerAdmin admin@testing.com
     DocumentRoot /var/www/html/magento/
     ServerName testing.com
     ServerAlias www.testing.com
     <Directory /var/www/html/magento/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
     </Directory>
     ErrorLog /var/log/httpd/magento_error.log
     CustomLog /var/log/httpd/magento_access.log combined
</VirtualHost>


texts:
I want to have Docker container with Magento2 shop and container with Logstash. Also I have independent Elasticsearch server. I want to send all logs from Magento with build-in Monolog logger to Logstash and then to Elasticsearch sever.
Can anybody help me? thanks.


texts: UPS Customer Integration Environment (CIE) Notice?

texts:
I just got a notice from UPS that says the following:

As a valued partner, we want to ensure that as we approach the busiest season of the year, we continue to meet your company needs.
This message is to inform you that you are currently using UPS
Developer Kit APIs in the Customer Integration Environment (CIE),
which is not intended to perform as the UPS® production environment.
To avoid slow response times or planned outages, please migrate to the
UPS production environment by November 25, 2014.
If you have questions regarding this migration, click here to contact
UPS Developer Kit Support.

with a link to http://www.ups.com/content/us/en/resources/techsupport/developercenter.html
How will this affect the current UPS shipping module in Magento? And is there any fix to make this compatible with the above request for Magento at the moment?


texts: MULTIDOMAIN - Even if I change the URL on a product, the old version is being used

texts:
I am running a multidomain store, Magento 2.2.1 CE. The default value is in Danish. I created an Italian domain, where I need Italian URLs. In the backend, I go to a product, I select Italy as store view, and I untick every value that I don't want to be Danish. In doing that, I substitute the URL with the Italian one, but when I open the product on the website, the website is xyz.it but all the rest after the slash is the Danish URL. So the result is something like xyz.it/danish-url-and-I-cant-fix-that.html
How do I get the front end to use the URL that I specified on the backend?This happens only for some products, not for the whole store.


texts:
I am using Magento 1.9.3

Tier price is applied on checkout page when customer is not log in but it's not applied when customer is login,

Can not find any solution to fix this.

Please help


texts: How can I import products from external programs CSV every day?

texts:
I have external "offline" program that runs database of products. I would like to create a script or something to automaticaly update product inventary.
Another problem is that headers don't mach, so how could i rename headers?

Magento version: 2.3
Server: Ubuntu 18 (LEMP)

I am new to this so any help is apriciated.


texts: APC + Compilation shows 500 internal server error on cart page

texts:
We are using APC with compilation in one of our project, magento version is 1.7.0.2. only FPC extension is installed in it.

At front-end all pages are working fine but Checkout & cart page shows 500 internal server error.

We checked error_log of server. It shows me below errors

(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
Premature end of script headers:index.php

Is there any way to resolve such issue.


texts: Magento2 Translate cross sell, up sell and related products

texts:
we have magento 2.1.16 ce

I can't get these three title translated:
cross sell, up sell and related products

Inline translation does not work for this ...
They are not editable.

And I also have an nl_NL.csv translation file at:

app/design/frontend/Mytheme/mytheme_custom/i18n

With these lines:

"Related Products","Gerelateerde producten"
"Up-sells","Wellicht ook interessant?"
crosssell,"Wellicht ook interessant?"

but a change at this location does not work.
How can I translate these frases?


texts: Get attribute value in product view page

texts:
I want to to display attribute value in Product view page. link

I'm trying following code :

echo $_attribute->getProductAttribute()->getAttributeCode();

or

$_attribute_code = Mage::getModel('eav/entity_attribute')->load($_attribute->getAttributeId())->getAttributeCode();

I replaced attribute code : "brand" in above code and using :

 echo $_attribute->getProductAttribute()->getbrand();

or

 $_brand = Mage::getModel('eav/entity_attribute')->load($_attribute->getAttributeId())->type();

but it's not working : Fatal error: Call to a member function getAttributeId() on a non-object in

Please help me to find where i am missing.


texts:
I read severals post here to translate the "customer/account" with something else.

I have no idea how to do this for the "controller" account.
I mean, If I change routes.xml like this :

<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
    <router id="standard">
        <route id="customer" frontName="client">
            <module name="Magento_Customer" />
        </route>
    </router>
</config>

The "customer" part of the url will be translated to "client" (french word).

But, what's about "account" ?
I tried with marketing / seo admin backoffice, without success.


texts: Collection with FIND_IN_SET on multiselect attributes, but some has only one value

texts:
I am building a product collection, which will find results from a multiselect attribute.

(relevant code that adds finset to collection - adjusted to display real id values)

$attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'measurement');
    $value = array('finset' => array('237',
                '236',
                '235',
                '234',
                '233',));
    $collection->addAttributeToFilter($attribute, $value);

The resulting sql (with visiblity filter added) is as such:

SELECT DISTINCT
    e . *,
    at_measurement.value AS measurement,
    at_visibility.value AS visibility
FROM
    catalog_product_entity AS e
        INNER JOIN
    catalog_product_entity_varchar AS at_measurement ON (at_measurement.entity_id = e.entity_id) AND (at_measurement.attribute_id = '983') AND (at_measurement.store_id = 0)
        INNER JOIN
    catalog_product_entity_int AS at_visibility ON (at_visibility.entity_id = e.entity_id) AND (at_visibility.attribute_id = '526') AND (at_visibility.store_id = 0)
WHERE
    (e.attribute_set_id IN ('74')) AND (FIND_IN_SET('237',
            '236',
            '235',
            '234',
            '233',
            at_measurement.value)) AND (at_visibility.value IN ('2' , '4'))
GROUP BY e.entity_id

The issue is that I get a sql error:

"SQLSTATE[42000]: Syntax error or access violation: 1582 Incorrect parameter count in the call to native function 'FIND_IN_SET'"

and I (think) I can see why: Some of the multiselect values have only one option, thus there is no comma separated values to qualify for FINSET

Am I correct in why this error is produced?
How can I write this collection object to account for this?

If not the above, what am I missing?

The results from running the sql in mysql workbench, minus the find_in_set clause:


texts: Configuration fields in backend are all disabled

texts:
After updating Magento 2.1 to Magento 2.2 all fields in backend under "Default Config" are disabled. If I switch to Main Website or one of stores the fields can be edited.

Currently running Magento 2.2 with 1 website which contains 3 stores.

Does anyone know how to solve this issue without reinstalling everything?


texts:
I want to access my local Magento server on public URL , I have created a shared link with ngrook, and it works, but all assets are with my test domain?
Tried database unsecure URL change, but then I get TOO MANY REDIRECTS.


texts: how to create a custom template for catalog product list

texts:
I am trying to override module-catalog-widget. I want a new template in the template field. I copied module-catalog-widget.while editing in the extended module in widget.xml no change is happening.
thank you


texts:
I'm trying to set up docker for magento 2.3.0 and elasticsearch 6.4.2

After containers are up i can connect to elasticsearch through browser and set up connection in magento 2 admin panel with message "Success".

Than i cleared cache and try to reindex catalogsearch_fulltext index. I recieved an error message:

Catalog Search indexer process unknown error:
{
    "error": {
        "root_cause": [{
            "type": "illegal_argument_exception",
            "reason": "Enabling [_all] is disabled in 6.0. As a replacement, you can use [copy_to] on mapping fields to create your own catch all field."
        }],
        "type": "illegal_argument_exception",
        "reason": "Enabling [_all] is disabled in 6.0. As a replacement, you can use [copy_to] on mapping fields to create your own catch all field."
    },
    "status": 400
}

It's been throw out in

  vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php line 272

The same on elasticsearch 7.0.0

Does anyone has this problem? Can i somehow fixed it?


texts: Magento 2 Theme Showing up in DB but not the Admin area options

texts:
I have finally been able to install my theme, all the files and the proper commands have all been run. I have tried clearing caches and running the php bin/magento setup:upgrade doesnt help. When I login to the cpanel I see my theme in there and it is set to 0. I have tried everything but when I go to content>design>configuration and select edit on the current theme. My new theme is not listed as an option to select. I have put the store in developer mode as well. Below are my files:

<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
<title>CyberMark Sparklingearth</title>
<parent>Magento/blank</parent>
<media>
    <preview_image>media/preview.jpg</preview_image>
</media>
</theme>

<?php
/**
 * Copyright © 2013-2017 Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::THEME,
'frontend/CyberMark/sparklingearth',
__DIR__
);

{
"name": "magento/theme-frontend-sparklingearth",
"description": "N/A",
"require": {
    "php": "~5.6.5|7.0.2|7.0.4|~7.0.6",
    "magento/theme-frontend-blank": "100.1.*",
    "magento/framework": "100.1.*"
},
"type": "magento2-theme",
"version": "100.1.6",
"license": [
    "OSL-3.0",
    "AFL-3.0"
],
"autoload": {
    "files": [
        "registration.php"
    ]
}
}


texts: Displaying 'Site under constrcution' message

texts:
I have a basic website set up in magento 2 platform and it is on AWS server. I need to keep the site under construction. How can I achieve that using Admin panel?

TIA!


texts: get order details by Order Id in magento

texts:
I am trying to get order details by order id in my code. For this I have created a php file and copy that file to a folder in public_html. this is my code :

<?php
 error_reporting( E_ALL );
 require_once "lib/nusoap.php";
 require_once "../app/Mage.php";
  try {
   $order = Mage::getModel('sales/order')->load('100000234');
   $orderData = $order->getData();
   print_r($orderData);
  } catch (Exception $e) {
echo 'Caught exception: ',  $e->getMessage(), "\n";
  }
   ?>

But when i run this code,  it  shows "nothing" to me !

I tried to var_dump($order), but it is also showing nothing and no error !

Can any body help me to get order detail and show it ?

Thanks


texts: Observer for registration also fires login observer

texts: I have two observers, one for customer_register_success, and one for customer_login which work very well. The issue I'm having is when a customer registers, magento redirects to the login request, and subsequently fires the observer for that. Both are designed to do the same task in a slightly different way, where requests are sent to an external service via api calls, and as you know, api calls can be used up if not used carefully, so avoiding redundancy is critical. Is there a way to set some kind of persistence to avoid the second observer from being fired?


texts: Multi Site magento setup not adding tax to just 1 particular site

texts:
So i have a single installation of magento running multiple websites. All of my stores except for 1 all display the tax correctly. I just have 1 though that does not add tax at all. all the sites have the default site settings but its just 1 that doesn't work. Anyone have any ideas? ive tried to comb through everything and even contacted my hosting company who also couldn't find any settings that were wrong.

ive checked all the tax on products. I have the same product across all the sites so i used that as my test product. It brings up tax on 6 of my sites but not on 1 and all the settings are set to the default installation of magento which is working properly. It was the 3rd multistore i set up out of 7 which is why i find it weird because they all have the same settings....

i was thinking maybe its something in the database i could check. does anyone know which table in the database controls the tax class per site to see if it had a different value than the rest of the sites.


texts:
As we all know, there is some issue in security patch SUPEE 8788, so magento has released its new security patch SUPEE 8788 v2. I am wondering there is anything new for the after magento 1.8 or it is the patch for previous versions.

And also want to know what could be possible error and what precaution we need to take care before installing this patch?


texts:
I have installed Magento 2.4 successfully in localhost. When I tried to open the link (http://localhost/magento3/) it's showing not found. But all the Magento directories in the same folder(magento3). Please any let me know how to fix this issue.

Thanks


texts: Magento2.3 How to remove estimation call on state change action in Cart page?

texts:
I need to remove estimation call on state change action in the cart page. When user change region estimation call execute when to add zip code than  estimation call execute again, so shipping calculation takes a too much time.

So How I can achieve it?