texts: how do i delete urls of other stores in magento?

texts: Can anyone please let me know how do i keep urls of english stores and mass delete urls of Russian, French, German stores etc? because at the moment i have 8 Million URLs and how do i stop generating urls of Russian, French, German stores? Thanks in Advance.


texts: Noindex when product list has only few products shown

texts:
Hello,

I'm currently searching how to noindex a product list page when there is for example, less than 3 products shown, in order to improve SEO.

Could you please give me any advice to realize it ?

Thank you for your assistance, have a nice day.


texts: magento 2: How to wish list on this type design and code?

texts: I have no idea how to wish list page design and code so please help this my is work .


texts: Difference in saving of billing and shipping addresses

texts:
If a new billing address is also used for shipping (the corresponding checkbox is set) Magento of course creates a record in sales_flat_order_address for each.

Is there any reason why customer_address_id field which keeps the reference to customer/address entity is only saved for billing address while shipping remains NULL?

Note: The issue can be reproduced only for inserting a new address during the checkout. For existing addresses it puts references for both. Which is even more strange.

Note2: you can observe this behavior in sales_flat_order_address and sales_flat_quote_address.


texts: Magento 2 pass data from template phtml to js file

texts:
I want to call an ajax function on a button click. All other things are working fine. But I can't read the parameter which is passed to the js.  How can I do it? Here is my code.

Phtml file

Success

    <input type="text" id="name" class="name" maxlength="8" placeholder="<?= $block->escapeHtml(__('ENTER NAME')) ?>">
    <input type="button" value="<?= $block->escapeHtml(__('CHECK')) ?>" id="check-button">

JS File

