texts: magento 2 Error: cannot call methods on priceBox prior to initialization; attempted to call method 'option'

texts:
I am having an issue on my website

  the issue

Error: cannot call methods on priceBox prior to initialization;
attempted to call method 'option'

  My website
  https://www.cartaroo.com.cy/?SID=5fe6b01812786b8145c48eaa0fde65ad

  When I click on homepage product icon a view popup and due to js issue
  it won't allow me to select drop down. screenshot
  http://prntscr.com/h33mg9

  Please help


texts: Youtube video still playing after modal is closed--and I've tried every fix known to man with no luck!

texts:
I'm having an issue with Youtube continuing to play after closing a modal. I know this is not a unique problem and I have done exhaustive research to find answers. Unfortunately nothing has worked. I have tried it all!

Here is what I currently have:

   X

Any thoughts? At this point I am desperate and frustrated. Thank you in advance!


texts: After setting Custom Block from controller the Content output comes above Header

texts:
public function ShowproductAction()
    {

        $product_result = Mage::getModel('helpmebuy/helpmebuyoptions')->getproduct();
        $allproduct_result = Mage::getModel('helpmebuy/helpmebuyoptions')->getallproduct();
        $session = Mage::getSingleton('core/session');
        $session->setData('mproduct', $product_result);
        $session->setData('rproduct', $allproduct_result);
        $block = $this->getLayout()->createBlock('core/template');
        $block->setTemplate('helpmebuy/finalpage.phtml');

        echo $block->toHtml();
        $this->IndexAction();

}

I am using above code to set template form controller action, but the output comes before the header . How do i fix this

My second concern is how do i pass these data to that template rather than setting them in session ?


texts:
Does magento 2 data migration tool migrate disabled products from Magento 1 database?

I know all the products data is migrated from Magento 1 database to Magento 2 database.

I just want to know it will also migrate the disabled products from Magento 1?


texts: Call magento image section in my custom phtml

texts:
I am using Magento 1.9.3.6 version.

I want to get and show the Product Image section as like Product Detail Page in my custom phtml.

How to get it.

Update:
my layout.xml file content:

<block type="custom/myblock" name="custom_myblock" after="-" template="custom/mytemplate.phtml">
    <block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml">
                <block type="core/text_list" name="product.info.media.after" as="after" />
     </block>
</block>

And Calling in mytemplate.phtml as follows:

<?php echo $_helperOutput->productAttribute($product, $product->getName(), 'name') ?>

            <?php echo $this->getChildHtml('media') ?>

and Getting this error:
Fatal error: Call to a member function getTypeInstance() on null in ../app/code/core/Mage/Catalog/Block/Product/View/Abstract.php on line 44


texts:
I copied a whole magento installation to a local environment to test some developments. After I reset the database connection and base path of the installation, it's impossible to call a product page.

First I got the following error:

  "Maximum function nesting level of '500' reached, aborting! in
  /app/Mage.php on line 750"

I found out, that it could be a problem with xdebug installed on my server. So I uninstalled it, but that wasn't the problem. Now the page tries to load, but it never comes to an end. I added some exits in the core files, to find out where it breaks. It's in /app/code/core/Mage/Catalog/Helper/Product/view.php on line 73 which is called in the product controller:

$controller->generateLayoutXml()->generateLayoutBlocks();

Anyone an idea what's going wrong here? Magento Version is 1.8.1.0.

Thanks in advance!


texts: Show phtml file, only when button is clicked

texts:
I want to create a quickview option with my crosssells. When I click on the quickview button, I want a .phtml file to appear (custom/quickview.phtml), and display with product information such as name, id, image etc..

This is the situation:

I have 3 crosssell products on the cart page
Inside the foreach loop that generates the products, I want a button that calls the quickview.phtml file
I want to pass php variables, such as product ID, product name etc.

How do I do this? I cant find out how to do it.


texts: The width of massaction check box column in _prepareMassaction()

texts:
i have a column in a custom grid

protected function _prepareMassaction()
{
    $helper = Mage::helper('mymodule_name');

    $this->setMassactionIdField('tax_calculation_rate_id');
    $this->getMassactionBlock()->setFormFieldName('id');

    $this->getMassactionBlock()->addItem('check', array(
        'label'=> $helper->__('Check order exist'),
        'width'=> '5%',
        'url'  => $this->getUrl('*/*/massCheck', array('' => '')),        // public function massDeleteAction() in Mage_Adminhtml_Tax_RateController
        //'confirm' => $helper->__('Are you sure?')
    ));

    return $this;

}

the 'width'=> '5%', has none effect, anyone knows how to set the width?


texts: Cancel non invoiced order item without cancelling order

texts:
We have allowed an offline payment method on our store, where the customer pays for the item once its been shipped and reaches them.

The test case scenario that I am facing issues with is as follows:

Customer orders for 3 items with 1 quantity each.
When we process this order for shipping, we find that the 1st item can be shipped right away, the 2nd item has to be cancelled as per the customer's request and the 3rd item might take a week to procure.
With Magento, I've noticed that if we're sure that the last two items are not going to be shipped, we can invoice and ship only the 1st item and when we click on the 'Cancel Order' button, it cancels the non invoiced items. But in this case, the 2nd item should be cancelled right now while the 3rd item will be shipped only after a week.

Is there a way to cancel the 2nd item without cancelling the order?


texts: Magento 2 : How to Add Date Validator on Custom Input Form Js File

texts:
I have created a custom input on the checkout page, I want to add date validator from js but I can't.

I already tried this custom js:

$( "#co-shipping-method-form" ).validate({
    rules: {
        myinputname: {
            required: true,
            date: true
        }
    }
});

and this one also.

