texts:
In sales/orders is it possible to hide completed orders ? using something like filters.

or can I filter the status column with more than one status ?


texts: Changing core functionality of Shopping Cart Price Rule

texts:
To suite my Payment terms i have considered using Shopping Cart Price Rules since they are easy way out. What the default Shopping Cart Price Rule does is that it applies a fix or percentage based discount (whatever we set it to)-and then it subtracts that discount from subtotal amount BUT i want it to ADD the 'discount'* to subtotal amount and Grand-Total be based on ' Subtotal + discount* '. The discount* in my case would be shipping as i would change the word 'discount' by 'Shipping'. And so the Grand-Total would now be turned as 'Subtotal + Shipping'. So basically all that needs to be done is change the subtraction sign - to addition sign + , to perform addition of Subtotal + discount-turned-into-Shipping

You guys must be wondering why i am not using the default shipping options-well i tried them but they are not suiting my needs.

Anyone please?just need to know where can i perform maths.


texts: Can anyone help me to get the current category in my view.phtml?

texts:
I'm using Magento 1.9. I would like to get the current category of products in app/design/frontend/xxxx/xxxx/template/catalog/layer/view.phtml file.
I've already tried Mage::registry('current_category') and Mage::getSingleton('catalog/layer')->getCurrentCategory() for getting current category. I'm not getting any results from that. thanks in advance


texts: Pass action method to inline block on CMS page in Magento

texts:
I'm trying to convert

<reference name="content">
  <block type="ibanners/view" name="ibanners.home" as="home">
    <action method="setGroupCode">home</action>
  </block>
</reference>

Into an inline block to use inside the CMS home page, I've got

{{block type="ibanners/view" name="ibanners.home" as="home.banner" setGroupCode="home" template="ibanners/default.phtml"}}

But it's not doing anything, can anyone point out where I am going wrong?


texts: Strange error when installing extension over Magento Connect

texts:
I experienced an identical issue twice now on two separate installs on two separate environments. The first was on a client's production environment while I was trying to install an extension using Magento Connect. When I plugged in the extension key in step 2, I was presented with this:

error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

I shook it off and just installed the extension over FTP and continued about my day thinking something might be wrong with Magento Connect.

I then experienced the same issue with a clean install of 1.9.1.0 on a testing server I setup. Unable to proceed with extension install due to the same error.

Regarding SSL: The client's site has a fully verified SSL certificate. My testing server certificate was self-signed.

At this point I'm really just curious as to what causes it as I am able to proceed with FTP/SSH installs of my extension.

Additional Notes: Both instances were using Magento CE 1.9.1.0.


texts:
someone has injected some weird URLs to my Magento store which now redirect to the third website. Google thinks, of course, that my page is hacked and it shows that on its search engine. I want to avoid that at every cost.

I have gone through some major directories to check for permissions and everything looks okay.

What should I do, where else might the backdoor be? Is there any plugin to help me with this?

Thanks!


texts: Magento 1.9 checkout/onepage after login redirect to checkout/onepage

texts:
Am using Magento 1.9. When customer login in checkout/onepage page, it redirect to customer/account.

I want to remove this flow.

If customer login in checkout/onepage page redirect to same page I mean checkout/onepage page.

I tried this but no use

  admin > System > Configuration > Customer > Customer Configuration >
  Loggin Option

then make Redirect Customer to Account Dashboard after Logging in make it NO


texts: GET or SET Product special price using REST API

texts:
I want to get & set special price for a product in Magento 2.0 using APi.
Following is the http url for getting the price of an item.

http://192.168.222.45:8081/MagentoDev/index.php/rest/V1/products/special-price-information

Body:

{
  "skus": [
    "SKU505050"
  ]
}

The result of the request is :

{
    "message": "Request does not match any route."
}

Similarly, I can not set the special price of the product. For Setting the price, I use the following link:

http://192.168.222.45:8081/MagentoDev/index.php/rest/V1/products/special-price

Body:

[
  {
    "price": 160,
    "store_id": 0,
    "sku": "SKU505050",
    "price_from": "10/01/2017",
    "price_to": "10/01/2017",
    "extension_attributes": {}
  }
]

result:

{
    "message": "Request does not match any route."
}

Has anyone faced this issue?
A quick help will be highly appreciated !


texts:
I have set my product custom price in an observer..

$item->setOriginalCustomPrice(9.99);
$item->setCustomPrice(9.99);

I can output the price value correclty like so:

echo $item->getOriginalPrice();
// 9.99

But when I try to output it formatted, it gives me the original price.

$finalPrice = $product->getPriceInfo()->getPrice('final_price')->getAmount()->getValue();
// £19.99

I tried

$finalPrice = $product->getPriceInfo()->getPrice('custom_price')->getAmount()->getValue();

But that gives an error.


texts: M2 - Different tax class for different product in same region

texts:
Here in Slovakia, we have some products types that are taxed differently from other products. For example electornic 20%, medical accessories 10%.

So I have created tax zones for 10% and 20%

And tax rules:

On the product I have configured that product X has 20% and product Y has 10%. (also reindexed, cleared / flushed cache, removed all directories like view_preprocessed,...)

Result is that, both products are calculated with 20%.

Tax calculation is set based on shipping origin, which is configured.

Here is similar question which has been not answered Magento 2 - Two different tax percentage for two different products in same region


texts: When enable Block HTML output from Cache CMS Widget show previous data

texts:
When I Disable  Blocks HTML output my Widget working good but when i enable     Blocks HTML output it shows wrong or previous output.

Actually my theme shows category from widget and i facing this issue

URL:http://www.onlineprojectdemo.net/shop_popus/index.php/categories/health-supplement.html

ScreenShot


texts: Working of discount coupons on the checkout page in Magento 2.2.2

texts:
I am trying to understand the working of discount coupon codes on the checkout page.

When we apply any coupon code, then the discount is added to cart without reloading the page.

I have checked and found some below points:

"discount" totals segment is added by Magento_SalesRule module.

When we apply any coupon code then, using vendor\magento\module-sales-rule\view\frontend\web\js\action\set-coupon-code.js, an ajax request is send to rest/default/V1/carts/mine/coupons/:coupon.

Code from vendor\magento\module-sales-rule\view\frontend\web\js\action\set-coupon-code.js :

 return storage.put(
            url,
            {},
            false
        ).done(function (response) {
            var deferred;

            if (response) {
                deferred = $.Deferred();

                isApplied(true);
                totals.isLoading(true);
                getPaymentInformationAction(deferred);
                $.when(deferred).done(function ()
                {
                    fullScreenLoader.stopLoader();
                    totals.isLoading(false);
                });
                messageContainer.addSuccessMessage({
                    'message': message
                });
            }
        }).fail(function (response) {
            fullScreenLoader.stopLoader();
            totals.isLoading(false);
            errorProcessor.process(response, messageContainer);
        });

After the above ajax call, Summary total section gets refresh and
Discount appears in it below image.

When we click on the cancel coupon button then code from
vendor\magento\module-sales-rule\view\frontend\web\js\action\cancel-coupon.js
runs and "Discount" disappears from the summary total section.

How does the total_segments add or remove "discount"?


texts: Catalog Price Rule Not Working On Live Site

texts:
Catalog price rule not working on my live site, may i know the possibilities of error? Is necessary for cron job?

Workout:

How can i solve the issue?


texts:
I am creating two new customer attributes in registration page, but it is displaying 3 places. this is my code

In app/code/vendor/plugin/view/frontend/layout/customer_account_create.xml

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

In additionalinfocustomer.phtml  i have display code for new attributes.

Note : it is working upto 2.1.13 and 2.2.3 but latest 2.2.4 i am getting above issue.

As per code it is calling following places

if you see default form/register.phtml following places it is calling

echo $block->getChildHtml('customer.form.register.extra') --line 19
echo $block->getChildHtml('customer.form.register.newsletter') line 33
echo $block->getChildHtml('form_additional_info'); line 167.

but it should call only on 167


texts: Magento 2 - Observer after order not work

texts:
In Magento 2, I try to add an observer sales_order_place_after and it doesn't work.

app/code/Vendor/Module/etc/event.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="sales_order_place_after">
        <observer name="vendor_module_order_place_after" instance="Vendor\Module\Observer\OrderPlaceAfter" />
    </event>
</config>

app/code/Vendor/Module/Observer/OrderPlaceAfter.php

<?php

namespace Vendor\Module\Observer;

class OrderPlaceAfter implements \Magento\Framework\Event\ObserverInterface
{
    protected $_logger;
    protected $_myObserverFactory;

    /**
    * @param \Psr\Log\LoggerInterface $_logger
    */

    public function __construct(
        \Vendor\Module\Logger\Logger $logger,
        \Vendor\Module\Model\MyObserverFactory $myObserverFactory
    ) {
        $this->_logger = $logger;
        $this->_myObserverFactory = $myObserverFactory;
        $this->_logger->info('test');
    }

    public function execute(\Magento\Framework\Event\Observer $observer)
    {
        $this->_logger->info('START - Observer Order');
        $order = $observer->getEvent()->getOrder();

        $this->_logger->info($order->getData());
        $this->_logger->debug($order->getData());

        var_dump($order->getData());die;
        $this->_logger->info('END - Observer Order');
    }
}

After placing an order no logs are saved and var_dump; die; do not show.

Can you help me please ?


texts: I have three products that are working properly, However I would like to add shipment charges for each product separately, is there any way to display the shipment charges using magento default functionality or do I have to go for some plugin (free-plugins). Each product have different shipping charges, I have done some R&D and I tried them by using the product weight feature of table -rates in  magento. So far nothing is working, please tell me what I am missing or how this functionality can be achieved. I am open for all options except paid plugins.


texts: Magento 2 - How to call REST API to register a new customer

texts: In Magento2, How to call REST API to register a new customer (What APIs need to call step by step). Thanks!


texts:
I would like to ask on how to create a request catalog form in Magento 1.9.1.0.

I want to create a Request Catalog Form using the contact form.

Or do I need to create my own module on it.


texts: Getting all items in the cart in Magento 2 with FPC turned on

texts:
I would like to get all items in the cart with Full Page Cache (FPC) turned on
Normally I would do something like:
use Magento\Checkout\Model\Session;

public function __construct(
        ...
        Session $session
        ...
    ) {
        ...
        $this->_session = $session;
        ...
    }

public function yourFunction()
{
    $items = $this->_session->getQuote()->getAllVisibleItems();
}