require([
    "jquery",
    'mage/template',
    "mage/mage"
], function ($, mageTemplate, alert){

    $('#check-button').click(function(){
        jQuery("#successmsg").css('display','none');
        $.ajax({
           url: config.ajaxurl,
           type: 'POST',
           dataType: 'json',
           data: {name: $('#name').val()},
           complete: function(response) {
              if (response.responseJSON.success) {
                 jQuery("#successmsg").attr('style','display: block');
           },

        });
    });
});


texts: Send custom email by using cron job magento2

texts:
I want to send an Email through a cron job for every 24hrs once.In that email need to mention all the abandoned cart details.
I am new to Cron jobs so can you please explain it. Thanks in advance


texts: Magereport is saying "No Magento installation found" for Magento sites

texts:
I have several Magento websites that I have scanned with Magereport tool before but now I get the message "No Magento installation found" for blastofffireworks.ca

Any reason why your tool is not working anymore? All the sites I try to scan are Magento sites


texts:
How to load attributes in create configuration by selected attribute set?
check below images

Whenever I have a change attribute set then in below configuration load attribute list by selected attribute set
 set.
Is there any solution?


texts: I want user to be able to retrieve password for login in a way that it should be same for magento and wordpress. My site front end is in Wordpress and store is in magento. is there any way that a user will be able to generate request of lost password or login request from either of the cms and it applies on the both cms. I am open for plugins. Right now login request is working smoothly for both cms. I am facing problem with forgot/remember password. I am stuck in Logic.


texts: How can i add custom css and js in magento 2.2.2

texts:
Please help me how can i add my custom abc.css and filename.js  in magento 2.2.2 .

default_header_html.xml file path

app/design/frontend/custom-theme/my-first-theme/Magento_Theme/layout/default_header_html.xml

my css path

app/design/frontend/custom-theme/my-first-theme/web/css/source/abc.css

my js path

app/design/frontend/custom-theme/my-first-theme/web/js/filename.js


texts: Change product image based on bundled item selected

texts:
the site I am building sells vanities

Using bundled products they want to display a different picture as the customer selects bundled items

Page loads, it shows a base image

Customer has option to select faucet, sink and cabinet
Customer selects Faucet 2, image changes to faucet 2 base 1 sink 1 (I will have images created for each scenario
Customer selects Sink 4, image changes to Faucet 2 base 1 sink 4 (again, image is created with this selection)

I have looked for modules that does this with no luck... any ideas would be welcome

Magento 1.8 (going to 1.9 soon)


texts: How to Set Session Cookie Based on Query-String Param in Magento

texts:
I'm building a Magento sandbox environment and need to set a session cookie based on a value in the query-string. The value in the query-string will be used to set an account ID for another service used within this Magento environment. This is not a production, public facing environment, so security is not a concern.

My first challenge is figuring out where to actually place the code within the Magento MVC. All users accessing this system will come directly through the root domain (as opposed to a specific page within the site... say a product or product category page). The bookmarked URL will look something like this:

http://www.somedomain.com/index.php?accountID=12345678

Below is the initial code I wrote to evaluate the query-string and set the cookie value:

$account_id = $this->getRequest()->getParam('accountID');
$account_id_cookie = Mage::getSingleton('core/cookie');
$account_id_cookie->set('account_id',$account_id,time()+86400,'/');

Where is the best place to put this code within the Magento MVC? I tried the root index.php file but it doesn't work. I suspect the best place is within a controller but I'm not sure which controller file is appropriate.

Once this value is set within a session cookie, it will be referenced in a JavaScript snippet located within the footer of the site so it's necessary for the value to be present in the cookie prior to the footer include being parsed.


texts: Load related products inside description file

texts:
I want to load the related products inside the /catalog/product/view/description.phtml file.

Therefore I added the following code, but the related products are not loaded.

What am I missing?

CODE:

            <?php if (isset($section['related'])) {?>
                <?php echo $section['related']; ?>
            <?php } ?>


texts:
I am working on a multistore setup. There is a problem with admin area: it is redirecting after login to base domain admin domain.com

I am using this code in .htaccess for multiple stores:

RewriteCond %{HTTP_HOST} (.*)?domain\.us [NC]
RewriteRule (.*) - [E=MAGE_RUN_CODE:usa]
RewriteCond %{HTTP_HOST} (.*)?domain\.us [NC]
RewriteRule (.*) - [E=MAGE_RUN_TYPE:website]

Is there any way we can separate both admin panels? If an admin user logs in to domain.us so he can access only domain.us with all features, not the base domain.com ?

One more question: is there any difference of MAGE_RUN_TYPE website and Store?


texts: Create order on other Magento Stores using web API

texts:
I'm new to Magento. My friend own an E-Commerce Store powered by Magento. I want to place an order on his website using the Magento APIs. Is it possible without using his admin credentials/token?

Is it possible to have another set of credentials that just let me create an order and do nothing else?

I want to learn it for both Magento 1.x as well as 2.x. So please share info about either or both versions you might have.


texts: Currently Using Rocketgate for CC Processing, but it's not showing up on the re-order form

texts: We are using Rocketgate to process CC's, however, in the admin, for create new order, and the re-order form, none of the payment options are showing up.


texts:
I'm trying to send email to customer email id while he place order
after click checkout I got this error :

  Exception #0 (Magento\Framework\Exception\MailException): 5.7.0 Must
  issue a STARTTLS command first. 3sm1925134pai.48 - gsmtp

What are the possibilities of this error?
plz help guys


texts: How to set inventory of all product fom 9999 to 1

texts:
I have a client who has set the inventory of all products in 9999 pieces. Now he wants to use the warehouse management.
It should all products are reset to 1. Is it possible to automatically make?

Maybe with a SQL-Query?
Or an extension?
We use Magento 1.9.0.1

Thank you ever


texts: I have an issue while adding sub categories.Its showing 1 in addition to the category name i.e subcategory 1 and the products are not reflecting at the front end. please help me on that as I am new to magento.


texts: Magento 2.3.0 How to display only product attribute in custom rule condition into the custom admin form using the ui component

texts:
I have implement custom condition Rule to my custom module Take refrance from this link and it is working fine.

But it is display also other rule like cart attribute, customer attribute, other attribute display like below image

But i don't want other attributes list i just want only product attribute list display like below image.

Any help would be appreciated!


texts: Where i can find "sales_order_create/loadBlock/block/card_validation" ajax call while reorder from backend?

texts: I am not sure where i can find ajax call for "sales_order_create/loadBlock/block/card_validation" Is their any way we can find it ?


texts: getting ch/en/rest/en/V1/carts/mine/postfinancecw/checkout/authorize 404 iisue

texts:
After upgrading magento to 2.3.6 p1 EE from magento 2.3.2 EE ,
I'm getting below issue:
ch/en/rest/en/V1/carts/mine/postfinancecw/checkout/authorize  404

Request does not match any route.


texts: Magento 2 : Replace labels in invoice pdf

texts:
I am new in magento 2. I am facing problem in replacing labels in pdf invoice. I need to replace "Tax" label by "GST" label which is present at right hand bottom. I have wasted more than 6 hours on this but not getting any solution.

Please help me in this.


texts: Error : Extra parameters passed to parent construct: $coreRegistry

texts:
I have a controller in my custom module, but when i run php bin/magento setup:di:compile, i got this following error:

  Extra parameters passed to parent construct: $coreRegistry

here's my controller code:

use Magento\Framework\Exception\LocalizedException;

class Save extends \Magento\Backend\App\Action
{

    protected $dataPersistor;

    /**
     * @param \Magento\Backend\App\Action\Context $context
     * @param \Magento\Framework\App\Request\DataPersistorInterface $dataPersistor
     */
    public function __construct(
        \Magento\Backend\App\Action\Context $context,
        \Magento\Framework\Registry $coreRegistry,
        \Magento\Framework\App\Request\DataPersistorInterface $dataPersistor
    ) {
        $this->dataPersistor = $dataPersistor;
        parent::__construct($context, $coreRegistry);
    }
}


texts: CSRF Attack & Session Hijack Vulnerability

texts:
From the 1.8CE Alpha release notes:

  The Magento web store has additional Cross Site Request Forgery (CSRF)
  protections, meaning an imposter can no longer impersonate a newly
  registered customer and perform actions on the customer's behalf.

and:

  In earlier versions, Magento was vulnerable to a session fixation
  attack during the registration process. After logging in to their
  account, a registered user's session ID did not change. Therefore, if
  an attacker had knowledge of an unauthorized session ID and if that
  user successfully registers, the attacker was able to take over the
  newly registered account. Now, the session ID changes after successful
  registration, making unauthorized use of an account impossible.

If this is in the release notes, and I don't see a point-release on prior versions addressing this (am I looking in the wrong place?) - then does that mean that current pre-1.8 stores are potentially open to these attack vectors?

Source: http://www.magentocommerce.com/knowledge-base/entry/ce-18-later-release-notes


texts:
magento1.9 Add block in checkout page
Add a block below discount code form


texts: How to show Category image in one layout.?

texts:
I want to show category image in one layout, the layout in which product list is appearing.

Adding image through Catalog->Category->Category_name->Content->Categoy image.

Category page has 2column-left layout, one section have Compare Product and Wishlist and the second section have product listing.

I want it to display it in product listing section.


texts: CLI not working with save(); due to other observer checking for Role

texts:
Here is my code. I have a simple batch script I'm testing. I can't get save() to work at all. I can get saveAttribute... to work.

All this simple test would be update status. We will use it for many other things, but I'm just getting the construct to work. It works off IDs --from 1 --to 500 for example. I've tried other scripts and same issue. Can't seem to isolate the issue.

<?php

$options = getopt('',array("from:","to:"));
if( !empty($options) &&
    isset($options['from']) &&
    isset($options['to']) )
{
    if(is_numeric($options['from']) && is_numeric($options['to'])){
        echo runScript($options['from'],$options['to']);
    }else {
        echo "Make sure parameters are numeric";
    }

}else{
    echo "Missing Arguments";
}

function runScript($from,$to){
    $_mage_file = 'app/Mage.php';
    if(file_exists($_mage_file)){
        require_once($_mage_file);
        umask(0);
        Mage::app();
        echo "Processing...";

        $_collection = Mage::getModel('catalog/product')->getCollection()
                        ->addAttributeToSelect('*')
                        ->addAttributeToFilter('entity_id', array(
                            'from' => $from,
                            'to' => $to
                        ))
                        ->load();

        foreach($_collection as $_product){

                try{

                    // BOF AC Script

//                    $product = Mage::getModel('catalog/product')->load($product_id);

            $_product->setData('status','2');
//                    $_product->getResource()->saveAttribute($_product, 'status'); //Works

                    // Save the values
                  $_product->save();  //Doesn't work

                    // EOF AC Script

                }catch (Exception $e){
                    echo "Exception :". $e->getMessage();
                    exit;
                }

        }

    }   else{
        return "Please make sure script is at Magento root. app/Mage.php file not found";
    }

}

This script work just fine, but we have other observer that fire when a product is saved on the admin that only fire for certain roles.

Here is that script.
What I need is a way to work with both.

$admin_user_session = Mage::getSingleton('admin/session');

$adminuserId = $admin_user_session->getUser()->getUserId();

$role_data = Mage::getModel('admin/user')->load($adminuserId)->getRole()->getData();

$role_name = $role_data['role_name'];


texts: Magento Multisite using same theme for different websites but with the different style/css

texts: I am using a magento multisite setup. There i am having different websites and i want to use the same theme but with a different css/color customization for each one. I tried to create a new folder of style as per explained here . But it is not working.


texts: Magento 2 RSS Feed for coupon codes gives parameter error

texts:
I am trying to get rss feed for coupon code,

Rss Feed for New Products, Special Products and all categories is working fine but not working for coupon code, I tried it on multiple magento installation but for coupon code it is not working anywhere.

The error which I am getting is:

Please help me with this.


texts:
Is Magento 1.9.1.1 compatible with PHP 7.1 and MySQL 5.7?
And what is the system requirements for Magento 1.9.1.1 ?


texts: I have a site that would like to only allow the UK to buy and ship products. They would like to block all countries outside of the uk from purchasing anything from their multistore.


texts: I'm upgrading Magento 2.2.8 to 2.3.3 and I was getting error quote_address table already exists then I removed quote address table from my database. After that I ran command setup:upgrade then following error start to come.


texts:
I am looking to disable menus for certain users present within
Stores->Configuration->sales->Checkout Totals Sort Order .
I have added their values in acl.xml But it does not work.

How to disable or hide the core ACL resources in Magento 2


texts: What is the difference between a field and attribute?

texts:
In Magento terminlogoy, some times variables are named attribute and sometimes name.

While the case of attribute is clear and it means the attribute in the EAV model, the case of a field is not clear.

For example, in the file app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php, there is a function named joinAttribute and there is another joinField, which has two completely different implementations.

But, for example in this file this is the method addFieldToFilter:

  public function addFieldToFilter($attribute, $condition = null)
  {
      return $this->addAttributeToFilter($attribute, $condition);
  }

which seemingly, means that the two are the same.

What is the different between a field and an attribute?


texts: Magento 2 + How to share cart for guest users between multi websites

texts:
I have a magento 2 website where I want to share cart between websites (for logged in users and guest users). For ex. guest user added product1 to the cart from website1 and now user switches to website2 then user would be able to see the same product to cart already.

magento is only providing cart sharing between stores not websites. Also I've tried couple of the multiple store cart sharing settings but no luck till now. However, I would love to hear solution for multiple websites.


texts: Change Website a customer is associated too

texts:
in the past we had one store for Customers and Wholesale. We have now created a second store in the installation of magento. So 1 Installation, two stores.
I would like the wholesellers which are now associated to the Customer store to be changed that their account only works on the wholesale store.

Is there a way in doing this. At the moment its just greyed out.
Thanks.


texts: I have "set" of product which consists of 7 pieces. 1 of each piece so only 1 set. Pieces can be sold individually so when a piece is sold, the inventory for the "set" should be 0. Likewise, if the "set" is sold, inventory for the 7 pieces should be zero. How can this be configured?


texts: Shopping cart rule applied but totals are not updated with discount amount

texts:
I am using magento 1
On admin reorder page their is no shopping cart rule applied ?
Where i should check for it ?
any thoughts ?


texts: order should be paid before save or not?

texts:
I have a logical question about magento checkout

is orders should be saved after a payment received or not?

i saw there is a placeOrder function in js files of paypal braintree or even simplegateway module ! ... is it called before payment received by this modules or not?


texts:
Since a few days we have an empty System Notification in our magento backend. Like this:

We tried to disable and re-enable Magento_AdminNotification, but it still there.I also checked the admin_system_messages table and it's empty.
Any idea?
Thank you...


texts: How should i get the count of products in wishlist?

texts:
      <?php $moduleName = 'wishlist';
      $cartCount = Mage::helper('checkout/cart')->getCart()->getSummaryQty();?>
        <?php if ($this->helper('wishlist')->isAllow()) : ?>
              <a class="trigger-link-wish-list" href="<?php echo $baseUrl; ?>wishlist/">

    <?php if ($cartCount > 0): ?>

            <?php echo $cartCount; ?>

    <?php else: ?>
        0
    <?php endif; ?>

  <?php endif;?>


texts: Magento 2 Redirect to 3rd party payment gateway with post data

texts:
In Magento 1 we define the getOrderPlaceRedirectUrl in the model which extends Mage_Payment_Model_Method_Abstract and redirect to a particular controller after checkout submit. Then from the controller we call $this->getResponse()->setBody($this->getLayout()->createBlock('someblock')->toHtml()) and inside the block we create a form with post data and redirect to a 3rd party payment gateway.

In Magento 2 i heard that getOrderPlaceRedirectUrl is not available and i'm unable to understand how it is handled. Can someone please guide me to achieve the above scenario in Magento 2.1?


texts: Change the default layout template programatically

texts:
I need to change default layout file (1column.phtml, 2columns-left.phtml, etc.) based on currently logged in user (user group) and if he's logged in or not.

Is changing the default template possible from inside the PHP code, I mean just layout, I know how to do PHP logic?


texts:
I'm creating a function called getAttributeTitle() which basically as the name suggests, gets the name of the title. I have hit a wall however and tried searching many things but couldn't really find anything - my goal is to return the value in a template file $this->getAttributeTitle but the foreach obviously would only return the last value in the foreach - not dynamic

here's my code:

public function getAttributeTitle() {
    $attributeTitle = $this->getAttributes();
    foreach ($attributeTitle as $attrTitle) {
        $title = str_replace('_', ' ', $attrTitle);
    }

    return $attributeTitle;
}

all I want is foreach of the attribute titles - return the title in a user friendly way but not sure how - any ideas?

Thanks!


texts:
Is there a quick way to check the name of an object. For example, if I do...

$product = Mage::getModel('catalog/product')->...;

How can I get check to see it is a Mage_Catalog_Model_Product for $product?


texts: Magento Paypal Configuration button is disabled

texts:
Hello All,

I am trying to configure paypal on my magento store and all paypal options are disabled (the button is grey and non-responsive)

I have relocated this store prior to setting up paypal, but this is the first and only time that this has happened to me. I also have a pending reindex that needs to happen (but that's in the too hard basket atm because it looks like I need to do it through SSH)

Does anyone know how to get it working? :)


texts:
Hello everyone!
When using the action "Update attributes"
I get an error:
The error started showing up after updating magento version to 2.4.2
Have any ideas how to fix it?


texts:
I'm fairly new to Magento, so apologies if this has been answered before and I just haven't been able to find it. I'm currently working with a client who requires bulk product imports, but their sizes aren't particularly user friendly. To get around this I created a secondary size attribute for the store front end which can be selected manually.

The front end is displaying these values fine, so what I'm looking for now is a way to access a list of which attribute options have been selected by products so that I can build a filtration system using it (eg if there are no medium products in stock then the "medium" size won't appear in the attribute option array)

Thanks for any help you can give


texts: How do I access property within an object within an array?

texts:
I'm using the following example from Magento api to check for a specific customer:

$client = new SoapClient('http://localhost/magento/api/v2_soap/?wsdl');

$session = $client->login('fakeuser', 'fakepass');

$complexFilter = array(
    'complex_filter' => array(
        array(
            'key' => 'email',
            'value' => array('key' => 'in', 'value' => 'thecustomer@imlookingfor.com')
        )
    )
);
$result = $client->customerCustomerList($session, $complexFilter);

if (empty($result)) {
    echo "no customer found";
} else {
    var_dump($result);
    // echo $result[0]->stdClass->fistname; // code in question
}

here's the response I'm getting

array(1) {
  [0]=>
  object(stdClass)#2 (10) {
    ["customer_id"]=>
    int(52)
    ["created_at"]=>
    string(19) "2014-09-14 03:08:27"
    ["updated_at"]=>
    string(19) "2014-09-14 03:08:28"
    ["store_id"]=>
    int(1)
    ["website_id"]=>
    int(1)
    ["created_in"]=>
    string(18) "Default Store View"
    ["email"]=>
    string(21) "thecustomer@imlookingfor.com"
    ["firstname"]=>
    string(6) "John"
    ["lastname"]=>
    string(10) "Doe"
    ["group_id"]=>
    int(1)
  }
}