jQuery('#co-shipping-method-form').formValidation({
    fields: {
        myinputname: {
            validators: {
                notEmpty: {
                message: 'The date of birth is required'
            },
            date: {
                format: 'DD/MM/YYYY',
                message: 'The date of birth is not valid'
            }
        }
    }
})

Does anyone know what is the proper way to do this?


texts: How do insert into a blog? There is an ability to use one image at the top but I want to put images into the body of the blog content


texts: How to implement CGST, SGST and IGST in magento 1.9?

texts:
I wants to implement CGST ,SGST and IGST in my store that is if customer shipping address is current state it apply CGST and SGST. and if customer shipping address is other state then its apply IGST. i had tried this link

[https://magecomp.com/blog/create-gst-tax-rule-magento/][1]

to for CGST and SGST it working fine for all state customer but not able to implement IGST with required condition. Please help. thanks in advance


texts:
Circular dependency: Magento\Quote\Model\Quote\TotalsCollector depends
  on Magento\Quote\Model\Quote\Address and vice versa.


texts: Load uiComponent (grid) over ajax request

texts:
Is there an easy way to call an uiComponent into an ajax response? I created the Controller which returns ResultLayout:

public function execute()
{
    $this->initCurrentCustomer();
    $resultLayout = $this->resultLayoutFactory->create();
    return $resultLayout;
}

The layout:

<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
    <container name="root">
        <uiComponent name="ui_grid_name"/>
    </container>
</layout>

Which works since i can see the HTML and on ajax request that html is loaded (loader + plus JS for the grid). The uiComponent works on its own (if proper page is created, not ajax request).
And here lies the problem - the JS code doesn't get executed since its a text-return value. Somehow i would need to trigger that but M2 JS is still a bit complexed for me.

Any ideas?


texts: How to retrieve product attributes values in Magento 2

texts:
I want to get configuration product attributes values in phtml file.

Above two value i want to get in magento 2.
So please Explain me How to get.
THANKS.


texts: Magento 2 :How to change or update request data using beforeExecute plugin?

texts:
i just want to change some request params by using beforeExecute plugin so can i do same.... ?

etc/di.xml
**

<type name="Magento\Customer\Controller\Account\CreatePassword">
    <plugin name="create_password_bug_fixed" type="Vendor\Base\Plugin\Account\CreatePassword" sortOrder="1"  />
</type>

**

CreatePassword.php(Plugin Class)

    namespace Vendor\Base\Plugin\Account;

class CreatePassword{
    public function beforeExecute(\Magento\Customer\Controller\Account\CreatePassword $subject){
        /*What need to write here for change attribute value like Token and id */

    }

}


texts: magento 2.1.6 in fedora 25 css and js files issues

texts:
I have installed Magento 2.1.6 in Fedora 25, after successful setup, but when I run it in the browser, I am getting lots of css and js files not found errors.

That is loading from static version folder which is not even existed. Plus when I tried to access its admin URL, it says not found the page.

I have executed its deploy and compile commands as well.


texts: M1 CE, paypal exception "PayPal NVP gateway errors"

texts:
With the standard checkout process sometimes paypal get the money but magento dont' close the order ( making the cusotmer pay many times the order)
In some orders we see 2 times rows with the sames sku
the customer tell us that have many stock error.

it's Magento 1.9.2.2, hosted on Google Cloud with multiple frontends and a dedicated mysql & admin instance..

  exception 'Mage_Paypal_Model_Api_ProcessableException' with message 'PayPal NVP gateway errors: This transaction couldn't be completed. Please redirect your customer to PayPal (#10486: This transaction couldn't be completed). Correlation ID: 72b838c934484. Version: 72.0.' in /path/to/magento/public_html/app/code/core/Mage/Paypal/Model/Api/Nvp.php:1062
  Stack trace:
   /path/to/magento/public_html/app/code/core/Mage/Paypal/Model/Api/Nvp.php(1008): Mage_Paypal_Model_Api_Nvp->_handleCallErrors(Array)
   /path/to/magento/public_html/app/code/core/Mage/Paypal/Model/Api/Nvp.php(643): Mage_Paypal_Model_Api_Nvp->call('DoExpressChecko...', Array)
   /path/to/magento/public_html/app/code/core/Mage/Paypal/Model/Express.php(581): Mage_Paypal_Model_Api_Nvp->callDoExpressCheckoutPayment()
   /path/to/magento/public_html/app/code/core/Mage/Paypal/Model/Express.php(377): Mage_Paypal_Model_Express->_placeOrder(Object(Webmu_DisableAutoInvoice_Model_Sales_Order_Payment), '81.62')
   /path/to/magento/public_html/app/code/community/Webmu/DisableAutoInvoice/Model/Sales/Order/Payment.php(57): Mage_Paypal_Model_Express->capture(Object(Webmu_DisableAutoInvoice_Model_Sales_Order_Payment), '81.62')
   /path/to/magento/public_html/app/code/core/Mage/Sales/Model/Order/Payment.php(348): Webmu_DisableAutoInvoice_Model_Sales_Order_Payment->capture(NULL)
   /path/to/magento/public_html/app/code/core/Mage/Sales/Model/Order.php(898): Mage_Sales_Model_Order_Payment->place()
   /path/to/magento/public_html/app/code/core/Mage/Sales/Model/Order.php(1116): Mage_Sales_Model_Order->_placePayment()
   /path/to/magento/public_html/app/code/core/Mage/Core/Model/Resource/Transaction.php(105): call_user_func(Array)
   /path/to/magento/public_html/app/code/core/Mage/Core/Model/Resource/Transaction.php(159): Mage_Core_Model_Resource_Transaction->_runCallbacks()
   /path/to/magento/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(189): Mage_Core_Model_Resource_Transaction->save()
   /path/to/magento/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(249): Mage_Sales_Model_Service_Quote->submitOrder()
   /path/to/magento/public_html/app/code/core/Mage/Paypal/Model/Express/Checkout.php(599): Mage_Sales_Model_Service_Quote->submitAll()
   /path/to/magento/public_html/app/code/core/Mage/Paypal/Controller/Express/Abstract.php(320): Mage_Paypal_Model_Express_Checkout->place('EC-2T656796LX81...')
   /path/to/magento/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Paypal_Controller_Express_Abstract->placeOrderAction()
   /path/to/magento/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('placeOrder')
   /path/to/magento/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
   /path/to/magento/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
   /path/to/magento/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
   /path/to/magento/public_html/index.php(91): Mage::run('default', 'store')
   {main}


texts: How to use Elasticsearch 6 with Apache, Redis and Varnish on Magento 2.3 Open Source?

texts:
I'm just learning Magento. I have Magento 2.3.3 open source set up on a Linux server with Apache, Redis & Varnish. Next I want to install Elasticsearch 6 ("ES") and I have confusion about some basic concepts.

  Server info:

  Apache version: 2.4.41 (Unix)
  Redis version: 5.0.7-1
  Varnish version: 6.3.1-1 Linux lts 4.19.86-1
  Elastic search version: 7.4.2-1
  Elastic search port: 9200

ES is running and I get the proper response from:

- curl localhost:9200
 - curl http://127.0.0.1:9200

  But I get this error from curl https://127.0.0.1:9200

curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Maybe that is not relevant because none of the articles I have seen on ES mention testing with curl and https.

I'm following this Magento DevDocs article.

First, I'm not sure which ports to configure for the http proxy (or, upon further reading, if the http proxy is even needed).

With Varnish, I have Apache listening on port 8080. The Magento Elasticsearch doc gives an example with Apache listening on the same port. Will that conflict? I'm confused about the http proxy setup.

I have two modules available:

#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_http2_module modules/mod_proxy_http2.so

Which is the correct proxy module to enable? With the little I know about http2, it sounds more performant. Will it work with ES?

Which apache config file should contain these lines?

<VirtualHost *:8080>
    ProxyPass "/" "http://localhost:9200/"
    ProxyPassReverse "/" "http://localhost:9200/"
</VirtualHost>

I have several vhosts defined in /etc/httpd/conf/extra/httpd-vhosts.conf. Does the ES http proxy affect any of those existing vhosts? Can I just add the above to that same vhosts file?

I also have a httpd-vhosts-le-ssl.conf (I'm using Let's Encrypt). Is that config file affected by adding ES?

For Magento 2.3.3 Open Source, I believe I need a marketplace extension for Magento to use ES. I just found Smile-SA/elasticsuite. That install guide doesn't even mention needing to set up an http proxy with Apache.

For reference, the ES plugins I found are:

Smile https://github.com/Smile-SA/elasticsuite
Mirasvit https://mirasvit.com/magento-2-extensions/elastic-search-ultimate.html
Webkul https://store.webkul.com/Magento2-Elasticsearch.html
wyomind https://www.wyomind.com/magento2/elastic-search-magento.html
Amasty https://marketplace.magento.com/amasty-module-elastic-search.html
Bingo https://marketplace.magento.com/folio3ecommerce-magento2-module-bingo.html


texts:
For our customer we're using the OnePica_ImageCdn extension which is working fine. Of course we're using the database for the setting 'File Result Cache'. The other option is using file based cache which will be a lot slower.

But still the database driven cache generates a lot of queries. The shop of our customer is pretty big and with a lot of content which results in an average of 25k cpm on the imageCdn caching table in MySQL. We would like to reduce this. Redis cache en Varnish cache are already set up for this webshop. Redis cache isn't doing anything for the CDN cache at the moment but Varnish is of course.

I think it would be useful if the OnePica_ImageCdn extension uses Redis cache as the first caching layer but this isn't supported by the extension as far as I know.

So what do you guys suggest as an approach to reduce the database load on the imageCdn caching table in MySQL?

PS. the magento installation is CE 1.8.1.0 with all the security patches applied of course.


texts:
I want to set the tax value to 0 when order is placed through sage pay.I get the value by

Mage::helper('checkout')->getQuote()->getShippingAddress()->getData('tax_amount');

but unfortunately I am not able to set the data as per my wish please help me how to change it.


texts: Magento 2 : Delete products having no name using sql or admin

texts:
I uploaded a csv in which there were some products having no name, so it comes out blank in frontend.
I tried getting these products in catalog_product_entity_varchar but there were no NULL values in this table corresponding to attribute_id of Product Name attribute.
Is there any way to delete these products using admin/sql query.


texts:
I've just downloaded patch SUPEE-5344 and installed it, however the file name and applied.patches.list suggest it is SUPEE-5345, not 5344.  OK this may be a typo in the code, perhaps, but checking my site with https://shoplift.byte.nl/scan still shows it still to be vulnerable.

How can I tell if this patch is the correct one and worked?  Are there pre-requisites for this patch? (eg. 1533)

I'm running magento CE 1.7.0.2 and prior to this patch, none had been applied.  Should I revert it and then get and apply ALL security patches available?

[later]

I reverted that original patch and applied 1533 then applied that patch again but still the test site shows it as vulnerable.  File ownership was reset correctly and cache flushed (though I don't think that was necessary)

I note that the 1533 patch file is called PATCH_SUPEE-1533_EE_1.12.x_v1-2015-02-10-08-19-16.sh despite being downloaded for CE, not EE.  Mind you, the patch list file suggests that 5344/5345 was for EE.  How trustworthy are these patch files?


texts: 403 Session expired in checkout Magento 1

texts:
I'm getting this error in the checkout page of Magento 1, what could it be?

Request URL: /onepage/json/payments
Request Method: POST
Status Code: 403 Session Expired
Referrer Policy: no-referrer-when-downgrade

Response header
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection: Keep-Alive
Content-Length: 0
Content-Type: text/html; charset=UTF-8
Date: Fri, 30 Nov 2018 08:58:49 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive: timeout=3, max=497
Login-Required: true, true
Pragma: no-cache
Server: Apache
Set-Cookie: frontend=4cdofkvhn9l1jd3nonns4ptt96; expires=Fri, 30-Nov-2018 09:58:49 GMT; path=/bin4; domain=domain.com; httponly
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block

Request headers
Accept: application/json, text/javascript, */*; q=0.01
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: keep-alive
Content-Length: 0
Cookie: frontend=4cdofkvhn9l1jd3nonns4ptt96; external_no_cache=1; adminhtml=dr6gp2ti3lvc80chrvip1u0826; _fbp=fb.1.1543566407577.1080793725
Referer: /onepage/?SID=4cdofkvhn9l1jd3nonns4ptt96
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
X-Requested-With: XMLHttpRequest


texts: Adding image and video file path to the custom table from the review frontend product view page

texts:
I have created a custom table for storing review_id (as foreign key),file_path and file_type(boolean 1 for image and 2 for video) as columns. i have to add the post values from the product review page from frontend.i have created the model, resource model and collection for that. i know that in

  core controller/product/post.php

has my post values in $data.

But I don't know how to add the custom image or video path to the database and the type.


texts: Magento 2 : Minicart disable quanity box

texts: How can we initially disable quantity box (read-only) of mini cart and enable it while clicking edit link for each separate product ?


texts: Magento 2: Get Table Rate Amount programmatically

texts:
We have a Magento 2 shop with 15 subshops (for regional purposes) with several currencies.

Each subshop has a different table rate setting. Mostly consisting of two values e.g. 10 Euro shipping. 0 Euro if total above 350 Euro.

I want to program a block where I can get the amount where the shipping total is zero - so free shipping.

Since Magento 2 is overenginered I have no clue how this is possible.
Any suggestions are welcome.


texts: How to disable the draggable image feature from product add/edit in admin area magento 2

texts:
I am trying to disable the draggable feature so I can keep the position as it is. Also trying to implement the position input into img-dialog-tmpl but it not saving the values.

disabled the draggable feature
add position input above image and dialog template.

https://prnt.sc/ho71mw

https://prnt.sc/ho72ad

I am trying to all thing on "gallery.phtml".

/vendor/magento/module-product-video/view/adminhtml/templates/helper/gallery.phtml

Just trying into core base file, once implemented, I will extend it on our theme.


texts: Order confirmation email not sending to guest user's email address Magento 2.3.5 -p1 community?

texts:
Order confirmation email to the guest user not sending but sending to logged-in customer. I am using the Magaplaza SMTP module for sending emails. Can anyone tell me Why this is happening?. I am searching for a solution for this for the last 2-3 days but not find any solution, why this happening, and how to fix it.
I am using Magento 2.3.5 -p1 community version and digital ocean server.


texts:
I'm trying to create a link to remove an item from the wishlist if it's there. The URL is returning /wishlist/index/remove instead of the correct URL which from what I've seen online should be /wishlist/index/remove/item/[ID]. Trying that URL manually doesn't work. This is my way of getting the remove URL:

$_wishlistRemoveUrl = $this->helper('wishlist')->getRemoveUrl($_product);


texts: Magento static block not showing up after I changed the identifier

texts: please help. I changed the identifier of static block on CMS, and now it's not showing up on the web page. I wonder how do I know the name of the original static block that I have changed.


texts: Magento 2 Admin All Customers list view pre-filtering

texts:
Probelm:

I need to filter the customers Array in

  "Admin Panel -> Customers -> All Customers"

BEFORE the list is rendered, by an private attribute. The attribute is already exist.

I have 3 different sales user, those are have access to just their customers. All Customers have an attribute calleds "refer". On the php side, i need to check which user is loged in and filter customers by "refer" and display those.

Can anyone Help me please? I need to know which files I have to overwrite.


texts: Magento 1.9 - Where is called addAction()?

texts:
I'm studying the process of add to cart of Magento and I would like to know the addAction() function...where is invoked and who calls this function?? This function is active after the validation in abstract.php right?

I studied the process to the function getProductUrl() and do not understand how to continue the process of add to cart after this function.

Thank you for any help.


texts:
I'm trying to send a variable from a phtml to an observer through an event observer. Is that possible?

Note: variables are defined by a script in the phtml.

Edit:
The name of event is "checkout_cart_product_add_after".
In the script I have some like this:

function cambio_telas(event){
    telaactual = event.data.tela;
}

And I want to send the var "telaactual" to the observer:

public function execute(\Magento\Framework\Event\Observer $observer) {

  $item = $observer->getEvent()->getData('quote_item');
  $item = ( $item->getParentItem() ? $item->getParentItem() : $item );

  $additionalOptions = array(
    array(
      'label' => 'Tela',
      'value' => 'tela02'
    )
 }

In short, I need to apply the variable "currentdata" to value in "$ aditionalOptions"


texts: Correct XML structure for extending Magento Checkout classes

texts:
I'm struggling to figure out the correct XML structure for extending magento classes which are deeper in the folder hierarchy than say Core/Store.php

For instance, how can I extend the following:

app/code/core/Mage/Checkout/Model/Cart/Api.php
app/code/core/Mage/Checkout/Model/Api/Resource/Customer.php

I've tried something along the lines of this:

<?xml version="1.0"?>
<config>
    <modules>
        <company_Checkout>
            <version>0.0.1</version>
        </company_Checkout>
    </modules>
    <global>
        <models>
            <checkout_api>
                <rewrite>
                    <resources_customer>company_Checkout_Model_Api_Resource_Customer</resources_customer>
                </rewrite>
            </checkout_api>
        </models>
    </global>
</config>

But haven't really gotten anywhere. Any ideas what the XML structure should be? And what would be a good resource to check out in order to better understand the extension logic in magento? Is what I'm trying to do even possible?

EDIT

I got the Customer.php rewrite working with the following config.xml:

<?xml version="1.0"?>
<config>
    <modules>
        <Company_Checkout>
            <version>0.0.1</version>
        </Company_Checkout>
    </modules>
    <global>
        <models>
            <checkout>
                <rewrite>
                    <cart_api>Company_Checkout_Model_Cart_Api</cart_api>
                    <api_resource_customer>Company_Checkout_Model_Api_Resource_Customer</api_resource_customer>
                </rewrite>
            </checkout>
        </models>
    </global>
</config>

However, the Api.php rewrite does not seem to work. I'm sure I'm missing something obvious but can't see it. Below is thew new Api.php. The folder structure for it is app/code/local/Company/Checkout/Model/Cart/Api.php

<?php

class Company_Checkout_Model_Cart_Api extends Mage_Checkout_Model_Api_Resource {
    /**
     * Create new quote for shopping cart
     *
     * @param int|string $store
     * @return int
     */
    public function create($store = null)
    {
        $storeId = $this->_getStoreId($store);

        Mage::log("**REWRITE**");

        try {
            /*@var $quote Mage_Sales_Model_Quote*/
            $quote = Mage::getModel('sales/quote');
            $quote->setStoreId($storeId)
                    ->setIsActive(false)
                    ->setIsMultiShipping(false)
                    ->save();
        } catch (Mage_Core_Exception $e) {
            $this->_fault('create_quote_fault', $e->getMessage());
        }
        return (int) $quote->getId();
    }
}

EDIT
Using magento-ce 1.9.0.1


texts: Convert Magento 1 Script to Magento 2 (Get Order ID by custom Block)

texts:
I am trying to get the ORDER ID, BaseSubtotalInclTax, BaseShippingInclTax, and TaxAmount on the success.phtml page by using custom block.

On Magento 1 I had to put the following script in the success.phtml file.

    <?php
    $orderId = $this->getOrderId();
    $order = Mage::getSingleton('sales/order')->loadByIncrementId($orderId);
    ?>

    order_id: '<?php echo $this->escapeHtml($this->getOrderId()); ?>',
    revenue:  '<?php echo $order->getBaseSubtotalInclTax(); ?>',
    shipping: '<?php echo $order->getBaseShippingInclTax(); ?>',
    Total Shipping Cost. <?php $shippingc= $order->getBaseCodTaxAmount();
    if ($shippingc!= NULL)
    {
        $finaltax= ($order->getTaxAmount() - $shippingc);
    }
    else
    {
        $finaltax= $order->getTaxAmount();
    }
    ?>
    tax:      '<?php echo $finaltax; ?>'    // Total Tax.
    }));

    <?php
    $orderItems = array();
    foreach($order->getAllItems() as $item)
    {

    $row=array();
    $row['sku'] = $item->getProduct()->getSku();
    $row['original_price'] = $item->getOriginalPrice();
    $row['price'] = $item->getPrice();
    $row['qty_ordered']= (int)$item->getQtyOrdered();
    $row['subtotal']= $item->getSubtotal();
    $row['tax_amount']= $item->getTaxAmount();
    $row['tax_percent']= $item->getTaxPercent();
    $row['discount_amount']= $item->getDiscountAmount();
    $row['row_total']= $item->getRowTotal();
    $row['name']= $item->getName();

    $orderItems[]=$row;

        if ($row['price'] != 0)
        {   echo    "order_id: '".$orderId."',";
            echo    "product_id: '".$row['sku']."',";
            echo    "name: '".$row['name']."',";
            echo    "price: '".$row['original_price']."',";
            echo    "quantity: '".$row['qty_ordered']."'";
        }

    }