However when you turn on FPC, the session is lost as per this GitHub Issue. Adding  cacheable="false" to the XML is not an option as it will make all of the page not cachable.
Therefore my question is how do I get a list of items in the cart with FPC turned on?


texts: Difference between `sales_order_place_after` and `sales_order_save_after`?

texts:
Magento 1 and Magento 2 both have the two event:

sales_order_place_after
sales_order_save_after.

I have some confusion about them, what is the detailed differences between them?

Which situation to use which?


texts: {{store url=''}} is strangely not working

texts:
in one of my static blocks I have this HTML markup:

AGB

Impressum

It should produce a link to the page with the url identifier 'agb', so mystore.de/agb. But the actual output looks like that:

AGB

So nothing changes. I am going insane and google doesn't deliver. Please help!!

Thanks


texts: Is it possible to redirect to a Url instead of adding in shop cart?

texts:
I would like to make this optional. Like some of the products are able to be added in shopping cart and some of some when a user click on add to cart it sends him to the referral store.

Is there any extensions doing this ? any ideas how to achieve this?


texts: Magento Installer - File Permission Check Fail

texts:
I had been struggling with  Magento-CE-2_1_3 installation without success.

The installation process is always terminated because of the File Permission Check

"File Permission Check

4 file permission not met. Hide detail

The best way to resolve this is to allow write permissions for files in the following Magento directories and subdirectories. The exact fix depends on your server, your host, and other system variables.
For help, see our File Permission Help or call your hosting provider.

"/var/www/html/mage2/app/etc" - Not writable, change the permissions. Show details
"/var/www/html/mage2/var" - Not writable, change the permissions. Show details
"/var/www/html/mage2/pub/media" - Not writable, change the permissions. Show details
"/var/www/html/mage2/pub/static" - Not writable, change the permissions. Show details"

Currently I ended up to change permissions to full access to all Magento content  (files & directories).
e.g drwxrwsrwx. 2 apache apache   84 Jan 25 18:24 etc

Even if the content has full right the Installer is giving notice that there is no permissions to certain content.

Unfortunately I haven't found the solutions from Magento DevDoc or other sites.

All advices are welcome!

---added 30.1--

--- added 2.2 ---

After CLI installation the error log is filled with following when index page is opened.

  [Thu Feb 02 12:32:24.441225 2017] [:error] [pid 6955] [client
  127.0.0.1:56438] PHP Fatal error:  Uncaught Zend_Cache_Exception: cache_dir "/var/www/html/mage2/var/page_cache" is not writable in
  /var/www/html/mage2/vendor/magento/zendframework1/library/Zend/Cache.php:209\nStack
  trace:\n#0
  /var/www/html/mage2/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180):
  Zend_Cache::throwException('cache_dir "/var...')\n#1
  /var/www/html/mage2/vendor/colinmollenhour/cache-backend-file/File.php(87):
  Zend_Cache_Backend_File->setCacheDir('/var/www/html/m...')\n#2
  /var/www/html/mage2/vendor/magento/zendframework1/library/Zend/Cache.php(153):
  Cm_Cache_Backend_File->__construct(Array)\n#3
  /var/www/html/mage2/vendor/magento/zendframework1/library/Zend/Cache.php(94):
  Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)\n#4
  /var/www/html/mage2/vendor/magento/framework/App/Cache/Frontend/Factory.php(155):
  Zend_Cache::factory('Magento\\Framewo...', 'Cm_Cache_Backen...',
  Array, Array, true, true, true)\n#5
  /var/www/html/mage2/vendor/magento/framework/App/Cache/Frontend/Pool.php(67):
  Magento\Framework\App in
  /var/www/html/mage2/vendor/magento/zendframework1/library/Zend/Cache.php
  on line 209


texts: How to join sales order with custom table in magento 1.x

texts:
I have created a new table in Magento 1 like this

How to join table sales_order and custom_table where increment_id = order_number. I try this code but it did not work for me, it hasn't data and shows error

Error

Integrity constraint violation: 1052 Column '`created_at`' in where clause is ambiguous

My Code

    $tbl_faq_item = Mage::getSingleton('core/resource')->getTableName('custom_table');
    $ordershippeddays = Mage::getStoreConfig('custom/customgroup/x_day');
    $fromDate         = gmdate("Y-m-d H:i:s", gmmktime(0, 0, 0, gmdate("m"), gmdate("d") - $ordershippeddays, gmdate("Y")));
    $toDate           = gmdate("Y-m-d H:i:s", gmmktime(23, 59, 59, gmdate("m"), gmdate("d"), gmdate("Y")));
    $collection = Mage::getModel('sales/order')->getCollection();
    $collection->addFieldToFilter('customer_id', array('eq'=> $this->getCustomerLogin()->getId()));
    $collection->addAttributeToFilter('created_at', array('from' => $fromDate, 'to' => $toDate));
    $collection->addFieldToFilter('status', array('in' => array('complete','processing')));
    $collection->getSelect()
       ->join(array('t2' => $tbl_faq_item),'main_table.increment_id = t2.order_number')->where('main_table.increment_id = t2.order_number');


texts: Magento 2 : Custom controller for frontend redirected to 404 page

texts:
I have a created a frontend controller on location
Namespace/Mymodule/Controller/Schedule.php

namespace Namespace\Mymodule\Controller;
class Schedule extends \Magento\Framework\App\Action\Action
{
  public function execute()
  {
    die("Hello");
  }
}

routes.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
  <router id="standard">
     <route id="mymodule" frontName="mymodule">
        <module name="Namespace_Mymodule" />
    </route>
  </router>
</config>

Now when I try to manually call this action by http://localhost/magento2/mymodule/schedule (as i am working on localhost) that time I am getting an 404-Not found page.

Where I am going to wrong ?

Thank you in advance.


texts:
I have created one module for hide price and replace button, with add to cart in product view page,

For this module I created 4 files:

system.xml
adminhtml.xml
config.xml
data.php

but, where to write logic for the hide price, I don't understand.

Any tips on how to get that working?
    Thanks! pls, help me..

This is my addtocart.phtml file. in this file i have used the condition user logged or not and if user not logged then price not display.

But how can set condition if user also logged in but price not display.

<?php
    //condition to check user is loggedin or not
    if(!Mage::getSingleton('customer/session')->isLoggedIn() AND Mage::getStoreConfig('sigma1_product/sigma1_group/price_enable')):
    echo ''.Mage::getStoreConfig('sigma1_product/sigma1_group/cart_text').'
';
    return;
    endif;
?>
<?php $_product = $this->getProduct(); ?>
    <?php $buttonTitle = $this->__('Add to Cart'); ?>
        <?php if($_product->isSaleable()): ?>

                <?php if(!$_product->isGrouped()): ?>
                    <?php echo $this->__('Qty:') ?>
                    <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
        <?php endif; ?>
        <button type="button" title="<?php echo $buttonTitle ?>" id="product-addtocart-button" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><?php echo $buttonTitle ?></button>
        <?php echo $this->getChildHtml('', true, true) ?>

        <?php endif; ?>


texts: Magento2 - How to check all running CRON Jobs?

texts:
In Magento2 how to check all running CRON Jobs.

Is there any way for that?


texts: Whats the right way to profile slow magento?

texts:
I'm helping a friend to improve performance on their pretty mid-small sized magento store.

First thing I was looking is the Magento Profiler, from what I can see there is those methods that takes lots of time(6-7 seconds!)

layout/db_update: cms_menu  6.5310  1   0   0
layout/db_update: cms_page  6.5292  1   0   0
layout/db_update: STORE_default 6.5274  1   0   0
layout/db_update: THEME_frontend_agent_default  6.5256  1   0   0
layout/db_update: cms_index_index   6.5236  1   0   0
layout/db_update:   6.5217  1   0   0
layout/db_update: customer_logged_out

Any ideas how to go deeper and understand what's the bottleneck? I guess its some slow mysql queries.

I'm looking for tools/tips to help me to dig into it and get extra info


texts: I am facing backend model error in magento when i moved project from lcoalhost to server

texts:
I am facing  backend model error when i moved project from localhost to live server. error detail is.

Invalid backend model specified: sse_autosku/entity_attribute_backend_increment


texts: Automatic URL rewrite after deleting a product

texts: Is there any way in magento to make an automatic url rewrite to the category of the product, after deleting that product?


texts: How to install Mailchimp in magento 2.1.5 from composer

texts:
I am trying to install MailChimp in the following way but unfortunately, it did not work for me.

install the MailChimp library

  composer require ebizmarts/mailchimp-lib

Install MailChimp right version as per Magento version

  composer require mailchimp/mc-magento2:100.1.37

after that, I am running following command

php bin/magento setup:upgrade

php bin/magento cache:clean

php bin/magento setup:static-content:deploy ar_SA
php bin/magento setup:static-content:deploy en_US en_GB

But above process did not help me.

Thanks for your support in advance.


texts: What is the lifetime of a SOAP v2 session in magento?

texts:
I was wondering what the lifetime is of a soap v2 session in Magento.

I wish to implement an auto-renew method every x minutes but for that, I need to know how long a login session/token stays valid.

Is it 5, 10, 15 60 minutes?


texts:
We tried using event method "sales_quote_collect_totals_after"

$quote = $observer->getQuote();
        foreach ($quote->getAllItems() as $quoteItem) {
            $product = $quoteItem->getProduct();
            $product->setTaxClassId(0); // tax class removed.now the price is with no
            $logger->info('tax'.$product->getTaxClassId()); // Simple Text Log

        }

We got the log of tax class id as 0 but in frontend taking the actual product rule

Advanced thanks


texts:
I'm getting the following error when I try to enter my public and private key from auth.json file in system config:
Command "show" failed: Authentication required (packages.mageworx.com): Username: The 'https://packages.mageworx.com/packages.json' URL required authentication. You must be using the interactive console to authenticate https://packages.mageworx.com could not be fully loaded, package information was loaded from the local cache and may be out of date In Process.php line 143: The Process class relies on proc_open, which is not available on your PHP i nstallation. show [--all] [-i|--installed] [-p|--platform] [-a|--available] [-s|--self] [-N|--name-only] [-P|--path] [-t|--tree] [-l|--latest] [-o|--outdated] [--ignore IGNORE] [-m|--minor-only] [-D|--direct] [--strict] [-f|--format FORMAT] [--] [ []]
Can anybody help me with this?
Thanks in advance.


texts: Magento custom theme, overwrite block content