what I'm trying to do is echo out the customer's first name. I tried this:

echo $result[0]->stdClass->fistname;

but I'm getting these errors.

Notice: Undefined property: stdClass::$stdClass in /Users/sergey/Desktop/andagain/control-panel/check-if-customer-exists.php on line 24

Notice: Trying to get property of non-object in /Users/sergey/Desktop/andagain/control-panel/check-if-customer-exists.php on line 24

What am I missing?


texts: checkout payment page not showing billing address fully after apply coupon in magento 2?

texts:
Billing address not display on checkout if I apply coupen on checkout cart page then billing address only get pincode and country name
First name and Last name and address not display on checkout payment page
Is there any solution for this issue?


texts: If customer try to place order as guest using email, which is already register then assign  order to that register user.


texts: Magento 2 Mobile Menu - 2nd level redirect issue

texts:
The Magento 2 mobile menu is already fully expanded by default revealing all categories and subcategories which is a huge problem if you have a very deep menu structure. I have been able to make it collapsed by default by changing "expanded" to "false" in the topmenu.html file.
{"responsive":true, "expanded":true, "position":{"my":"left top","at":"left bottom"}
Now my issue is that once you click on a 2nd level item to "expand" or reveal the 3rd level menu items, it instantly redirects you to the 2nd level category. Is there a way to remove the redirect function when clicking on the 2nd level menu items so that you can continue to drill down into the menu structure without being redirected?
Can someone please help me.
Thanks in advance!


texts: Add to Cart from the Quote page not working

texts:
I put a link at the bottom of the quote page to up-sell a service plan on tires within the cart.

<a href="/checkout/cart/add?product=<?php echo $id?>&qty=4">Add

The problem is that the cart doesn't display the added product when the cart page refreshes.

I debugged the CartController and the product is added and saved correctly. But when I debug the cart template the newly added item is not displayed.


texts: 500 Internal Server Error on /checkout/onepage/saveOrder/ redirects to cart without emptying

texts:
I am facing 500 Internal Server Error on /checkout/onepage/saveOrder/form_key/xxxx at the time of clicking place order button at checkout page.

I have found the same issue at this link http://forum.azmagento.com/how-to/500-internal-server-error-on-checkout-onepage-saveorder-redirects-to-cart-without-emptying-71292.html and they have mentioned PHP Memory limit is the problem.

My question is whether this is the apt solution for the issue or any other reason for this issue.

Please help me from this issue..


texts: not stored value in Mage::registry after admin session expire

texts: I have added this code Mage::register('test_checking_login', 1); after admin login and when expire session or delete session directory from var/ folder so Mage::registry('test_checking_login') displays null value why it does not display set value.How can I achieve this ?


texts: Wrong RowTotal price when custom modules are active

texts:
My RowTotal - excluding tax price takes wrong value when my custom modules (for add row with custom item to Rowtotal) are active - It takes value/price with inlcluding tax.

But just when both of my two custom modules ( one for each custom row in rowtotals ) are active.

If just one is active ( no matter which one ) it works fine and rowtotal-excluding tax takes correct value.

Please advice in which file of my modules can be problem so I can paste code here.


texts:
We catalog price rule which give 35% off on all category product.
SKU T1: $50 Regular price- $32 Salable Price
Now I am loading that product throught product factory

$product = $this->productFactory->create()->load(1);
echo $product->getPriceInfo()->getPrice('final_price')->getAmount()->getValue(); //getting right amount $32

$product->getFinalPrice(); //$50 wrong result

what is the the issue?


texts: My category links comming from mega-menu extension is not working (giving 404 error) . I have tried almost everything suggested on magento stack exchange or any other site used for question answers , discussions etc , things which i have tried are admin->search engine optimization etc . but the end i came to end with no good resuls . i want to know if something i can do ? i am using magento 2.2.6 is this is the bug in magento 2.2.6?


texts: Can't login to Magento admin 1.9 timezone (Etc/UTC)

texts: When I went to login to my magento backend today I started getting an exception of timezone (Etc/UTC) is not a known timezone.


texts: Unable to get Not Visible Individually products magento 2

texts:
I am using DI

  \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $collectionFactory

in my class and get all products using

$collect = $this->collectionFactory->create()->getItems();

but when i need to filter specific category products using

$collect->addCategoryFilter($child_detail)

those products with VISIBILTY = Not Visible Individually do not appear in my search only VISIBILITY=Catalog, Search products appear.

kindly help thanks in advance.


texts:
I would like to give my client, who is running a Magento Store, the possibility, in the backend, to export the list of all guest customers who made orders.

Is there a simple way to achieve this?


texts: Overriding template for a specific language

texts:
I would like to override a template but only for a specific language (ar_SA)

The template I want to override is:
Magento_Catalog/templates/product/list.phtml

I have tried putting it in the following locations but it didn't work for any of them:

<VENDOR>/<THEME NAME>/i18n/Magento_Catalog/templates/product/list.phtml

<VENDOR>/<THEME NAME>/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml

<VENDOR>/<THEME NAME>/Magento_Catalog/i18n/templates/product/list.phtml

<VENDOR>/<THEME NAME>/Magento_Catalog/i18n/ar_SA/templates/product/list.phtml

<VENDOR>/<THEME NAME>/web/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml

Any other suggestions or possibilities?

(My Magento version is 2.2.6)


texts: Magento 2: How to redirect to different urls using if else conditon in Observer

texts:
This is my observer code:
<?php

namespace Softadroit\Prescription\Observer;

use Magento\Framework\Event\ObserverInterface;
use Psr\Log\LoggerInterface;

class Orderplaceafter implements ObserverInterface
{
    protected $_responseFactory;
    protected $_url;

    public function __construct(
        \Magento\Framework\App\ResponseFactory $responseFactory,
        \Magento\Framework\UrlInterface $url
    ) {
        $this->_responseFactory = $responseFactory;
        $this->_url = $url;
    }

    public function execute(\Magento\Framework\Event\Observer $observer)
    {
        $event = $observer->getEvent();
        $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
        $_checkoutSession = $objectManager->create('\Magento\Checkout\Model\Session');
        $_quoteFactory = $objectManager->create('\Magento\Quote\Model\QuoteFactory');

        $order = $_checkoutSession->getLastRealOrder();
        $quote = $_quoteFactory->create()->loadByIdWithoutStore($order->getQuoteId());
        if ($quote->getId()) {
            $quote->setIsActive(1)->setReservedOrderId(null)->save();
            $_checkoutSession->replaceQuote($quote);

            //I am using this code please have a look at this
            foreach($quote->getAllVisibleItems() as $_item) {
            $product = $objectManager->create('Magento\Catalog\Model\Product')->load($_item->getProductId());

            if($is_priscription != "" && $is_priscription == '5431'){
            $url = $this->_url->getUrl('prescription/index'); //('[ModuleName]/[ModuleName]/[[Action]');
            $this->_responseFactory->create()->setRedirect($url)->sendResponse();
            }
                else{
                    $redirect = $objectManager->get('\Magento\Framework\App\Response\Http');
                    //$redirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);
                    $redirect->setPath('order-success');
                    return $redirect;
                }
            }
            die();
        }
    }
}


texts: Merge JavaScript files is not working correctly

texts:
I am having a big problem with Merge Javascript files from Magento under System -> Configuration -> Advanced -> Developer. I need to enable the function to improve the loading of the site, as well as the reduction of requests, among others. When the function is disabled, everything works correctly. However, when the Magento function is activated, the site ends up having loading errors and its functionality on all pages per Merge account.

An example error that happens is that I use the variable $j for the code var $j = jQuery.noConflict(); in order to avoid conflicts with the Magento Prototype and in the browser console it returns me several errors like: Uncaught TypeError: $j(...) is not a function.

I'm having errors mainly with the OneStepCheckout module, they are:

OnestepcheckoutAddress is not defined
OnestepcheckoutShipment is not defined
OnestepcheckoutReviewCart is not defined
OnestepcheckoutPayment is not defined
OnestepcheckoutForm is not defined

This is something of extreme importance to me that I have been trying to solve for days, researching a lot and everything I found did not help me at all. I would like to know if there is any way to create exections for certain scripts so that they do not enter the Magento Merge or if someone also has some idea of what I should do to resolve this case. Thanks in advance!


texts: How to migrate categories from Magento 1.9.1 to 1.9.4? Also - Will EXPORT of products and customers work?

texts:
Magento 1.9.1 to Magento 1.9.4

We are setting up again and I can't figure out how to migrate categories from our old (live) Magento 1.9.1 site to the new 1.9.4? Is there a way to do that?

I will also want to export and import PRODUCTS and CUSTOMERS. Will the:

System --) Import/Export --) Export

work?


texts:
I got an error message from Google webmaster where it asked me to change the duplicate meta tags of different pages to enhance user experience. The list of pages includes those pages whose meta tags can't be accessed/edited from backend, like Contact Us, Track your order, Orders and returns, Sign Up, etc. All these page pages have same meta as the page has. I'd just like to know how can I change them? I'm serious about it because Google suggested me to amend these pages.

Thanks.


texts:
I have been reading a lot of blog from Alan strom and Magento tutorials and i have gained a lot, still blurry but good. Now i am at a point, where i need to put everything together. I am really lost on what and where to start but as for my understanding

  You call a controller and that controller in turn call a Action, which runs the code. The models have database code, that talk to the database, the code in layout.xml has the code that run in conjunction with views as to where to display, what sort of block etc.

That is my understanding now, but it is very raw and vague and i want to improve it. So what i don't understand is

What kind of code will controllers have?
How can a controller coordinate with blocks and know where to display? such as code like this (code not to be indexed), it is totally alien code to me, how can i understand it? How does it connect to our view or block type
How does the code above will have connection to the database?
When speaking of database, code like this

    Magentotutorial_Weblog_Model_Resource

            blog_posts

What does entities mean? Any real life example. Is that all what is needed to make a connection to database, how does magento insert data into multiple table at once if that is the format.

How can i connect a event with a task,
How can i know the method name build into magento e.g getTitle('');
etc
How do i know about to make a custom layout,

How can magento know what kind of block we want, content or structural?, what is output="toHtml", i know it renders the page and it doesn't need to be called as it auto generate, unlike other getChildHtml(); which we need to call.
when we say getChildHtml('left');, can we do a custom args into the getChildHtml(); or no? If yes or not, how do i pass "my stuff" into the left or anything that i have created.