?>

I am trying to do that in my custom block on Magento 2. Without success...

app/code/Clud7/Skroutz/Block/Success.php

<?php
namespace Clud7\Skroutz\Block;

use Magento\Catalog\Helper\Image;
use Magento\Catalog\Model\ProductRepository;
use Magento\Checkout\Model\Session;
use Magento\Directory\Model\CountryFactory;
use Magento\Framework\App\Http\Context;
use Magento\Sales\Model\Order\Config;
use Magento\Sales\Model\OrderFactory;
class Success  extends \Magento\Framework\View\Element\Template
{
    public function getOrder($id) {
       $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
       $orderid=$objectManager->get('Magento\Sales\Model\Order')->getCollection()->addFieldToFilter('increment_id',array('eq',$id))->getFirstItem()->getId();
       return $this->orderRepository->get($orderid);
    }

    public function getSomething()
    {
        return 'returned something from custom block.';
    }

    public function skroutz()
    {
        $start= '

SKROUTZ FEEDBACK STARTS HERE

';
        $end='

SKROUTZ FEEDBACK ENDS HERE

';
        return $start .'returned something from custom block'.$end;
    }

}

app/code/Clud7/Skroutz/view/frontend/templates/order/success.phtml

<?php
 $order = $block->getOrder($block->getOrderId());
 $orderid=$block->getOrderId();
 $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
 $order = $objectManager->get('Magento\Sales\Model\Order')->load($orderid);
 $ordercollection=$order->getItemsCollection()->getData();
?>

<?php
 echo 'START TEST GET ORDER ID
';
 echo  "Order ID:".$orderid."
";
 echo 'END TEST GET ORDER ID
';
?>

The result is:


texts: How to define where condition in resource model function for specific value? magento2

texts:
How to define condition in resource model function , i have a function for sales reporting , here it is fetching records from defined columns as given below , i want to add condition here for status column to fetch only those status which is equals to **'closed' in my db row**  , is that possible to define here ?

public function applyBaseFilters($collection)
    {
        $collection->getSelect()
            ->reset(\Zend_Db_Select::COLUMNS)
            ->columns([
                'period' =>'DAYNAME(created_at)',
                'total_orders' => 'COUNT(entity_id)',
                'total_items' => 'SUM(total_item_count)',
                'subtotal' => 'SUM(base_subtotal)',
                'tax' => 'SUM(base_tax_amount)',
                'status' => 'status',
                'shipping' => 'SUM(base_shipping_amount)',
                'discounts' => 'SUM(base_discount_amount)',
                'total' => 'SUM(base_grand_total)',
                'invoiced' => 'SUM(base_total_invoiced)',
                'refunded' => 'SUM(base_total_refunded)',
                'entity_id' => 'CONCAT(entity_id,\''.$this->createUniqueEntity().'\')'
            ])
        ;
    }

File location is (\Magento\Sales\Model\ResourceModel\Order\Collection)


texts: Help building an SQL query for products with custom options

texts: Need help making a query which returns the Product ID of all products which have custom options


texts: Problem with quotation marks on PHP export

texts:
I could use your help once again... I'm currently building a php export to hand our products off to a comparison website. One of their requirements is that every string is wrapped in double quotes.

I've tried different things, but I'm still running into problems here. I don't know why it's doing what it's doing and am open to any suggestions y'all might have!

First thing I tried was simply putting

$art_nr = '"'.$product->getSku().'"';

And then I tried using the strip method to ensure there aren't any quotes already around the string...

$art_farbe = '"'.trim($art_farbe,'"').'"';

But the result is always the same and looks like this:

art_nr|art_name|art_beschreibung|art_url|art_img_url|art_img_url2|art_img_url3|art_img_url4|art_img_url5|art_img_url6|art_img_url7|art_img_url8|art_img_url9|art_img_url10|art_material|art_waehrung|art_preis|art_lieferkosten|art_stamm|art_farbe|art_breite|art_breite_einheit|art_laenge|art_laenge_einheit|art_hoehe|art_hoehe_einheit|art_sitzhoehe|art_sitzhoehe_einheit
"""jkfalieg-xxl"""|"Fiam Amigo XXL"|"XXL Liege mit Gestell aus Aluminium. Bezug: Textiline (wetterfest und uv-beständig)., "|"""https://www.zeitlos-einrichtung.info/fiam-amigo-xxl.html"""|"""https://www.zeitlos-einrichtung.info/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/f/i/fiamamigo.jpg"""|https://www.zeitlos-einrichtung.info/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/f/i/fiamamigo.jpg|||||||||"""Aluminium"""|"""EUR"""|"""195.0000"""|"""0"""||""""""|"""75"""|"""cm"""|"""207"""|"""cm"""|"""33"""|"""cm"""|""""""|""""""

For everything I use one of the two methods mentioned above I get three double quotes in front and after the content of the string. The second and third column are working because I didn't to anything to them since they're automatically surrounded by double quotes since there's spaces in the string.

If someone has an idea how to fix this please let me know! :)


texts: How to generate encrypted cartid to access the Rest API guest cart - Magento 2

texts:
I get quote id from below code it returns 6 as my quote id

$id=$this->_checkoutSession->getQuoteId();

I used the quote_id=6 in REST api like rest/default/V1/guest-carts/6/estimate-shipping-methods

It throws the below error in Postman

{
    "message": "No such entity with %fieldName = %fieldValue",
    "parameters": {
        "fieldName": "cartId",
        "fieldValue": 0
    }
}

