texts:
I'm trying to add a jQuery slider into my Magento theme. The slider is working perfectly in HTML of the theme I have. But I'm having problem integrating it into Magento theme, probably due to jQuery conflict with Magento's prototype js. This is what I've done so far:

I've added jquery file through jquery library direct link, and then added noConflict function, as shown below:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>

I've also added the necessary jQuery file in local.xml file, and when the page is rendered it is correctly shown in page source, as shown below:

<script type="text/javascript" src="http://localhost/menstyle3/skin/frontend/webdezynertheme/default/js/plugins.js"></script>

The code in the plugins.js file starts something like this, and goes on:

    if (!(window.console && console.log)) {
    (function() {
        var noop = function() {};
        var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile', 'profileEnd', 'markTimeline', 'table', 'time', 'timeEnd', 'timeStamp', 'trace', 'warn'];
        var length = methods.length;
        var console = window.console = {};
        while (length--) {
            console[methods[length]] = noop;
        }
    }());
}

    ;(function($){
            $.fn.pajinate = function(options){

I've tried but I was unable to make it work. Should I just replace the starting '$' with 'jQuery' or should I replace every instance of '$'? Is that all I should try, or do I have to do something else as well?

P.S: Firefox->Inspect Element->Console is not showing any JS errors.


texts:
I want to add my phtml  between description.phtml and attributes.phtml using custom module

my xml file

<?xml version="1.0"?>
<layout>
    <catalog_product_view translate="label">
        <reference name="content">
            <block type="example/product_view_detail" name="example_detail">
                <action method="setTemplate"><template>example/catalog/product/view/detail.phtml</template></action>
            </block>
        </reference>
    </catalog_product_view>
</layout>

how to add this phtml in view.phtml?


texts: Custom Attribute Not Disabled on Bulk Update Attributes

texts:
I have a custom attribute named container that is a select field. When I use Update Attributes to update multiple products at once this container attribute is always enabled even though I haven't checked the Change box underneath it and when I update attributes it actually gets saved. This attribute is for simple products. I've also noticed that when I edit a configurable product it's not disabled there either.

I have another size attribute that works just fine so I'm not sure what the difference is. Anyone have any ideas?


texts: Magento module Custom Magento Reports blank page?

texts:
I try to install magento (in version 1.9.3.7) module from GitHub Custom Magento reports using sql. I have install module via modman from this guide (install via modman): How to install module in Magento.

After installation via modman, I get message, that custom_reports_sql is successfuly compiled, after flush Magento Storage in menu section Reports apears menu "Special Reports" and inside this menu it appears menus e.g.: Special: New Customers ... But clicking in any of this reports I get blank page.

Any idea what is wrong?


texts:
My server structure is as follows:

  /var/www/htdocs_webroot/shop -> symlink to:
  /var/www/shop/deploy_xxxx-xx-xx/htdocs

So I can redeploy magento easily and switch back and forth with one simple command.
My problem is: Magento doesn't play along.

I redeployed to a more current version and changed the symlink. Then I redeployed static files, reindexed and flushed the cache.
Yet activating template hints shows that templates are loaded from the older folder instead.
Whereas the real problem is that Magento wants to load the templates with the physical file path instead of the virtual one.

Any suggestions?


texts: How to add custom font in DOM pdf in magento 2?

texts:
I have tried to add font using below code in head tag of html but it is not working.
DOM PDF is showing it's default font. But i want to show custom fonts as per my website. So tried below code
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: normal;
  src: url(http://themes.googleusercontent.com/static/fonts/opensans/v8/cJZKeOuBrn4kERxqtaUH3aCWcynf_cDxXwCLxiixG1c.ttf) format('truetype');
}


texts: How to add custom param in url in custom mass action on magento2 grid?

texts:
I want to add some custom parameters in my custom mass action URL on grid.
I've added mass action but I'm not able to add custom param in URL.
How I can add custom param in URL?


texts: Does CDN for static content in Magento 2 is Secure?

texts:
I am using Magento 2 CDN,

for media, as much as I know is working well,

But compare to Magento 1, Magento 2 static files are different things.

  does CDN for static content is secure?


texts: how can i sort by using option value not option id value in listing page magento 2?

texts:
I have created a custom dropdown attribute and set in sort by dropdown listing page,

now currently magento 2 sort by using option id like "name="option[value][139][0]" but i want to sort using option value like "60".
Please refer screenshot so you can understand easily.

FRONT END -

any have idea about this. thank you in advance.


texts: Managing out of control robot sessions with Redis

texts:
I've been having major issues with robots leaving sessions files.  Over 100 sessions / second.  At some point Redis just stopped accepting the sessions and Magento went to writing them back to disk.  I have no idea what happened there.  I flushed the DB and it still refused to use Redis.  But that is a problem for another day because I then discovered the session problem.

So I've changed robots to limit crawls every 30 minutes and I blocked the Baiduspider/2.0 user agent to no avail.

I created a CRON job to search the session files every 15 minutes because I still want legitimate sessions to exist for a week.

grep -lrIZ Baiduspider/2.0; /var/session/* | xargs -0 rm -f --

So my question is there anything better / cleaner to handle this.  Followup is there a command for Redis that will do the same thing I'm doing with CRON and the file system


texts: How can I remove "form_key" globally in my magento2 store?


texts:
We have a clarion OSC but the boxes for create an account, ship to an other address and accept term & condition is not showing. This is the css for it:

.tm-hide { opacity: 0;/* filter:alpha(opacity=0);*/ }
.tm-checkbox {
    /*background: url('../../images/sprite.png') -3px -40px no-repeat;*/
    display:inline-block;
    width:17px;
    height:17px;vertical-align: middle;
}

.tm-radio { background: url('../../images/sprite.png') 0 -5px no-repeat;    display: inline;
    padding:0px;
    height:17px;
    vertical-align: middle;
   }

.tm-checked { /*background-position:-75px -40px ;*/ }
.tm-selected { background-position: -73px -5px; }

.tm-checkbox-green {
    background: url('../../images/sprite.png') -3px -40px no-repeat;
    display:inline-block;

}
.tm-checked-green { background-position:-75px -40px ; }
.ie7 .tm-checkbox{ display:inline; }

I can not find what is going wrong, this is the url:

https://www.deli-discount.nl/dd_en/onestepcheckout/?___from_store=dd_nl

Can somebody please tell me what I am overlooking ?


texts: Mganeto2: CLI commands dealing with languages

texts:
In My Store I am using two languages en_US and ar_SA.

But, unknowingly I ran this command

  php bin/magento setup:static-content:deploy es_MX.

Something like this, other language which I was not using in my store at all.

Please help me understand what will be the consequences of this and how can I revert this.


texts:
Hello i want in checkout page before steps checkout add table with products image, name, total price and quantity, how i can add?

code for display image: <img src="<?php echo Mage::helper('catalog/image')->init($_product, 'thumbnail')->resize(75, 75); ?>" alt="<?php echo $this->htmlEscape($_product['name']); ?>" border="0" width="75" /> not working, let me know how i can do this better?


texts: what is paygate folder in magento core payment module?

texts:
In core payment module models folder contain paygate folder.it contain two classes(Mage/Payment/Model/Paygate).Request.php and Result.php and these two are empty.

So my doubts are

Whether these two classes are related to overall payment functionality or particular 3rd party functionality?
If it is 3rd party functionality, then why they are appearing in payment module?
Request.php class name is
Mage_Paygate_Model_Authorizenet_Request.
As you can see, its not following convention.How is it possible ?
Can any one explain what is the use of these?


texts: How to get payment method for the products which is placed under buy 1 get 1 50%

texts:
I the customer placing order for the product which is placed under BUY 1 GET 1 50%.
But when i place order am getting struck at shipping method.
Can i know why it is happening like this and what changes should i do to get shipping method?
Can someone suggest me?


texts: Override magento2 module sales files in custom module

texts:
How to override the following files in our custom module

/vendor/magento/module-sales/view/adminhtml/layout/sales_order_view.xml

and

/vendor/magento/module-sales/Block/Adminhtml/Order/View/Items/Renderer/DefaultRenderer.php

thanks


texts:
The code below works for my product pages. However, I cannot find what to wrap it in so it only renders on "bundled" product pages. Please Help.

<move element="product.info.description" destination="product.info.main" after="product.info.price" />


texts: show loader after every category on home page in magento2

texts:
On my home page I am showing all products with its categories once on
  page load.

But i wanted to do like for  after scrolling down ,after each category product list before next category I wanted to show loader. I don`t wanted to lazy loading plugin. My code is like this.Only once the loader comes.

require(['jquery', 'ajaxscroll'], function ($) {
        $(document).ready(function () {
            var ias = $.ias({
                container: '#homepage_category_banner',
                item: '.category_container',
                pagination: '#ajax-pagination',
                next: '.next a.category_link'
            });
            ias.extension(new IASSpinnerExtension({
                src: '<?php echo $block->getViewFileUrl('Pragmatic_Homepage::images/loader-ihouzit.gif') ?>'
            }));
            ias.on('load', function (event) {
                event.ajaxOptions.success = function (response) {
                    $('#homepage_category_banner').append(response);
                    $('#ajax-pagination').find('.next').removeClass('next').next().addClass('next');
                }
            })
        });
    });


texts: How to get a connection object in Magento 2

texts:
I am trying to get a connection object in my magento2 controller. Tried all google but still not able to get it working... any help?

Here is my controller:

<?php
namespace Silver\Customize\Controller\Index;
use \Magento\Framework\View\Result\PageFactory;
use \Magento\Framework\App\Action\Context;
use \Magento\Framework\App\ResourceConnection\ConnectionFactory;
use \Magento\Framework\ObjectManagerInterface;

class Index extends \Magento\Framework\App\Action\Action
{
    protected $pageFactory;
    protected $resource;
    protected $connectionFactory = null;

    public function __construct(Context $context, PageFactory $pageFactory, ConnectionFactory $connectionFactory)
    {
        $this->pageFactory = $pageFactory;
        $this->connectionFactory = $connectionFactory;
        return parent::__construct($context);

    }

    public function execute()
    {
        // var_dump(__METHOD__);
        $page_object = $this->pageFactory->create();
        return $page_object;
    }
}
?>

And here is the error which I am getting:

Recoverable Error: Argument 3 passed to Silver\Customize\Controller\Index\Index::__construct() must be an instance of Magento\Framework\App\ResourceConnection\ConnectionFactory, none given, called in C:\wamp\www\magento\var\generation\Silver\Customize\Controller\Index\Index\Interceptor.php on line 14 and defined in C:\wamp\www\magento\app\code\Silver\Customize\Controller\Index\Index.php on line 14

This is my code: fails here itself

    <?php
namespace Silver\Customize\Controller\Index;
use \Magento\Framework\View\Result\PageFactory;
use \Magento\Framework\App\Action\Context;
use \Magento\Framework\App\ResourceConnection;
use \Magento\Framework\ObjectManagerInterface;

class Index extends \Magento\Framework\App\Action\Action
{
    protected $pageFactory;
    protected $connection;
    protected $resource;

    public function __construct(Context $context, PageFactory $pageFactory, ResourceConnection  $resource )
    {
        $this->pageFactory = $pageFactory;
        $this->resource = $resource;
        return parent::__construct($context);

    }

    public function execute()
    {
        // var_dump(__METHOD__);
        $page_object = $this->pageFactory->create();

        //$coreResource = Mage::getSingleton('core/resource'); // This does not work... let me show
        $connection = $this->resource->getConnection(ResourceConnection::DEFAULT_CONNECTION);

        return $page_object;
    }

}

?>

And this is the error:

Recoverable Error: Argument 3 passed to Silver\Customize\Controller\Index\Index::__construct() must be an instance of Magento\Framework\App\ResourceConnection, none given, called in C:\wamp\www\magento\var\generation\Silver\Customize\Controller\Index\Index\Interceptor.php on line 14 and defined in C:\wamp\www\magento\app\code\Silver\Customize\Controller\Index\Index.php on line 17


texts:
I have an observer listening for events that fire sales_order_creditmemo_save_after. The issue I have is that when a credit memo is saved on the invoice, the sales_order_invoice_save_after event is also fired - which causes issues with my code, because I also have another observer listening on that event.

For the observer listening on sales_order_invoice_save_after - is there a way to distinguish whether the event was a credit memo or an invoice?

I have found deep down in the $observer object, protected '_historyEntityName' => string 'creditmemo' (length=10) however is there a more standard way to access this information?


texts: how do I keep paypal, visa and mastercard images without links?

texts:
not a techie: but I have inherited a website(!): and am trying to keep paypal, mastercard and visa footer images without linking to the actual sites as per boss' instructions. In my static blocks, footer payment option block, here is the code:

visa PayPal mastercard

How do I keep images but not links? I've tried using the breaking link symbol on the editor, but that removes the image and am left with just the word paypal at frontend for example. Thanks a mill


texts: Magento 2: Finding out customer language?

texts: I'm making an export file of customer email addresses. Magento is set up to have two store views, each in different languages. How can I find out which store view the customer belongs to (i.e. her language)?


texts: Get and Add like(Favourite or Unfavourite) product in Magento 2 Rest API With URL?

texts:
Get Favourite product in Magento 2 REST API with URL?

And Add to Favourite in Magento 2 REST API with URL?


texts: how to get order/quote getAttributes in magento

texts:
I want to retrieve all the existing magento order attributes. For customer attributes i used Mage::getModel('customer/customer')->getAttributes(), for customer address attributes i used Mage::getModel('customer/address')->getAttributes(). Similarly how to get Order all attributes? I tried Mage::getModel('sales/order')->getAttributes(), but we don't have getAttributes() method for Mage_Sales_Model_Order .

Please help me on how to get order/quote getAttributes()?

Thanks.


texts:
I have created an API integration with a third-party retailer. I have created my own Mage::dispatchEvent calls before and after the communication. I mostly use these for logging/debug mode, but I now have the opportunity to use them to manipulate data from another, loosely related module that would also use this API.

In the below example is it possible to manipulate $post_string in this local scope based on what my observer may do?

Mage::dispatchEvent('my_api_delete_before', array('post_string'=>$post_string, 'my_cart'=>$this));

$result = $this->doApiCommunication($post_string);

Mage::dispatchEvent('my_api_delete_after', array('post_string'=>$post_string, 'result'=>$result, 'product'=>$product, 'cart_item_id'=>$_item->cartItemId));


texts: Magento 2 Equivalent for Mage::getModel('catalog/layer')

texts:
For Magento1, On:-

app/design/frontend/Mypackage/Mytheme/template/catalog/product/view.phtml

I'm using following code:-

Mage::getModel('catalog/layer')->getCurrentCategory()->getId()

Same code I want to use for Magento2, how can I achieve?

Note:- Don't want to use registry.

Thanks!!!


texts: layout handle on shipment view admin not rendering the custom block

texts:
I am trying to add a block to be appear on shipment view. I successfully showing my custom block on sales order view, but I have to move it to shipment view. Here is what I want to achieve:

My custom block should be showing along with these blocks:

My attempt:

<layout version="1.0">
   <adminhtml_sales_order_shipment_view>
    <reference name="order_info">
        <block type="paketid_booking/adminhtml_sales_order_view_info_booking" name="paketid_booking.order.info.booking.block" template="paketid/booking.phtml" after="order_history" />
    </reference>
  </adminhtml_sales_order_shipment_view>
</layout>

My config.xml:

<config>
<modules>
    <PaketId_Booking>
        <version>1.0.0</version>
    </PaketId_Booking>
</modules>
<default>
    <paketid_booking>
        <api>
            <email>test@paket.id</email>
            <key>TEST-API-KEY</key>
            <debug>0</debug>
        </api>
    </paketid_booking>
  </default>
  <global>
     <blocks>
        <paketid_booking>
            <class>PaketId_Booking_Block</class>
        </paketid_booking>
     </blocks>
     <helpers>
        <paketid_booking>
            <class>PaketId_Booking_Helper</class>
        </paketid_booking>
     </helpers>

    <models>
        <paketid_booking>

            <class>PaketId_Booking_Model</class>
            <resourceModel>paketid_booking_resource</resourceModel>
        </paketid_booking>

        <paketid_booking_resource>

            <class>PaketId_Booking_Model_Resource</class>
            <entities>
                <result>

paketid_booking_result

                </result>
            </entities>
        </paketid_booking_resource>

    </models>
    <resources>
        <paketid_booking_setup>
            <setup>
                <module>PaketId_Booking</module>
            </setup>
        </paketid_booking_setup>
    </resources>

    <events>
        <checkout_type_onepage_save_order_after>

            <observers>

                <paketid_booking>
                    <type>singleton</type>
                    <class>PaketId_Booking_Model_Observer</class>

                    <method>processOrder</method>
                </paketid_booking>
            </observers>
        </checkout_type_onepage_save_order_after>
    </events>
</global>
<adminhtml>
    <layout>
        <updates>
            <paketid_booking>
                <file>paketid_booking.xml</file>
            </paketid_booking>
        </updates>
    </layout>
    <events>
        <core_block_abstract_to_html_after>
            <observers>
                <paketid_booking>
                    <type>singleton</type>
                     <class>PaketId_Booking_Model_Adminhtml_Observer</class>
                    <method>getSalesOrderBookingInfo</method>
                </paketid_booking>
            </observers>
        </core_block_abstract_to_html_after>
    </events>
</adminhtml>
</config>

`

My block structure:

I have not found any solution for this since yesterday, so you might have read this question and I am really sorry if I am breaking the rule. I need help


texts: Magento 2 Rest Api customer associated with the email or not?

texts:
I am checking the rest api regarding customer has been existed or not with the email. I found an API in the swagger tool i.e POST /V1/customers/isEmailAvailable

  At Swagger Tool:-

  At Post Man APP:-

  At Magento Admin End:-

my question is customer is existing with the email but return false instead of true. whether it is a correct? please clarify.

thanks


texts: unable to create order in the backend- button/links aren't responding

texts:
I am unable to create orders in the backend on Magento. After clicking the 'create new order' button I am directed to my customer list and I'm unable to select a customer. My cursor does change as if it wants to do something when clicked but nothing happens. If I try and click the "Create New Customer" button nothing happens either.

I am not sure if this is related to the issue but I thought it may be worth mentioning. If I go to System>Tools>Backup and try and click "System Backup" "Database and Media Backup"  "Database Backup" nothing happens either. However, these seem to be the only places where the buttons aren't responsive.

I have tried in:
Chrome (Latest Version - 30.0.1599.101)
FireFox ( Latest Version - 24.0 )
Safari (Latest Version - 7.0 )

I'm using Magento Community Edition 1.7.0.2


texts:
I just installed a fresh Magento 2.
Now when I fire it up, the CSS and JS is not loading.

I looked at the source and it always has the version of the deployment in the path, like /pub/static/version1484648587/frontend/... . This does not exist though, I only have /pub/static/frontend.

What am I making wrong?


texts: Magento Configurable Product Option same as sample price

texts:
I want to upload around 1000 configurable product with 30 sample products, Adding price for every simple products in configurable products is taking too much time and later if i want to change its sample product`s price that time i have to go to every configurable product and change it.

Is there any way i can get sample products price in configurable products, so i just need to add sample product in config product and at the time of price change just need to modify sample product and it will auto change every where..

it same as it using sample products inventory i want to use its price

Thanks


texts: Magento 1.9 - How to get shipped date and display on Customer account My Order?

texts:
Backend generate date when we shipped order,

Frontend shown only order created dated,

Is it possible using event-observer?


texts: How to get option label and there value's label from params passed by product page?

texts:
I have created a new action which is called when the customer select the options on product page and submit the product form. I get this array when i print the params posted.

Now how should i get the option labels so that i can save the information what customer have selected in the custom table i have created in the database.

As you can see there is just option ids and there values. I need to save some thing like option label and it's values as it goes to the cart in the default magento.

Update after using Vinai's Solution:

 datepart for part (c) not found in array

 Trace:
 #0 /home/my_dir/public_html/lib/Zend/Date.php(1077): Zend_Date->_calculate('set', Array, 'c', 'en_AU')
 #1 /home/my_dir/public_html/lib/Zend/Date.php(197): Zend_Date->set(Array, 'c', 'en_AU')
 #2 /home/my_dir/public_html/app/code/core/Mage/Core/Model/Locale.php(474): Zend_Date->__construct(Array, 'c', Object(Zend_Locale))
 #3 /home/my_dir/public_html/app/code/core/Mage/Catalog/Model/Product/Option/Type/Date.php(167): Mage_Core_Model_Locale->date(Array, 'c', NULL, false)
 #4 /home/my_dir/public_html/app/code/local/Browsewire/Quote/controllers/IndexController.php(43): Mage_Catalog_Model_Product_Option_Type_Date->getFormattedOptionValue(Array)
 #5 /home/my_dir/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Browsewire_Quote_IndexController->subformAction()
 #6 /home/my_dir/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch('subform')
 #7 /home/my_dir/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
 #8 /home/my_dir/public_html/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front->dispatch()
 #9 /home/my_dir/public_html/app/Mage.php(596): Mage_Core_Model_App->run(Array)
 #10 /home/my_dir/public_html/index.php(80): Mage::run('', 'store')

11 {main}


texts: Magento 2: Is there a "safer" way to run Composer Upgrade without enable allow_url_fopen?

texts:
I had an issue with running Composer Upgrade command due to allow_url_fopen is not enabled in PHP.ini. I ended up consulting the host provider and they recommended against having this parameter enabled for long period of time. Since my hosting environment does not give me a direct access to modify this parameter, do we have a different option?

I also notice that the web UI updater and product image importer wouldn't work either if allow_url_fopen is disabled.


texts: Removing Fax Field from Magento Template

texts:
I know this question has been asked previously, but I tried a few steps to remove the Fax field from my onepage checkout page and it is still visible.

The Magento settings in System -> Configuration -> Design lists "default" as package and "ves_fashion" as Standard.

I navigated to     test/app/design/frontend/default/ves_fashion/template/checkout/onepage/billing.phtml

and removed the fax from the template. I also did this for:

test/app/design/frontend/default/ves_fashion/template/checkout/onepage/billing.phtml
test/app/design/frontend/default/ves_fashion/template/persistent/checkout/onepage/billing.phtml
test/app/design/frontend/base/default/template/checkout/onepage/billing.phtml
test/app/design/frontend/base/default/template/persistent/checkout/onepage/billing.phtml

My structure looks like this, which i think its odd because I have multiple ves_fashion folders:

app/design/frontend/base/default
app/design/frontend/default/blank
app/design/frontend/default/default
app/design/frontend/default/iphone
app/design/frontend/default/modern
app/design/frontend/default/ves_fashion
app/design/frontend/rwd/default/
app/design/frontend/ves_fashion/etc/
app/design/frontend/ves_fashion/layout/
app/design/frontend/ves_fashion/locale/
app/design/frontend/ves_fashion/template/
app/design/frontend/ves_fashion/demo2/
app/design/frontend/ves_fashion/demo3/
app/design/frontend/ves_fashion/demo4/

Any idea how I can finally remove the fax field from the onepage checkout page?

Thanks!


texts: How can we clone groups like clone field in system.xml in Mageno 2?

texts:
In system.xml file, for cloning the fields we use clone_fields and clone_model. Here is the example:

<group id="placeholder" translate="label" sortOrder="300" showInDefault="1" showInWebsite="1" showInStore="1">
    <label>Product Image Placeholders</label>
    <clone_fields>1</clone_fields>
    <clone_model>Magento\Catalog\Model\Config\CatalogClone\Media\Image</clone_model>
    <field id="placeholder" type="image" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
        <backend_model>Magento\Config\Model\Config\Backend\Image</backend_model>
        <upload_dir config="system/filesystem/media" scope_info="1">catalog/product/placeholder</upload_dir>
        <base_url type="media" scope_info="1">catalog/product/placeholder</base_url>
    </field>
</group>

Above code gives output like this

What I want is to copy fields with group like

Prefix1_Group
    -> prifix1_image (field)
Prefix2_Group
    -> prifix2_image (field)
Prefix3_Group
    -> prifix3_image (field)

I have set of fields which are repeating in different group with group_name prefix.
Please let me know if there is any other way to do this.
Thank you.


texts: How to skip "Catalog URL Rewrites" from index:reindex:all in Magerun

texts:
I am using magerun to run Indexing for my magento store. I am using below command

/usr/local/bin/magerun --root-dir=/var/www/html/store index:reindex:all

The above command works perfectly but my requirement is to skip the "Catalog URL Rewrites" using index:reindex:all command.

Is this possible to skip single Index in reindex:all command?

Is there any command/parameter provided by magerun to skip any Index?


texts: Magento 2 setting up default cron jobs when not run every minute

texts:
In my production environment I am not able to run magento cronjobs every minute as the server is freezing when doing so. In order to solve this issue the cron jobs in crontab are set up to run every 10 minutes as follow:

*/10 * * * * /usr/bin/php7.2 /home/306000.cloudwaysapps.com/username/public_html/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /home/306000.cloudwaysapps.com/username/public_html/var/log/magento.cron.log
*/10 * * * * /usr/bin/php7.2 /home/306000.cloudwaysapps.com/username/public_html/update/cron.php >> /home/306000.cloudwaysapps.com/username/public_html/var/log/update.cron.log
*/10 * * * * /usr/bin/php7.2 /home/306000.cloudwaysapps.com/username/public_html/bin/magento setup:cron:run >> /home/306000.cloudwaysapps.com/username/public_html/var/log/setup.cron.log

Now I also setup the cronjob scheduler to schedule only every 10 minutes in Admin -> system -> cron jobs:

My problem is that doing so leads to have a huge number of missed jobs as even though I setup the generation of schedules to happens every 10 minutes, the jobs generated in 'cron_schedule' are generated for each minute and since cron:run is running only every 10 minutes most of them are missed.

How can I solve this issue and what is the best cron job configuration in this example ?


texts: How to add custom customer attribute in customer edit account page Magento 2

texts: I want to edit the custom customer attribute in the Customer edit Account page. I  have created a module and its showing it in the admin customer i want it to show it in the frontend customer information edit page..just like First name and last name.


texts: Magento2 Module does not use catalog_category_view.xml

texts:
I am trying to update the catalog_category_view.xml with this content:

<?xml version="1.0" encoding="utf-8" ?>
<page xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <css src="Vendor_Module::css/advancedCatalog.css"/>
    </head>
    <body>
        <referenceContainer name="content">
            <block class="Vendor\Module\Block\Js" name="advanced_catalog_js" template="Vendor_Module::js.phtml" />
        </referenceContainer>
    </body>
</page>

The file is in /app/code/Vendor/Module/view/frontend/layout/.

However it does not get injected. I cleared my caches and such, however, no change to Frontend. What am I doing wrong?

This is my structure of the module:


texts: Product Page Gallery "TypeError: settings.$elementF.fotorama is not a function"

texts:
Please can anyone assist, it is driving me crazy. There are quite a few answers on here regarding this, however none have them have worked.

Here is my requirejs-config.js file:

var config = {
  paths: {
    "jquery.bootstrap": "js/node_modules/bootstrap/dist/js/bootstrap.bundle.min",
    "lity": "js/node_modules/lity/dist/lity.min",
    "fotorama/fotorama": "fotorama/fotorama"
  },
  shim: {
    "jquery.bootstrap": {
        'deps': ['jquery']
    },
    "lity": {
        'deps': ['jquery']
    },
    'fotorama/fotorama': {
      'deps': ['jquery']
    }
  }
};

I am developing a custom theme.

This is the error I am facing in the console.

gallery.js:297 Uncaught TypeError: settings.$elementF.fotorama is not a function
    at UiClass.initGallery (gallery.js:297)
    at UiClass.initialize (gallery.js:139)
    at UiClass.initialize (wrapper.js:109)
    at UiClass (class.js:49)
    at main.js:31
    at Object.execCb (require.js:1650)
    at Module.check (require.js:866)
    at Module.<anonymous> (require.js:1113)
    at require.js:132
    at require.js:1156

Can anyone assist, please?


texts: Magento2 Asymmetric transaction rollback error

texts: I am receiving Asymmetric transaction rollback error when i tried to save Root Category but when i save other categories it is working fine only for the root category it is showing the error. I have migrated categories from 1.7.0.2 to 2.0.7


texts: Magento 2 - how to skip the cache when getting system config value?

texts:
I'm trying to get config values using:

$this->_scopeConfig->getValue(
    $config_path,
    \Magento\Store\Model\ScopeInterface::SCOPE_STORE
);

& it returns the cached value.
Is there any way to make it skip the cache without disabling it?
*I want the cache to be enabled but still bypass it for this value only.
**I also don't want to always clear the cache programmatically before getting it.
-- Any idea?


texts: Error 500 page returns as blank page instead of error report

texts:
Whenever I create an error (for example, changing

if (!file_exists($mageFilename)) in the index.php file to if (!fejfeA_frege(jskfnjs)fdsf)), it should display a Magento error report like this:

But instead of that, it shows a blank page. The network status is 500, but somewhere in my installation, something goes wrong and it won't show me the error report page.

My goal is to customise the frontend of the error report, but I obviously can't do that when I can't get the error report to show up.

UPDATE
It doesn't show a blank page anymore, but now it shows a white page with plain black text, after placing this snippet in the index.php file:

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

And it results in this error (I placed an 'x' in the bootstrap.php file in order to create the error):

Array
(
    [type] => 4
    [message] => syntax error, unexpected end of file
    [file] => /[DOMAIN]/public_html/app/bootstrap.php
    [line] => 34
)


texts: How to install PATCH UPDATE 1533 5344 .sh?

texts:
How to install PATCH UPDATE 1533 5344 .sh ??
my english is not good Please give me a simple approach in here

why can not install?

  Error! Some required system tools, that are utilized in this sh
  script, are not installed: Tool(s) "patch" is(are) missed, please
  install it(them).


texts: How to install PWA studio. Magento 2.3.1

texts: I'm using https://hackernoon.com/getting-started-with-magento-pwa-studio-with-poc-c54c33f8d038 this link to use PWA Venia theme but when I'm trying to follow these steps then on step number 3 when I used ln -s /var/www/html/magento/pwa-studio/packages/pwa-module app/code/Magento/  to create a symlink then its not creating proper symlink so when I check the pwa-studio/packages/pwa-module package then there was no any package with the name pwa-module n when I run other commands after this one then the command works perfectly but because of this command or may be some other issue the theme is not created properly. What is the problem?


texts: Ordering attribute options on product page

texts:
We have a site with a number of colour swatch options. We have ordered the options in the attribute edit section but this does not seem to be taken into account when Magento renders the swatch options on the product page.

I have attached a couple of screenshots below. Bone has been ordered before antique white but Antique White is displayed before Bone. Is there a way to order these on the product page the way we want?

Magento version is 2.1.9.


texts: Magento 2 product page , Safari mobile view only JS Issue

texts:
I'm having a weird issue on my magento 2 website on product page only on safari mobile view!
when I add any js file as follows in global-footer-js.phtml (this phtml I call in default.xml as it should call the js I need on every page on the site), It works perfectly on chrome,firefox (and on all site pages) while on safari mobile view only after opening 2 product pages js kinda freeze( menu won't open, compare and add to wishlit doesn't work , add to cart ,, etc.. )
any idea?
path for default.xml app/design/frontend/BR/Nancy/Magento_Theme/layout/default.xml
 <referenceContainer name="footer-container">
    <container name="after.footer" htmlTag="div" htmlClass="after-footer" after="-">
        <block class="Magento\Framework\View\Element\Template" name="global-footer-js" after="-" template="Magento_Theme::theme-pages/global-footer-js.phtml"/>
    </container>

</referenceContainer>

and here is the global-footer-js.phtml
<script type="text/x-magento-init">
    {
        "*": {
            "js/footer-global": {}

        }
    }
</script>

and here is the footer-golobal.js
define([
    'jquery',
], function($) {
    "use strict";

    $.widget('brm.toggleFooterLinks', {

        // Optional

        options: {
            footerToggleClass: '.mob-toggle-title'
        },
        _create: function() {
            // Init code

            this._toggleFooterLinks(this.options.footerToggleClass);
        },
        _toggleFooterLinks: function (footerToggleClass){

            if (window.matchMedia("(max-width: 960px)").matches) {
                $(footerToggleClass).click(function() {
                    $(this).toggleClass('active');
                    $(this).next('.mob-toggle-content').toggleClass('expand');
                });
            }

        },
        _toggle: function (){
            var self = this;

            $(window).on('load resize', function () {
                  self._toggleFooterLinks();
            });
        }

    });
    return $.brm.toggleFooterLinks;
});

This is code is just to toggle the content on mobile view , and works well on the whole site , not sure what's the issue on the product page and only in safari!
Thanks in advance


texts: sphinxsearch not returning results in Magento 1.7.0.2

texts:
We're trying to implement Sphinx into Magento CE 1.7.0.2 via sphinxsearch (https://github.com/fheyer/sphinxsearch)

According to the README, it seems like the module has only to be installed and enabled for it to work using Sphinx search; however, the page /catalogsearch/result/?q=keyword always returns 'Your search returns no results'.

We've been noting the following:

Sphinx is correctly working in the terminal and is outputting results
If a print_r($results) is added within the prepareResult() function, we can see the results count from Sphinx, which matches the terminal output

It seems like results do not get returned in the Magento view that generates the results page - but it does appear that Sphinx is finding results.


texts: magento 2 admin page not working with custom store view

texts: I have multi language store and the default one is Portuguese, when I access admin page with other store view the page gives 404 page not found, but when I access with default store view it works properly. How can I access admin page with other store views


texts: How to install a specific Magento 2 version with Composer?

texts:
I want to install Magento version 2.1.7 with the Composer, I found in the docs that I can use in the require: "magento/product-community-edition": "2.1.7", but composer says that requested package could not be found.

I also found that I can do:

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition <installation directory name>

But this doesn't allow for a version number?


texts: Trying to run an AJAX script from the admin area in magento

texts:
I'm trying to make an AJAX call from the sales order create index in the Magento backend. My url is formed by this function and is returning a 404.

This is the URL it is forming
http://127.0.0.1/wsi/index.php/admin/autocustomerlookup/address/checkEmailExists/key/e7dc1ffa2f80b1892da02f80688a29c4/

<?php echo Mage::helper('adminhtml')->getUrl('autocustomerlookup/address/checkEmailExists');?>

I'm basing my work on this Git repo https://github.com/zhukandrey/Atwix_EmailAjax/

I can't figure out why it isn't working, I am certain there is some error with my controller or my routing, trying to make the call from the Magento backend. But I'm stumped!

<config>
    <modules>
        <TwilitGrotto_AutoCustomerLookup>
            <version>1.0.0.0</version>
        </TwilitGrotto_AutoCustomerLookup>
    </modules>
    <global>
        <helpers>
            <twilitgrotto_autocustomerlookup>
                <class>TwilitGrotto_AutoCustomerLookup_Helper</class>
            </twilitgrotto_autocustomerlookup>
        </helpers>
    </global>
    <adminhtml>
        <layout>
            <updates>
                <twilitgrotto>
                    <file>twilitgrotto_autocustomerlookup_layout.xml</file>
                </twilitgrotto>
            </updates>
        </layout>
    </adminhtml>
    <admin>
        <routers>
            <adminhtml>
                <twilitgrotto_autocustomerlookup>
                        <use>admin</use>
                        <args>
                            <module>TwilitGrotto_AutoCustomerLookup</module>
                            <modules>
                                <TwilitGrotto_AutoCustomerLookup after="Mage_Adminhtml">
                                    TwilitGrotto_AutoCustomerLookup
                                </TwilitGrotto_AutoCustomerLookup>
                            </modules>
                            <frontName>autocustomerlookup</frontName>
                        </args>
                </twilitgrotto_autocustomerlookup>
            </adminhtml>
        </routers>
    </admin>
</config>

function handleEmailEvent(){
    var email = document.getElementById("email");
    var url = document.getElementById('check_email_address_exists').innerHTML;
    makeRequest(url, $F(email) );
}

function makeRequest(url, emailAddress){

    var httpRequest = new XMLHttpRequest();

    console.log(url);

    if ( !httpRequest) {
        console.log('httpRequest failed');
        return false;
    }

    httpRequest.open( 'POST', url );
    httpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    httpRequest.send('emailAddress=' + encodeURIComponent(email));

    console.log(httpRequest);
}

class TwilitGrotto_AutoCustomerLookup_AddressController extends Mage_Adminhtml_Controller_Action{

    public function checkEmailExistsAction(){

        $emailAddress = $this->getRequest()->getParam('emailAddress');
        $result = Mage::helper('twilitgrotto_autocustomerlookup')->checkEmailExists($emailAddress);
        $this->getResponse()->setBody($result);

    }

}

class TwilitGrotto_AutoCustomerLookup_Helper_Data extends Mage_Core_Helper_Data{

    public function checkEmailExists($emailAddress) {

        $emailAddressCheck = Mage::getModel('customer/customer')
            ->getCollection()
            ->addAttributeToSelect('email')
            ->addAttributeToFilter('email', $emailAddress)->load();

        if(!$emailAddressCheck->getSize()) {
            $result = 'ok';
        } else {
            $result = 'error';
        }

        return $result;
    }

}

Edited to add entire config.xml


texts: How to set-up a cron job for multiple models in magento?

texts:
I'm trying to set-up a cron job for multiple models. I have two methods (method1 and method2) in Model (observer.php) for which I want to set cron job. My code :

Config.xml file :

 <crontab>
        <jobs>
        <erpbridge_update>
            <schedule>
                <cron_expr>* * * * *</cron_expr>
            </schedule>
            <run>
                <model>erpbridge/observer::method1</model>
            </run>

        </erpbridge_update>
        <mss_erpbridge>
                <schedule>
                <cron_expr>* * * * *</cron_expr>
            </schedule>
                <run>
            <model>erpbridge/observer::method2</model>
            </run>
            </mss_erpbridge>

        </jobs>
    </crontab>

Name space is Mss and  module name is Erpbridge, Cron job with the right module name working perfectly <mss_erpbridge> but this is not working </erpbridge_update>. When I set the same key for both <mss_erpbridge> then only the second works.

My query :

Is it possible to set a cron job for multiple Models if yes, How?


texts: Create an Attribute Set and create a Product Attribute in Product Details Group for only One Attribute Set

texts:
I asked a question here about this just over a week ago, but it took a little while to edit the post to include some code.

The original post and code can be seen here

I am able to create an Attribute Set based upon Default, create the Product Attribute and add this to the Product Details Group when either installing or upgrading a module.

My problem however is that Product Attribute is added to ALL attribute sets and not just the new attribute set that was created.  Looking in the MySQL tables I can see that my new Product Attribute is indeed linked to every Attribute Set.

Does anyone know how to stop the Product Attribute being added to all of the Attribute Sets EXCEPT the one that has just been created?  From what I have read, this should happen from using the 'attribute_set_id' while creating the Product Attribute, but this has not worked?


texts: magento 2, change label in order creation page in admin panel

texts:
I appreciate any hint on how to change the "Email" label in order creation page in admin panel (I have created a module to override the vendor/magento/module-sales templates, so no issue with this part)

Considering below in vendor/magento/module-sales/view/adminhtml/templates/order/create/form/account.phtml where this label is set? I could not find the getForm()->getHtml()!

<div class="admin__page-section-title <?php /* @escapeNotVerified */ echo $block->getHeaderCssClass() ?>">
    <?php /* @escapeNotVerified */ echo $block->getHeaderText() ?>

    <?php echo $block->getForm()->getHtml() ?>


texts:
I have set up live code of one of my company's magento website at local side. I done all changes in core_config_data , then cleared cache and session folders still theme is not get loaded.

When I view source the page I found that css folder is missing from skin/base/default (may be done implicitly by developer) and when I copy css folder(containing styles.css, widget.css etc) theme get loaded but Magento default theme and not my custom theme.

Even I cannot make any changes at admin side as data not get saved on clicking on any button.

Please help in this issue.


texts: Add a "Download Product-Informations in a PDF" Button to a product page

texts:
I have a question, I want to add information pdfs to every of my products. How can I add a button for that on every product page?

Thanks.


texts: Magento 2 How to send order email copy to custom email address with custom module when order placed?

texts:
I have one module where i can set email address in back end. When order placed i want to send that order email copy to my custom email address which is set in backend.

I want to add an observer when order placed and send email copy to my custom email address.

how can i achieve this functionality with custom module?

Thanks.


texts: Show notification message after ajax call

texts:
I have my own controller for a customer address delete, so at the end of the controller, I send a notification message to notify the user.

 try{

        $this->_addressRepository->deleteById($addressId);
        return  $this->resultJsonFactory->create()->setData(['success' => true,'message' => $this->messageManager->addSuccess("Successfully deleted customer address")]);

    } catch(\Exception $e) {

        return  $this->resultJsonFactory->create()->setData(['success' => false,'message' => $this->messageManager->addError('Address cannot be deleted')]);

    }

and at the success of ajax call I reload the page and after reloading the message should display on the UI.

 success: function (data) {
                location.reload();
            },

But the issue is notification message is displayed before the reload, and after the reload the message stays(which I want).

The issue is the message gets displayed as soon as i do this

return  $this->resultJsonFactory->create()->setData(['success' => true,'message' => $this->messageManager->addSuccess("Successfully deleted customer address")])

I want to show the message after reloading the page, how can I achieve that


texts: Password Reset throws 'Something went wrong while resetting customer password' error

texts: It is happening with one of my customer's password reset and not an issue for rest. It shows 'Something went wrong while resetting customer password' error whenever I try to reset the customer's password. I did reset the time interval of password reset option but no use. Any help would be appreciated.


texts: Unexpected '<' getting issue in magento 2 shipping information

texts:
Url: XXXXXXXXXXX/rest/V1/carts/16/shipping-information
        {
     "addressInformation": {
         "billingAddress": {
            "city": "noida",
            "company": "iprag",
            "email": "nkn@gmail.com",
            "firstname": "Manish",
            "lastname": "Kumar",
            "postcode": "335001",
            "region": "UP",
            "street": ["D-84"],
            "telephone": "9413433217"
        },
        "shippingAddress": {
            "city": "noida",
            "company": "iprag",
            "email": "nkn@gmail.com",
            "firstname": "Manish",
            "lastname": "Kumar",
            "postcode": "335001",
            "region": "UP",
            "street": ["D-84"],
            "telephone": "9413433217"
          },
           "shippingCarrierCode": "flatrate",
          "shippingMethodCode": "flatrate"
        }
    }

Hi developing react-native sample application.
I am adding to cart items after! I don't  know how to call address and how to place the order. Please give me anyone brief explain.


texts: Magento 2 import bulk products with custom attribute

texts:
I have created 1 custom attribute (current_user_id) and saving value when product is saved.
I have usecatalog_product_save_before event that save value for my custom attribute(current_user_id). code is

public function execute(\Magento\Framework\Event\Observer $observer)
    {
        $_product = $observer->getProduct();  // you will get product object
        $current_users=$this->authSession->getUser();
        $current_admin_id=$current_users->getData('user_id');
        $_product->setCurrentUserId($current_admin_id) ;
    }

It work perfect for add single product.

But now I want to add bulk products How this possible for import bulk product ?

I think we make custom attribute column in csv file and use which event that fire when import after check data. and foreach for setting value in custom attribute ?
Please Guide me I want to save custom attribute value in bulk products
Thanks


texts: What could be pushing Reward History up 12 hours

texts:
when i submit an edited order in which the reward points awarded is negative (because the new processed order is less than the original), in the reward history one of the entries is pushed forward 12 hours ahead of the most recent entry

this isn't causing any bad effects to the total reward points as the value is being calculated correctly

there's really nothing my edit order module could be doing that does this, to edit the order the module just does the exact same thing as what Reorder does but it also creates a new session which stores the previous order's item's, their qty, the date the order was made and it's increment id, how the points are calculated is that when they are normally calculated, there's a check for this session, if it's exists it gets the Base Grand Total, puts that though $this->getReward()->getRateToPoints()->calculateToPoints() and subtracts that from the points delta

when we process the order in the checkout, it just creates a new order but the transaction id is the same as the previous order, since internet sales looks at this transaction id they'll know which order to edit, the old order will be canceled during the next run of the synchronization scripts

given all of that, at no time do i ever do anything with the reward history and it's not always the order your editing who's reward history entry i pushed up, i went and edited order 100000040 but 100000042 was pushed up

NOTE: i should also point out that the orders are not storing the same transaction id at this time as i am waiting on sample xml to compare to the request/response xml from the payment gateway, so there is no way that an order once process is tied to another order in any way

The following code is taken from Enterprise_Reward_Model_Action_OrderExtra::getPoints, it is places between $pointsDelta = $this->getReward()->getRateToPoints()->calculateToPoints((float)$monetaryAmount); and return $pointsDelta;

$editOrder = Mage::getModel('core/session')->getData('editorder');

    if(!is_null($editOrder))
    {
        $readConnection = Mage::getSingleton('core/resource')->getConnection('core_read');
        $result = $readConnection->fetchAll("
                SELECT sfo.entity_id FROM sales_flat_order AS sfo
                    WHERE sfo.increment_id = ?
                LIMIT 1
            ",$editOrder['original_order']);
        $order = Mage::getModel('sales/order')->load($result[0]['entity_id']);
        $orderData = $order->getData();
        $previousOrderMonetaryAmount = (($orderData['base_grand_total'] - $orderData['base_shipping_amount']) - $orderData['base_tax_amount']);

        $pointsDelta = $pointsDelta - $this->getReward()->getRateToPoints()->calculateToPoints((float)$previousOrderMonetaryAmount);
    }

above is a snapshot of what's happening, the top shows what the reward history was before en order was edited and processed, the bottom is what happens after (for #100000049 nothing happened so i had to do it again yo get the glitch showing up)

the items in #100000044 are completely different to order #100000048, order #100000046 is missing cause when the points delta is 0 (meaning no points will be added/subtracted) it doesn't show (which is good)

all the order with a negative values are processed edited orders of those which had positive values but had some items removed during the edit reducing the cart total (in the gateway, this would then refund the customer so it makes sense that they should not be allowed to have the points that they was refunded for)


texts: Magento redirecting to the installation page

texts:
I  made a backup of the website and after some time  Whenever  I try to view the site through my browser it redirects to the magento install page. It was working fine previously  and suddenly this happen.
I checked the solution regarding to it on stack exchange  and found that i dont have app directory in root folder to modify any file . Please help me to fix this problem.


texts: Magento 2 I have added the custom field in the product attributes field but that not get save value at edit time in product attributes form

texts:
I have add the custom text field at the stores->attributes>product  in form  field that save into database but when i return edit that attributes that value not set at the edit times.

Here is the Image of the my custom field.


texts: Generating a category that only contains new products

texts:
We want to make a category that contains only NEW products. Products should be handled as new as long as the creating date isn't older then 2 weeks.

How can we achieve this? Magento seems not to have any functionality that does so.


texts: Access denied when trying to connect to database

texts:
I am getting an access denied error when trying to connect:

a:4:{i:0;s:92:"SQLSTATE[28000] [1045] Access denied for user 'root'@'192.168.100.102' (using password: YES)";i:1;s:2549:"#0 /mnt/host-home/websites/website.co.uk/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()

The MySQL server is on a VirtualBox and I can connect to it using Sequel Pro and also connect while in a shell on the VirtualBox using the exact same details that I have in local.xml.

Can anyone suggest any reasons why the Magento installation is being denied?

Thanks


texts: cloned my website to upgrade now original website is broken

texts:
I wanted to upgrade magento but i didn't want it to disturb my website so i made a clone of my website in cpannel, and ran the upgrade on that which seemed to work perfectly.

standard website: www.mydomain.com
clone site: www.mydomain.com/ecommerce

However when i go back to my old website (www.mydomain.com) the home page will load but every time i go to click a link it say:

404 Not found The resource requested could not be found on this server!

for example it will try to go to a link www.mydomain.com/shoes but this doesnt work, however www.mydomain.com/ecommerce/shoes does work. Does anybody know why this is?


texts: Add custom category attribute in flat tables

texts:
There is an custom category attribute with code "filter_param".
I want to use this attribute while preparing the top navigation menu and the flat tables are enabled.
I want to access this attribute in the function _addCategoriesToMenu in class Mage_Catalog_Model_Observer.
How can I do so without loading the category.


texts: Magento 2 Category custom Image information is missing

texts:
We are facing issues in my custom category image attribute.
When I upload images it will show image detail proper but after save image information like dimensions ex. 100x100 and size ex. 12 KB is missing and shown x NaN undefined

We use https://github.com/studioraz/magento2-category-image.
Magento version is 2.3.4


texts: Custom web accessible php script and file permission

texts:
I am selling extension that has custom php script (ajaxrequest.php). This script needs to be web accessible. I tried to put it into Magento root folder.

The problem is that on some hostings the file won't get proper file permission when extension is uploaded with Magento Connect Manager. For example if I install extension on Hostgator server, it will show 500 Internal Server error and only Hostgator team can change it. Is there any solution for this?


texts: In Magento 2 is there a way to disable a third party module if the user is not logged in?

texts:
Scenario is Magento 2.3.3.
I have a module that, in the product page, shows a table of colors and sizes available for the product.
I would like to disable this module if the user is not logged in.
I googled it but I cannot find anything.
I'm very new to Magento2 and I need maybe just a hint that points me in the right direction to search for.
Thanks a lot


texts: Magento2: How to get registered online customer only?

texts:
customer_list.phtml

$om = \Magento\Framework\App\ObjectManager::getInstance();
$customerSession = $om->create('Magento\Customer\Model\ResourceModel\Online\Grid\Collection');
$customerData = $customerSession->getData();
echo "<pre/>";
print_r($customerData);
exit;

Result

Expected result

I want to show registered online customer only.


texts: How to get selected simple product Id on checkout_card_add_after observer in magento2?

texts: I want to get selected associated product information from configurable product after an checkout_cart_add_after triggered. I'll look after it in mean time,if any helps would be appreciable.


texts: Unique constraint violation found after upgrading to Magento 2.3.3

texts:
I just recently upgraded from Magento 2.3 to Magento 2.3.3 and whenever I'm trying to run php bin/magento setup:upgrade SSH command it just stick on Unique constraint violation found. Any idea how do I fix this ?

Error after running the php bin/magento setup:db-data:upgrade SSH command:

    In AbstractDb.php line 427:

  Unique constraint violation found

In Mysql.php line 593:

  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '
  order-0' for key 'SALES_SEQUENCE_META_ENTITY_TYPE_STORE_ID', query was:
   INSERT INTO `mg_sales_sequence_meta` (`entity_type`, `store_id`, `sequ
  ence_table`) VALUES (?, ?, ?)

In Mysql.php line 110:

  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '
  order-0' for key 'SALES_SEQUENCE_META_ENTITY_TYPE_STORE_ID', query was:
   INSERT INTO `mg_sales_sequence_meta` (`entity_type`, `store_id`, `sequ
  ence_table`) VALUES (?, ?, ?)

In Mysql.php line 91:

  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '
  order-0' for key 'SALES_SEQUENCE_META_ENTITY_TYPE_STORE_ID'

setup:db-data:upgrade [--magento-init-params MAGENTO-INIT-PARAMS]


texts: Javascript - Read script js only if radio is checked

texts:
i'm stuck in a problem with a script js. This is the condition:

var stampProd = "?php $stampProd = '10001'; ?";

function valiAnswPos(){

                if (document.getElementById("positive").checked = true)
    {
    document.getElementById('add-to-cart-stamp').innerHTML = stampProd;
    }

The problem is that when i reload the page and this code is read immediately and i would like that php code was shown and read by only when i checked on radio button. Because when i reload the same page and go to options of my browser -> code html i read all code of script js and in this case i would that this script is read only i checked radio button.

This is possibile with called asynchronous or an if with PHP?

Thanks for any help.


texts: How Magento2 creates object of factory classes

texts:
I would like to know how magento is using factory class to create an object i.e, when we use $classFactory->create() function then it return object of the class.

How from which set of code does this whole process is taking place.


texts:
I am working on buy now pay later payment method. In this payment method first we need to checkout order on payment gateway. This checkout API will give us token an payment URL. By using payment URL customer can authorize/capture order. When customer confirms order then payment gateway redirect success URL. In success URL I have captured payment and generated invoice.
So payment method system confirmation field "payment_action" default values "authorize" and "authorize_capture" not matching with my logic. But if I use <payment_action>authorize</payment_action> then this will authorize order and add same comment in the order which is not required.
Can we remove payment method system configuration field "payment_action"? Or is there any other alternatives?
Thank You!


texts: What is the correct way/approach to modify a Magento template?

texts:
Please suggest me the right approach, I want to customize the "EMAIL to Friend" page into pop up window, when user click on the button (email this product). By enabling template hinting, I found out that the button is rendered with

  frontend/rwd/default/template/catalog/product/view/sharing.phtml

And the corresponding layout file is catalog.xml (in frontend/rwd/default/layout)

So I created a local.xml in the same folder where catalog.xml exist with the following code (just that I have given test.phtml instead of sharing.phtml, just to 'Debug')

<?xml version="1.0"?>
<layout version="0.1.0">
    <default>

        <catalog-product-view>
            <reference name="content">
                <block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
                    <block type="catalog/product_view" name="product.info.sharing" as="sharing" template="catalog/product/view/test.phtml"/>
                </block>
            </reference>
        </catalog-product-view>

    </default>
</layout>

But nothing happens, I mean how I can change (overwrite) the default design of theme, without modifying existing xml and phtml files?


texts: Magento 2.2.6 -- How to get gift message on Packing List?

texts:
I am aiming to plug the customer's gift message onto the packing slip in place of where it shows the payment method.

I've been spinning my wheels for a while now trying to get this to work. As far as which files to edit and how to format the message I'm fine. However, trying to access the GiftMessage data from within the AbstractPdf class has been futile.

Files of interest:
magento/module-sales/Model/Order/Pdf/AbstractPdf.php (This is where I want to pull in the Gift Message data)
magento/module-sales/Model/Order/Pdf/Shipment.php

What I've tried:
I've tried adding to the constructor the GiftMessage\MessageFactory class, but it doesn't work and I don't know why. I just get a HTTP Error 500 when trying to print the packing slip and it puts nothing in the log files.

    public function __construct(
    \Magento\GiftMessage\Model\MessageFactory $giftMessage,
    \Magento\Payment\Helper\Data $paymentData,
    \Magento\Framework\Stdlib\StringUtils $string,
    \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
    \Magento\Framework\Filesystem $filesystem,
    Config $pdfConfig,
    \Magento\Sales\Model\Order\Pdf\Total\Factory $pdfTotalFactory,
    \Magento\Sales\Model\Order\Pdf\ItemsFactory $pdfItemsFactory,
    \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,
    \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation,
    \Magento\Sales\Model\Order\Address\Renderer $addressRenderer,
    array $data = []
) {
    $this->giftMessage = $giftMessage;
    $this->addressRenderer = $addressRenderer;
    $this->_paymentData = $paymentData;
    $this->_localeDate = $localeDate;
    $this->string = $string;
    $this->_scopeConfig = $scopeConfig;
    $this->_mediaDirectory = $filesystem->getDirectoryWrite(DirectoryList::MEDIA);
    $this->_rootDirectory = $filesystem->getDirectoryRead(DirectoryList::ROOT);
    $this->_pdfConfig = $pdfConfig;
    $this->_pdfTotalFactory = $pdfTotalFactory;
    $this->_pdfItemsFactory = $pdfItemsFactory;
    $this->inlineTranslation = $inlineTranslation;
    parent::__construct($data);
}

One file I found in the Gift Message module is OrderGet.php. This file seems to have a function that lets you grab a message using an order as a parameter. Is it possible to easily make use of this class?


texts:
I have created a Newsletter template and place that in newsletter queue. But i couldn't receive any mail.

Can anyone help me to sort out the problem.
My cron.php looks like this

require 'app/Mage.php';

if (!Mage::isInstalled()) {
    echo "Application is not installed yet, please complete install wizard first.";
    exit;
}

// Only for urls
// Don't remove this
$_SERVER['SCRIPT_NAME'] = str_replace(basename(__FILE__), 'index.php', $_SERVER['SCRIPT_NAME']);
$_SERVER['SCRIPT_FILENAME'] = str_replace(basename(__FILE__), 'index.php', $_SERVER['SCRIPT_FILENAME']);

Mage::app('admin')->setUseSessionInUrl(false);

umask(0);

try {
    Mage::getConfig()->init()->loadEventObservers('crontab');
    Mage::app()->addEventArea('crontab');
    Mage::dispatchEvent('default');
} catch (Exception $e) {
    Mage::printException($e);
}


texts:
After upgrade to Magento 2.3.5, When trying to delete products from the catalog, we receive an error. This occurs on various types of products, from virtual products, simple products, configurable products, with no relation to other products or even any data in the product itself. This is on a relatively new installation of 2.3.5.
Here's the error message we get on the front end:
main.ERROR: The "EM0EM00284-100" product couldn't be removed. [] []


texts: Recently Viewed products issue in Magento V2.1.3

texts:
Today I configured the Recently Viewed products in my local website, It is showing When Customer Login in front store otherwise it's not showing.

Is it Customer Session based or It will shown every Customer (Guest, General..etc)?

I want to show Recently Viewed products to everyone how can I configure this?

Any help?


texts: Two Merchant Accounts Integration for Paypal

texts:
I want to integrate  Paypal's two Merchant Accounts based on some conditions. I have already gone through https://stackoverflow.com/questions/5220744/creating-two-business-account-in-paypal-standard, but where I am not getting data what I would like to have like API Integration Settings so that I can override/change API value based on condition. I have found the following function where I can change API Values.

    //class: Mage_Paypal_Model_Config

public function __get($key)
        {
            $underscored = strtolower(preg_replace('/(.)([A-Z])/', "$1_$2", $key));
            $value = Mage::getStoreConfig($this->_getSpecificConfigPath($underscored), $this->_storeId);
            $value = $this->_prepareValue($underscored, $value);
            $this->$key = $value;
            $this->$underscored = $value;
            echo $value."<br />";
            return $value;
        }

Question: Is it the right way to change these settings or is there a better way to change these settings?

I want to change the following settings:

Merchant Country
Email Associated with PayPal Merchant Account
API/Integration Settings

PS. There is only one store


texts:
in our magento 2 store is see when new orders come in they are not timestamped correcty in the sales pages.

They are all rounded of to hour:08:00 and do not show the real time when the order was placed.

But when i go to the order it self it shows the correct time.
is this a magento bug?

Sales page timestamp


texts: what is equivalent of catalog_category_entity_url_key in magento2?

texts: I am trying to find category url keys and I have catalog_category_entity_url_key in magento1, but I do not have it in magento2. how can I find the values?


texts:
I want to get increment id whenever filter is applied to the sales order grid.And When filter is cleared i need to revert the changes.

This is what i have done  so far:

$collection = $this->getCollection();
foreach ($collection as $item) {
    if (check whether filter is applied) {
        echo $item->getData('increment_id');
    }
}

How do i detect whether the filter is applied or not??


texts: Magento 2 - Get checked checkbox values from grid on button click

texts:
I have created a grid & have replaced "Add New" button action as below

    <?php
    namespace Company\Module\Block\Adminhtml;

    class Listproduct extends \Magento\Backend\Block\Widget\Grid\Container
    {
        public function __construct(
            \Magento\Backend\Block\Widget\Context $context,
            array $data = []
        ) {
            parent::__construct($context, $data);
        }

       protected function _construct()
        {
            $urlData = $this->getRequest()->getParams();

            parent::_construct();
            $this->_controller = 'adminhtml_listproduct';
            $this->_blockGroup = 'Company_Module';
            $this->_headerText = __('Manage products');
            $this->_addButtonLabel = __('Save');
            $this->removeButton('add');
        }

        protected function _prepareLayout()
        {
            $this->buttonList->add(
                    'nameofbutton',
                    [
                        'label' => __('Add Selected Products'),
                        'onclick' => 'setLocation(\'' . $this->getUrl('*/listproduct/massaddproducts') . '\')',
                        'class' => 'add primary'
                    ],
                    0
            );
            return parent::_prepareLayout();
        }
    }

This is my grid.

My prepareColumn function from grid.php is

protected function _prepareColumns()
    {
        $this->addColumn(
            'id',
            [
                'header_css_class' => 'a-center',
                'type' => 'checkbox',
                'name' => 'id',
                'values' => $this->_getSelectedProducts(),
                'align' => 'center',
                'index' => 'entity_id',
                'use_index' => true
            ]
        );

        $this->addColumn(
            'entity_id',
            [
                'header' => __('entity_id'),
                'type' => 'number',
                'index' => 'entity_id',
                'header_css_class' => 'col-id',
                'column_css_class' => 'col-id'
            ]
        );
        $this->addColumn(
            'sku',
            [
                'header' => __('sku'),
                'index' => 'sku',
                'class' => 'sku'
            ]
        );

        $this->addColumn(
            'name',
            [
                'header' => __('name'),
                'index' => 'name',
                'class' => 'name'
            ]
        );

        $block = $this->getLayout()->getBlock('grid.bottom.links');
        if ($block) {
            $this->setChild('grid.bottom.links', $block);
        }

        return parent::_prepareColumns();
    }

    protected function _getSelectedProducts()
    {
        return $this->getRequest()->getPost('selected', []);
    }

Controller is:-

    <?php
    namespace Company\Module\Controller\Adminhtml\Listproduct;

    class Massaddproducts extends \Magento\Backend\App\Action
    {
       protected $_productloader;

       public function __construct(
            \Magento\Backend\App\Action\Context $context,
            \Magento\Catalog\Model\ProductFactory $_productloader
        ) {
            parent::__construct($context);
            $this->_productloader       = $_productloader;
        }

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

            //$data = $this->getRequest()->getPost();
            $data = $this->getRequest()->getParams();

            echo '<pre>'; print_r($data); echo '</pre>'; exit;

        }
    }

I just want checked checkbox values on button click of "Add selected products"


texts: How to get collection object from custom query result in pagination

texts:
I have created a custom table in my magento store and wants to show its data on frontend.

For this I have created a block file in my custom module like :

class Custom_Module_Block_Pagination extends Mage_Core_Block_Template
{

    public function __construct()
    {
        parent::__construct();
        $customer = Mage::getSingleton('customer/session')->getCustomer();
        $readConnection = Mage::getSingleton('core/resource')->getConnection('core_read');
        $rows = $readConnection->fetchAll('Select * from customer_table where c_id = '.$customer->getId().'');

        $collection = new Varien_Data_Collection();
        foreach($rows as $row){
            $rowObj = new Varien_Object();
            $rowObj->setData($row);
            $collection->addItem($rowObj);
        }
        $this->setCollection($collection);

        /* // this collection works perfect with pagination
        $collection = Mage::getModel('customer/customer')->getCollection()->addAttributeToSelect('*');
        $this->setCollection($collection);
        */
    }

     protected function _prepareLayout()
    {
        parent::_prepareLayout();
        $pager = $this->getLayout()->createBlock('page/html_pager', 'custom.pager');
        $pager->setAvailableLimit(array(10=>10,20=>20));
        $pager->setCollection($this->getCollection());
        $this->setChild('pager', $pager);
        $this->getCollection()->load();
        return $this;
    }

    public function getToolbarHtml()
    {
        return $this->getChildHtml('pager');
    }
}

On frontend the collection not working with pagination.

For example : the collection return 43 rows and pagination showing number of 5 pages in toolbar with Row per page is 10  but collection showing all 43 rows on all pages. but it should showing only 10 rows on all pages.

Why this is happened? How to resolve this?

EDIT :
My template file :

$collection = $this->getCollection();
echo $this->getToolbarHtml();
foreach($collection as $row)
{
    // here tables's tbody
}


texts: How to execute function before page rendering?

texts:
I´m looking to program a module that will cache each page as HTML depending on the user status (logged in or not logged in).

If the user is not logged in the page must be cached as a HTML file (if not already cached), and if the page is already cached the cached HTML must be loaded as output instead of framework rendering the output (and this is where I need to know how and where to implement my functions)

To get started I need to know how I can hook into the Magento framework before pages are being rendered.
I have tried to dust up information about this, and it seems the answer could lie in the dispatch event "controller_front_init_before"

Does anyone know if "controller_front_init_before" is indeed the event I should use for my module?


texts: Magento 2: Validate User using custom session

texts:
I'm developing custom login for the users which has no relation with the customer or customer session of Magento 2.
I have created a separate table to store the details of the user and created a login page for the frontend. I'm storing user passwords with md5 encryption in the database.
I'm going to use the custom session for login. But not getting many details How to validate it with the custom session.
Can anyone give me a hint or suggest a code snippet regarding this?


texts: What's the "DS" and its detailed explanation in Magento?

texts:
In our site shell directory file, I found one line of code like below:

fopen(Mage::getBaseDir().DS.'sitemap'.DS.'sitemap_new.xml','w+');

I guess the 'DS" is meaning a 'slash', but I can't search its specific source and detailed explanation. Could anybody give some information?


texts: Magento 2 trigger price change using Knockout JS in "Edit / Create Configurations"

texts:
How we can trigger the "price change" using Knockout JS in "Edit / Create Configurations" under the product creation module ?

I can see that the values are coming from the "dynamic-rows-configurable.js" and "ConfigurablePanel.php"


texts: Magento 2 send e-mail (order) notification to customer without cron

texts:
I need to limit some of the magento 2 cron job, one of them is send an email to customer:

can i make this cron job not running on cron?


texts: M2 – Mixed up languages in production mode

texts:
Site is a clean Magento 2.1.5 install. It’s a multistore setup with 4 languages: Dutch, French, German and English. Products are imported via csv. All working smoothly. Running my site in developer mode works fine. All sites have their own language without problems. The problem starts with going to production mode.

Running de command: php bin/magento deploy:mode:set production also goes smoothly without errors. After the command everything is compiled and  deployed, website is running fast and without problems, or not?

During compilation all carts and checkout pages are in German and not anymore in their own Dutch, French and Englisch language. Deploy language in developer mode works without problem, swithing to production mode, they are messed up.

All other pages and content stay in their own language except cart and checkout.

Is there a solution to overcome this?


texts: Get the available (and Working) Shipping Methods for a quote

texts:
I'm working on a mobile application, that is creating an order on Magento programmatically through a custom REST implementation, and everything is working fine, except one thing that i can't find any documentation on: How to set the shipping method for the quote that complies with the available shipping method rules.

So for example, from the Magento backend there are 3 shipping methods enabled:

Free - Only when cart amount is above 80 USD
Fixed Rate - Only if Customer is ordering from USA
Tablerate - If the customer is ordering from outside the USA.

What I was doing was as follows (assuming $quote has the quote built up and the products added to it):

$shippingAddress = $quote->getShippingAddress()->addData($shipping_address);

$methods = Mage::getSingleton('shipping/config')->getActiveCarriers();
foreach($methods as $_code => $_method){
    // Get the first allowed method of this shipping carrier
    $m = key($_method->getAllowedMethods());
    $shipping_method = $_code . '_' . $m;
    break;
}

$quote->collectTotals();
$shippingAddress->setWeight( $weights )
                ->setFreeMethodWeight( $weights )
                ->setShippingMethod( $shipping_method );

Which is kinda retarded, I'm simply getting all ActiveCarriers, and assigning the first one to the quote, which can work in simple scenarios. However, in this example, the first Active Carrier won't work, because i'm not validating the country rules or free shipping rules. So my question is, how can I get the best (and valid) shipping methods for this quote. Is there any built-in function or helper method that I can use?

I'm assuming that I don't want to give the option to the customer to select the shipping method. I want to just assign the complying shipping method to the quote.


texts: get magento customer group id and magento group name from admin side

texts:
I need a script to show from admin side and export in XML Customer Group ID and Group Name.

This is the code to show Customer Group ID on front-end. But this is not working in back-end:

$groupId = Mage::getSingleton('customer/session')->getCustomerGroupId();


texts: How to show Specific categories in magento in homepage

texts:
Like I have different categories , I want to show different specific categories in homepage.I want to show specific categories like

{{block type="catalog/navigation" name="catalog.category" category_id="4" template="catalog/category/list-homepage.phtml"}}

I google a lot but not found the exact solution.Please help me.Thanks in advance


texts: New products widget not sorting by creation date

texts:
I'm using the following code in my magento store to have a few new products on the main page of the store.

{{widget type="catalog/product_widget_new" display_type="all_products" products_count="6"
  column_count="6" cache_lifetime="1" template="catalog/product/widget/new/content/new_grid.phtml"}}

The annoying part is that I have 3 "magical" products (old as hell) stuck in this widget. No matter what, they continue to be there. This widget is for new products, so it should show only the most recent products added to the store, right?


texts: Export Magento 2 configurations from local Dev to Staging server

texts:
I installed Magento 2 locally using composer on MAMP. I developed my custom theme and configured the shop in Magento admin. How do I transfer all my configurations to the Staging server?

In Drupal 8 you have Configuration Management. Regarding Magento 2, what are best practices, transferring my configurations from local Dev to Staging server?


texts: Configurable Product - Get image ID from simple product

texts:
I have a problem regarding the productimages/image gallery in a product that is configurable.

Question

Is there a way to get a ID of the Simple Products Image and link it to open the right image in the gallery?

User case

When one click a certain color variation the respective simple product image is shown, eg. from orange to purple.

If one then click/trigger the gallery by pressing the "purple"  product image, the gallery list - .more-views -  does not show the purple, but the original "first image orange" in the gallery.

Data dumping

I have logged the $_product->getData() to see if there is any way to dig out a "Image ID" of the associated product without any luck.


texts: Magento 2 : "Please Wait" Spinner Shows up Between EVERY Field While New Order in Admin

texts:
I enter new order in my admin, as I move from field to field (say, customer first name to customer last name) little 'please wait' spinner appears for a second or 2.  This slows order creation process as we have to wait between EVERY field when entering new order.

How can I make this stop?  Is it trying to check shipping rates between every field or something?


texts: Conditionally Add Tab to Product Page (from Attribute)

texts:
I've seen great examples all over the web of how to add custom tabs to product details, and I've successfully added tabs to my products. But any thoughts on how to only add a tab if a corresponding attribute exists for that particular product?

Thanks!


texts: Hide Attribute in product view page if value of attribute = "abc"

texts:
visit link , search for word " abc" using CTRL + F,

you can see attributes : "Brand" & " charactar"

we gave attribute values as "abc" for lot of attributes.

we want to hide the attribute in product view page if the value ="abc"

we are using following code displaying attributes in product view page :

app/design/frontend/default/em0113/template/catalog/product/view/attributes.phtml

<?php
    $_helper = $this->helper('catalog/output');
    $_product = $this->getProduct()
?>
<?php if($_additional = $this->getAdditionalData()): ?>

<?php $Pro_name =$_product->getName();?>

<?php echo $this->__('Specifications Of '."$Pro_name") ?>

        <col width="25%" />
        <col />

        <?php foreach ($_additional as $_data): ?>

        <?php $_attribute = $_product->getResource()->getAttribute($_data['code']);
       if (!is_null($_product->getData($_attribute->getAttributeCode())) && (trim((string)$_attribute->getFrontend()->getValue($_product)) != '')) { ?>
        <?php if ($_data['code'] == 'gendernew'): ?>

<?php echo $this->__('') ?>

         GENERAL
        <?php elseif ($_data['code'] == 'productweight'): ?>

Product Dimension
<?php echo $this->__('PRODUCT DIMENSION') ?>

        <?php endif; ?>

                <?php echo $this->escapeHtml($this->__($_data['label'])) ?>
                <?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?>

            <?php } ?>
        <?php endforeach; ?>

<?php endif;?>

<?php

$attribute_value = 'xyz ';
if (strlen($attribute_value) > 0)
{
   // code to display the value
}

?>


texts: custom manage products admin panel shipping weights

texts: Does anyone know how I can add a weight column to the Catalog, Manage Products, Admin Panel? ID, NAME, TYPE-ATTRIB. SET NAME, SKU, PRICE, QTY, VISIBILITY, STATUS, WEIGHT


texts: Errors in the importing products process

texts:
Sorry to bother you, but I didn't find any information on this.

I have Magento installed on a server and I'm having problems with the importing process for all products.

I followed the importing process, and used the exported CSV file from Magento and completed it with my product info. But when I imported the file I got errors saying that there is a problem with the type column.

I am using Magento as a cross-platform connection between a big online shop and our fulfillment system so I don't need all the attributes that the database has.

My question: Do I have to complete each and every column from the table or do I let the unused columns empty ?

Thank you


texts: Magento 2.3: temando.CRITICAL: "accountID" is required. Enter and try again

texts:
I update Magento 2.2.6 to 2.3.1 and I have this error in which I didn't find any information :

  temando.CRITICAL: "accountId" is required. Enter and try again.
  {"exeption": "[object]
  (Magento\Framework\Exception\InputException(code: 0): \"accountId\"
  is required. Enter and try again. at
  /var/www/site/magento/vendor/magento/framework/Exception/InputException.php:91"}[]

I have already tried :

-composer.phar update (in magento root)
-remove -rf var/* generated/* cache/*
-php bin/magento setup:upgrade
-php bin/magento setup:static-content:deploy -f
-php bin/magento setup:di:compile
-sudo -R chmod 777 (in magento root for localhost)

I didn't find anything about this mistake, do someone had the same and solved it ?
Thank you in advance.

PS: in Case of minus please let me know why so that I could improve my post.


texts: Magento 2.3.1 - Checkout dropdown cart image aspect ratio is incorrect

texts:
Adding a product where it's image is wide (landscape), gets squeezed into a portrait sized place holder.

As below.

How can I get the image to fit into the cart image placeholder and maintain its aspect ratio?


texts:
I have to use ReactJS as a frontend for Magento 2. Below is one of the github repo I looked after to integrate but it seems it's not that efficient, even not working in my case.

Check GitHub Repo

I've also looked at PWA for Magento 2 but not sure how it will work.

What I was actually thinking of as a solution is that something like having a separate frontend developed in ReactJS and data could be fetched using Magento 2's REST APIs. Similar approach I've used in a recent BigCommerce project and it's working as per expectation however further performance testing is in progress.

Kindly suggest if using the above mentioned approach for Magento 2, is a good idea considering all the below factors:

Version Upgrade
Scalability
Performance
Security
Resource Utilization
Re-usability

If you have any different thoughts, please feel free to discuss.


texts: Where can I find invoice templates Magento 1.9.3

texts:
I'm having trouble finding the right .phtml files that make the invoice layout and design. I can change the upper part of the invoice from system->transactional emails, but the lower part with all the variables etc. I want to change the payment and shipping part of the invoice and also move around the layout a little bit.

Thanks in advance for any help!


texts: magento 2 how to edit custom header in site which path i can edit

texts:
here is the code for custom header

This is demo store. No orders will be fulfilled.

i also tried in app/design but not found

which path to edit this content or any other way to edit this(RED color border content)


texts: Magento2.3: How do I call subtotal for creating condition for different stores in Cart?

texts:
How do I call the subtotal for different products in different stores in block .php or view .phtml files?

I set the price of the products manually for different stores.

I want to write a condition to show/not show something in the shopping cart page.

Example:

For subtotal greater than USD30, something will show in US store cart page.
For subtotal greater than HK$300, something will show in HongKong Store cart page.
For subtotal greater than EUR30, something will show in Europe store cart page.


texts:
I am getting a strange error after upgrading my Magento webserver. After clicking Add to Cart I get the Error

parse error: syntax error, unexpected ‘else’ (T_ELSE)

I have upgraded to PHP 5.6.20 from 5.4 and I am using the default php.ini.


texts: shopping cart item price turns zero when "checkout/cart/" page is viewed in magento1.9

texts:
The price in the shopping cart turns zero when "checkout/cart/" page is viewed. It worked fine before. This issue occurs suddenly without any change/update.

It showing the correct price in product list and minicart, it turns zero only when "checkout/cart/", "Login"  is clicked.

The $_item->getCalculationPrice() in "checkout/cart/item/default.phtml" file generates zero value.

I m totally blank and don't know where to trace.

Please help me to trace and fix this issue..

Thank you


texts: Magento 2: How to disable salable Quantity

texts:
In magento 2.3.4 I see new option "salable Quantity".
We have most issues with this option and we need permanentny disable this from our store.
I checked some solutions and I think about this:
https://www.mexbs.com/magento-blog/disabling-the-magento-msi/
can anyone confirm that this solution is 100% tested and will only disable "salable Quantity" and the other options will work properly?


texts:
i need configuration my tax .

I need this:

Product Price (without TAX) = 322,63 PLN
Final Product Price = 322,63 PLN + 23% VAT = 419 PLN

How should I configuration my tax in M2 configuration panel ?


texts:
when i want add more than 36 character I get below error on add attribute, default label section:

  Attribute code "attr_______________________________" is invalid.
  Please use only letters (a-z), numbers (0-9) or underscore(_) in this
  field, first character should be a letter.


texts:
I want to get primary key of a table in grid.php in my module.

$string_clik="'".str_replace("index.php/",'',Mage::getUrl()).'wedding_planner_invoice.php?&w_id='. $howToGetID."'";

How to get Id in grid?

protected function _prepareColumns()
        {
                $this->addColumn("wedding_planner_id", array(
                "header" => Mage::helper("planner")->__("ID"),
                "align" =>"right",
                "width" => "50px",
                "type" => "number",
                "index" => "wedding_planner_id",
                ));

                $this->addColumn("customer_name", array(
                "header" => Mage::helper("planner")->__("Name"),
                "index" => "customer_name",
                ));

                $this->addColumn("customer_email", array(
                "header" => Mage::helper("planner")->__("Email Address"),
                "index" => "customer_email",
                ));
                $this->addColumn('planner_date', array(
                        'header'    => Mage::helper('planner')->__('Order Date'),
                        'index'     => 'planner_date',
                        'type'      => 'datetime',
                    ));

                $string_clik="'".str_replace("index.php/",'',Mage::getUrl()).'wedding_planner_invoice.php?&w_id='. $this->wedding_planner_id."'";

                $this->addColumn('action',
                array(
                    'header'    => Mage::helper('planner')->__('Action'),
                    'width'     => '130px',
                    'type'      => 'action',
                    'getter'     => 'getId',
                    'actions'   => array(
                        array(
                            'caption' => Mage::helper('planner')->__('Generate Invoice'),
                            'url'     => 'javascript:void(0)',
                            'field'   => 'wedding_planner_id',
                            'onclick' => 'fnopenWindow('.$string_clik.')'
                        )
                    ),

                    'filter'    => false,
                    'sortable'  => false,
                    'index'     => 'stores',
                    'is_system' => true,
            ));
            $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
            $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));

                return parent::_prepareColumns();
        }


texts:
Issue: Magento 2.3 Fresh install Web setup fails the following

PHP Settings Check *
PHP Extensions Check
Check Cron Scripts

How to reproduce
Install new blank default install of magento 2.3 setup passes the readiness check.
From admin go to system -> web setup wizard. Click on extensions, select anything to install. it takes you to the readiness check window and fails the above.

I have been stuck on this for three weeks. I just dont get it. It passes for the install but then failed when trying to install an extension.

I put a phpinfo file in both the root and the setup folder both are exactly the same.

Any help would be very much appreciated. I did not have this problem with the 2.2x version.

php version 7.1.25


texts: Dynamically updating the sku on the product page of a configurable product based on selected options

texts:
I've successfully got the attributes to update dynamically for the SKU on the product page based on the simple product selected (through help found on the web).

I'm now trying to apply this logic to selected custom options for both configurable and simple products.

I've found this code here: Update product sku with customs options skus on product pages and cart

I've tried to apply it in an install version 1.9.2.2 and cannot make it retrieve the option SKU text in certain situations (if the select is not a drop down, but instead a radio choice or checkbox).

The current code in use at the end of the file:

  app/design/frontend/{template}/default/template/catalog/product/view/options.phtml

</script>

<?php $options_to_sku = array();?>
<?php foreach($_options as $_option): ?>
    <?php echo $this->getOptionHtml($_option) ?>
    <?php if ($_option->getType() == 'drop_down') {
        $options_to_sku["{$_option->getId()}"] = array();
        foreach ($_option->getValues() as $k => $v) {
            $options_to_sku["{$_option->getId()}"]["{$v->getData('option_type_id')}"] = $v->getData('sku');
        }
    }?>
    <?php endforeach; ?>

<?php endif; ?>

I'm calling the SKU suffix into the product page using this, the page is

  app/design/frontend/{template}/default/template/catalog/product/view.phtml

I can confirm that the observe function is working correctly on the checkbox and radio options as onchange the TestText is appearing on the page. I've also tried using or and || to retrieve data if the type is radio without luck.

$_option->getType() == 'radio'

But could not get it to work, have also tried:

Mage_Catalog_Model_Product_Option::OPTION_TYPE_RADIO

Have kind of hit a wall at this point, can someone please advise how to also apply this code to radio and checkboxes in addition to the select drop_down above?

EDIT:

I'm now using this code to retrieve all option SKU values into the array, the drop_down is updating the SKU still after adding this:

if ($_option->getType() == 'drop_down' || $_option->getType() == 'checkbox' || $_option->getType() == 'radio')

I've confirmed that the values are in the array by using:

<?php print_r($options_to_sku); ?>

The remaining challenge is how to observe/check that the radio or checkbox is actually checked to then append the SKU value.


texts: choose order state and status - Magento 2

texts:
1) I am looking to achieve below status flow.

status flow: Approval -> Processing -> Shipping -> Delivered

I could refer this link for understand about order state and status but still it is confusing me while choose state and status.

Short Description of What I have done:

create status of APPROVAL, PROCESSING, SHIPPING, DELIVERED (note: it is a status not a state)
When I assigned to state, that drop down contain status list also.

I am so much confused about how to utilize order state and status

please give some clarity about how to make proper state and status of above status flow.

2) I have one more doubt suppose if I use wrong combination of state and status, it will affect anything in background?