How do we map data outputted from a db to a form e.g a form that has input fields and i need to populate data into it.
How do i make custom menu for my own page and link to different  that display different data

So i suppose my post is all about bringing the magento module together and make it work like you want to.

Edit: I can see a lot of methods in my controller, but no idea which one will run the basic homepage for that module and render which template file.

Update : What is the best resource to learn PHP which is used in magento or higher level if i may.


texts: Magento 2 static files are not being loaded after enabling HTTPS

texts:
I set Secure Base URL to https://magento22.local , did setup:upgrade

But now it tries to load all static content through http and chrome gives error "mixed content", so no styles or script are loaded.

I tried clearing everything - cache, static files folder, reloading server, enabling production mode - nothing helps.

What's the problem? Why Magento doesn't use HTTPS URLs?

"Use Secure URLs on Storefront" setting doesn't change anything


texts: Updating downloadable product link url via SQL query [Solved]

texts:
Client store has only one downloadable product. And it's version keep on changing.
When the version of the product changed for the first time, I uploaded new file via ftp to the related media/downloadable folder.
And updated path of the link_url of the downloadable_link table as:

UPDATE downloadable_link SET link_url = 'http://my-store.com/media/downloadable/files/links/m/y/mysoftware-v2 0 2.zip';

Note: previous link url was: http://my-store.com/media/downloadable/files/links/m/y/mysoftware-v2 0 1.zip

Since this update works only for new customers. I was wondering how to adjust for the existing customer who had already purchased the extension so that when they download they get the latest version instead of old  version.

I tried to solve this by updating link_url of downloadable_link_purchased_item as:

UPDATE downloadable_link_purchased_item SET link_url = 'http://my-store.com/media/downloadable/files/links/m/y/mysoftware-v2 0 2.zip'

But didn't work. When existing customer tried to download, it gave the following error:

  An error occurred while getting the requested content. Please contact
  the store owner.

Any idea how to update the link_url with the latest version of the product so that existing customer can download it? SQL approach will be preferable if possible.

EDIT:
After analyzing what I found is, download code of Magento gives 404 not found code for the downloadable product with space in filename. After removing the space from filename and updating via above SQLs fixed my issue.

Thanks


texts: Magento 1.9 - memcached not working while using in shared environment

texts:
I am configuring multiple Magento 1.9 instances on an amazon server. I want to store my sessions on memcached. for that I am using below configuration in my local.xml as suggested in magento.