I have checked frontend cart page actual cart id seems encrypted rest/default/V1/guest-carts/6vf0uVP3A3RNBbTDPe4ECKxjDrJw44lO/estimate-shipping-methods

could you please anyone enlighten me? Thanks.

syntax

rest/default/V1/guest-carts/:cartId/estimate-shipping-methods


texts:
I've been trying to change some texts in the invoice PDF create at order confirmation, I need to change the text : Order #xxxxxxxx.
Where can I change this ?

I've tried in :

app/design/frontend/base/template/sales/order/print.phtml
app/design/frontend/mytheme/default/template/sales/order/print.phtml
app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php

Nothing worked.

I can't find where this PDF is created, I really need some help.

Thank you.


texts:
I want to incorporate my magento store products, in my cakephp site.
Is this possible? Also is this a secure way? I don't want to risk the security of the site too.


texts: Multiple Image browse in custom admin form Magento 2

texts: I have created a custom form in the backend and it is working fine for single image browse. If I select only one image then it is working fine. My requirement is, I want to select multiple images with the browse button. If there is any alternate solution then please let me know also.


texts: Category tree is not showing in manage categories page?

texts:
I have installed magento in my server.

I want to add categories but its not showing the categories as category tree.

If I click add root category or add subcategory, nothing is working in that page.

Category tree is appearing once i refresh the page and its disappearing once the page got loaded.

error in console

  Uncaught ReferenceError: updateContent is not defined at
  _renderNewTree (VM309:748) at reRenderTree (VM309:720) at VM309:860 at Ext.util.Event.fire (ext-tree.js:29) at _a (ext-tree.js:33) at
  ext-tree.js:33

Anyone can help?


texts: M1 Changing website to https breaks product pages

texts:
Currently our website is only secured on checkout. We want the whole site to be secured so we had our IT guy do that. The whole site is secured EXCEPT I cant get to the individual product pages. It breaks.

Do you know how to fix that?


texts:
I have a client who wishes to generate 10,000 sequential coupon codes.  I don't think this is possible in Magento.  Probably due to the risk it would cause by enabling people to guess coupon codes.

Anyway, I have explained this but they still want to have them as this is the only way the printing company they have chosen can print them!

Is there anyway in Magento to generate sequential coupon codes?  Perhaps there is a module available or simple code change to do this?

I would prefer to convince them to use a better printing company but am curious to see if it's possible.

Thanks


texts: Use product list template with my own product collection?

texts:
I already have a products collection and an empty page, how would I load the products list layout and use my own products collection?

EDIT:

Better explanation hopefully.   I have a form to select year, make, model, and then category, which works well.  I got a product collection, I just want to display the collection in a standard product listing using the currently loaded theme but the solution eludes me.

The Year, make model and associated products are stored in their own models.  I didn't see a good way to store them in standard magento attributes as most products have several combinations of year, make, models.

EDIT2:

Got somewhere by adding this to my layout but by default it just shows all products.  Possible to change the products displayed in the block?

<block class="Magento\Catalog\Block\Product\ListProduct" name="ymmResult" template="Magento_Catalog::product/list.phtml" />


texts: Magento2.4 products are not getting displayed in catalog list page

texts:
Magento2.4 products are not getting displayed on the catalog list page. I am feeling it is due to some elastic search issue.
I used following command to Delete index

curl -X DELETE 'http://localhost:9200/magento2*'

But still not able to load the products on category pages.
It is like a random behavior some times on reindex products appear for some category & not for other
On running below commands status is yellow

curl -XGET 'localhost:9200/_cat/health?v&pretty'

Since magento version is 2.4 so can't switch to MySQL
Please advice.
Magento cron does not execute "Catalog Search" index properly - it runs, but products in category pages do not appear. I even created a custom cron for that, but it did not help. I would like to use the original Magento cron instead of my custom one - it is only a workaround for testing purposes.
When I run "php bin/magento index:reindex" in the terminal it also runs successfully, but without results in the frontend.


texts: how to get extension attributes in Magento\Catalog\Api\Data\ProductInterface?

texts: Created a custom module for products with some filters. return it by Magento\Catalog\Api\Data\ProductInterface. how do I include extension attributes in this?


texts: How to display static block on all pages

texts:
I wanted to display a static block with the identifer: popular_brands
I created widget:

But impossible anyway display static block before footer,  etc. I try all this option with "footer" but block is not displayed.
When I use "page top" then display correct before header. When I use "page bottom" then display correct bottom of page. But impossible set before footer etc.

Can anyone help how to solve?


texts: Magento1.9: Modify payment_html variable

texts:
I  use an extension called FireGento GermanSetup which adds variables like IBAN and SWIFT etc. I changed the SWIFT variable to BIC and now I would like to show BIC in the payment infos which are used in every transaction email and PDFs.

I changed the SWIFT label to BIC here:

/app/code/community/FireGento/GermanSetup/etc/system.xml

The field in the backend in now labeled with BIC which is good but it doesn't seem to work for transaction emails.

When I open a Transaction email preview in the backend. It still shows SWIFT instead of BIC.


texts: How to modify cart totals on basket page

texts:
I'm looking to modify the cart totals section on the basket page and need some help. Here is what I'm trying to achieve

I want to know 1) How to add a new row with a title "shipping will be calculated at checkout" and 2) How to change "Grand Total to "Estimated Total"

Thankyou.


texts: Where did the Magento Code Migration Toolkit go?

texts: I'm migrating a site from Magento 1 to Magento 2. I have a few custom extensions that I want to move over. The Magento 2.4 documentation links to a "code migration toolkit" on github, however, that page gives a 404 and I cannot find this anywhere else. Was the Code Migration Toolkit deleted recently for some reason, and if so, should I be using a different method as my starting place for migrating over Magento 1 extensions?


texts: Magento ORM to get product collection either sale OR in stock

texts:
How to get a combine product collection with condition either discounted products OR in stock?

    // get product collection
    // get product collection
    $collection = Mage::getModel('catalog/product')
        ->getCollection()
        ->addAttributeToSelect('*')
        ->joinField('category_id', 'catalog/category_product', 'category_id',
            'product_id = entity_id', null, 'left')
        ->addAttributeToFilter('category_id', array('in' => array('finset' => $this->mainCategories['ids'])));

    // Get Sale products
    $collection->addFinalPrice()
        ->getSelect()
        ->where('price_index.final_price < price_index.price');
    // end
    $collection->getSelect()->group('e.entity_id');

// in stock

// get product collection
    $collection = Mage::getModel('catalog/product')
        ->getCollection()
        ->addAttributeToSelect('*')
        ->joinField('category_id', 'catalog/category_product', 'category_id',
            'product_id = entity_id', null, 'left')
        ->addAttributeToFilter('category_id', array('in' => array('finset' => $this->mainCategories['ids'])))
        ->addAttributeToFilter('status', array('eq' => Mage_Catalog_Model_Product_Status::STATUS_ENABLED))
    ;

    // Get Ready stock products
    Mage::getSingleton('cataloginventory/stock')->addInStockFilterToCollection($collection);
    // end
    $collection->getSelect()->group('e.entity_id');

i don't know how to combine them, or using the query in magento way (orm way) in one go.


texts: Magento {{depend}} combined with {{config path='some/value/here'}}

texts:
we are using the {{depend}} functionality to check for true on a system config variable

But now we are running into the following. Can I combine these special {{}} tags within each other? For example if I want to check config path='some/value/here' to be TRUE, would I do it as follows?

{{depend {{config path='some/value/here'}}}} text here

Question: How can I use the depend to check a config path value?

And maybe a second question is: does depend check for empty, or does it also understand yes and no's from the config?

Many thanks


texts: How to create Background-images Field in magento backend. And Change Background-images All pages

texts:
How To Create Custom Field Background-images in magento Backend.?
Set Background Directly in Only Change Images So set Directly
in All page Backend Set background-images.


texts: Modified product collection: Products on category do not match number of results

texts:
I need to modify the product collection on category page. Therefore, I've modified the _getProductCollection() in Mage/Catalog/Block/Product/List.php and added an additional filter $this->_productCollection->addAttributeToFilter('entity_id', $prods);

But this works only partly.

The product count in the top bar shows the correct product count (10) but Magento shows 12 products for this category.

printing the variables in catalog/product/list.phtml shows up following result:

$_productCollection=$this->getLoadedProductCollection();
echo $_productCollection->count() // 12 [wrong]
echo $_productCollection->getSize() // 10 [correct]
echo $_productCollection->getSelect() // Running in db: 10 [correct]
iterating through the products with foreach ($_productCollection as $_product) shows 12 [wrong]

What am I doing wrong? Thanks!


texts: Php Magento Api Rest Create Customer Password Issue :

texts:
I'm using the Magento ver. 2.1.2 Rest Api to create users, following this : http://devdocs.magento.com/guides/m1x/api/rest/Resources/resource_customers.html#RESTAPI-Resource-Customers-HTTPMethod-POST-customers

$data = [
    "customer" => [
        "firstname" => 'Earl',
        "lastname" => 'Hickey',
        "email" => 'earl-2@example.com',
        "password" => 'password',
        "website_id" => 1,
        'store_id' => 1,
        "group_id" => 1
    ]
];

$token = $this->get('lp_api')->getToken();
$ch = curl_init( $this->endpoint . 'customers');

curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_VERBOSE,  true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    "Content-Type: application/json", "Authorization: Bearer " . json_decode( $token ),
    )
);

    // var_dump(curl_getinfo($c));
$result = curl_exec($ch);

If i send a password (as in the example above), i've got the following error :

Next Exception: Report ID: webapi-583357a3bf02f; Message: Property "Password" does not have corresponding setter in class "Magento\Customer\Api\Data\CustomerInterface". in /var/www/html/www.magento.dev/vendor/magento/framework/Webapi/ErrorProcessor.php:195

I noticed that if i remove the "password" => 'password' from the $data array, a user is created without password (seems odd to me).

I can't find any help on this error. Any idea anyone ?


texts:
My question is based more on the architecture of building a module rather than anything else. My end goal is to have an export extension which will allow the user to set two variables through the admin configuration. One being the location of the export and two being the format at which it is exported in. Separating the gathering of the order details, the formation of the file to be exported, and the actual export.

I am using the event sales_order_place_after and my observer will call a method which will export the file containing all information of the current order being placed in the file extension chosen. This is where my question stems from. I am using the observer to call a method which is both checking the file type and gathering the order collection. It then calls these classes which extend my own Abstract class allowing the order details to be pulled, and the file details to setup and structure the document into the format chosen.