texts:
I developed a custom theme for Magento 1 for one of my projects.
Or tried to follow the guidelines of the communites. I have not overwritten the files {layout}.xml I have created new ones on a module and modified the concerned designs. I also created some Block classes that extended the originals but modified some small logic.

I have a doubt though. In these pages all, for convenience, I overwritten the block: "content" entirely, because the structure was always totally different:

<block type="core/template" name="content" template="myfront/page/catalog/category/content.phtml">
...

Not using <reference name = "content"> and the various methods inside to customize.

Is this wrong / discouraged? or can I be calm? :)


texts: where to change Coupon code is not valid error message

texts:
we created coupon code and we wanted it should not applicable only for particular category.

so we used this condition as in image. its working fine.

but we are getting error message as below.

Coupon code "123456" is not valid. [not real coupon code ]

we want to change this error message as coupon code not applicable for this category.

We are using Magento Hackathon promocode error message module

we checked in extension code & in app/locale/en_us/csv files , there is no error message matching present to match  above error message.

we found above message in these 2 files app/locale/en_us/ Mage_checkout.csv , Mage_xmlconnect.csv .we changed here also but its not working for us.

Please tell me where i need to chnage those error message.

public function validate($couponCode, $quote)
    {
        $this->_quote = $quote;

        try {
            /** @var Mage_SalesRule_Model_Coupon $coupon */
            $coupon = Mage::getModel('salesrule/coupon')->load($couponCode, 'code');
        }
        catch (Exception $e) {
            Mage::logException($e);

            return;
        }

        // no coupon
        if (!$coupon->getId()) {
            Mage::throwException($this->_formatMessage('Coupon code does not exist.'));
        }

        /** @var $rule Mage_SalesRule_Model_Rule */
        $rule = Mage::getModel('salesrule/rule')->load($coupon->getRuleId());

        $this->_validateGeneral($rule, $coupon);
        if (Mage::getStoreConfigFlag('checkout/promocodemessages/include_conditions')) {
            $this->_validateConditions($rule);
        }
    }


texts:
I want to add a custom numeric field to product grid.
This will appear as a column in product grid in admin backend, and the products in fronted can be sorted by this numeric field.

Is there an extension or an easy way doing it?


texts: Critical Vulnerability in Magestore Store Locator extension

texts:
Magento released an announcement about a critical Vulnerability in Magestore Store Locator extension

There's been no patch released by the actual vendor - Magestore

Does anyone know:

What the vulnerability is?
How to patch it?

I've created a github repo that holds the original code of this extension, so you can see what the code is and perhaps see what the vulnerability is and suggest a patch?

The scope of functionality and code are available on the public github repo.

Update

Magestore released  a patch, it can be found here https://blog.magestore.com/store-locator-extension-patch/

According to them

  Please note that customers using Magento 1 are not affected by this issue.


texts:
I have tried this but this is giving empty log file.
What should I do to get output for this:
  public function isAdmin() {
        $writer = new \Zend\Log\Writer\Stream( BP . '/var/log/myfile.log' );
        $logger = new \Zend\Log\Logger();
        $logger->addWriter( $writer );
        $this->_coreSession->start();
        $logger->info( 'aaaa', $this->_coreSession->getMessage() );
    }


texts: Magento2 add if condition in email templates

texts:
I want to add if condition in email. I want to check if field value is != empty then display data

I used below code but not working

{{if data.comment_data != ''}}

{{trans "Message"}}
        {{var data.comment_data}}

{{/if}}


texts:
I'm looking for a database scheme/diagram for Magento 1.9.3.0

We have just upgraded to 1.9.3.0 and i would like to add this to documentation but cannot find it. Who has this? Or any directions on where to find this is great too

Thanks!


texts:
I am using CDN in my website but strange thing is, it's create html file with .js not getting why this come
https://abc-f88d.kxcdn.com/frontend/ab/custom/en_AU/Aalogics_CheckoutTooltip/template/group.html.js.


texts: How to add block into header before all elements (before logo, search, ...) via layout xml?

texts:
I can not find a way to add custom block before logo and all header elements.

 <reference name="top.container">
   <block type="company_name/module" name="page_header" before="-" />
 </reference>

will insert below logo and search and below top links. top.menu will also come after.

 <reference name="top.links">
   <block type="company_name/module" name="page_header" before="-" />
 </reference>

or

 <reference name="header">
   <block type="company_name/module" name="page_header"/>
 </reference>

doesn't work. Is there any way to accomplish that with layout xml?


texts: loop only showing first value when using variable

texts:
I am trying to show products that are added in a custom attribute in the backend but it is only showing the first item

<?php
$bundle_products = $_product->getbundle_products();
if ($_product->getAttributeText('bundle') == yes):
$product_ids = array($bundle_products);
$collection = Mage::getModel('catalog/product')
    ->getCollection()
    ->addAttributeToSelect('*')
    ->addAttributeToFilter('entity_id', array('in' => $product_ids));

foreach($collection as $eachproduct){
echo 'getProductUrl() . '">getImageUrl() . '" title="' . $eachproduct->getName() . '" height="50" width="50">';
$combined_price += $eachproduct->getFinalPrice()/100*10;
}
endif;
?>

If I hard code it in as: $product_ids = array(3,138,194);
It works fine. Am I missing something?

If I echo $bundle_products It outputs 3,138,194


texts: Magento 2.3.X : Display error message when user add more products to cart than the stock quantity in

texts:
Thank you for reading my question.

I am working on a Magento 2.3 version and facing an issue which is

  When I add the product to cart more than the available stock it doesn't show the error message. Like if the user wants to add 25 products to cart and the stock has only 23, as a result, this should show error message to the user telling there's just 23 pcs of this item and give two options add (the 23) or erase product from cart Can you help me to fix this issue?

Here goes the list of Installed modules:

Looking forward to hearing from your great experience.

Thanks in advance


texts: Magento2 : Additional images import programmatically

texts:
I'm trying to add additional images in products using custom script and below code i'm using. I have put product images in "additional_images" column of my csv and $image_directory is my path where product images put.

$filesystem = $objectManager->create('Magento\Framework\Filesystem');
$mediaDirectory = $filesystem->getDirectoryWrite(\Magento\Framework\App\Filesystem\DirectoryList::MEDIA);
$mediaPath = $mediaDirectory->getAbsolutePath();
$mainImage = $data['base_image'];

        $addimages = $data["additional_images"];

$addimagesData = explode(',',$addimages);
 foreach($addimagesData as $addimages_img){
 $image_directory = '/var/www/html/myproject/pub/media/import/'.$addimages_img;
 $product->addImageToMediaGallery($image_directory, null, false, false);//assigning image, thumb and small image to media gallery
}

After run my script i'm getting below error. I have also set all permission for folder and images. Any help should be appreciated.

[Magento\Framework\Exception\FileSystemException]
The file "/var/www/html/myproject/pub/media/tmp/catalog/product/p/o/powerhub-back.jpg" doe
sn't exist or not a file


texts: Magento 2.0 REST/SOAP API - how to retrieve Special Price

texts:
I need to be able to retrieve the Special Price of a product.

I can successfully retrieve products singly or as a list, but can only see a price property on the product object. I also cannot see anything like Special Price in the customAttributes or extensionAttributes.

In Magento 1.x APIs, Special Price was a fixed property of a product. Has something changed in Magento 2?

I am working with the SOAP API, using the catalogProductRepositoryV1GetList and catalogProductRepositoryV1Get methods of the catalogProductRepositoryV1 service, but if you can explain wrt to REST API, I can translate.


texts:
Is it possible to change the sort order of the totals in the PDF Print outs?

I would like to have the "Minimum Order Bedrag" under "Subtotaal".
I did manage to change it for the checkout page since there is a nice configuration in the backend. However this is not available for te PDF Print outs.


texts:
I want to make AJAX requests when customer change attribute of configurable product.

For example - he changes color.
AJAX request asking backend how many items (qty) are available for this SKU.
Backend checks qty and depends of number make response like “In stock”, “Only 1 left in stock”, “Out of stock”.

How to attach custom AJAX query to product page and how to implement checking qty of requested product (sku)?


texts: How to get data from custom shipping method in javascript Magento 2

texts:
I am making a magento 2 module, and I had to create a custom shipping method  but I am not able to get the data of fields in the checkout page :

This is a part of my system.xml file

        <section id="carriers" translate="label" type="text" sortOrder="320" showInDefault="1" showInWebsite="1" showInStore="1">

            <group id="my_shipping_methode" translate="label" type="text" sortOrder="0" showInDefault="1" showInWebsite="1" showInStore="1">

                <field id="myfield" translate="label" type="text" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">

and this is the constructor of my module :

<?php namespace A\B\Model\Carrier;
use Magento\Quote\Model\Quote\Address\RateRequest;
use Magento\Shipping\Model\Rate\Result;