<session_save><![CDATA[memcache]]></session_save>
<session_save_path><![CDATA[tcp://127.0.0.1:11211?persistent=1&weight=2&timeout=10&retry_interval=10]]></session_save_path>

But once I set this up, session seems stop working. I cannot login to admin, front end, Cart not working properly.

Can anyone tell if I am doing anything wrong?


texts: product package with 2 prices, "from" "to", how to solve?

texts: The bundle products page has 2 prices, minimum and maximum, but I need only 1 price, I looked in some forums but I couldn't solve it, has anyone had this problem? I need to solve this today, I need to deliver a project and all that is missing


texts: Get images by selected color on Product View page

texts:
I want to get the Images Array from the specific color that the client Selects in the PRODUCT VIEW PAGE.
So i found something on

templates/product/view/gallery.phtml

I found $block->getGalleryImages() But I couldn't do what i wanted, Because i only get the images from the configurable product (just the images from one color..) maybe i'm using in the wrong way, or i'm on the wrong file.
Any help is appreciated...


texts: Magento 2 - How to change the sort order of customer account navigation links

texts:
I want to change the sort order of the customer account sidebar navigation links and rename the texts, please help me to get the output for this situation.

Current Order & Text's:

Change to :

Note : Account Inforamtion text is changed to Update Account Information

I change code in Magento_Customer > Layout > customer_account.xml

My code :

<body>
    <move element="customer-account-navigation-orders-link" destination="customer_account_navigation" after="customer-account-navigation-address-link" />

    <!-- Remove Account Dashboard-->
    <referenceBlock name="customer-account-navigation-account-link" remove="true"/>

    <!-- Remove My Downloadable Products-->
    <referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/>

    <!-- Remove Newsletter Subscriptions-->
    <referenceBlock name="customer-account-navigation-newsletter-subscriptions-link" remove="true"/>

    <!-- Remove My Credit Cards-->
    <referenceBlock name="customer-account-navigation-my-credit-cards-link" remove="true"/>

    <!-- Remove Billing Agreements-->
    <referenceBlock name="customer-account-navigation-billing-agreements-link" remove="true"/>

    <!-- Remove My Product Reviews-->
    <referenceBlock name="customer-account-navigation-product-reviews-link" remove="true"/>

    <!-- Remove My Wish List-->
    <referenceBlock name="customer-account-navigation-wish-list-link" remove="true"/>
</body>

The moving element is not working in this code other removing are removed in it.


texts: How do you change the related products template output. Instead select all I would like to add a "add to cart" button to all related products and remove checkboxes.


texts: My configurable products need to have view details button instead of Addto Cart button

texts: How can I replace the add to cart button with a view details button for my configurable products? I searched everywhere but could only find solutions for Magento 1.9 not 2.1.8.


texts: Overriding js file not working in Magento 2.

texts:
I am trying to override

vendor/magento/module-catalog/view/frontend/web/js/catalog-add-to-cart.js

to

app/design/frontend/MyTheme/Package/Magento_Catalog/web/js/catalog-add-to-cart.js

in order to change the "Add to Cart" button text. I modified the only instance of "Add to Cart" in the js file.

 setTimeout(function () {
            var addToCartButtonTextDefault = self.options.addToCartButtonTextDefault || $t('Add to Basket');

I fired cache:clean, cache:flush, setup:upgrade, but the text is still not changing. What step am I missing?


texts: Setup Script throws Error : Call to undefined method Mage_Core_Model_Resource_Setup::addAttribute()

texts:
I am following a tutorial from the book of Roman Zenner & Vinai Kopp called "Magento - The Handbook for Developers" (german: Magento - Das Handbuch für Entwickler).

Snippet from config.xml

<config>
    <modules>
        <WR_EPO>
            <version>1.0.0.12</version>
        </WR_EPO>
    </modules>
    <global>
        <resources>
            <wr_epo_setup>
                <setup>
                    <module>WR_EPO</module>
                </setup>
            </wr_epo_setup>
            ...

It says that I need this setup script:
The script is in (app/code/local/WR/EPO/sql/wr_epo_setup/upgrade-1.0.0.11-1.0.0.12):

<?php
/**
 * @var Mage_Sales_Model_Mysql4_Setup $installer
 */

$installer = $this;
$installer->startSetup();

Mage::Log("Setup Script is getting executed.", 7, "setup.log");

$installer->addAttribute('quote_item', 'shipping_surcharge', array(
        'label' => 'Versandkostenaufpreis'
        ,'type' => 'decimal'
    )
);

$installer->endSetup();

But I get a 500 Status Code Error and the error Call to undefined method Mage_Core_Model_Resource_Setup::addAttribute() is getting logged.

I also tried this:

Snippet from config.xml

<config>
    <modules>
        <WR_EPO>
            <version>1.0.0.12</version>
        </WR_EPO>
    </modules>
    <global>
        <resources>
            <wr_epo_setup>
                <setup>
                    <module>WR_EPO</module>
                </setup>
            </wr_epo_setup>
            <wr_epo_sales_setup>
                <setup>
                    <module>WR_EPO</module>
                    <class>Mage_Sales_Model_Mysql4_Setup</class>
                </setup>
            </wr_epo_sales_setup>
            ...

... and moved the setup script from app/code/local/WR/EPO/sql/wr_epo_setup/upgrade-1.0.0.11-1.0.0.12 to app/code/local/WR/EPO/sql/wr_epo_sales_setup/upgrade-1.0.0.11-1.0.0.12 but now the setup script is not getting executed at all, I already removed the entry in the core_resources table and reloaded the site.

Is the tutorial outdated? How to do it right?


texts: Which event observer is triggered when a wishlist is created or updated?

texts:
I want to perform an action whenever a wishlist is updated or created, but I am not able to find that event. If anyone knows that event, please let me know.

Thanks in Advance.


texts: Image uploader not working after Magento 1.9.3 upgrade

texts:
Product image uploader not work after Magento 1.9.3 upgrade.

I click browse and then upload, it says complete for a second or 2 and then disappears and then no image displays.

What the issue?


texts: how to override only .phtml files in my custom module in magento?

texts:
I don't want to override .php files I want to edit only .phtml files of Page Module

how can I create layout file and assign?

thanks.


texts: Magento 2.2.4 : subscription success mail not sent after confirm mail

texts:
I enabled need to confirm options "Yes".

  Stores > Configuration > Customers > Newsletter > Subscription Options > Need to Confirm

So, user confirm subscription link mail not send to the user after confirm subscription.

How to do that after confirmation newsletter subscribe successfully mail will be sent to that user.


texts: Magento 1.9 admin showing 403 forbidden error

texts:
magento front part is working fine but magento admin panel showing 403 error.

Forbidden

You don't have permission to access /agluser on this server.
Apache/2.4.18 (Ubuntu) Server at www.aglasiangranito.com Port 443

any suggestion or help is highly appreciated.

thnks


texts:
I installed Magento 2 on one of the domain name. The installation worked properly and shows me the Success page. However, when I access the website and admin panel it shows distorted. Here is the website wholesaleadda dot com

If anybody faced such issues OR point me in the right direction, it will be helpful.


texts: How to deploy pwa-studio on server in production mode?

texts:
I have successfully installed PWA-studio with Magento 2.3. But I am not able to run it on production mode on a Ubuntu 18.04 LTS server so that we can access the PWA remotely but I am always able to start the application in development mode which only accessible locally.

How I can configure my server as well as the PWA-studio so that we can access the application remotely?


texts: Change entries in dropdown list (Customer Title/Prefix list items)

texts:
We set up a Magento 2 shop. There are forms for customers to fill out e.g. register in the shop. In the dropdown menu for Name Prefix, I can see some entries for the user to choose.
Where can I change these Name prefix dropdown entries?


texts:
I've got a site that's set to use https on all its pages. Both the secure & non-secure urls are set to be https in the admin panel - this is by design.

But I've got a plugin that's creating an xml feed that doesn't work in https.

The file it's creating is /api/xmlrpc - and I'm getting https://mysite.com/api/xmlrpc and the feed wants http://mysite.com/index.php/api/xmlrpc

How do I exempt that file from the HTTPS settings?

My htaccess file: http://pastebin.com/2L0qu3eg


texts: Magento 2: Show new label for products that have "set product as new from'

texts:
I'm using Magento 2.3.5. I have a label attribute for products in which you can add labels like 'popular', 'must have', 'our choice' etc.
There is an attribute called  'Set Product as New From' and I want it to show a 'new' label on the productpage if 'Set Product as New From' is active. How can I achieve this?
Thank you in advance!


texts:
I have added a static CMS bock by set up patch, so I will now put it in a specific area like in cart information pop up or a different layout like payment checkout before payments methods.
Update:
I want to do it through code.


texts: Magento2.3 - get product collection in stock only

texts:
Magento 2 get product collection with filter stock

get only in stock product in the collection

See below code

$collection =  $this->_productCollectionFactory->create();
$collection->addStoreFilter($storeId);
$collection->addAttributeToFilter('status',\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED);
$this->_stockFilter->addInStockFilterToCollection($collection);


texts: Magento 2: How add only label field in Ui form?

texts:
I have text field in Ui form

<field name="view">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="sortOrder" xsi:type="number">140</item>
            <item name="dataType" xsi:type="string">text</item>
            <item name="label" translate="true" xsi:type="string">View</item>
            <item name="formElement" xsi:type="string">input</item>
            <item name="source" xsi:type="string">popup</item>
            <item name="dataScope" xsi:type="string">view</item>
            <item name="validation" xsi:type="array">
                <item name="required-entry" xsi:type="boolean">false</item>
            </item>
        </item>
    </argument>
</field>

It's shows like this but I want only label instead of textbox


texts: Flushing just the homepage cache in Varnish

texts: I currently run nginx with Varnish in front on my Magento instance. I use Turpentine as the Varnish module for Magento. Without clearing the entire Varnish cache, is it possible just to flush the homepage cache?


texts: How can we get customer orders history with rest API

texts:
How can we get the customer order history over the rest API with the customer token.

If I'm trying the url

/V1/orders?searchCriteria[filter_groups][0][filters][0][field]=customer_email&searchCriteria[filter_groups][0][filters][0][value]=bob@fett.com&searchCriteria[filter_groups][0][filters][0][condition_type]=like

I'm getting this:

{
    "message": "The consumer isn't authorized to access %resources.",
    "parameters": {
        "resources": "Magento_Sales::actions_view"
    },
    "trace": "#0 /var/www/vhosts/store-api.silverwax.ca/httpdocs/vendor/magento/module-webapi/Controller/Rest/RequestValidator.php(68): Magento\\Webapi\\Controller\\Rest\\RequestValidator->checkPermissions()\n#1 /var/www/vhosts/store-api.silverwax.ca/httpdocs/vendor/magento/module-webapi/Controller/Rest/InputParamsResolver.php(80): Magento\\Webapi\\Controller\\Rest\\RequestValidator->validate()\n#2 /var/www/vhosts/store-api.silverwax.ca/httpdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\\Webapi\\Controller\\Rest\\InputParamsResolver->resolve()\n#3 /var/www/vhosts/store-api.silverwax.ca/httpdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\\Webapi\\Controller\\Rest\\InputParamsResolver\\Interceptor->___callParent('resolve', Array)\n#4 /var/www/vhosts/store-api.silverwax.ca/httpdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\\Webapi\\Controller\\Rest\\InputParamsResolver\\Interceptor->Magento\\Framework\\Interception\\{closure}()\n#5 /var/www/vhosts/store-api.silverwax.ca/httpdocs/generated/code/Magento/Webapi/Controller/Rest/InputParamsResolver/Interceptor.php(26): Magento\\Webapi\\Controller\\Rest\\InputParamsResolver\\Interceptor->___callPlugins('resolve', Array, Array)\n#6 /var/www/vhosts/store-api.silverwax.ca/httpdocs/vendor/magento/module-webapi/Controller/Rest/SynchronousRequestProcessor.php(85): Magento\\Webapi\\Controller\\Rest\\InputParamsResolver\\Interceptor->resolve()\n#7 /var/www/vhosts/store-api.silverwax.ca/httpdocs/vendor/magento/module-webapi/Controller/Rest.php(188): Magento\\Webapi\\Controller\\Rest\\SynchronousRequestProcessor->process(Object(Magento\\Framework\\Webapi\\Rest\\Request\\Proxy))\n#8 /var/www/vhosts/store-api.silverwax.ca/httpdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\\Webapi\\Controller\\Rest->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#9 /var/www/vhosts/store-api.silverwax.ca/httpdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\\Webapi\\Controller\\Rest\\Interceptor->___callParent('dispatch', Array)\n#10 /var/www/vhosts/store-api.silverwax.ca/httpdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\\Webapi\\Controller\\Rest\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#11 /var/www/vhosts/store-api.silverwax.ca/httpdocs/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(26): Magento\\Webapi\\Controller\\Rest\\Interceptor->___callPlugins('dispatch', Array, Array)\n#12 /var/www/vhosts/store-api.silverwax.ca/httpdocs/vendor/magento/framework/App/Http.php(136): Magento\\Webapi\\Controller\\Rest\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#13 /var/www/vhosts/store-api.silverwax.ca/httpdocs/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\\Framework\\App\\Http->launch()\n#14 /var/www/vhosts/store-api.silverwax.ca/httpdocs/vendor/magento/framework/App/Bootstrap.php(258): Magento\\Framework\\App\\Http\\Interceptor->launch()\n#15 /var/www/vhosts/store-api.silverwax.ca/httpdocs/index.php(39): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http\\Interceptor))\n#16 {main}"
}

I've tried to the proposal of @aaditya in the question but it's doesn't work.


texts: Unable to change the catalog_category_view.xml layout to 1 column in Magento2

texts:
I would like to change the catalog_category_view.xml layout from 2columns-left to 1 column in the custom theme followed below steps.
Here is the file in the custom theme:
app/design/frontend/VendorName/csutomtheme/Magento_Catalog/layout/catalog_category_view.xml
Code:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <move element="columns.top" destination="content" before="-" />
        <move element="category.cms" destination="columns.top" after="-" />
        <referenceContainer name="sidebar.additional" remove="false" />
    </body>
</page>

After made changes flush cache and verified still not showing the results is there anything i am missing ?


texts: Magento 1 - Is it safety to use Store Code in URLs?

texts:
I need a multi language store using domain.com/fr/ domain.com/it etc structure (are more than 10 stores so domain.en domain.fr domain.it etc is not possible)

i can apply it in Configuration > Web > Url options >  Add Store Code to Urls

But Is it safety to use Store Code in URLs?

Magento alert is:
Warning! When using Store Code in URLs, in some cases system may not work properly if URLs without Store Codes are specified in the third party services (e.g. PayPal etc.).


texts: Adding custom attribute to customer object for event observer

texts:
I'm sending some user data to backoffice upon new user registration. The problem I am facing is that i need to send some custom attributes (like whether or not certain option was selected) along the normal data (name, date of birth etc.).

Now the problem I am having is that when user registers I try to send date to backoffice in customerRegisterSuccess and customerSaveAfter events. But neither one of them has my custom attributes, only standard ones. (Checking using$observer->getEvent()->getCustomer()->getData()).

Is there any way to add my custom attributes to said customer object so they are retrievable  in event observers without loading entire customer model?


texts: move module's external .js file code to template [phtml] file

texts:
We have a custom module with below code

app/design/frontend/rwd/Theme1/layout/aitcg.xml

<action method="addJs"></action>

As we can't use php code in this .JS file, is there any way we can move code present from Abstract.js file to some .phtml file ?

Edit

I followed Raphael's answer & changed code as here :

<block type="aitcg/template" name="aitcg_js_styles1" template="aitcg/js_styles1.phtml" />

but still Abstract.Js file results are not displaying in js_styles1.phtml

layout file : http://pastebin.com/BZGRaiDH

js_styles1.phtml : http://pastebin.com/m85q9eMh

i am trying onclick button = onclick="setproductlogin('<?php echo $_product->getEntityId()?>');setrequestlogin();" but this is not working in .JS file , so only i am trying to cop .js code to .php code.

when i checked template path hints, it loading phtml file, but JS code result is not displaying in frontend. but other html, php, js code results are displaying.....

console

is we need to load any external js library if so how to find that ?

Edit2

I tried Below code in js_styles1.phtml file , but still its not working


texts: How to remove interface language from magento admin panel

texts:
how to remove all language from magento admin panel from footer left drop down.
(interface locale). i want to set only two language in this


texts: Looking for an extension recommendation (or alternative) for Order List functionality. A user should be able to enter quantities and order directly from a category listing page. Primarily used in B2B sites. Here's what I found so far: http://www.b2b-extensions.com/b2b-order-list.html


texts: For my new project i need to create 3000 stores using magento multistore in same magento installation. Anyone knows what is limit for maximum numbers of stores in magento2?  Or what would be the right approach to do that?


texts: Getting website by website code issue in Magento 1

texts:
This is my code:

 $website = Mage::getResourceModel('core/website_collection')->load('code', $code)->getData();

where $code is my website code. In the $website variable at the moment I got all of the websites. I just need only one, by using it's code. How can i make this work ?


texts: In magento how to add flat price for shipping outside the default country

texts:
I usually offer Free shipping over $10.

Currently I have a flat rate $1 shipping which becomes free over $10. I managed to do that using a shopping cart price rule.

Now there are customers who are ordering outside my default country & i cant ship the order for free or $1.I want to charge $50 as shipping price for customers outside USA.
How do i define a fixed price for orders that are outside my default country.

That price should only appear when the shipping country is outside USA.

In System>Configuration>General in magento backend, you define the default country & other allowed countries.
There has to be a way to use these values for shipping prices.

If this is not inbuilt in magento then i am in for a surprise & heck of a time coding.


texts: Script work only in RWD theme and don't work on custom theme

texts:
I have a problem, I am using custom theme on my magento site, and use this script. It works only in RWD theme. I try to find some information about it and don't find anything.Please help if you know something to help me to work this script in default theme.When i click submit in this form, write "Enter a valid email address". In RWD theme this code work fine.

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

    Thank you for subscribing to our newsletter!

<form action="<?php echo $this->getFormActionUrl() ?>" name="newsletter-form" id="newsletter-form" method="post">

            <?php echo $this->__('Sign Up for Our Newsletter:') ?>

            <input type="text" placeholder="Email address" name="email" id="newsletter" title="<?php echo $this->__('Subscribe to Our Newsletter') ?>" class="required-entry input-subscribe" style="width:178px;" />

Please enter a valid email address.

            <button type="button" title="<?php echo $this->__('Subscribe') ?>" onclick="myfunc();" class="button">
                Subscribe
            </button>

</form>


texts:
I'm receiving errors after disabling custom extensions I wasn't using (I deleted their folders first by mistake).

Then after disabling modules from php/bin command these errors are occuring site-wide

        1 exception(s):
    Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid Document
    Element 'route': Duplicate key-sequence ['checkout'] in unique identity-constraint 'uniqueRouteFrontName'.
    Line: 4

    Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid Document
    Element 'route': Duplicate key-sequence ['checkout'] in unique identity-constraint 'uniqueRouteFrontN

ame'.
Line: 4

What did I do to fix this ? It's happening even if I do php/bin setup:upgrade same error everywhere...


texts:
Magento does send an email to customer who registers for receiving email alert when a product comes back in stock. I noticed that email is not sent instant for only once a day.

Is it possible that email is sent to all the subscribed users as soon as the stock is updated from the backend?


texts:
My "more view" images are being called by the following jQuery but it's leaving the thumb images huge at their original size. How can I resize them proportionally to 100px?

    var imagefile='<?php echo Mage::getBaseUrl('media');?>catalog/product'+file;
        jQuery("#ul-moreviews").prepend('

'+display_label+'

');
                                    });


texts: Move Magento 2 Area code is not set problem

texts:
I am trying to move magento 2 to another server but when I am trying to flush cache I am getting this error:

php bin/magento cache:flush

[Magento\Framework\Exception\SessionException]
Area code not set: Area code must be set before starting a session.

[Magento\Framework\Exception\LocalizedException]
Area code is not set

cache:flush [--bootstrap="..."] [types1] ... [typesN]

I already updated database with the new directory.

What should I do ?


texts: Placing order via REST API shows no product options in admin

texts:
So I'm adding products with options into the cart with the REST API just fine. Order goes through the API fine as well but when I look at the order in the admin I see no product options in the summary of items in the order. I do, however, notice they are set to values by looking at the edit form of the order. It seems there's missing data for the order. How can I get options to show?

Here's an example of the json I send to add a product with options to the cart. I altered contents of a few fields for privacy.

{
    "cartItem": {
        "sku": "---",
        "name": "---",
        "qty": 1,
        "price": 85,
        "productType": "simple",
        "productOption": {
            "extensionAttributes": {
                "customOptions": [{
                    "option_id": 136,
                    "option_value": 707
                }]
            }
        },
        "extensionAttributes": {},
        "quote_id": "random string"
    }
}

Edit: Can anyone please help? I've upgrade from 2.1.3 to 2.1.5 and the issue still persists.


texts: How to redirect magento's site from http to https in magento 1.9?

texts: My question is about how to redirect magento's site from http to https in magento 1.9?


texts: How to assign a theme in Magento 2 using a setup script?

texts:
How can we assign a theme in Magento 2.1 to a store using setup scripts?

Thank you


texts: Above a certain amount product will be cheaper

texts: I need that if the buyer buys more than for ex (200) of one product from (201), he will pay cheaper the product. I explain till item (200) he will pay 2 dollars and from item (201) he will pay 1 dollar. Is that possible?


texts: Magento2 Session Logsout when a person gets back from Payment Gateway

texts:
I am facing a very weird Issue in my M2 Store, whenever a user gets back from payment gateway after successful transaction, user automatically logs out from the session and land back on cart page with successful txn message instead of success page.
I do not get this issue at every successful transaction, i have also noticed one more thing that this is happening from Chrome only, when i tried it from firefox i wasn't able to reproduce the issue.
Please guide what could be the possible reason for all this.
Thanks for your help.


texts: Magento 1.9.3 invoice product price including tax

texts:
I want to display product price including tax on invoice totals. Every product has name, quantity, price and row total. I got all except the price.

Right now I have

<?php echo $_item->getPrice()*1 . ' €'?>

But this does'nt include tax..

Also my settings on admin panel:


texts: Autoload error: Theme ... has been already defined in

texts:
I messed up with Magento 2 :(
I installed a theme (Porto) then realised I should have created a child theme. So, I went back in, created the child theme then stupidly, I just changed the directory names making the main porto the child and vice versa. Now I'm getting the error below...
Autoload error
Theme 'frontend/Smartwave/porto' from '/home/user321/public_html/app/design/frontend/Smartwave/porto' has been already defined in '/home/user321/public_html/app/design/frontend/Smartwave/porto_child'.

I'm hoping this is an easy fix :(
TIA
Robert


texts: Custom Module - Cart Page shows only "Estimate Shipping and Tax"

texts:
I'm trying to overwrite the function setRequest in /vendor/magento/module-usps/Model/Carrier.php to request "Online" rates from USPS.

My complete module code is below.

My module is enabled. I cleared var/di and var/generation. I ran the code compiler.

I viewed my store in frontend, added an item to my cart and clicked view & edit cart. The resulting page is white and only has the text "Estimate Shipping and Tax".

The system log is full of messages that say "Cache file with merged layout" or "Broken reference".

Thanks!

app/code/RSEI/improvedUSPS/etc/di.xml

<?xml version="1.0"?>

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Magento\Usps\Model\Carrier" type="RSEI\ImprovedUSPS\Model\Rewrite\Usps\Carrier" />
</config>

app/code/RSEI/improvedUSPS/etc/module.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="RSEI_improvedUSPS" setup_version="2.0.0"/>
</config>

app/code/RSEI/improvedUSPS/registration.php

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

app/code/RSEI/improvedUSPS/Model/Rewrite/Usps

<?php
namespace RSEI\ImprovedUSPS\Model\Rewrite\Usps;

class Carrier extends \Magento\Usps\Model\Carrier
{

 public function setRequest(\Magento\Quote\Model\Quote\Address\RateRequest $request)
    {
$this->_request = $request;

    $r = new \Magento\Framework\DataObject();

    if ($request->getLimitMethod()) {
        $r->setService($request->getLimitMethod());
    } else {
        $r->setService('ONLINE');
    }

    if ($request->getUspsUserid()) {
        $userId = $request->getUspsUserid();
    } else {
        $userId = $this->getConfigData('userid');
    }
    $r->setUserId($userId);

    if ($request->getUspsContainer()) {
        $container = $request->getUspsContainer();
    } else {
        $container = $this->getConfigData('container');
    }
    $r->setContainer($container);

    if ($request->getUspsSize()) {
        $size = $request->getUspsSize();
    } else {
        $size = $this->getConfigData('size');
    }
    $r->setSize($size);

    if ($request->getGirth()) {
        $girth = $request->getGirth();
    } else {
        $girth = $this->getConfigData('girth');
    }
    $r->setGirth($girth);

    if ($request->getHeight()) {
        $height = $request->getHeight();
    } else {
        $height = $this->getConfigData('height');
    }
    $r->setHeight($height);

    if ($request->getLength()) {
        $length = $request->getLength();
    } else {
        $length = $this->getConfigData('length');
    }
    $r->setLength($length);

    if ($request->getWidth()) {
        $width = $request->getWidth();
    } else {
        $width = $this->getConfigData('width');
    }
    $r->setWidth($width);

    if ($request->getUspsMachinable()) {
        $machinable = $request->getUspsMachinable();
    } else {
        $machinable = $this->getConfigData('machinable');
    }
    $r->setMachinable($machinable);

    if ($request->getOrigPostcode()) {
        $r->setOrigPostal($request->getOrigPostcode());
    } else {
        $r->setOrigPostal(
            $this->_scopeConfig->getValue(
                \Magento\Sales\Model\Order\Shipment::XML_PATH_STORE_ZIP,
                \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
                $request->getStoreId()
            )
        );
    }

}

}


texts: While import/Export attributes get 500 internal server error

texts:
I am working on magento-1.9.2.1. I want to import and export attributes. for this, When I goto

system ->import/export ->attributes ->import or export.

I got following Internal server error.

  500 internal server error while import/Export attributes


texts:
I have a site running with 1.9.4.4. I would lite to update MySQL from 5.6 to 5.7 . Want to conform if 1.9.4.4 does support MySQL 5.7

Thank you


texts: Modify WYSIWYG or TinyMCE configurations in magento 2

texts:
Within the editor it seems html is validated so that multiple elements cannot be placed within a tags. I want to allow markup like below:

Category

Some text...

This however always ends up like so:

Category

Some text...

I have seen posts about this however am unsure how to modify valid_elements
or valid_child_elements within magento 2.

https://stackoverflow.com/questions/14597219/how-to-configure-tinymce-to-allow-block-level-elements-inside-anchor-a-tag

There is also this but this applies to Magento 1 :

https://www.pixafy.com/blog/2013/06/overcoming-magentos-wysiwyg-part-2-customizing-tinymce-settings/

So far have tried looking at module-backend/view/adminhtml/templates/widget/form/element.phtml and lib/web/tiny_mce/tiny_mce_src.js as this is the only place i could see configs like this but had no luck.

How can i override these settings with Magento 2?


texts:
my site was in 1.9.2.2 I update it to 1.9.3.2.

and today I found that

when I open customer edit form in admin side the page is still goes blank.

can anyone help me how to resolve it


texts:
How can I add font-display:swap to following Luma icon fonts

  @font-face {
  font-family: 'luma-icons';
  src: url('../fonts/Luma-Icons.woff2') format('woff2'), url('../fonts/Luma-Icons.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

It is loading from en_US/css/styles-m.css but I am not able to find this code in Magento lib or vendor default Magento2 themes


texts: How to add featured products in homepage in magento 1.9.0.1?

texts:
I want to display products as featured in homepage and also like to display products as latestproducts in homepage.i'm a magento beginner, please help me how to do this?It is possible to display products as featured using admin panel itself???

Thanks in advance...!


texts: Migrate existing standalone store from Magento 2.0 to Magento 2.3 Multiple websites or stores

texts:
- The migration includes the theme, custom modules, and DB

  What is the migration process?
  Is there any plug-in or extension module readily available which can help with migration activity?


texts:
I have custom controller outputting JSON format which works well for the below URL level;

** Works
base url/module/folder/action
//equates to Vendor\Module\Controller\Folder\Index.php

However I would like some somewhat deeper nested URL endpoints as per below but I get 404 on controllers deeper that one folder;

**Hit with 404
base url/module/folder/anotherfolder/action
//equates to Vendor\Module\Controller\Folder\Anotherfolder\Index.php

/* or even deeper */

**Hit with 404 - not tested
base url/module/folder/anotherfolder/deeperfolder/action
//equates to Vendor\Module\Controller\Folder\Anotherfolder\Deeperfolder\Index.php

I'm guessing Magento2 doesn't allow deep nested URL types or controllers ...

For me, this deeper nesting would be ideal to have a more manageable controller development & access since we have lost the ability to have multiple actions/endpoints in the one controller (Magento 1.*) (advise if not the case)


texts: Different customer portfolio, shipping and payment methods for each store view?

texts:
Let me explain better: we will release another brand however the company group is the same. The point is that I've created a new store view because the catalog, categories and most of the store attributes will be shared with each other, and I didn't see options neither to set different payment and/or shipping methods nor to see customers separated by store view.

Is it possible having differente payment, shipping and customers for each store view?


texts: Get all products without image using rest API in Magento 2

texts:
Is it possible to get all the simple products that do not have a product image assigned using the rest API?

What I would like is a product list with skus.

Thanks.


texts: What does $$ in javascript of Magento 2 mean?

texts:
In some core Magento modules I see the $$ signs used constantly when selecting an element. For example, in just 10 lines of code I have the following different selectors:

$('selection-apparently-a-custom-element')
$$('#some-element-id')
jQuery('#another-element-id')

What is the point of this?


texts:
I'm very new to Magento, and working through some tutorials.

I am trying to setup a new Model, and, without created a Model file first, tried to access it to make sure that it was configured correctly.

I received the error Warning: include(Mage\Complex\Model\Complexpost.php) instead of Warning: include(Eav\Complex\Model\Complexpost.php), which I was expecting.

My folder structure is as follows:

app
  code
    local
      Eav
        Complex
          Block
          controllers
            IndexController.php
          etc
            config.xml
          Helper
          Model
          sql

I have also created the file app/etc/modules/Eav_Complex.xml with the content

<config>
    <modules>
        <Eav_Complex>
            <active>true</active>
            <codePool>local</codePool>
        </Eav_Complex>
    </modules>
</config>

The IndexController.php file looks like this:

<?php
class Eav_Complex_IndexController extends Mage_Core_Controller_Front_Action
{
    public function indexAction()
    {
        $complex = Mage::getModel("complex/complexpost");
        var_dump($complex);
    }
}

and my config looks like this:

<config>
    <modules>
        <Eav_Complex>
            <version>0.1.0</version>
        </Eav_Complex>
    </modules>

    <frontend>
        <routers>
            <complex>
                <use>standard</use>
                <args>
                    <module>Eav_Complex</module>
                    <frontName>complex</frontName>
                </args>
            </complex>
        </routers>
    </frontend>

    <global>
        <models>
            <complex>
                <class>Eav_Complex_Model</class>
                <resourceModel>complex_resource</resourceModel>
            </complex>

            <complex_resource>
                <class>Eav_Complex_Model_Resource</class>
                <entities>
                    <complexpost>

complex_post

                    </complexpost>
                </entities>
            </complex_resource>
        </models>
    </global>

</config>

The URL I was trying to access was http://127.0.0.1/magento1/complex (I have already made a HelloWorld module, which worked, so I'm sure that the URL is correct).

Can anyone see anything obviously out of place? Any help would be greatly appreciated!


texts: Error to open design Theme: Content-->Design-->Configuration?

texts:
When I try to open Content-->Design-->Configuration and click on edit, it came up with below error.

  1 exception(s): Exception #0 (RuntimeException): Can't create
  directory
  /home/tassosco/public_html/var/generation/Magento/Theme/Model/Design/Backend/Favicon/.

How can we resolve this?


texts:
How do I change my product image without distorting it?  I have changed the image size to reflect but it still stretch.  The Hoover image is not distorted.
You can see there.
http://secretlyspoiled.com/girls/little-girl-tan-purse


texts: what is the mechanism use in CI-CD process for Magento2 cloud?

texts:
Like jenkins is automation server, SonarQube for code code quality we can integrate this thing with normal git or any versioning control tool. for our CI-CD process.
SO what mechanism used in Magento2 cloud project for CI-CD?


texts:
I have a module layout file like below

<default>
    <block name="ampromo_notification" type="ampromo/notification" template="amasty/ampromo/notification.phtml" before="-" />
    <reference name="content">
        <action ifconfig="ampromo/messages/display_notification" method="append"><block>ampromo_notification</block></action>
    </reference>
</default>

This file shows the content of template file at top of content area at frontend.

I want to show this file content just after header block ends.

So how can I move this block to after header?

I have tried this as well in 2columns-left.phtml, but didn't work

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

Currently, layout file and template files exist in base>default folder, while I am using theme folder. So can it be a problem ?


texts: data_index column in table catalogsearch_fulltext

texts:
How magento is filling the entries in column data_index and what are those values in the catalogsearch_fulltext table?

After re-indexation does this table gets updated, if yes then how and what changes are done in the table.


texts: Magento2 Two factor authentication for Frontend

texts: Do you guys know where to purchase or download M2 2FA ext for FRONTEND (or both frontend and admin)


texts: why my shipping method on magento2 just showing one but it's happen for one user when customer insert address

texts:
normaly customer have 2 choices of shipping method
but some users not all users just have 1 choices of shipping method

data shipping methods comes from

this Endpoint:

POST /rest//V1/carts/mine/estimate-shipping-methods


texts: Problems after updating packages with Magento connect manager

texts:
I initially only went to Magento connect manager to update M2E Pro but noticed there were some other updates so I went ahead and committed to these. I then had a 504 gateway error, refreshing the page I was left with errors which related to an extension called Turpentine - Varnish Cache. The front and backend were down. I went through many options to try and fix the problem such as commenting out the complier (it was already disabled anyway), deleted files from /var/cache etc still to no avail.

I then found out there were no files in the extension's location so I transferred them over from my backup and both front and backend came back! Now, the front end has completely changed, it looks like it's reverted back to the base or default template whereas it should point to /rwd.

Seeing as the problem seemed to have started from the varnish extension, I went to check if I could enable / disable it manually or via the admin panel. But the extension .xml file was not there, so I then transferred it from our backup, it now shows but makes no difference. I can't see the varnish options I used to have on the cache management page which tells me I'll need to reinstall it?

Trying to uninstall / reinstall via connect manager, I get a permission denied error, I then tried using custom permissions changing both folder  & files to 777, still don't work.

I am completely lost on what to do, any help or advice is greatly appreciated.


texts: How can I set my order to a custom status after it's been fully paid / invoiced?

texts:
I'm working on a case in which we need to put orders into a custom status after they have been invoiced (either manually in the backend or automatically by the payment method).

What I've found so far leaves me working with two events:

sales_order_place_after can be used to set my custom status on new orders which have been automatically invoiced (for orders using non-auto invoicing payment, such as money order, the business logic leaves the status as 'pending`).
sales_order_invoice_pay can be used to set the custom status on existing orders which have been invoiced manually via the backend.

The pitfall is that sales_order_invoice_pay fires in both cases.  However in the automatic invoicing scenario the business logic later in the request lifecycle overrides my custom status and sets it to 'processing'.

Is there another event or hook that I could use to change the order status after it has been paid?  Is there a way that my code within an event handler can determine if the order it is working with is a brand new order being automatically invoiced versus an existing order manually invoiced (I've considered inspecting the request or controller--but it seems fragile given that I'd like it to execute on the order lifecycle regardless of the origin).


texts:
I am struggling with getting connected to a Magento site's API and getting permission denied. I have manually created an integration using the Admin GUI and activated it with all permissions, I then use the Access Key during my API calls.

Also tried to admin accounts, got there key's and still no joy!

Tested in code and SoapUI.

More details can be found here.

My feeling is that there is permission issues on the site.

So my question is do I have to create a module and register it as an add on so integration created when installing the module has the right file permissions and is able to access the API.

Thanks,
Richard.


texts: I have applied a theme to my magento site. I find that when the website gets minimized to a certiain size there is a slight code bug where I see a piece of text that needs to be deleted. I need to delete that piece of text in the background. I have inspected the element and the page source. Turns out the text location is only visible in the page source. How do I find where in Magento CMS I can edit that specific Page source text block that I need deleted?


texts: magento2, add custom javascript to module

texts:
How should I include myscript.js to my module.

the content of requirejs-config.js:

var config = {
    map: {
        '*': {
            'Magento_Checkout/template/minicart/item/default.html':
                'vendor_modulename/template/minicart/item/default.html',
            ??? --> how add myscript.js
        }
    }
};

myscript.js?


texts:
I am working on a connector module for a custom CMS system into Magento.  I am using the following code to pull the products from a given category.

$category = Mage::getModel('catalog/category')->load($catID);
$collection = $category->getProductCollection();
$collection->addAttributeToSelect('name');
$collection->addAttributeToSelect('description');
$collection->addAttributeToSelect('image');
$products = $collection->getItems();

foreach ($products as $product) {...}

The problem is when I execute $product->getPrice() I get nothing back.  Any help is appreciated.


texts: Model Class Override not working for Enterprise Edition

texts:
I am stuck on overriding model class only in EE version.

My config.xml

<models>
        <pos>
            ...................
        </pos>
        <pos_mysql4>
            ....................
        </pos_mysql4>

        <sales>
            <rewrite>
                <order>DigitalCinema_Pos_Model_Sales_Taken</order>
                <order_invoice>DigitalCinema_Pos_Model_Sales_Order_Invoice</order_invoice>
                <order_pdf_invoice>DigitalCinema_Pos_Model_Sales_Order_Pdf_Invoice</order_pdf_invoice>
                <order_pdf_items_invoice_default>DigitalCinema_Pos_Model_Sales_Order_Pdf_Items_Invoice_Default</order_pdf_items_invoice_default>
            </rewrite>
        </sales>

        <bundle>
            <rewrite>
                <sales_order_pdf_items_invoice>DigitalCinema_Pos_Model_Bundle_Sales_Order_Pdf_Items_Invoice</sales_order_pdf_items_invoice>
            </rewrite>
        </bundle>

    </models>

and my DigitalCinema/Pos/Model/Sales/Taken.php

class DigitalCinema_Pos_Model_Sales_Taken extends Mage_Sales_Model_Order
{
     public function sendNewOrderEmail()
     {
         ........
     }

   ..............
}

Problem

See following line:
<order>DigitalCinema_Pos_Model_Sales_Taken</order>

Only this one (sales_model_order.php) is not getting overridden.
All others are working.

I can also confirm that it is working in community version.

Any help is much appreciated.

UPDATE 1

As Marius suggested, I have checked module conflict and can see there is another module rewriting same class. However, that module is not overwriting the class I am trying overwrite.
Now, I have found this link. And would like to use Option 2. But it is not working.
Now my Taken.php becomes as follows:

class DigitalCinema_Pos_Model_Sales_Taken extends Other_Module_Model_Order

Anything I am missing on this?


texts:
I would like to get Cms Pages from repository using search criteria.
I need to filter title and content fields.
This is how I'm trying to do this:

$this->filterBuilder->setField('title');
$this->filterBuilder->setValue('%keyword%');
$this->filterBuilder->setConditionType('like');
$filters[] = $this->filterBuilder->create();

$this->filterBuilder->setField('content');
$this->filterBuilder->setValue('%keyword%');
$this->filterBuilder->setConditionType('like');
$filters[] = $this->filterBuilder->create();

$this->searchCriteriaBuilder->addFilters($filters);

and it gives me following SQL:

SELECT `main_table`.* FROM `cms_page` AS `main_table` WHERE (`title` = '%keyword%') AND (`content` = '%keyword%')

while what I need is:

SELECT `main_table`.* FROM `cms_page` AS `main_table` WHERE (`title` = '%keyword%') OR (`content` = '%keyword%')


texts: How to show product rating on filter magento 1.9.2.4

texts: How to show product rating on filter Magento. I am trying to show filters in the form of product rating stars. Please help, how to show?


texts: I am using Magento 1.9.2.2 version, In the front end footer, I need a counter to view on. of users/transactions count. Is it possible? If yes, please provide me the code.


texts: dynamically adding layout updates xml files

texts:
In an extension i am working on, i have this section in the module's config.xml-

<config>
    <frontend>
        <layout>
            <updates>
                <packagename_modulename module="packagename_modulename">
                    <file>packagename_modulename</file>
                </packagename_modulename>
            </updates>
        </layout>
    </frontend>
</config>

This works correctly as expected but now i have another situation where i want to activate that layout update acc. to some conditions. I want to achieve the same end result but achieve it dynamically from php code. Is there some way to dynamically insert that node in the global config from either the controller or observer?

BTW there are some more config too that i want to add to that. It is used to rewrite some classes of magento blocks & models. But if i can understand how to insert to the global config programmatically, i think i will be able to add that config too in the same way.

EDIT

Just to clarify, i want to make my extension work exactly as if this config is present in the config.xml file, but i want to add it from php code instead of the config.xml.

For rewriting the blocks & models, i'm going like-

<config>
    <global>
        <blocks>
            <payment>
                <rewrite>
                    <form_cc>PackageName_ModuleName_Block_Form_Cc</form_cc>
                </rewrite>
            </payment>
        </blocks>
    </global>
</config>

UPDATE

So using Fabian's suggestion, i made some more progress. I didn't removed anything from the config.xml, i used Mage::app()->getConfig()->setNode('path_to_config', '') inside the observer controller_action_layout_load_before & it's correctly setting the configuration. This allowed me to undo all the models & blocks rewrites that i did from my module's config. Next from the router, i was able to undo the controller rewrite that was added by the module.

Now there's only one problem remaining here. The layout file once loaded is getting cached. The above solution works as long as the layout cache has been disabled from magento's admin. So is there any way to "not cache my particular extension"? This is only for a particular use case, so it would be ok if i can do it by editing a core file


texts: Difference Between $block and $this magento 2

texts:
I have block Class Name NameSpace1\Test\Block\Test with method getTest()

namespace NameSpace1\Test\Block;

class Test extends \Magento\Framework\View\Element\Template {
    public function getTest(){
        return "Same Result";
    }
}

My Template file name test.phtml with following code

Class: <?php echo get_class($block) ?> Result: (<?php echo $block->getTest() ?>)

Class: <?php echo get_class($this) ?> Result: (<?php echo $this->getTest() ?>)

and output the code is following result

my question is what is difference between $this and $block and which is better to use in my template file both have get same result


texts:
I have been trying to move the cart within the top header, though its appearing in the incorrect sequence. I would like this to appear after Create Account

<move element="minicart" destination="header.panel" after="top.links"/>


texts: Resource interpreted as Image but transferred with MIME type text/html for Chrome browser

texts: I am trying to show image using encrypted code for magento dashboard  graph image and it is perfectly working in mozilla firefox but the same code is not working on google chrome and showing warning as Resource interpreted as Image but transferred with MIME type text/html


texts: Magento 2: Product price is not showing on front end

texts: I'm new to Magento and am using Magento 2.2.6. I have uploaded product in back end but product price is not showing on front end. Kindly help me on this.


texts: Magento 2 Checkout Billing Address Modification

texts:
I have a custom module for checkout part, I just need to know how to modify some elements and for begin I am trying to place the Billing Address part on another side after shipping details.

I have that:
checkout_index_index.xml

................
<item name="custom-billing" xsi:type="array">
    <item name="component" xsi:type="string">Custom_Module/js/view/billing-address</item>
    <item name="displayArea" xsi:type="string">custom-billing</item>
</item>
<item name="before-shipping-method-form" xsi:type="array">
     <item name="component" xsi:type="string">uiComponent</item>
     <item name="displayArea" xsi:type="string">before-shipping-method-form</item>
     <item name="children" xsi:type="array">
         <!-- address-list-additional-addresses -->
     </item>
</item>
...............

And inside web/templates/shipping.html

<div class="col-md-12">
<!-- ko foreach: getRegion('custom-billing') -->
    <!-- ko template: getTemplate() --><!-- /ko -->
<!-- /ko -->
</div>

The component something want to display but it gives a js error:

 Uncaught TypeError: Unable to process binding "attr: function (){return {id:'billing-address-same-as-shipping-'+ $parent.getCode()} }"
Message: $parent.getCode is not a function
at attr (eval at createBindingsStringEvaluator (knockout.js:2624),     <anonymous>:3:214)
at update (knockout.js:3659)
at ko.dependentObservable.disposeWhenNodeIsRemoved (knockout.js:3004)
at evaluateImmediate (knockout.js:1737)
at Object.ko.computed.ko.dependentObservable (knockout.js:1946)
at knockout.js:3002
at Object.arrayForEach (knockout.js:151)
at applyBindingsToNodeInternal (knockout.js:2974)
at applyBindingsToNodeAndDescendantsInternal (knockout.js:2854)
at applyBindingsToDescendantsInternal (knockout.js:2836)

So Message: $parent.getCode is not a function, but I am stuck with this.

Anyone tried that?


texts: Magento Config Theme Error: an error occurred while saving this configuration: package with this name does not exist and cannot be set

texts:
I have recently installed a clean installation of Magento 1.7.0.2 on my server. It worked fine with no issues. I then purchased a theme and tried to install it by following the manual, and specifically doing the following:

Disabled Cache - copied theme.zip file (contained 4 folders: apps, js, media, skin with the theme files) to Magento's root folder. Next, I have unzipped the file and merged the folders with the ones installed. I specifically checked that skin and apps folder contain "base", "default" and my theme name (ultimo).

I went to Magento control panel and from there I went to System > Configuration > Design

I filled "ultimo" in Current Package Name and I filled "default" in Themes > Default

I keep on getting the following error: "an error occurred while saving this configuration: package with this name does not exist and cannot be set."

I have asked the author of the theme for help, yet it yielded nothing so far. I have chmoded the permissions of the Magento folder including all the folders therein to 775 and then to 777 - nothing worked and I keep on getting the same message. I tried changing other config settings through Magento's control panel and everything else works fine. My server is fully compatible with Magento and I am run down by trying to install this theme.

I would appreciate anyone's help ... really don't know what to do to solve this issue.

Many thanks


texts: Magento 2.2.7 Warning - The directory cannot be deleted: rmdir() Text file busy

texts:
I am getting the following error while running the  bin/magento setup:di:compile command using a linux VM(Laravel Homestead) in a windows host.

The directory "/var/www/projectname/generated/code/Composer/Console" cannot be deleted
Warning! rmdir(/var/www/projectname/generated/code/Composer/Console): Text file busy

How do I fix it? I have tried changing the syslink option to copy in the di.xml (app/etc/di.xml) but the error is still there.

I am also getting a similar error while changing to the developer mode

The directory "/var/www/projectname/var/cache/mage--0" cannot be deleted
Warning! rmdir(/var/www/projectname/var/cache/mage--0): Text file busy


texts: Magento 2: Use Google API client library for PHP

texts:
I want to use Google API client library for PHP in my extension to upload YouTube video. I ran following composer command to add this library.

composer require google/apiclient:~2.0

But I got following error...


texts: Images don't display on the product detail page

texts:
I installed Magento 2.2 on an Ubuntu virtual machine running on Virtual Box on Windows 10.  After installing Magento, I installed the sample data with php bin/magento sampledata:deploy and php bin/magento setup:upgrade.  I also cleared my cache.

Most pages on my store display correctly, including the images.  However, when I go to the product detail page for any product, the place where the product image should be shows the spinner, and the spinner never gets replaced by the product image.

When I look at the browser console, I see the following error

Uncaught SyntaxError: Unexpected token s in JSON at position 112
   at JSON.parse (<anonymous>)
   at getNodeData (scripts.js:87)
   at Array.map (<anonymous>)
   at scripts.js:117
   at HTMLDocument.apply (main.js:70)
   at fire (jquery.js:3232)
   at Object.add [as done] (jquery.js:3291)
   at jQuery.fn.init.jQuery.fn.ready (jquery.js:3542)
   at jQuery.fn.init (jquery.js:2967)
   at new jQuery.fn.init (jquery-migrate.js:225)

My folders all have the writable attribute for the www-data group, and I have installed the gd extension.

How do I get my images to display correctly?


texts:
I am trying to install magento on linux. While installing i am getting following error. Same installation file i can install on windows xampp.

Fatal error: Uncaught Error: Function name must be a string in /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Model/Layout.php:555
Stack trace: #0 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
 #1 /opt/lampp/htdocs/magento/app/code/core/Mage/Install/controllers/WizardController.php(120): Mage_Core_Controller_Varien_Action->renderLayout()
 #2 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Install_WizardController->beginAction()
 #3 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('begin')
 #4 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
 #5 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
 #6 /opt/lampp/htdocs/magento/app/Mag in/opt/lampp/htdocs/magento/app/code/core/Mage/Core/Model/Layout.php on line 555