By using an abstract class to pull order details and each file specific to the extension selected for the export implement them, am I breaking any rules or best practices? Should I be using an interface?
I am not overriding nor rewriting any abstract classes of Magento except the core model (not declared in config.xml). Does this risk any performance or redundancy in this practice? Am I crazy for attempting it this way? Will it even work?

My philosophy is that (one) by using an abstract class to pull all order information, the files associated to the extension type are only needed if they are selected and (two) the observer is not bloated w/ a bunch of functionality which will not be used.

Does this make sense?


texts:
Currently trying to change the top menu background color, tried to change it from the CSS files, found out through firebug that the file pub/static/frontend/Venustheme/beat/en_US/css/styles-l.css is the one responsible for this,

And even tried to change it on firebug to confirm, turns out it actually is.

So I changed the css file and refreshed the page, but nothing changed, looked up solutions for this, flushed cache storage flushed Magento cache and flushed javascript/css cache through the admin interface, didn't work,

Checked the URL in core_config_data turned out to be correct, can anyone help with this? and is there a way to change the css files through the admin interface?

Also, what is the difference between beat and beat_child?

and does the less file affect that in any way?


texts:
Very new to Magento and I recently had a customer place an order. However, under my sales, it shows up multiple times for the exact order.

So this order had 3 order numbers, but it's all the same thing. When I check the order information, it states it was purchased from the following:

Main Website
Main Website Store
Default Store View

Could that be a reason, why? If so how can I fix it?

Thanks in advance!


texts: My theme frontend design working fine in all other pages except cart and checkout page.. I don't know whatz the problem.


texts: magento track event before payment made successfully

texts:
I want to reject payment if some condition is false using event observer. For this what i have to do?

And which observer event i have to use.


texts: how do i remove path and names from pages in magento

texts: I need to remove this from all of the pages.


texts: Magento 2 Out of Stock notification to admin and CC to another email

texts: I am trying to see if Magento 2.3.4 has ability to notify an email other than the admin. We have a reseller who has all our products on their website and they need to be notified when a product of ours is out of stock. Is there a way to have the out of stock notification go to a separate email address?


texts: How to add custom attribute in Collection?

texts:
namespace Magento\Sales\Model\Order;
class Invoice {
 public function getAllItems()
    {
        $items = [];
             foreach ($this->getItemsCollection() as $item) {
            if (!$item->isDeleted()) {
                $items[] = $item;
            }
        }
}
  return $filter;
    }

This Magento 2 core method. But I want to apply filter in this collection.  As my knowledge this collection from sales_order_item table.
I Save custom attribute(current_seller_id) in sales_order_item table but in this collection my custom attribute is missing and I need to filter collection on the condition of my custom attribute.

Can anyone please help me to tell why my custom attribute is not there and how can I add custom attribute in this collection.

I try

  public function getAllItems()
    {
        $items = [];
        $filter=[];
        foreach ($this->getItemsCollection()->addFieldToFilter('current_seller_id',array('eq'=>27)) as $item) {
            if (!$item->isDeleted()) {
                $items[] = $item;
            }

       }
return $items;
}

But not filter the collection.


texts: While Exporting CSV from Sales > Order Grid, I am getting error - "You cannot define a correlation name 'order' more than once"

texts:
When I try to export csv in Sales > Order Grid, I am getting

        You cannot define a correlation name 'order' more than once

  Trace:
      #0 /www/Myproject/htdocs/lib/Varien/Db/Select.php(281): Zend_Db_Select->_join('left join', Array, 'order.entity_id...', Array, NULL)
      #1 /www/Myproject/htdocs/lib/Zend/Db/Select.php(357): Varien_Db_Select->_join('left join', Array, 'order.entity_id...', Array, NULL)
      #2 /www/Myproject/htdocs/app/code/local/Abc/OrderType/Model/Observer.php(32): Zend_Db_Select->joinLeft(Array, 'order.entity_id...', Array)
      #3 /www/Myproject/htdocs/app/code/core/Mage/Core/Model/App.php(1339): Abc_OrderType_Model_Observer->salesOrderGridCollectionLoadBefore(Object(Varien_Event_Observer))
      #4 /www/Myproject/htdocs/app/code/core/Mage/Core/Model/App.php(1318): Mage_Core_Model_App->_callObserverMethod(Object(Abc_OrderType_Model_Observer), 'salesOrderGridC...', Object(Varien_Event_Observer))
      #5 /www/Myproject/htdocs/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('sales_order_gri...', Array)
      #6 /www/Myproject/htdocs/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(590): Mage::dispatchEvent('sales_order_gri...', Array)
      #7 /www/Myproject/htdocs/lib/Varien/Data/Collection/Db.php(565): Mage_Core_Model_Resource_Db_Collection_Abstract->_beforeLoad()
      #8 /www/Myproject/htdocs/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php(951): Varien_Data_Collection_Db->load()
      #9 /www/Myproject/htdocs/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php(1011): Mage_Adminhtml_Block_Widget_Grid->_exportIterateCollection('_exportCsvItem', Array)
      #10 /www/Myproject/htdocs/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php(703): Mage_Adminhtml_Block_Widget_Grid->getCsvFile()
      #11 /www/Myproject/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_Sales_OrderController->exportCsvAction()
      #12 /www/Myproject/htdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('exportCsv')
      #13 /www/Myproject/htdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
      #14 /www/Myproject/htdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
      #15 /www/Myproject/htdocs/app/Mage.php(684): Mage_Core_Model_App->run(Array)
      #16 /www/Myproject/htdocs/index.php(87): Mage::run('', 'store')

And my observer method looks like

public function salesOrderGridCollectionLoadBefore($observer) {
        $collection = $observer->getOrderGridCollection();
        $select = $collection->getSelect();
        $select->joinLeft(array('order' => $collection->getTable('sales/order'))
                , 'order.entity_id=main_table.entity_id'
                , array('type' => 'type'));
    }


texts: assign only one and leaf category per product in magento 2.3.3

texts:
I want that the only category checkbox selectable should be the leaf category that is the category checkbox without children in the current branch and only one category checkbox per product can be selected.
The pseudo code is:
if category has children then input checkbox tag is disabled
if at least one category is selected then disable all other checkboxes

I can't find where to edit the category checkboxes code.
They are the checlboxes shown in the product edit page or new product page.


texts: How to remove the error message in magento2 checkout page

texts: I need to remove the error message in the magento2 billing address on the checkout page. How to remove that.


texts:
What are the advantages (or disadvantages) of using local.xml to modify a block (or something else) instead of editing a specific page (ie. catalog.xml or something else)? When to use which?

I'm asking because here on magento stackexchange it kind of varies from question to question.


texts: Namespaces for "Magento\\Framework\\", "Magento\\" and physical directory structure

texts:
I have a custom class
 'class ProductsList extends\Magento\CatalogWidget\Block\Product\ProductsList'
and wonder where is the physical file containing the class?