class Shipping extends \Magento\Shipping\Model\Carrier\AbstractCarrier implements
    \Magento\Shipping\Model\Carrier\CarrierInterface
{
    /**
     * @var string
     */
    protected $_code = 'my_shipping_methode';

    /**
     * @var string
     */
    protected $myfield = 'test';

And this is part of my javascript file I call in the checkout to get the code of the shipping method :

this.selectedMethod = ko.computed(function() {
            var method = quote.shippingMethod();
            var selectedMethod = method != null ? method.method_code : null;

I tried to do the same for my field but it didn't work

var myfield = method != null ? method.method_myfield : null;

Please help I am lost


texts: rest/V1/order?serachCriteria API is not work in magento2.1.12

texts:
Suppose i will delete some products from Magento-2.After that my
http://HOSTNAME/rest/V1/orders?searchCriteria api is not work and giving error "Requested product doesn't exist".Anybody tell me.


texts: Magento Upgrade : Copiying frontend files

texts:
I'm a beginner in Magento, and I'm following the road-map below to upgrade from 1.8 to 1.9 version.

Arriving to 4th step. I didn't know which directories should i copy from /app/design/frontend

Could Any one Help me?


texts: Can I run cli commands in magento 2 through button or action or route?

texts: I want to run magento cli commands in magento 2.4.1 through button or action


texts: Magento 2 local Docker - running less:theme fails for file not found, but file is present

texts:
I finally have a local docker setup for my Magento 2 development set up. It works fine everywhere, except for when I run grunt less:MyTheme. When I do that I get this error

Running "less:MyTheme" (less) task
 FileError: 'source/_extend.less' wasn't found. Tried - pub/static/frontend/MyCompany/MyTheme/nl_NL/css/source/_extend.less,pub/static/frontend/MyCompany/MyTheme/nl_NL/css/source/_extend.less,source/_extend.less in pub/static/frontend/MyCompany/MyTheme/nl_NL/css/styles-m.less on line 91, column 1:
 90
 91 @import 'source/_extend.less';
 92
Warning: Error compiling pub/static/frontend/MyCompany/MyTheme/nl_NL/css/styles-m.less Use --force to continue.

Aborted due to warnings.

After this all CSS is broken. But the file in question, pub/static/frontend/MyCompany/MyTheme/nl_NL/css/source/_extend.less does exist with correct permissions and all. I can't figure out what happens.

As this is an exact copy of my dev server install, where this command works without problems, I figure this has something to do with the Docker setup or something, but I have no clue where to look.

Some details and things I already tried;

the .htaccess files are all present where most answers point to
static content been deployed without problems
the file said missing, does exist on the path it tries(?!)
use this docker environment
after I run magento setup:di:compile the css does work again
running nginx

What do these symptons point to?


texts: Programatically add simple to configurable products

texts:
I have configurable products that have simple products and they are configurable by two attributes - posters with size and frame.
I am adding new products that represent new frames and sizes which are created ok, but I want them to attach to a certain configurable product.

Example:
I have a configurable product - poster with this simple products

Wood frame - 30x30cm
Aluminum frame - 50x50cm
Aluminum frame - 70x50cm

I generate

Wood 50 x 50cm
Aluminum 100x100cm

How can I do that?


texts: What are the Differences between these runcompilation,cache management and index management?

texts:
I am using Magento, but manytimes mychanges could not make anything in results..

So,i got some answers from stackoverflow and some other sites as use cache management, index management and run compilation.

So among these options,what is the use of each one?

Please help me to understand..


texts: How to fix deleted manufacturer attribute

texts:
A client was adding manufacturer values to the respective attribute in the backend and accidentally deleted the attribute. Immediately they noticed the site was giving error messages, noticed us and we found the above mentioned action.

We don't have a recent back-up of the database and I want to know if there is a way to manually add the manufacturer attribute back to the database structure and import the values.

Any other suggestions on how to fix this issue are welcomed.

Thanks,


texts: Setting shipping programmatically when product is added to cart?

texts:
Magento 1.7

This is the code which gets called via the checkout_cart_product_add_after event when I add a product to the cart:

function addProductComplete(Varien_Event_Observer $observer) {

        $onepage = Mage::getSingleton('checkout/type_onepage');
        $onepage->saveShippingMethod("flatrate_flatrate");

        // Add address to cart
        $address = $onepage->getQuote()->getShippingAddress();

        if (null == $address->getCountryId())
        {
            $country = Mage::helper('core')->getDefaultCountry(); // use default country
            if ( '' == $country )
            {
                $country = 'DE';
            }
            $address->setCountryId($country);
        }

        if ( null == $address->getPostcode() )
        {
            $address->setPostcode('00000');
        }
        $address->setShippingMethod('flatrate_flatrate');
        $address->setCollectShippingrates(true);

        // save settings
        $onepage->getQuote()->collectTotals()->save();
        $onepage->getQuote()->save();

    }

When I add the first product, nothing happens, only after adding the second product, it works. I guess thats because the first time there is no quote object? How to solve that so it works with the first product as well?


texts: Magento Commerce Cloud 2.3 Maximum Number of Customer Groups?

texts:
we are on a Magento Commerce Cloud Pro plan.
For customer pricing in our B2B store, I was wondering if there is any suggestion on how many customer groups I can create without facing issues (performance for example).
I will at least have a number of 8000 customer groups for the start.
Thanks for your feedback!


texts: How to solve 502 Bad Gateway with SOAP calls on nginx

texts:
A Magento store, running on AWS using nginx for a webserver, has been working in production for a number of weeks. We have an integration with a shipping provider who uses SOAP to do your standard fulfillment integration "stuff". This has been working also for two weeks.

Yesterday, our client moved the site from AWS to Rackspace. This was a full move of the site, including the database. Everything seems to be working via web browser (able to browse, checkout, log in to backend, etc). However, now when SOAP calls are made to the server a 502 Bad Gateway error happens. The exact symptoms are as follows:

Regardless of v1 or v2
When making a login request $client->login('user','blah'); the service takes a very long time to respond
Eventually (say, 15-30 seconds?) there is a 502 Bad Gateway request.

I've looked at the logs, and see a number of things:

First, from nginx access logs:

<ip omitted> - - [20/May/2014:16:38:46 +0000] "POST /index.php/api/soap/index/ HTTP/1.1" 502 166 "-" "PHP-SOAP/5.4.10" "-"

Then, from the nginx error logs:

2014/05/20 17:04:44 [error] 3297#0: *17 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: <ip omitted>, server: store.mydomain.com, request: "POST /index.php/api/index/index/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "store.mydomain.com"

And finally, from the fastcgi log:

[20-May-2014 17:02:27] WARNING: [pool mydomain.com] child 23853 exited on signal 11 (SIGSEGV - core dumped) after 13474.896102 seconds from start
[20-May-2014 17:02:27] NOTICE: [pool mydomain.com] child 3321 started
[20-May-2014 17:03:58] WARNING: [pool mydomain.com] child 23854 exited on signal 11 (SIGSEGV - core dumped) after 13565.467026 seconds from start
[20-May-2014 17:03:58] NOTICE: [pool mydomain.com] child 3327 started
[20-May-2014 17:04:44] WARNING: [pool mydomain.com] child 23856 exited on signal 11 (SIGSEGV - core dumped) after 13611.667319 seconds from start

I've done a fair amount of googling, but haven't found anything concrete. I'm not enough of a nginx/php/fastcgi/whatever guy to be able to look at this logs and say "oh, that's it!", but I'm hoping somebody else might be able to.

Note that I can login to the admin fine, and again in general the site works as expected.

Thanks for any help!


texts: Magento 2 - the grid columns are empty after joining table

texts:
I have two tables: A & B .  I want to display two columns from table B in my grid. The column names are: Price (See img) and Status(which is missing from the img, but it's there :) ).

In my resource model I added this function:

protected function _initSelect()
{
    parent::_initSelect();

    $this->getSelect()->joinLeft(
        ['secondTable' => $this->getTable('B')],
        'main_table.entity_id = secondTable.package_id',
        ['price','status']
    );
}

In the result of the query I am getting values for my price and status column. But the rows from the the Price column are empty.

This is the xml part from the ui component:

<column name="max_weight" sortOrder="70">
    <settings>
        <filter>text</filter>
        Max Weight
    </settings>
</column>
<column name="price" sortOrder="80">
    <settings>
        <filter>text</filter>
        Price
    </settings>
</column>

Can someone point me to a direction how to fix this ? or What am I missing?
Thnx


texts:
I saw this link: https://github.com/MeetanshiInc/Magento-Authorize-Net-Direct-Post-Patch-for-M1-M2

Just wondering, does the patch for CE 2.1.0 - 2.1.9 work for EE 2.1.5 as well? Just curious.


texts: Magento 2: on declined payment set order status pending and cancel invoice

texts:
On declined payment stop invoice generation and set order state in pending

public function capture(\Magento\Payment\Model\InfoInterface $payment, $amount)
        {
          $order = $payment->getOrder();
           try {
              if($charge):
                $payment->setTransactionId($charge["id"]);
                if ($capture) {
                    $payment->setIsTransactionClosed(1);
                } else {
                    $payment->setIsTransactionClosed(0);
                } else:

                endif;
            } catch ( $e) {

                $error_code = $e->getErrorCode();
                if ($error_code === "card_declined") {
                    $errorMsg = 'Charge was declined. Please, contact you bank for more information or use a different card.';
                } else {
                    $errorMsg = $e->getMessage();
                }
$this->_logger->error(__($errorMsg));
$orderId=$order->getId();
            $payment->setSkipTransactionCreation(true);
                 //throw new \Magento\Framework\Validator\Exception(__($errorMsg));

            }


texts:
I just installed Magento 2 and I want to set the developer mode. But when I ran php bin/magento deploy:mode:set developer, the command gives an error:

  catalogWidget/Model/Rule can not be deleted.

It's not changing the mode from default to developer.


texts:
I am trying to get rid of JS from my store to make it work at best without JS at all, because it takes a lot of time to process all JS logic and in my country we still using 2G networks and as a result the website is really slow.

I have found a lot of statements like

data-bind="text: new String('Welcome, %1!').replace('%1', customer().fullname)"

First of all I don't understand the purpose of such binding, this data won't change.

Is there any way to disable this completely, and use server side data load.

Thanks


texts: Magento2 wordpress blog editor not working

texts:
I am using Magefan Blog, the post editor worked only when JS minify and merge is disabled. When I enable it again, it stops working.

See attached image:


texts: How to check module compatibility whithin different versions of magento?

texts:
I am developing a module for Magento and wonder if it would be compatible with either Community or Enterprise platform versions.
Is there any easier way to check that instead of doing it on each of its versions?

Thanks!!!


texts: How to Export Enabled Simple products sku with mysql query in magento 1.9.2?

texts:
I want to export enabled simple products SKU from magento admin export function is not working fine.  I have tried to export many times, and it's showing too many extra records.  Now i want to try exporting from a MySQL query.  I will need the results in the form of a CSV file.

Get Parent Config and Child Associated SKU's List.


texts: Custom route api2.xml of existing module

texts:
Please help me to override 'app/code/core/Mage/Customer/etc/api2.xml' as need to add custom route in that file.

Thanks


texts:
I have created a custom field when submitting an order called: Delivery Date.

I want to display this in my transactional e-mail that is being sent after placing the order.

When i code it like this:

"var order.getCreatedAtFormated('long')":"Order Created At (datetime)",
"var order.getDeliveryDate()":"Delivery Date",

It will display the delivery date like 2015/03/31

the Order Created At, will display it like: 31/03/2015.

I have tried adding 'long' but that doesn't work. How can i format this custom date like the created at date?


texts:
Maybe I´m just standing somewhere next to me today but I can´t find a way to install an extension in my Magento Enterprise Edition right now. In my Backend -->System--> I can´t find Magento Connect anymore.
Could it be that another Admin set it hidden for me or what could be the reason?

I got the .tgz file but can´t get it to install on my Magento version. I´m using Magento Enterprise 1.7


texts: Is there an option to tell Magento to keep old compiled JS/CSS assets?

texts: We're noticing an issue where, due to our caching scheme (using external services like CloudFlare), old compiled assets are deleted from our server - ie a merged JS file with a generated hash as the filename. Sometimes this causes clients to no longer be able to see the assets and the site functionality diminishes. We're using 1.13.*. Is there a way to tell Magento to keep old asset files when it generates new ones?


texts:
Module 'Magento_Theme':
Installing data..

The installation gets stuck at the above step from the log. There is no additional errors, does anyone know what could be causing this? I should point out that I use installation with sample data


texts: How to use fotorama in Magento 2 as custom slider?

texts:
I've tried to create a new fotorama thumbs slider for crosssells.
Therefor I used the

$block->getGalleryImagesJson()

for the initialization.
But then I tried to extend my product detail page with that javascript snippet from the gallery.phtml and that's it.
I now stuck from here and have no clue if that is possible to use fotorama only for thumbnail sliders.


texts: Coupon code not working on special price

texts: Shopping cart price rule coupon code not working with special price i.e. those products who have special price not applying coupon code. It is giving a error 'Coupon code "xxxxx" is not valid'.


texts: Replying directly to customer via transactional email

texts:
I currently have a Magento 1.9 website which sends the standard transactional email when an order is completed and paid for, detailing a summary of the transaction and items.

How can I get a copy sent to my customer service email address, but either with the customer's email address in the from field, or set as a reply-to? The aim is that customer service agents can then simply reply to the order summary and the email goes directly to the customer.

My current set up is detailed below:

Example Case

A customer with the email address customer@me.com places an order and successfully completes checkout. sales@mysite.com send the order confirmation to the customer, and any additional recipients. My goal here is to have a Reply To header on all emails send out except the one that the customer receives. Therefore when a member of staff clicks 'Reply' to the order confirmation, it goes directly to customer@me.com rather than sales@mysite.com.


texts: Broken images on the front-end when uploaded through WYSIWYG or Widgets

texts:
Is anyone else experiencing broken imagery on the front-end when uploading the image through WYSIWYG or widgets via the media gallery.

We find that the image shows for a short period on the front-end but it eventually disappears and renders a broken image tag on the front-end.

It looks like it's a core Magento error which has been documented here, in this example its related to the product description attribute but it does occur elsewhere e.g in widgets.

Is there a solution?

Thanks!


texts:
Does someone know if some file paths are stored in the database? I created 2 environments and exported one database to another but on the second environment I get the following error:
 exception(s):

Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'Magento_Backend::page/js/require_js.phtml' in module: 'Magento_Backend' block's name: 'require.js'

Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'Magento_Backend::page/js/require_js.phtml' in module: 'Magento_Backend' block's name: 'require.js'
#0 /var/www/vendor/magento/framework/View/Element/Template.php(307): Magento\Framework\View\Element\Template->fetchView(false)
#1 /var/www/vendor/magento/framework/View/Element/AbstractBlock.php(668): Magento\Framework\View\Element\Template->_toHtml()
#2 /var/www/vendor/magento/framework/View/Result/Page.php(249): Magento\Framework\View\Element\AbstractBlock->toHtml()
#3 /var/www/vendor/magento/framework/View/Result/Layout.php(171): Magento\Framework\View\Result\Page->render(Object(Magento\Framework\App\Response\Http\Interceptor))
#4 /var/www/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Result\Layout->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#5 /var/www/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', Array)
#6 /var/www/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Response\Http\Interceptor))
#7 /var/www/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(130): Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', Array, Array)
#8 /var/www/vendor/magento/framework/App/Http.php(139): Magento\Framework\View\Result\Page\Interceptor->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#9 /var/www/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#10 /var/www/pub/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#11 {main}

So because this is a core module I thing that maby there is a table that stores the paths. I tried setup:upgrade, static-content:deploy, reindexing, ... but nothing seems to work. I looked in the Database but can't find table with paths.


texts: Product custom options are not displaying at cart page

texts:
I am facing a strange issue with my magento installation is with when i add values for my custom option and click on add to cart the filled custom  values are not displaying with particular product on cart page, although when i edit the cart product and refill the custom option values the options displays properly in the cart i am not getting this because i haven't touch the code for this and never installed a extension who could rewrite the functionality below is my site url for you to check out what is going on

http://paperhug.instantwebsitecloud.com/

Also i have checked this on another magento installation where this working fine i am working on C.E. 1.7.2


texts:
In accordance with GDPR, we need to allow our customers (Guests or Not) the ability to access the information we hold about them on file. Obviously, Registered Customers can access their information via the Account after logging in.

However, Guest customers (AKA Not logged in) would have to obtain this information through the Store (e.g. admin, customer service, etc...).

On the backend Customers > All Customers lists registered customers. However, we hold just as much information for Guests within Magento but not accessible from this location.

So, is there an out-the-box solution to search for Guest Customers information within Magento?


texts: Add Layered Navigation in custom module - Magento 2.1

texts:
I want to add layered navigation block in custom module page and filter custom product collection.

How can I achieve this functionality?


texts:
I am getting below error on order view page in magento 2, what is the reason for this error.

Information Changes have been made to this section that have not been saved. This tab contains invalid data. Please resolve this before saving.


texts: adminhtml - js works in edit.phtml but fails when moved to local.xml

texts:
I've added a small bit of prototype js to app/design/adminhtml/default/default/template/catalog/product/edit.phtml

$$("#status").invoke(
    'on',
     'change',
     function(){
        Form.Element.setValue("status_updated",new Date);
    }
);

When I attempt to load it as an external file the script doesn't work anymore, no 404, no script error.

I've added the following to app/design/adminhtml/default/default/layout/local.xml

<layout version="0.1.0">
    <adminhtml_catalog_product_edit>
        <reference name="head">
            <action method="addJs"><script>js/timestamp_update.js</script></action>
        </reference>
    </adminhtml_catalog_product_edit>
</layout>

If anyone has an idea it would be appreciated.


texts:
How can I get the object of customer if I have the payment id?

$payment_id = 3;

Table Location is sales_order_payment. $payment_id is entity_id


texts:
I added a new store for chinese language. I am using Magento 1.9
When I change the store; My URL is :

http://www.********.com/app/etc/local.xml?___store=chinese&___from_store=default

I am new to Magento and no idea how to solve this problem.

Need help urgently.


texts:
I've been searching for ways to use soap api in c# (with visual studio 2015). First I thought it was simple, just add web reference like this site (http://tdmts.net/2017/02/07/magento-2-soap-api-with-c-sharp-adding-service-references/) and I can use it. However, I've been trying few days and it is still not working.

This is the error message I got from the response:

Internal Error. Details are available in Magento log file. Report ID: webapi-XXXXXXXXXXXX

so I checked log file,

Message: The specified /var/www/magento2/var/generation/Magento/Catalog/Api/Data/EavAttributeExtensionInterface.php.65214" file could not be written
 Warning!file_put_contents(/var/www/magento2/var/generation/Magento/Catalog/Api/Data/EavAttributeExtensionInterface.php.65214): failed to open stream: Permission denied in /var/www/magento2/lib/internal/Magento/Framework/Webapi/ErrorProcessor.php:195

I also checked the permission of this file, it is rwxrwxrwx.

I turned on the PHP soap extension in php.ini, but it seems that whether I turn it on or off, I get this same error message. PHP soap extension is existed and I did a simple test like this

    if (extension_loaded('soap')) {
        echo 'soap is here';
    }

The echo runs successfully.

Does anyone have this problem? Thank you in advance.


texts: Custom column is not updating in customer_entity table

texts:
I added custom column 'email_status' in customer_entity table via dc_schema.xml

    <?xml version="1.0"?>
    <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
        <table name="customer_entity">
            <column xsi:type="tinyint" name="email_status" default="0" unsigned="true" nullable="false"
                    comment="1 = pending | 2 = sent"/>
        </table>
    </schema>

  bin/magento setup:db-declaration:generate-whitelist

  bin/magento setup:upgrade command.

The field added successfully. But when I am trying to modify it via customer model, It is not modifying. Here is the code.

        $customer = $this->customer->load(2);
        $customer->setData('email_status', 1);
        try {
            $customer->save();
        } catch (\Exception $e) {
            echo $e->getMessage();
        }

Please help me.


texts: How to translate validation error message in checkout page Magento 2.3

texts:
Please any Ideas on how to translate the validation message on phone field on view/frontend/layout/checkout_index_index.xml:
<item name="telephone" xsi:type="array">
   <item name="validation" xsi:type="array">
      <item name="validate-phoneStrict" xsi:type="boolean">true</item>
   </item>
   <item name="config" xsi:type="array">
      <item name="tooltip" xsi:type="boolean">false</item>
   </item>
</item>

The validate-phoneStrict validator take the message in lib/web/prototype/validation.js line 528-530
['validate-phoneStrict', 'Please enter a valid phone number (Ex: 123-456-7890).', function(v) {....

Validation work well but, translation doesn't work....Please help me to have right process to translate validation message of this validation rule.
Thank you.


texts: How to send transactional email based on the shipping method selected in magento2

texts:
I have installed collect in store module shipping method. When the order is placed a order confirmation is sent to customers which is magento default transnational email.

Can we send separate email when the shipping method selected as collect in store?


texts: Retrieve orderid to check with the incoming order id whether it's present or not?

texts:
I am totally new to magento and I have orderid. Now I have to check whether it exists or not.I am not aware of what class and method should be used for this.

Thanks In Advance...


texts: Get Payment Update button not connecting to Authorize.net

texts:
In a Magento CE v 1.9.1.0 when an order is marked as Suspected Fraud we then go in and look at the order to verify it. We then click the Get Payment update button
(after manually approving the order in Authorize.net.

However clicking he Get Payment update button results in a message saying "There is no update for the payment." Also the order becomes marked as "complete" even though we would want the order status to change to say "Processing"

We are not sure what changes need to make to fix this?
I have opened up the app/code/core/Mage/Paygate/Model/Authorizenet.php file and changed line 38 to read as
 const CGI_URL_TD = 'https://api.authorize.net/xml/v1/request.api';

However that did not fix the issue with no payment data being update?


texts:
how can I set the default Country of Manufacture field value to United States whenever I create a new product?

I'm using Magento ver. 1.9.2.4.


texts: Magento 2 - setup primary key field without auto increment

texts:
I want to set a field in my table database with integer type but with no auto-increment id, is this the right way to do it?

$table_lime_provinces->addColumn(
    'provinces_id',
    \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
    null,
    array('identity' => true,'nullable' => false,'primary' => true,'unsigned' => true),
    'Entity ID'
);


texts: payment method integration into sample payment gateway in magento2

texts:
I've integrated a sample payment gateway module into Magento 2.
Now I need to add some payment method in JS into a sample payment module.
so that when the user clicks on place an order a pop appears.

I have a module like an app/code/Vendor/Module..


texts: My NGINX configuration is now throwing 404 Not Found nginx/1.10.0 (Ubuntu) EE. 1.14

texts:
I'm going to try and make this as detailed as possible because I feel like I've tried everything and at this point just need another set of eyes on everything.

I'm running a cloud server and I've installed my LAMP stack via terminal. Additionally, this is a magento build. I've migrated all files to the proper folder. var/www/html and I've installed mysql and imported my DB.

I'm currently able to run mywebsite.com/info.php

tki@me:/$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
tki@me:/$ ls -al /etc/nginx/sites-enabled/
total 8
drwxr-xr-x 2 root root 4096 Feb  6 18:44 .
drwxr-xr-x 6 root root 4096 Feb  6 18:03 ..
lrwxrwxrwx 1 root root   34 Feb  4 15:48 default -> /etc/nginx/sites-available/default
tki@me:/$ sudo lsof -i -P | grep -i "listen"
sendmail-  1084               root    3u  IPv4  14208      0t0  TCP localhost:25 (LISTEN)
sendmail-  1084               root    5u  IPv4  14209      0t0  TCP localhost:587 (LISTEN)
sshd       1122               root    3u  IPv4  14322      0t0  TCP *:22 (LISTEN)
sshd       1122               root    4u  IPv6  14331      0t0  TCP *:22 (LISTEN)
mysqld    14732              mysql   19u  IPv4  76527      0t0  TCP localhost:3306 (LISTEN)

Here is my sites-available/default

server {
    listen 80 default_server;
    listen [::]:80 default_server;

    root /var/www/html;
    index index.php index.html index.htm index.nginx-debian.html;

    # Add index.php to the list if you are using PHP
    #index index.html index.htm index.nginx-debian.html;

    #server_name server_domain_or_IP;
     server_name mysite.com;
    location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to displaying a 404.
        try_files $uri $uri/ =404;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        }

    location ~ /\.ht {
        deny all;
    }
}

Here is my nginx.conf file:

user www-data;
worker_processes auto;
pid /run/nginx.pid;

events {
    worker_connections 768;
    # multi_accept on;
}

http {

    ##
    # Basic Settings
    ##

    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 65;
    types_hash_max_size 2048;
    # server_tokens off;
    # fastcgi_param  MAGE_RUN_CODE default;
    # server_names_hash_bucket_size 64;
    # server_name_in_redirect off;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    ##
    # SSL Settings
    ##

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
    ssl_prefer_server_ciphers on;

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    gzip on;
    gzip_disable "msie6";

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}

Is there anything blatantly obvious that's wrong with my configurations?


texts: From localhost to portforwarding with Magento 2

texts:
I have a question about my local environment. I can acces the shop trough dev.domain.com (but its 127.0.0.1) but then with edit in .hosts file.

Is it possible to port forward my 80 port and then acces my shop trough my home ip adres?

Do I need to change hostname in my database? Can someone put me in the right direction?


texts:
I've follow this solution to make multiselect works without using "Ctrl" in keyboard.

http://jsfiddle.net/xQqbR/1022/
And here's the result:

Its work great, but i can't save in database.
 As far as i debug, the values of this multiselect are correct, but when i click "Save Vendor", its post the old values of multiselect.

I thing it's because of this simple solution doesn't work with ui component.

How to solve this? Thanks


texts: Error : Couldn't connected to Magento 1 database: No connection could be made because the target machine actively refused it.


texts:
Is it possible to change the image source path in the media folder:

From:

www.example.com/media/catalog/category/apple-iphonex.jpg

To:

www.example.com/apple/media/apple-iphonex.jpg


texts: How to hide price option in layered navigation?

texts: How to hide price option in layered navigation, while it remains functioning


texts: Magento 2.3.0 - Transactional Email > Logo Image upload not working

texts:
Running magento 2.3.0 on php 7.1

I'm trying to upload an image for

Content > Design: Configuration > Transactional emails > Logo Image

And get the following error.

  A technical problem with the server created an error. Try again to
  continue what you were doing. If the problem persists, try again
  later.

I've used this fix for the header and favicon image upload and it works but not for the above mentioned issue.


texts: Uncaught TypeError: Cannot read property 'map' of undefined

texts:
Running Magento ver. 2.3.5-p1, vanilla install running Luma theme.  I'm populating the site with all of my SKUs, and occasionally, after I update a product with a new image (Save & Close), it will bring me back to the product listing page and I get the spinning circle. Inspector shows this:

If I reload the page, everything seems fine, but I think this might be the cause of 504 errors I am getting every few days. The site will not load, and my web host has to kill off all sleeping DB queries that have stacked up. Any thoughts as to how to fix this?


texts: Redirection loop on product page magento 1.9

texts:
I'm experiencing a strange issue on products page...

www.domain.com/product.html?a1=v1&a2=v2

is taking me to

www.domain.com/product.html?a1=v1&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a2=v2

Any ideas will be helpfull.

Have tried this:
RewriteCond %{QUERY_STRING} ^(.)&(.)$
RewriteRule ^(.*)$ /$1?%1&%2 [L,R=301]

But this is only redirecting to
www.domain.com/index.php?a1=v1&a2=v2

And I ofcouse need to stay on the product page.


texts: Prices in Magento are rounding up instead of down

texts:
We have a Magento store where the prices entered by admin are excluding VAT. VAT is added at a rate of 20% and should display on the product page, basket and checkout but for some crazy reason some VAT inclusive prices are always rounding up when they should be rounding to the nearest penny/cent.

Eg:

  Price in Magento
  41.31

  Correct calculation of price
  41.31 * 1.2 = 49.572

  What Magento should display
  49.57

  What Magento actually displays
  49.58

How can I fix Magento so it displays 49.57?


texts: How do I determine whether a product is new

texts:
I have a Featured Products block on my current theme and I'd like to make changes to it.

I would like tochange it into a Featured and New products. Yes, I did read How to check if a product is new

This is slightly different: I need to change this query to include products with a "New" status, based on the new from / to date.

$select = $read->select()
->from(array('cp'=>$categoryProductTable))
->join(array('pei'=>$productEntityIntTable), 'pei.entity_id=cp.product_id', array())
->joinNatural(array('ea'=>$eavAttributeTable))
->where('pei.value=1')
->where('ea.attribute_code="featured"');

The other thing I would like to do is change the display of the product name to add the "New" label.

so go from

"super duper product"
to
"New! Super Duper Product"

I'm hoping there is an existing extension that does at least the product change. Failing that, I'm hoping there is a central place where I can modify the product display name for product grid to add "New!" if hte product is, indeed, new.


texts: The table 'catalog_product_index_price_tmp' is full error

texts:
I faced one strange issue with product saving on Magento EE 1.14.2.4. This issue appears only when I save exactly one product, I'm able to save other products without any problems. Here is screenshot of issue:

Do you have any ideas why it appears?


texts: How to use Rest And Soap API in Magento After sales order to send information to courier partner

texts:
I need to send. some information after sales ..to the courier company...
I need to build API in magento..when customer purchase anything...and place successful order. Then I want to send some information to our partner courier company. Like product name, customer address, customer name And some information...
Basically, I want to use rest and soap..for this. But I don't know which is good for that.


texts: jquery/jquery-storageapi.js missing in Luma (Magento 2.0.3)

texts:
Chrome dev tools shows me this error:

  require.js:1895 GET
  http://www.yy.ch/pub/static/frontend/Magento/luma/de_CH/jquery/jquery-storageapi.js

This file is not there: jquery-storageapi.js

I checked it on another Magento 2 installation, there it works and looks for:

jquery.storageapi.min.js

It also can't find http://www.yy.ch/pub/static/_requirejs/frontend/yy/yy/de_CH/requirejs-config.js

The File 14 kb is there, I can see it. But if I open that url in a browser it shows me: The "/home/zizzowa1/public_html/" file doesn't exist or not a file

It happen also in Magento 2.0.4, directly after installation without any change on it. And also in blank theme.


texts: Change product attribute select from dropdowns to buttons like in Madison Island demo store?

texts:
New to Magento, apologies if this is a ridiculous question but can't find this anywhere. In the Madison Island demo store single product page the product attributes (size, color) are displayed as buttons.

In my RWD install the selectable attributes are displayed as dropdowns.

What kind of voodoo do I need to make this happen? I have looked at the Switcher plugin (github.com/tzyganu/Switcher) but I don't think that is quite right. Any suggestions? Thanks!


texts: Issue when SpecialPriceFromDate is equal with SpecialPriceToDate

texts:
This is my scenario: I will set up a special price for current day only and I would like to mention in Frontend a text message when the offer is available.

By default when you select a date in Magento backend (Product editing page), you are not allow to set up the time too. If you look into the database both SpecialPriceFromDate and SpecialPriceToDate has the same time set up at 00:00. If they have the same value there is an issue, you cannot compare current visitor time with SpecialPriceToDate.

SpecialPriceFromDate = 2016-08-27 00:00:00
SpecialPriceToDate = 2016-08-27 00:00:00
Current Visitor Time = 2016-08-27 16:00:36

I can do some statements inside the template file, by creating a variable for end of the day and adding 86399 to SpecialPriceFromDate, then evaluating it with current visitor time. It works but it is not looking good.

I would like to ask you how if I can change the calendar in Product editing page in order to set up the time too. In this way the time is very precisely.

By the way, product special Price appears correctly in frontend if both dates are equal.


texts: Products option. Manufacturer's site url

texts: I need to additional options of the products "site_url"(attribute) is displayed on fronted as a reference to the manufacturer's website. Can you recommend any good solution? Thanks!


texts: Is it possible to export a report showing stock levels of all simple products at a date in the past? Or export a report showing current stock?


texts: In Magento 2, How to use multiple dependencies for admin form

texts:
In Magento 2.2.5, I want to use the select and text fields. That fields should show based on the another select (dropdown) values.

ie., if value 1 means, should show select field, if the value 2 means, should show text field.

Magento 1 working ref.

Here is my code:

$selectField = $fieldset->addField('publish-type','select',
            [
                'name' => 'merchant-type',
                'label' => __('Publish To'),
                'title' => __('Publish To'),
                'required' => false,
                'options' => $selectType
            ]);
    $hideField =  $fieldset->addField('merchant-type', 'select', ['name' => 'merchants-mail-id', 'label' => __('Enter Merchants Mail ids'),
        'options' => $merchantgroupArray]
        );
    $merchantsMail = $fieldset->addField('merchants-mail-id', 'textarea', ['name' => 'merchants-mail-id', "readonly" => "true", 'label' => __('Enter Merchants Mail ids')]);

$dependence = $this->getLayout()->createBlock(
        'Magento\Backend\Block\Widget\Form\Element\Dependence')
        ->addFieldMap($selectField->getHtmlId(), $selectField->getName())
        ->addFieldMap($hideField->getHtmlId(), $hideField->getName())
        ->addFieldDependence($hideField->getName(),$selectField->getName(),1);

    $mailDependence = $this->getLayout()->createBlock(
        'Magento\Backend\Block\Widget\Form\Element\Dependence')
        ->addFieldMap($selectField->getHtmlId(), $selectField->getName())
        ->addFieldMap($merchantsMail->getHtmlId(), $merchantsMail->getName())
        ->addFieldDependence($merchantsMail->getName(),$selectField->getName(),2);
    $this->setChild('form_after', $dependence);
    $this->setChild('form_after', $mailDependence);


texts: Magento 2. How do i put out of stock products to the end in catalog search result collection?

texts:
I tried to do it via layer collection :

  $collection->getSelect()->order('is_salable DESC');

It works for catalog, but does not sort the result in search .


texts: Magento 2 How to get custom field name 'location_id' aded to "customer_address_entity" at frontend, on order place after observer?

texts:
I have create one module which add 'location_id' in 'customer_address_entity' table. I also create one observer which called when order placed. Here i got the address id from order, Now i want to fetch the value which is set to 'location_id' on my observer from address id.

how can i do that?

Thanks


texts:
Processing stopped during data migration.
I don't know how to fix it.

Could you tell me?

Command executed:

php bin/magento migrate:data vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.1/config.xml

Message when processing has stopped:

[Exception] Notice: Undefined offset: 151 in /var/www/html/magento/vendor/magento/data-migration-tool/src/Migration/Step/Eav/Data.php on line 813

All messages being processed

[2019-07-04 09:29:16][INFO][mode: data][stage: integrity check][step: Data Integrity Step]: started
[2019-07-04 09:29:16][INFO][mode: data][stage: integrity check][step: EAV Step]: started
[2019-07-04 09:29:16][INFO][mode: data][stage: integrity check][step: Customer Attributes Step]: started
[2019-07-04 09:29:16][INFO][mode: data][stage: integrity check][step: Map Step]: started
[2019-07-04 09:29:16][INFO][mode: data][stage: integrity check][step: Url Rewrite Step]: started
[2019-07-04 09:29:16][INFO][mode: data][stage: integrity check][step: Log Step]: started
[2019-07-04 09:29:16][INFO][mode: data][stage: integrity check][step: Ratings Step]: started
[2019-07-04 09:29:16][INFO][mode: data][stage: integrity check][step: ConfigurablePrices step]: started
[2019-07-04 09:29:16][INFO][mode: data][stage: integrity check][step: OrderGrids Step]: started
[2019-07-04 09:29:16][INFO][mode: data][stage: integrity check][step: Tier Price Step]: started
[2019-07-04 09:29:16][INFO][mode: data][stage: integrity check][step: SalesIncrement Step]: started
[2019-07-04 09:29:16][INFO][mode: data][stage: setup triggers][step: Stage]: started
[2019-07-04 09:29:16][INFO][mode: data][stage: data migration][step: EAV Step]: started
71% [====================>-------] Remaining Time: < 1 sec

[Exception] Notice: Undefined offset: 151 in /var/www/html/tertiary/vendor/magento/data-migration-tool/src/Migration/Step/Eav/Data.php on line 813


texts: 1 particular category crashes our magento website

texts:
There is a category on our magento website which crashes the site.

Website: http://www.radiatorline.co.uk/

The category: http://www.radiatorline.co.uk/accessories

I cannot understand why. I have tried renaming the category, no joy.
I have changed it from displaying a CMS block to just displaying products, no joy.

I have tried multiple browsers, it's not a browser issue.

Does anybody know what is going on?


texts:
I'm extremely new to Magento, I'm using v2, and find the learning curve to be a straight line up. I've created a child theme for Luma and created a page layout called test.xml which I then associated with a page in the CMS.

I'm looking to use the CMS blocks to build layouts, I created a test_cta block in the admin area and then included it in my layout xml file with this code:

    <block class="Magento\Cms\Block\Block" name="test_cta">
        <arguments>
            <argument name="block_id" xsi:type="string">test_cta</argument>
        </arguments>
    </block>

This worked but how can I make this block reference actual html code? I believe I'm supposed to create a .phtml module of some kind in the /code folder then reference it in my argument shown above?


texts: Unable to get product category name, url from product detail view page

texts:
Its a uncommon issue that i face while getting the product category in product detail page.

My code is working fine in staging and not working in live.

I used below code to get the current category.

if (Mage::registry('current_category'))
{
  // Category Name
  $current_category =  Mage::registry('current_category')->getName();
  // Category ID
  $category_id =  Mage::registry('current_category')->getId();
  // Catergory Url
  $url = Mage::getModel("catalog/category")->load($category_id)->getUrl();
}

This code is working fine in staging not in live.

I tried this approach also(Method 2)

$categoryIds = $_product->getCategoryIds();

    foreach($categoryIds as $categoryId) {
          $category = Mage::getModel('catalog/category')->load($categoryId);
          $categorynm =  $category->getName();
          $url = $category->getUrl();
    }

Using this method also i am unable to get the category url in live.
Please help me to find this issue.its totally uncommon scenario works in staging and not  working in live.

I tried several method from stack exchange questions but i am unable to fix this issue.


texts: Magento 2.3: Error Creating Order Programmatically

texts:
I'm trying to create an order programmatically using the following code in a cron script:

$order = [
          'currency_id' => 'USD',
          'email' => 'test@test.com',
          'shipping_address' => [
            'firstname' => 'John',
            'lastname' => 'Doe',
            'street' => 'Test Main St.',
            'city' => 'Tulsa',
            'country_id' => 'US',
            'region' => 'OK',
            'postcode' => '74146',
            'telephone' => '+1 555-444-3333',
            'save_in_address_book' => 1],
            'items' => [
              ['product_id' => '1', 'qty' => 1]
            ]
          ];

          $store = $this->storeManager->getStore();
          $websiteId = $this->storeManager->getStore()->getWebsiteId();
          $customer = $this->customerFactory->create();
          $customer->setWebsiteId($websiteId);
          $customer->loadByEmail($order['email']); // load customet by email address
          if (!$customer->getEntityId()) {
            //If not avilable then create this customer
            $customer->setWebsiteId($websiteId)->setStore($store)->setFirstname($order['shipping_address']['firstname'])->setLastname($order['shipping_address']['lastname'])->setEmail($order['email'])->setPassword($order['email']);
            $customer->save();
          }
          $quote = $this->quote->create(); // Create Quote Object
          $quote->setStore($store); // Set Store
          $customer = $this->customerRepository->getById($customer->getEntityId());
          $quote->setCurrency();
          $quote->assignCustomer($customer); // Assign quote to Customer

          //add items in quote
          foreach ($order['items'] as $item) {
            $product = $this->product->load($item['product_id']);
            $product->setPrice(99.99);
            $quote->addProduct($product, intval($item['qty']));
          }

          $quote->getBillingAddress()->addData($order['shipping_address']);
          $quote->getShippingAddress()->addData($order['shipping_address']);

          // Collect Rates and Set Shipping & Payment Method
          $shippingAddress = $quote->getShippingAddress();
          $shippingAddress->setCollectShippingRates(true)->collectShippingRates()->setShippingMethod('flatrate_flatrate');
          $quote->setPaymentMethod('cashondelivery');
          $quote->save();

          // Set Sales Order Payment
          $quote->getPayment()->importData(['method' => 'cashondelivery']);

          // Collect Totals & Save Quote
          $quote->setTotalsCollectedFlag(false)->collectTotals()->save();

          // Create Order From Quote
          $orderdata = $this->quoteManagement->submit($quote);

          $orderdata->setEmailSent(0);
          $increment_id = $order->getRealOrderId();
          if ($orderdata->getEntityId()) {
            $result['order_id'] = $orderdata->getRealOrderId();
          } else {
            $result = ['error' => 1, 'msg' => 'Your custom message'];
          }
          return $result;

But receiving the following error:

  [Magento\Framework\Exception\LocalizedException] The shipping method
  is missing. Select the shipping method and try again.

The flatrate shipping method that is being called is enabled. Any ideas?


texts: How can I override /customer/account, the Newsletter part?

texts:
How can I override /vendor/magento/module-customer/view/frontend/templates/account/dashboard/info.phtml?

Specifically the Newsletter part, I'd like to place my own MailChimp list there

I've tried to copy the template to app/design/frontend/Infortis/ultimo/Infortis_Ultimo/Magento_Customer/web/template/account/dashboard/info.phtml
as well as app/design/frontend/Infortis/ultimo/Infortis_Ultimo/templates/account/dashboard/info.phtml but it's not taking effect


texts: How to edit display of short description in cart

texts:
The Magento cart shows the short description twice.

I am using Firegentos German setup, which seems to be responsible for the second short description.
I like to use the shorten description with the .... at the end.

Where can I edit this?


texts: How to deduct shipping costs in runtime onepage checkout process?

texts:
I want to deduct shipping costs in runtime onpage checkout process? I have check process, but I am not getting success till. If anyone know about this, please explain me in brief.

Thank you in advanced


texts: Authorize.net : An error occurred on the server

texts:
Magento authorize.net configuration has test mode and debug enabled. Gateway url: https://secure.authorize.net/gateway/transact.dll

When we try to place an order with test credit card number 4111111111111111 we get an alert message:

  An error occurred on the server. Please try to place the order again.

Initially we got infinite loader and also in the network tab, the error Message:

  Please enter a transaction ID to authorize this payment

and could see transact.dll as in the image

But now only getting alert:

  An error occurred on the server. Please try to place the order again

Tried to display the exact error message by modifying vendor/magento/module-checkout/Model/PaymentInformationManagement.php to output $e->getMessage() instead of the generic display message. But it's still displaying the generic message.

How to fix this issue such that the order is placed in processed mode and customer is redirected to success page?


texts: Magento2 Use of "Cost" In Catalog Product Edit Advanced Pricing Section

texts: Does anyone explain me what is the use of "Cost" Attribute in magento 2 catalog product edit advanced pricing section?


texts:
Hi I'm pretty new in magento.

I need to create a blank page that, when visited by a client, automatically adds an specific item to the cart in and redirects him to the checkout screen.

How should I approach this scenario?


texts: Display 'Sorry, this item sold.' msg on sold/out of stock products

texts: I have Magento set to show out of stock products but currently if someone accesses the product link directly, there is no message indicating that the product is out of stock. The Add To Cart button does not show, but I expected a message to show in it's place. How do I add this?


texts: Custom checkout page. Remove shipping method and go directly to payment

texts: I would like to ask if there is a way to remove the shipping method in magento 2. I would like to do is after the cart page, I would go directly to payment method. If the custom does not have a current address saved the text fields will display and if there is a current or default address, the fields will auto populate. Because I think the Shipping method has no sense if there is also text fields for shipping address in the payment method. Thanks all


texts: Magento 2: Debug REST error – 400 (Bad Request)

texts:
I can't process orders for some reason. The error I get in the console is:

  POST
  http://test-site.net/rest/default/V1/carts/mine/payment-information
  400 (Bad Request)

and

  POST
  https://test-site.net/rest/default/V1/guest-carts/0jue7j2hd7h32jd73hj38wehjsjw8j2j/payment-information
  400 (Bad Request)

Does anyone know how I would go about debugging this REST error? There's nothing in the var/log/*.log files.


texts: Magento2- integration with Graphql and Reactjs- cannot retrieve data from api

texts:
What I'm trying to do is modify frontend in magento2 using reactjs to make it more faster to implements and faster response with actions on the website. But first thing I must to do is retreving data from magento2 api using graphql, then make it render in reactjs, cuz the frontend will be connecting to backend by graphql. The problem is, magento2 api have 1 object that has fields with the same key name but diffrent types, this is the custom_attributes- the key name value has 1 field with list of string and the rest is just string. I have already tried to use union and interface while building schema for api in graphql, but it always give me an error that my schema cannot provide interfaces, nor unions. Maybe someone was using magento2 api with graphql and give me some advice?
Btw. I heared about schema.org that can integrate with reactjs and graphql as well but I didnt saw good enough tutorials that shows how to connect them all.

To be precise, fragment from api looks like that:

{
 custom_attributes: [
  {
   attribute_code: some string
   value: some string
  }
  {
   attribute_code: some string
   value: [
    some string,
    some string,
    some string
   ]
  }
 ]
}


texts: Get email from user at checkout success page

texts:
I am overriding the checkout success page, Vendor/Theme/Magento_Checkout/templates/success.phtml and I want to let the user to know that a confirmation e-mail is send to his/her e-mail address.

Is there any way to show the e-mail address, that the user has filled in the checkout page? I have tried searching for methods like getEmail but could not find anything.


texts:
I'm on developer mode, with a whm installed server with different cpanel accounts, our production website is on developer mode but sometimes for some products the checkout cart page show a blank page, one time i get the error in the debug log but i no longer get it displayed.
So how to enable all log errors?
Thanks.


texts: How to remove Social Media Icons from Product View page?

texts: I am looking everywhere in the Admin panel and in the file manager.  I can not find where to remove the social media icons from under the "Add to Cart" button.   Can someone please point me in the right direction?


texts: Magento 2: Setting up Three.js and OrbitControls.js

texts:
I'm working with Magento 2.3 and need to use Three.js for a graphic interface. The interface uses OrbitControls.js, a non-AMD compliant library.

The version of Three I'm using is r89. I have no idea about the version or Orbit Controls.

How do I setup my code so i can use these libraries?


texts: Add custom discount and show it on Cart and checkout in Magento 2

texts:
I want to add a custom discount on the order total and want to show it on Cart and Checkout Page.

But, I want to apply that discount based on the Loyalty Points available for Customers. I have added a Loyalty Form on the checkout page.

When that form is submitted then and then I want to apply that discount. So How can I make a custom post API and achieve this in Magento 2.

Thanks.


texts: Function which validates the coupon code for an item

texts: In my coupon code i have added a category condition and when i add the coupon code in the cart it will validate and add the discount. I want to find the function which validates this to add a custom validation which will also check whether the item is discounted via catalog price rules. For that i have trouble finding the location of the method. Please guide me. I checked Mage/SalesRule/Model/Validator.php but couldn't find the method in it. But in Mage_SalesRule_Model_Validator::process() i found a line like this $rule->getActions()->validate($item)


texts:
I want to override product list.phtml and in my layout file catalog_category_veiw.xml i tried many methods but still not able to call my templates file

<referenceBlock name="category.products.list"  >
            <arguments>
                <argument name="template" xsi:type="string">Vendor_Module::product/list.phtml</argument>
            </arguments>
        </referenceBlock>

I also tried this method

<referenceBlock name="category.products.list">
                    <action method="setTemplate">
                        <argument name="template" xsi:type="string">Vendor_Module::product/list.phtml</argument>
                    </action>
                </referenceBlock>

i also tried this

<referenceBlock name="category.products.list" template="Vendor_Modulename::product/list.phtml" />

I tried this all but not able to override, please help me to solve this and also tell me where i make mistakes, Thank you


texts: How can I add a custom google maps on the custom contact page? I'm using Magento 2.1.9 and I can't find where to do this on the admin panel so I don't know which code should I edit.


texts: Where are the javascript files from Magento 2.1.1?

texts:
I just have installed Magento 2.x in my computer, and when I try to run it the code can not find the javascript code.

In fact, it seems that all files inside en_US folder are missing. I only have the folder structure.

See the picture:

Can someone tell me how should I proceed?


texts: How to create custom Log file in Magento 2?

texts:
In Magento 1, it was common to segment logs into different files (to separate logs for payment methods, etc.). That's as easy as changing the $file parameter of Mage::log.

Magento 2 has changed to use Monolog.

It appears that Monolog (or Magento2's implementation of it) segments all logs for the entire framework to handlers by severity. There are a few handlers that write to file:

\Magento\Framework\Logger\Handler\Debug, \Magento\Framework\Logger\Handler\Exception, \Magento\Framework\Logger\Handler\System

Logging to respective files in var/log as in Magento 1.

I could add a handler for a particular severity (IE, write notices to var/log/notice.log). Extend \Magento\Framework\Logger\Handler\Base, and register the handler in di.xml.

This article roughly describes that process: http://semaphoresoftware.kinja.com/how-to-create-a-custom-log-in-magento-2-1704130912

But how do I go about writing all logs (not just one severity) for one class (not all of Magento) to my file of choice?

It looks like I'll have to create my own version of Magento\Framework\Logger\Monolog, but then how does everything fit together for that to actually work?

If this is a big no-no in Magento 2, then what is the alternative? I want something to separate the logs for this extension for the purpose of debugging it when necessary on client sites. Having that info written to system.log, exception.log, etc. and jumbled with the logs of every other module is not practical.


texts: SUPEE Patch 11219 not available for 1.7.0.2 Magento1

texts:
After so many days,

Magento released patches for less than 1.9, But I could not see the patch for version 1.7.0.2

Does anyone any information when it will be available or will it be available?


texts: Magento2.1 Category custom attribute dropdown

texts:
Steps to reproduce

1. Module UpgradeData.php script contains:

$categorySetup->addAttribute(Category::ENTITY, 'roflcopter', [
                    'type' => 'int',
                    'label' => 'CMS Block',
                    'input' => 'select',
                    'source' => 'Magento\Catalog\Model\Category\Attribute\Source\Page',
                    'required' => false,
                    'sort_order' => 20,
                    'global' => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_STORE,
                    'group' => 'Display Settings',
            ]);

2. view/adminhtml/ui_component/category_form.xml

<?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <fieldset name="Navigation">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="label" xsi:type="string" translate="true">Navigation</item>
                <item name="collapsible" xsi:type="boolean">true</item>
                <item name="sortOrder" xsi:type="number">100</item>
            </item>
        </argument>
        <field name="roflcopter">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="sortOrder" xsi:type="number">60</item>
                    <item name="dataType" xsi:type="string">string</item>
                    <item name="formElement" xsi:type="string">select</item>
                    <item name="label" xsi:type="string" translate="true">Roflcopter</item>
                </item>
            </argument>
        </field>
    </fieldset>
</form>

Expected result

In category form should appear dropdown select Roflcopter with CMS Blocks as options

Actual result

Empty dropdown


texts: Override the block for custom product type

texts:
I have created a new product type called "packet" and I wanna to override the block only if the product is packet on frontend. I have tried using below code in config.xml but its not working.

<catalog>
       <rewrite>
                 <product_view_type_packet>
                     Mymoduel_Test_Block_Catalog_Product_View_Type_Packet
                  </product_view_type_packet>
       </rewrite>
</catalog>

Please advise if you have solutions.


texts: Pagination count issue in custom varient collection

texts:
I have created a custom collection using Varien_Data_Collection. I am using this collection in a Grid. Everything works fine if I load the page without any filter but when tried to filter a column then pagination count was not showing fine. it's showing only 1 instead of 3 pages but there are 68 items in the collection and the count was also wrong.

When i tried to change the limit, then the values are displaying in the same page.

    protected function initColumns()
    {
      parent::initColumns();
      $columns['email_attribute']=  array(
            'header' => 'Email Filter',
            'index' => 'email_attribute',
            'filter_condition_callback' => array($this, '_filterSponsortEmail'),
      );

    }
    protected function _filterSponsortEmail($collection, $column)
    {
        $tmp = new Varien_Data_Collection();
        $this->getCollection()->setPageSize(5);
        foreach ($this->getCollection()->getItems() as $item) {
            if($item['email_attribute'] =="2") {
                $tmp->addItem($item);
            }
        }

        $this->setCollection($tmp);
        return $this;
    }


texts: How to migrate from Enterprise edition to Community Edition?

texts: I have a store running in Magento Enterprise Edition, would like to migrate to Community Edition, can you please suggest how I can do this?


texts: how to set Product grid at admin side form in magento?

texts: How can i set a product grid as like following pic. I try many time using magento functionality can any help me?


texts: Magento 2 How to get reward point data in Cart Price Rule

texts: I'm trying to get Cart price rule data. However, I cannot get the reward point which I created in Add reward point input field in Cart price rule form from the database, I have found it in salesrule and its related table, but I cannot find where the reward point was saved. How the mechanism of saving reward point action?