Looking at the top level composer file, I see

    "autoload": {
    "psr-4": {
        "Magento\\Framework\\": "lib/internal/Magento/Framework/",
        "Magento\\Setup\\": "setup/src/Magento/Setup/",
        "Magento\\": "app/code/Magento/"
    }

... but when I look in the 'lib/internal' directory, there's no 'Magento/Framework'. Same goes for "Magento\": "app/code/Magento/"

What I do see in the project directory structure is 'vendor/magento/framework'

I looked at the project structure of Magento in GitHub at https://github.com/magento/magento2/tree/develop/lib/internal/Magento/Framework and there's the directory mapping I expected.

I'm trying to make sense of what I think the composer file is telling me and why the physical directory structure is not what I expect it to be.

PS: new to both php and Magento


texts: Magento Store: To purchase or not to purchase SSL certificate

texts:
I've got a Magento installation on a server. I have been contemplating getting
a certificate for my site. However, since all of the credit card and other
payment options are being processed offline, do I really need it? After
all I can still connect via an encrypted channel to the remote Magento
installation on the server (using HTTPS). The only problem I see is
that such encryption connection is still subject to impersonation
from an attacker mimicking the remote host, so when I access the
admin panel of course such an attacker could steal my password.
However, I doubt this is a likely scenario, especially since
there are also many other e-commerce sites out there, and
most importantly, since customers do not need to access
the admin panel and don't need a secure channel for
browsing products and adding them to their shopping
cart but only need such a channel at checkout time,
and such channel is provided by the gateway
service provider, I don't need to install
one myself.

Would like to hear opinions on this matter. I've read that
SSL certificates make the client more secure, but then
again they will not be seeing the lock icon in the URL
if they are just connecting with plain vanilla HTTP.

Thanks.


texts:
Trying to display some featured products on the homepage using widgets. The first product will show up, the other will not. I cannot find anything in the Apache error log, Magento's system.log, nor exception.log. Can anybody help me debug this?

CMS Code

{{widget type="catalog/product_widget_link"
         anchor_text="Product A"
         template="catalog/product/widget/link/link_block.phtml"
         id_path="product/223552"}}
{{widget type="catalog/product_widget_link"
         anchor_text="Product B"
         template="catalog/product/widget/link/link_block.phtml"
         id_path="product/261339"}}

Some things to note:

The order of the widgets does not matter, 223552 always shows up while 261339 does not
Flat product table is enabled

Both 223552 and 261339 exist in the flat product table
I did not notice any missing attributes in 261339 that may be required

Both products are enabled and are visible
Have cleared cache and full page cache, no effect
Have reindexed everything, no effect


texts: Magento admin page login problem at first time after installation

texts:
When I install Magento 2, first of all, its screen was blank, when I resolve that problem then I am unable to login to admin page, I give my name and password again and again but its give me error "You did not sign incorrectly or your account is temporarily disabled." and show some other admin and password

Please help me resolve this problem,
and also in code of validator it show me some error like


texts: Magento 2: How to pass the payment method configuration value to the html template

texts:
I have deploy a payment gateway module based on the sample from github https://github.com/magento/magento2-samples/tree/master/sample-module-payment-gateway.

At this point, I'm trying to show additional information that were set on the admin configuration on the /view/frontend/web/template/payment/form.html. However, there only few methods that I can try to get the data from: getCode(), getTitle(), etc. What I'm trying to get is another field (let's say FieldA, which is defined as field_a on the admin xml config file under etc folder.

I checked on the variable window.checkoutConfig, but it did not seem to show much information that were set from the payment configuration on the admin.

Am I missing a step before I can pass the config data into the block file?

Thank you,


texts: Magento createBlock : Fatal error : Call to a member function toHtml()

texts:
I have been working on adding custom options on product category listing page. w.r.t here.

My code for display options list.phtml

<div class="actions">
<form action="<?php echo $this->getAddToCartUrl($_product); ?>" method="post" id="product_addtocart_form" <?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
    <?php if ($_product->isConfigurable()): ?>
        <?php echo $this->getLayout()->createBlock('catalog/product_view_type_configurable', array('template'=> 'catalog/product/view/type/configurable_category.phtml'))->toHtml(); ?>
    <?php endif; ?>
</form>

I am getting error like.

Fatal error: Call to a member function toHtml() on null in app/design/frontend/mytheme/default/template/catalog/product/list.phtml on line 154

where i am creating a mistake please correct me why the configurable_category.phtml template file is not loading.

please help

Thanks


texts: POST /rest/V1/carts/{cartId}/items isn't working when logged as customer

texts:
I'm trying to use all the /carts/{cartId} endpoint list in the magento rest API documentation with the cart ID I've recevied on POST /rest/V1/carts/mine but every time I'm getting a error

"message": "The consumer isn't authorized to access %resources.",
"parameters": {
    "resources": "Magento_Cart::manage"
}


texts: Filter product collection by hidden/external category

texts:
I am currently using the following code to return the products in category with id bulbsCategoryId (I get bulbsCategoryId from configuration)

$collection = $this->_productCollectionFactory->create();
$this->_catalogLayer->prepareProductCollection($collection);
$bulbsCategory = $this->_categoryFactory->create()->load($bulbsCategoryId);
$collection->addCategoryFilter($bulbsCategory)

This works fine if bulbsCategory is part of the store categories hierarchy. However I would like to use a category that is outside the store categories hierarchy (has a different roo category). Suppose I have the following categories:

Root (this is the store root category)
  Indoors lights
  Outdoors lights
  Light bulbs
External
  Common light bulbs (I want to filter by this category)

All products in Common light bulbs are also in Light bulbs but not the other way around. In this case the above code returns no results.

Is there a way to achieve this in magento 2?

Or do I have to move Common light bulbs under Root and hide it?

(I am using magento 2.3.1 - no need for backward compatibility)


texts:
I'm trying to load a product view into another page, here is how I'm trying to achieve

<?php Mage::register('product',$product);?>
<?php
      $customview = Mage::app()->getLayout()->createBlock('catalog/product_view')->setProductId($id)->setTemplate('templatefolder/customview.phtml');
      $html = $customview->toHtml();
?>
 <?php Mage::unregister('product');?>
 <?php echo $html; ?>

but in the result none of the childHtml or childchildHtml block is getting load. I need swatches to be displayed.

I think I have to set blocks as a child block of the $customview template object like

<?php
    $container1Block = Mage::getSingleton('core/layout') ->createBlock('core/template_facade', "product.info.container1");
    $container1Block->setDataByKey('alias_in_layout', 'container1');
    $container1Block->setDataByKeyFromRegistry('options_container', 'product');
    $container1Block->append('product.info.options.wrapper');
    $container1Block->append('product.info.options.wrapper.bottom');
 ?>

and then before calling toHtml I should set it as a child $customview->setChild('container1',$container1Block); but the issue remains still, I believe configurable swatches are called because of this code in layout :

 <PRODUCT_TYPE_configurable translate="label" module="catalog">
    Catalog Product View (Configurable)
    <reference name="product.info">
        <block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/default.phtml">
            <block type="core/text_list" name="product.info.configurable.extra" as="product_type_data_extra" translate="label">
                Product Extra Info
            </block>
        </block>
        <block type="catalog/product_view_type_configurable" name="product.info.availability" as="product_type_availability" template="catalog/product/view/type/availability/default.phtml" />
    </reference>
    <reference name="product.info.options.wrapper">
        <block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml">
            <block type="core/text_list" name="product.info.options.configurable.renderers" as="attr_renderers" />
            <block type="core/text_list" name="product.info.options.configurable.after" as="after" />
        </block>
    </reference>
</PRODUCT_TYPE_configurable>

And the way Im doing this won't be still applied on the block. can anyone please guide me the right way to do it or how to get my code working ?

Thanks


texts: Hide or remove "category" filter from the layered navigation

texts:
I'm struggling to remove the Category filter from the layered, because I already have a category dropdown menu in my new website, so it will be only a waste of space (and confuse my customers)

I know that this issue was already asked many times and already solved, but I tried every solution without success. I believe that this is related to the custom template I use for the website.

After looking at my local.xml file (found in my template folder)  I believe that I should work around these lines:

<reference name="product_list">
        <block type="core/text_list" name="category-right" as="category-right" translate="label">
            <label>Right Column</label>
            <block type="catalog/navigation" name="catalog.category" before="-" template="catalog/navigation/category_nav.phtml"/>
            <block type="catalog/layer_view" name="catalog.leftnav" after="catalog.category" template="catalog/layer/view.phtml"/>
            <block type="filterproducts/bestsellers_home_list" name="bestseller" template="catalog/navigation/best_sellers.phtml"/>
            <block type="core/template" name="right.permanent.callout" template="callouts/right_col.phtml">
                <block type="cms/block" name="cms_images_block">
                    <action method="setBlockId"><block_id>category_right_block</block_id></action>
                </block>
            </block>
        </block>
    </reference>

The first -block type- should be the category menu (and I'm fine with that). The second -block type- builds the "filter by" menu, just below the category menu, and I'm pretty sure that the problem is here.

I believe that I should unset something inside the "catalog.leftnav"  but even if I try to add this code :

<catalog_category_layered>
     <reference name="product_list">
        <action method="unsetChild"><child>category_filter</child></action>
    </reference>
</catalog_category_layered>

nothing happens. What am I doing wrong?


texts: How to use third party extension in local folder extension..?

texts: I am new in Magento customization. I want to use the third party extension in my local folder containing extension. How should I proceed..? can any one help me in which files I do changes,step by step way.


texts: Magento 2: Why is rebuilding config.php from CLI failing with 'Invalid Base URL'?

texts:
To set the background I am using Magento 2.3.0 and have imported (successfully so far) data from an existing multi-store site. I now can't access either the front end or the admin area of the site since the config has now changed and Magento throws an Exception requesting I rebuild config.php. The problem started when I changed a config key from the command line (the admin frontend URL).

Now when I try to rebuild /etc/config.php using

php bin/magento app:config:import

I receive the error
Import failed: Invalid Base URL. The value must be a URL or one of the placeholders: {{base_url}}
... which incidentally is a pretty feeble error message as it doesn't even indicate which key is causing the problem.

After stepping through the code I can see one of the offending keys is web/unsecure/base_web_url for the default scope which is causing the problem since in Magento 2 core post config read processing it is returning http:/// which clearly is an invalid URL. This is despite the fact that in my database (in core_config_data) there is an entry for that path and scope with a valid URL (which does end with a trailing /).

Stepping deeper into the code I can see the problem is that module-store/Model/Config/Placeholder is calling /App/Request/Http->getDistroBaseUrl() which uses the PHP Server variable ['HTTP_HOST'] to determine the host which is blank when called from the command line and hence returns the http:///.

If anyone can shed any light on how this can be resolved I'd be very grateful.


texts:
In admin there is no tab for compiler. And also with backup it just does nothing.

I am at a loss to what the issue could be.

I have reinstalled magento to another folder and compiler is there and backups work.

What i would really like to do is reinstall everything, and at each stage check the compiler and backup. I have tried this but am not sure of the correct route to take to do this.


texts: Where do i edit getChildHtml('content') ?>

texts:
Can someone tell me the path to edit the content in

<?php echo $this->getChildHtml('content') ?>


texts: how to add coupons Limit to a single customer

texts:
I'm using magento 2.1.9

And now one of my customers want to merchants return but we aggred that I won't give him a money but I'll give him a coupon equal the money so he will be able to use it to purchase any thing else how can I do this ?

Add coupons Limit to a single customer


texts: Custom column disappears to be filtered or sorted

texts:
I added a custom column to display weight of the product in product grid.

The grid displays the weights correctly, when filtered, the column disappears, but if refresh the page it returns and filters the records, when ordering the same thing happens.

I do not know why that happens, do not want to override the default magento code, just add a column without involving alerar codes pattern.

My codes:

config.xml

<adminhtml>
    events>
        <eav_collection_abstract_load_before>
            <observers>
                <dexxtz_customgrid>
                    <class>dexxtz_customgrid/observer</class>
                    <method>onEavLoadBefore</method>
                </dexxtz_customgrid>
            </observers>
        </eav_collection_abstract_load_before>
    </events>
</adminhtml>

layout.xml

<layout>
    <catalog_product_grid_update_handle translate="label" module="dexxtz_customgrid">
        <reference name="product.grid">
            <action method="addColumnAfter" ifconfig="dexxtz_customgrid/weight/active">
                <columnId>weigth</columnId>
                <arguments helper="customgrid/getWeightColumnParams" />
            </action>
        </reference>
    </catalog_product_grid_update_handle>
    <adminhtml_catalog_product_grid>
        <update handle="catalog_product_grid_update_handle" />
    </adminhtml_catalog_product_grid>
    <adminhtml_catalog_product_index>
        <update handle="catalog_product_grid_update_handle" />
    </adminhtml_catalog_product_index>
</layout>

Observer.php

<?php

class Dexxtz_Customgrid_Model_Observer
{
    public function onEavLoadBefore(Varien_Event_Observer $observer) {
        $collection = $observer->getCollection();
        if (!isset($collection)) return;

        if (is_a($collection, 'Mage_Catalog_Model_Resource_Product_Collection')) {
            $collection->addAttributeToSelect('weight');
        }
    }
}

function getWeightColumnParams()

public function getWeightColumnParams()
{
    $array = array('header' => 'Weight',
                   'index' => 'weight',
                   'filter_index' => 'weight',
                   'header_css_class' => 'a-center',
                   'align' => 'center',
                   'type' => 'text',
                   'width' => 100);

    return $array;
}

The problem seems to be in:

<adminhtml_catalog_product_grid>
    <update handle="catalog_product_grid_update_handle" />
</adminhtml_catalog_product_grid>

http://www.magentocommerce.com/boards/viewthr./viewthread/268277/

updated the catalog.xml and did not work


texts: Upgraded from 2.3.1 to 2.3.3, now billing address drop down is gone from checkout page

texts:
I am hoping to get some light here on the issue. After updating from 2.3.1 to 2.3.3 via composer, in the frontend, during checkout page, in the part where the user can change the billing address by unchecking "My Billing and shipping address are the same", the drop down menu with the billing address is no long appearing.

This behavior affect every payment method that requires a billing address. I have tried to turn off the one page checkout I was using and the behavior is the same. I have consulted with the one-page developer and they told me since the issue persisted with their module disable, the issue is most likely related to theme or static file generation but I do not see any related error log in the system.log or exception.log. The theme is the default luma theme, no changes.

However, in the checkout page, with Chrome web console, it does display some warning:

I have no clue where the error could be, I have tried to switch from Production mode to Developer mode, redeploy static content, flush cache, clean cache but all doesn't seem to work.

The commands I ran for the upgrade was:

php bin/magento maintenance:enable
composer require magento/product-community-edition=2.3.3 --no-update
composer require --dev allure-framework/allure-phpunit:~1.2.0 friendsofphp/php-cs-fixer:~2.14.0 lusitanian/oauth:~0.8.10 magento/magento-coding-standard:~3.0.0 magento/magento2-functional-testing-framework:2.4.5 pdepend/pdepend:2.5.2 phpmd/phpmd:@stable phpunit/phpunit:~6.5.0 sebastian/phpcpd:~3.0.0 squizlabs/php_codesniffer:~3.4.0 --sort-packages --no-update
composer update
bin/magento cache:clean
rm -rf var/cache/*
rm -rf var/page_cache/*
rm -rf generated/code/*
bin/magento setup:upgrade

Thanks for any help in advance.


texts: Magento 2 Migration URL Rewrite error CE

texts:
I had migrated data of the Magento multi-store/multi-website from 1.9.3.9 to 2.3.3 but during migration, I'm getting below error for URL rewrite.

  [INFO][mode: data][stage: volume check][step: Url Rewrite Step]: Error
  occurred. Rollback. [INFO][mode: data][stage: volume check][step: Url
  Rewrite Step]: Url Rewrite Step: rollback [INFO][mode: data][stage:
  volume check][step: Url Rewrite Step]: Please fix errors and run
  Migration Tool again

And because of this error when I hit URL of all products/categories or cms pages redirect to 404 pages.

If anyone faces a similar issue or knows any solution then let me know it'll be really appreciated.

Thank you.


texts: Magento 2 - Add CMS Static Block to Checkout Address Form

texts:
Evening All,

I am looking to add a static CMS block to the Magento 2 Checkout delivery address form. I would like display the CMS block under the phone number field. The old method would have been to pull the template into my new theme and update it but in Magento 2 the Checkout is being rendered by knockoutjs and I am a bit lost.

Any help with what knockout templates or XML layout I need to update to do this would be very helpful.


texts: How to add provinces additional to states and regions

texts:
In my country we have states and then local provinces under each state.

I want to reflect this in the shipping address and billing address so the states are listed in a drop down just like countries. And then the user can select their local province after selecting a state.

I need some guidance on how to properly create the states and local provinces in the database and how to tell Magento to display them in the frontend.


texts:
How to achieve this or what feature is it termed in magento.

I need to get scrollable sections something like in below snaps:

1) New products in one section with products

2) Offers in another section

How to achieve the same in front page??


texts: How to block few email domains to register to our shop (spam problem)

texts:
Our shop got new fake customers every day and almost all of them uses hotmails.com or rumbler.com email addresses. There is no real customer that uses these email domains so easiest solution could be not to accept these domains in register process. But how to do that? Any ideas?

We already use magento captcha, but that does not not help at all.

Thanks!


texts:
I'm trying to write an if statement that will pull the image label from the cms image area. If its not populated it will insert the image file name. The first part of the statement works. However the filename is not being pulled in.

    <?php if ($this->getImageLabel()): ?>

            <a href="<?php echo $popUpImage; ?>" rel="<?php echo $rel; ?>" class="<?php echo $class; ?>"
                title="<?php echo $this->escapeHtml($_image->getLabel()) ?>">
            <img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize($thumbnailSize[0], $thumbnailSize[1]); ?>"
            alt="<?php echo $this->escapeHtml($_image->getLabel()) ?>" />

<?php else: ?>

            <a href="<?php echo $popUpImage; ?>" rel="<?php echo $rel; ?>" class="<?php echo $class; ?>"
                title="<?php echo $this->escapeHtml($_image->getFile()) ?>">
            <img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize($thumbnailSize[0], $thumbnailSize[1]); ?>"
            alt="<?php echo $this->escapeHtml($_image->getLabel()) ?>" />

<?php endif; ?>


texts:
Apologies if this has been created in the wrong section.

I am interested in getting started with Magento and wanted to find out about the following for a website selling electronics accessories.

In particular to display the products to purchase once the customer has selected/reached a certain level of category/sub-category. For example, if a customer was looking for a battery for a Canon EOS 650D digital camera:

Customer would first choose the device type, Digital Camera. Then the manufacturer, Canon. Then Digital SLR etc...

Digital Camera > Canon > Digital SLR > EOS > 650D

So at each point only the category values are displayed for the customer to make further selection. Once they reach the desired model in this case 650D, the accessories or actual products to purchase are displayed.

This has to be achieve dynamically as opposed to loads of static pages.

Also, can all this information be uploaded by way of a product feed?

I would greatly appreciate if someone could shed some light as to whether this is possible in Magento. If possible and not breaking forum rules, are there any sites running Magento that have achieved this that I can take a look at?

Many Thanks in advance to help out this potential newbie.


texts: How to move module under one vendor to another vendor with the same functionality in magento 2?

texts: I wanna move a module under app/code/vendor1 directory to app/code/vendor2 . I know that I should replace all namespace from vendor1/module1 to vendor2/module2 and replace all vendor1_module1 to vendre2_module2 (for example in registration.php file) and replace other things. so what is the best way to move a module in one directory into another module directory with the same functionality?


texts: PayPal Sandbox: Error 10001: Timeout processing request

texts:
I'm playing a few hours with this strange error.

I'm using Magento 1.9.0.1 & PayPal Payments Pro (Includes Express Checkout).
I'm sure I have set all the creds correctly. Debug modes & Sandbox is turned on.

Neither Payments Pro nor Express Checkout is working.

What is in the payment_paypal_direct.log:

2014-11-09T12:13:24+00:00 DEBUG (7): Array
(
  [url] => https://api-3t.sandbox.paypal.com/nvp
  [DoDirectPayment] => Array
    (
        [PAYMENTACTION] => Sale
        [IPADDRESS] => XXX.XXX.XXX.XXX
        [RETURNFMFDETAILS] => 1
        [AMT] => 242.65
        [CURRENCYCODE] => USD
        [INVNUM] => 3025276
        [NOTIFYURL] => http://store.example.org/us/paypal/ipn/
        [EMAIL] => s******@gmail.com
        [CREDITCARDTYPE] => ****
        [ACCT] => ****
        [EXPDATE] => ****
        [CVV2] => ****
        [ISSUENUMBER] =>
        [ITEMAMT] => 235.00
        [TAXAMT] => 0.00
        [SHIPPINGAMT] => 7.65
        [L_NUMBER0] => D261
        [L_NAME0] => Product Name
        [L_QTY0] => 1
        [L_AMT0] => 235.00
        [BUSINESS] =>
        [FIRSTNAME] => Dr. Elizabeth A.
        [LASTNAME] => Asante
        [MIDDLENAME] =>
        [SALUTATION] =>
        [SUFFIX] =>
        [COUNTRYCODE] => US
        [STATE] => CA
        [CITY] => Fresno
        [STREET] => XXXX E Madison Ave
        [ZIP] => XXXXX
        [PHONENUM] => +1 XXX-XXX-XXXX
        [SHIPTOCOUNTRYCODE] => US
        [SHIPTOSTATE] => CA
        [SHIPTOCITY] => Fresno
        [SHIPTOSTREET] => XXXX E Madison Ave
        [SHIPTOZIP] => XXXXX
        [SHIPTOPHONENUM] => +1 XXX-XXX-XXXX
        [SHIPTOSTREET2] =>
        [STREET2] =>
        [SHIPTONAME] => Dr. Elizabeth A. Asante
        [METHOD] => DoDirectPayment
        [VERSION] => 72.0
        [USER] => ****
        [PWD] => ****
        [SIGNATURE] => ****
        [BUTTONSOURCE] => Magento_Cart_Community
    )

  [response] => Array
    (
        [TIMESTAMP] => 2014-11-09T12:13:24Z
        [CORRELATIONID] => 6f2bd705b0a21
        [ACK] => Failure
        [L_ERRORCODE0] => 10001
        [L_SHORTMESSAGE0] => Internal Error
        [L_LONGMESSAGE0] => Timeout processing request
    )

  [__pid] => 2271
)

The similar is in the payment_paypal_express.log.

The exception.log file says that Exception' with message 'PayPal response hasn't required fields. and right after that exception 'Mage_Core_Exception' with message 'There was an error processing your order. Please contact us or try again later.'.

The store currency is set properly.

php.ini's arg_separator.output = "&amp;"

In the PayPal Sandbox I have created a business account and a customer account.
Business account's API is used in the Magento's backend (PayPal settings).

What else have I set up to make it working properly?

Actually I read about this solution, but I don't know how to do that in the PayPal's Sandbox UI.

Any answer would be appreciated!


texts:
I understand this is probably very simple, but I have thoroughly confused myself and am hoping someone has a few minutes to provide clarity.
I would like to apply some very, very custom stuff to a specific product.
I have created this file:
\app\design\frontend\company\store_theme\Magento_Catalog\layout\catalog_product_view_id_4.xml

I would like to copy this file (details-product-4.phtml), and heavily alter it to do what I need to do:
\app\design\frontend\company\store_theme\Magento_Catalog\templates\product\view\details.phtml

How do I use the XML layout file to point to "details-product-4.phtml"?


texts: Is it possible to refund tax on a partial order refund?

texts:
When issuing a Credit Memo (aka refund), Magento automatically refunds tax on shipping and products BUT NOT on values entered in the "Adjustment refund" field (aka partial refund).

Is it possible to configure Magento so that it automatically refunds tax on values entered in the adjustment refund field?

Reference:


texts: Facing issue "The last status can't be unassigned from its current state" When we try to unassign a custom status from Order status grid

texts:
When we try to unassign a status from a state in the sales status grid we are facing the following issue

The last status can't be unassigned from its current state

https://www.screencast.com/t/eD5btItqI

Anybody having idea about this issue?


texts: Add slider plugin to my custom home page

texts:
I'm new to Magento and I can't find out what must be done to enable Auguria Slider Plugin in my custom home page.

Here's what I've done so far:

In Magento admin I created a website, a store and a store view
Switched to this store context and setup a custom theme for it.
Copied stuff from default theme to my custom theme
Overridden things here and there, built a view for featured category...

Then I installed Auguria Slider, which let me enable it to any CMS pages I choose in Magento Admin.

My question is, how do I insert it in my custom home page theme, since it's not listed on CMS Pages?

I found the XML file for Auguria Sliders and copied to my local.xml what I found appropriate, it looks like this now:

<layout>
    <cms_index_defaultindex>
        <reference name="head">
            <action method="addCss"><stylesheet>css/auguria/sliders/default.css</stylesheet></action>
            <action method="addJs"><script>auguria/sliders/jquery-1.7.2.min.js</script></action>
            <action method="addItem"><type>skin_js</type><script>js/auguria/sliders/slides.min.jquery_forked.js</script></action>
        </reference>
        <reference name="root">
            <action method="setTemplate"><template>page/1column.phtml</template></action>
        </reference>
        <reference name="content">
            <block type="auguria_sliders/catalog_category_slider" name="auguria_sliders" after="-" as="slider" template="auguria/sliders/slider.phtml"/>
            <block type="newsletter/subscribe" name="featured" after="slider" as="featured" template="page/featured.phtml"/>
        </reference>
    </cms_index_defaultindex>
</layout>

If I enable Template Path Hints, I see it creates the html needed for the slider plugin, but shows nothing because no slider images data comes from backend.

Can you help me with this? What am I missing?
Thanks in advance.


texts:
While migrating from linode to aws, getting this below error, version is: 2.3.4.
1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.
The following modules are outdated:
Mageice_AdminPaymentMethod schema: current version - none, required version - 1.0.0
Mageice_AdminPaymentMethod data: current version - none, required version - 1.0.0

Exception #0 (Magento\Framework\Exception\LocalizedException): Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.
The following modules are outdated:
Mageice_AdminPaymentMethod schema: current version - none, required version - 1.0.0
Mageice_AdminPaymentMethod data: current version - none, required version - 1.0.0
<pre>#1 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#2 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:26]
#3 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#4 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:24]
#5 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:261]
#6 Magento\Framework\App\Bootstrap->run() called at [index.php:39]
</pre>

So as described in exception, I have run the  bin/magento setup:upgrade command, and got the below error:
Notice: Undefined index: oauth_consumer in /var/www/html/vendor/magento/framework/Setup/Declaration/Schema/Db/SchemaBuilder.php on line 152
What could be the issue. Please help.


texts: Magento 2.1 magemonkey install extension failed

texts:
For the last couple of days I cannot install any extension on live server. The problems that I am having:

Web setup wizard is not showing. Found a workaround to access it via /admin/backend/setup ... only to say Upgrad already in progress and it is like that forever, no clue what is going on.

Tried to install it manually following the tutorials on web.

Step 1: Download/purchase the extension
Step 2: Unzip the file in a temporary directory
Step 3: Upload it to your Magento installation root directory
Step 4: Disable the cache under System >> Cache Management
Step 5: Enter the following at the command line:
php f bin/magento setup:upgrade

So I did it.

I unzipped the file and get ebizmarts-magento2-magemonkey-3.0.7 folder.
I copy that folder in my public_html/magento/ folder (magento root folder). So now i got ebizmarts-magento2-magemonkey-3.0.7 inside my root magento.
php f bin/magento setup:upgrade, also tried static content deploy, and nothing.

I can install this extension via composer on my localhost, but I can't manually. On my live server I need to install it manually.

I am guessing that all tutorials on the web are missing some steps. Do I need to follow some naming convention. Some say that I should copy that folder in pub/code. What am I missing?


texts: Redirect to order listing after order status change from admin panel - Magento 2

texts:
In admin panel, after order status change from pending to complete, I want to redirect it to listing page.

How can I redirect to order listing page straight after the order status change to complete?


texts: Change Order status to processing automatically

texts:
I'm using a custom payment module Billdesk and I want the order status to be processing automatically when payment is completed using this module. In all other cases order status should be pending which is available in Magento by default.

While using Billdesk module if there is a due amount in that case also, I want order status to be pending by default. Here is my observer function for checkout_onepage_controller_success_action event

 <?php
class Embitel_Billdesk_Model_Observer {
    public function updateStatus($observer){
        $order_id=Mage::getSingleton('checkout/session')->getLastOrderId();
        $order = Mage::getModel('sales/order')->load($order_id);

        if($order_id){
        $order = Mage::getModel('sales/order')->load($order_id);
        $payment_method_code = $order->getPayment()->getMethodInstance()->getCode();

            if('embitel_billdesk' == $payment_method_code ){
            $order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, true)->save();
            }
        }
    }
}

I'm not sure, how I can add the validation that order status will be set to processing when card type is credit and there is no due amount. Is there a way to check the due amount on frontend? If I'm using credit cart, will the order amount be the due amount?


texts: Getting "Could not read config file" error during product save

texts:
I've Migrated Magento1 to Magento2.2.5, when I updated a product either changing any field or not then getting "Could not read config file" error:-

Please visit on below screenshot for the same :-

http://nimb.ws/sar6ce

Waiting for your response.

Thanks!!!


texts: It's possible to call block type template in custom variable?

texts:
sorry it's my question it's stupid, but i want to know if it's possible in Magento 1.9, to call a block of type template in custom variable ?
Thanks you, have a good day :)


texts:
I get the above error while upgrading from Magento 2.1.8 to Magento 2.2.1

2 exception(s):
Exception #0 (ReflectionException): Class Magento\Framework\View\Layout\Reader\Visibility\Condition does not

  exist


texts: Magento 2 admin panel not working after ssl

texts:
I have an error that maybe someone can help with.

  This problem can sometimes be caused by disabling or refusing to accept cookies.

After i went live with my magento 2.2.2 everthing went smoothly, after that installed SSL certicate and went into maintainance mode (of course excluding my ip)
Basically my admin rewrite/redirects for https are not working, and I can't access the admin panel, front-end working fine btw.

Browser spits out this message.

The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

This problem can sometimes be caused by disabling or refusing to accept cookies.

Note : Rewrite engine is on from htacces and conf. so....


texts: Magento 2 - Discount on Price with FPT and VAT not working

texts:
We are facing an issue on Magento 2.2.5 regarding discount on product price.
Here is the use-case:
I have a product with Base Price = 18€, Tier Price (I'm working with Customer groups) = 7.23€, FPT = 2.8€ and VAT = 22%
The price is 12.24€ for this product ( (7.23+2.8)*1.22 = 12.2366), everything is fine so far.
Please note that in the configuration, we show the product price tax included on the catalog and the checkout.
I have a coupon which apply 20% discount this product.

Here is my configuration for tax under Stores > Configuration > Sales > Tax

When using this coupon on the shopping cart, the discount amount is as follow

While we expect to have 2.44€ of discount.

I cannot even explain the output since it does not make sense to me.

Thanks for your help !

/T


texts: Magento 2 : How to do translation text as per area and scope vise

texts:
I read this answer here.

Extension example : click here

It's perfect extension as I want. But, I need in M2.

But, I want to do translate like :

If "Test" string comes from Abc_Test Module. Then, translate only
working in Abc_Test module text.
If "Test" string also available in Magento_Catalog Module. Then,
translate text apply which assign in Magento_Catalog Module.
If "Test" string also available in Magento_Catalog Module and set
Area Frontend. Then, translate text apply only in frontend side
which assign in Magento_Catalog Module.

How it works ?

Any help would be appriciated.


texts: How to add Grand Total in base currency to the PDF invoice?

texts:
We are running a 1.9.0.1 install and need to display the grand total base currency value on invoices that have been generated using other currencies than base.
Even better if all the values on the PDF invoice could be displayed in both currencies.


texts:
In Store -> Configuration -> design I have no option to set the welcome message.

Did it move?


texts:
On the default Magento installation, when a customer registers they are
brought to the customer dashboard, which displays several entries in the
customer dashboard screen menu under the MY ACCOUNT heading. In this menu
there is an entry for "My Downloadable Products". Since I am setting up a
store which only offers Simple Products, I would like to delete this entry
from the customer dashboard. Is there a way to remove it from the admin
interface without having to modify source code?

Thanks.


texts: I have tried almost every single thing there were some errors in system.log file i have also removed that , gave so much time to solve this issue . i want to minify and merged js . i set developer mode and select options using store->configuration->advance->developer nothing changed in my site i did run all commands upgrade, content deply , di compile , cache flush everything . gave permissions and all but still no good luck . can anyone give me some good trick ?


texts:
With my magento 2.1.9 i can not save product, because I have an error:

  Invalid input datetime format of value '22/09/2017

I think Datepiker reverse month and day, however I have good parameters in catalog settings (custom date : Day / Month / Year) and my user local is fr_FR.

Someone know why?


texts: base_row_total in email template - total price issue

texts:
I'm creating an email transactional template and I noticed my total isn't showing the 19.89 cents. the code is what I'm using below in my Items.phtml

'total' => $wa_data['symbol'] . ' ' . intval($vars['_data']['base_row_total']),

then in my template I'm using this,

<?php echo($_item['total'] ); ?>

How do I get the price to be 19.89 showing the cents instead of just dollar account?


texts: How to load a classmap[ped] Composer class (packagist) in Magento 1?

texts:
I've installed and deployed magento-hackathon/magento-composer-installer in my Magento 1.9 and I am trying to add and use mpdf/mpdf (composer packagist) in a controller.

This package contains a classmapped file

"autoload": {
    "classmap": [
      "filters/",
      "fpdi.php",
      "fpdf_tpl.php",
      "fpdi_pdf_parser.php",
      "pdf_context.php"
    ]
  },

Which is called in another component.

$this->parsers[$fn] = new fpdi_pdf_parser($fn);

And then Magento gives me the error

  Warning: include(Fpdi/Pdf/Parser.php): failed to open stream: No such
  file or directory  in
  /../mymagento/lib/Varien/Autoload.php on line 94

The Mage.php seems to be patched properly, and I also tried to do composer dumpautoload.

Some facts and findings:

If I create a /newfile.php (on the root folder, with not triggering Magento), include autoload.php, and call the method, it works.
If I disable developer mode it works (and the warning is logged).
If I change the Varien/Autoload.php and add an if(stream_resolve_include_path($classFile)) (as suggested here) before returning the include, it works (but I would override a core file).
It seems that when composer autoload resolves fpdi_pdf_parser it makes a require_once to 'pdf_parser.php' and at this stage Mage autoload is triggered instead of Composer's autoload.

Am I missing something? Any help is appreciated.


texts: Magento 2 : How to specify compatible versions of extension when publishing on Marketplace

texts: How can I specify Magento extension is only compatible with Magento 2.1.x and 2.2.x when submitting it to Magento Marketplace?


texts:
As per the answer of pspahn in the thread https://stackoverflow.com/questions/5253606/magento-related-products-not-displaying-on-product-page , there is a filter that makes Magento not display the related products when they are already in the cart.

How to disable this filter?

Use case : I am using it for my spare parts and I would like to keep it showing no matter what.


texts: Can't find Magento installation folder in Ubuntu server

texts: We bought Ubuntu dedicated Server, I can't figure out where is my magento installed in our Ubuntu server. I am poor in CLI, Please help.