texts: Checkout remains 80% blank Magento 2.0.7

texts:
If already asked, i'm sorry. I was only able to find this question for Magento 1

I'm working on Magento CE 2.0.7 and my checkout doesn't work (anymore). I also have a problem with login as a customer and then going to checkout. In that situation, it tells me I don't have any products in my cart while the cart on top shows 3 items in the cart.

If I stay as a guest, add a product to my cart and go to checkout i will get the page as shown in the screenshot.

Can anyone tell me if this is a configuration problem or a script problem?

Thanks in advance


texts: curl_exec issue in Magento 2.4.1 and PHP 7.4.x

texts:
I have following code in the Magento site for getting external site data in PHP file, this worked fine in Magento CE 2.3.6 site but getting HTTP error code 400(Bad Request) after upgrading Magento to CE ver. 2.4.1-p1. I came across cURL way of making calls in Magento 2 but couldn't find any documentation on why current code wouldn't work.
Any ideas on what the issue is here?
const EXT_URL = "http://www.myexturl.com/blah/";
$ch = curl_init();
$myurl = self::EXT_URL . $param1 . "/" . $param2;
print_r($myurl);

curl_setopt($ch, CURLOPT_URL, $myurl);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FAILONERROR, true);

$s_output = curl_exec($ch);
// Getting 400 error code -- Bad Request. Your browser sent a request that this server could not understand.
print_r($s_output);

Note that the external URL call with hard coded parameters work fine from the browser and using curl command inside the Magento server, so it's not a firewall or network issue.


texts: Magento 2 / Wordpress Translation function __()

texts:
I have a Wordpress installation with a sub directory /shop where I have my Magento 2 installation.  I've included wp-load in Magento's index.php (root) so that I can make use of WP functions within the shop such as get_header() etc.

I have an issue where both Wordpress and Magento are trying to declare the function __() for translations.  This was solved by adding the following around the function in the functions.php file of Magento (/app/functions.php).

if (!function_exists ('__')){
    function __() {
        .......
    }
}

This solved my immediate error of trying to redeclare the function but I then ran into my next error:-

Recoverable Error: Argument 1 passed to Magento\Framework\Exception\NoSuchEntityException::__construct() must be an instance of Magento\Framework\Phrase, string given, called in....vendor/magento/module-store/Model/StoreRepository.php on line 60

So, I checked what's on this line and it's a call to the __() function

throw new NoSuchEntityException(__('Requested store is not found'));

The return of the __() is giving a string and not an instance of Magento\Framework\Phrase because it's the WP declared version of the function.  If I remove __('Requested store is not found') and pass null (ie don't pass a string) then the error is resolved.  Obviously this is not what I want to do since those errors will be useful to me.

So, my question is, is there a way around this problem without having to re-name either the WP and Magento 2 functions as this would mean going through the entire code base and changing all calls to the function.

Thank you in advance.


texts: Removed attribute still displaying under Layered Navigation

texts:
we have 2 attributes with different attribute code and same attribute name.

attribute code : "cloth_gender" & "gendernew"

both have attribute label : GENDER

both have dropdown values : "Boys" , "Girls"

we are using

Atttribute set : "Cloths"

we added attribute "gendernew" to Cloths attribute set

Initially when uploading the product we assigned  product "P1" to one attribute value [Boys] of attribute "gendernew" ,

later we removed that attribute from attribute set & again added new attribute "cloth_gender" to attribute set.

than for "P1" we assigned attribute value [Boys] of attribute "cloth_gender"

Now in the layered navigation, both attributes are displaying.

but we already removed attribute "gendernew" from Attribute set, but still its displaying in layered navigation.


texts: How to write new line with drawText() below code magneto 2?

texts:
Anyone plz help me

  $Commenthistory = "Order Comment History";
        $page->drawText($Commenthistory, 20, $this->y, 'UTF-8');
        //$page->drawText(__('Order Comment History'.PHP_EOL), 20, $this->y, 'UTF-8');
        foreach ($invoice->getOrder()->getStatusHistoryCollection() as $status){
            $textChunk = wordwrap(strip_tags($status->getComment()), 410, "\n");
            foreach(explode("\n", $textChunk) as $textLine){
                if ($textLine!=='') {
                    $page->drawText(strip_tags(ltrim($textLine)), 35, $this->y, 'UTF-8');
                    $this->y -= 15;
                }
            }
        }


texts: Magento 2.3 watermarks upload does not take hold

texts:
There is a bug in Magento 2.3 whereby favicon and logo upload does not take hold. The solutions is described here.

However, the problem appears also at upload of the 4 images under product image watermarks and transactional email logo.

Solution for transactional email logo has been given here and parts of the images under product image watermarks here. But how would the remaining watermark images bug be fixed, please?


texts: Magento 2.1.1 How to load Order with Increment ID using OrderRepository object

texts: What would be the latest best practice to load Order using increment ID (instead of Order ID) using OrderRepository


texts:
I see on 1.9.1 there are some new folders in the VAR folder, the one I am asking about is the PACKAGE folder. There a lot of XML files in there, can anyone shed some light on them?

thanks


texts: How can i upgrade magento 2 enterprise version?

texts:
Currently I have used magento 2.1.3 enterprise version. How can i upgrade in latest version ?

Provide some details or hint if anyone have any idea about that.

Thanks


texts: Magento1.9 sales_order_save_after observer fires twice

texts: I am using magento 1.9.3.x version and trying to update order data in sales order save after event. Order data update works fine. But it's updating twice so order data getting duplicates. If use any flag or session or registry to avoid duplication and facing another problem like, updating the order status in cron job for bulk order, sales_order_save_after event triggers twice if use any flag or registry or session to avoid data duplication only first order getting updates remaining orders not updating. So i would like know why the event fires twice? Another question how to update bulk orders without duplication using sales_order_save_after event.


texts: Magento 2 how to check serialized conditions against product in frontend?

texts:
I have created an admin form which contains name and catalog price rule conditions. I have saved these values in a custom table. The conditions are saved as serialized. Now I want to check these conditions against each product in catalog product list page, product page, widgets etc. If the condition satisfied then need to display the name in each product.

How can I do this. Please help me.


texts: An E-mail was sent to you with further instructions but still not receiving it...!

texts:
I am new with MAGENTO 2.4.0 i have already installed BUT When i try to log in my backend it shows me:
"You need to configure Two-Factor Authorization in order to proceed to your store's admin area
An E-mail was sent to you with further instructions"
i have 4 hours and still not receiving any email in my inbox..
PLEASE, let me know How Can I Solve this....????
best regards
Julio Cesar


texts: What interesting modules should I develop for Magento for learning?

texts:
For a while now I have been studying Magento. I did quite a few modules, but I still think that I need a bit more training, but I can't think of an interesting module to do strictly for working with as many things as possible.

Here are a few modules I made: blog, admin email notification, related products, product view pop-up.

So, can anyone suggest a module that requires me to learn things I haven't touched yet, or interesting ways of thinking?

This question may not have 100% the Q/A answer form that is necessary for this site, but I hope I can get some suggestions

Thank you.

PS: Everything is strictly for educational purpose, I want to learn all the inns and outs of Magento.


texts:
I customized Magento 1.9.2 rwd theme with CSS. All pages working fine except onepage checkout accordion. When i click checkout button the form is not showing.

The login form is not showing there. I am new to magento can anyone help me to solve this issue.


texts: I'm using Smartwave Porto theme for my Magento 2 website, when I load my website for the first time in browser console it shows no error at all, but every time I refresh the browser page by pressing F5 or CTRL+SHIFT+R, it will show an error like this in browser console and my page not load properly because of this:


texts: Magento tax amount randomly showing zero on checkout page

texts: In my Magento store tax price not working on some states, on California taxt is being calculated but on new York and on many more states is's showing 0 price.


texts: How to override widget_recently_viewed.xml in Magento 2

texts:
I'm facing an issue with overriding module-catalog/view/frontend/ui_component/widget_recently_viewed.xml

If I copy it to {theme_dir}/Magento_Catalog/ui_component/widget_recently_viewed.xml

My recently viewed widget gets messed up (the "price" segment of it to be specific).

So I presume I'm not doing this correctly...

What I'm trying to do is just change the sort order of special_price and regular_price

<item name="special_price" xsi:type="array">
    <item name="label" xsi:type="string" translate="true">Special Price</item>
    <item name="component" xsi:type="string">Magento_Catalog/js/product/list/columns/final-price</item>
    <item name="bodyTmpl" xsi:type="string">Magento_Catalog/product/price/special_price</item>
    <item name="sortOrder" xsi:type="number">1</item> --> change this to "2"
</item>
<item name="regular_price" xsi:type="array">
    <item name="label" xsi:type="string" translate="true">Regular Price</item>
    <item name="component" xsi:type="string">Magento_Catalog/js/product/list/columns/final-price</item>
    <item name="bodyTmpl" xsi:type="string">Magento_Catalog/product/price/regular_price</item>
    <item name="sortOrder" xsi:type="number">2</item> --> change this to "1"
</item>

What would be the correct way to override this file?


texts: How to update custom option value of products from the cart page magento 2?

texts:
I want to add my two custom options and can change its value from the shopping cart page.
I added my two custom options (two Checkbox: Accidental Warranty and installation ) to all my products, I can edit them on the product page but in the shopping cart page, it's just listed. I want to add the two checkbox on the cart page.
an idea of how to do this, please?


texts: Insert form values in Database. Magento 1.9

texts:
How Can insert front end form value in Magento 1.9xxx,
My form field is

<form action="#" method="post" name="form1">

                User Name
                <input type="text" name="username">

                Password
                <input type="text" name="password">

                Email
                <input type="text" name="email">

                <input type="submit" name="Submit" value="Save">

</form>


texts: Magento 2.3.2 Collection foreach didn't get disabled product

texts:
I am using Magento 2.3.2. I am filtering collection if product ids found in array. before foreach if I am printing collection I am getting data. But in foreach I am not getting any data.

$productIds = array(123,124); // product ids
$productCollection = $this->_productCollectionFactory->create();
$productCollection->addAttributeToSelect("*")->addFieldToFilter("entity_id", array("in" => $productIds));

echo "<pre>";
echo "#########################################";
print_r($productCollection->getData());
echo "#########################################";

foreach ($productCollection as $product) {
    print_r($product->getData());
}

Below values I am getting result of first print

(
    [0] => Array
        (
            [row_id] => 23947
            [entity_id] => 23908
            [created_in] => 1
            [updated_in] => 2147483647
            [attribute_set_id] => 22
            [type_id] => simple
            [sku] => test123
            [has_options] => 0
            [required_options] => 0
            [created_at] => 2018-11-10 17:03:23
            [updated_at] => 2019-08-23 06:30:15
            [status] => 2
        )

    [1] => Array
        (
            [row_id] => 70562
            [entity_id] => 69713
            [created_in] => 1
            [updated_in] => 2147483647
            [attribute_set_id] => 19
            [type_id] => simple
            [sku] => firstprod
            [has_options] => 0
            [required_options] => 0
            [created_at] => 2019-03-21 20:45:31
            [updated_at] => 2019-08-25 08:30:50
            [status] => 2
        )

)


texts: How can I get all filter combinations and their links for all categories in Magento 2?

texts: I have a problem and I do not know how to solve it. The client wants to get links of all filter combinations for the category, and make a check on index and follow. And if there is a parameter index and follow are true, then write it to the site map. Can you please tell me how to implement this task?


texts: Get a Magento product collection without sub-products of configurable products

texts:
I want to get a list of all products available in my Magento installation. Currently I am using the following call to filter out enabled products and limit the result set to those products which are visible both in catalog and search results:

$products = \Mage::getResourceModel('catalog/product_collection')
    ->addAttributeToFilter('status', \Mage_Catalog_Model_Product_Status::STATUS_ENABLED)
    ->addAttributeToFilter('visibility', array('in' => array(
        \Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_SEARCH,
        \Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH,
    )))
    ;

As all children of configurable products are stored as regular products they show up in the resulting collection. However, I don't want them to be included. Is there any way to safely achieve this?

In case you wonder about all these backslashes: My code runs in an PHP-5.3 compatible environment using namespaces so I had to refer to the global namespace when calling Magento functions.

Thanks in advance,

Edit (further explanation of what I want to achieve):

My employer develops an own eCommerce system. This software provides a mechanism similar to Magento's configurable products. All sub-products assigned to a configurable product know about their parent (indicated by the parent's primary key). Hence, it it easy to filter them out by excluding product rows having a non-zero parent ID.

How is this realized in Magento? Don't the sub products know which configurable product they are assigned to?


texts: How should I handle user prescriptions? (eye glasses store)

texts:
I am struggling with a good backend approach. Each order item will need an Rx associated with it, and it should also be accessible/editable from the customer account page.

Should I make this its own EAV? Would this be better off a customer attribute or an order attribute? Any guidance or a similar extension to get me started would be awesome.


texts: Magento 1: Set attribute default value per website

texts:
Is there any way to set a default attribute value per website in Magento 1?

EDIT:

I mean Attribute Options in Manage Label / Options. There is a possibility to set "Is Default" for some option, but that applies to all websites.


texts: Wishlist all to cart button -> don't add items to cart with 0 qty

texts:
I've made some basic modification in Magento to create a webshop on were  returning/regular customers can order their products. It's some kind of dealership website where the wishlist is used as an inventory/catalog for the customers. I've managed to make some modification so that none of the products on the wishlist are being removed when adding to the cart.

But now i'm stuck with one problem; when a customer creates an order from the wishlist it's sometimes the case that they don't want to order all of their products from the wishlist, example:

Wishlist:

Product A, Qty: 2
Product B, Qty: 0
Product C, Qty: 3
Product D, Qty: 0

When using the button 'Add all to cart' I get the following result in cart:

Cart:

Product A, Qty: 2
Product B, Qty: 1
Product C, Qty: 3
Product D, Qty: 1

All the products that are added to the cart even the products that are set to 0 in the Wishlist. I tried everything and also tried to modify the classes and functions, but no result. I have to admit that I'm not an hardcore Magento Developer, but know some basic PHP. So I don't ask to people to write complete functions for me, but some little help in the right direction would be great!

Long story short: disable the function of adding products from wishlist to cart when qty is set to 0 in wishlist ;)

Magento CE ver : 1.9.0.1


texts: How to get product collection of a particular category depending upon the custom attribute value in magento 2

texts: I have created an attribute for product like enable/disable to show product in slider in frontend. How can i get the product collection of the product enabled for this attribute value using category id in magento 2


texts: Git Workflow - "untracked working tree files would be overwritten by checkout"

texts:
thanks in advance for taking your time to help me and others that may be stuck at the same point.

I've installed Magento on my machine, created .gitignore following documentation, made change on a file, made a commit, and pushed to my repo.
On other machine I installed Magento, and pulled the repo according to the documentation, but I get an error when pulling the repo:

error: The following untracked working tree files would be overwritten by checkout

I think this is happening because this process is not really the right one. Where I'm getting it wrong?


texts:
Hope one can help me out with this problem i'm facing.

Situation:

I've got 1 website in 5 languages (e.g. example.com, example.com/it etc.)

Problem:

Now I've got example.com/about-us and example.com/it/about-us. Obviously I want for the Italian version to be like: example.com/it/chi-siamo.

I've been trying to translate the identifier and linked it in product categories to lets say "chi-siamo". Problem is if you try to switch to a different language it takes that identifier.

For example: I'm currently at example.com/it/chi-siamo but I want to switch to the German version, which should be example.com/de/ueber-uns. If I'm switching from Italian to German using the language switch I get: example.com/de/chi-siamo. Which gives a 404.

What is the solution to go with?


texts: Magento 2 checkout - Move Shipping methods block above the Order summary

texts: I am trying to move the Shipping methods block just above to order summary block


texts: magento 1 how to load the block for the shipment tracking in the invoice traditional email template

texts:
I wanted to send the shipment details along with the invoice in the Transaction email I tried
{{block type='core/template' area='frontend' template='email/order/shipment/track.phtml' shipment=$shipment order=$order}}

But it doesn't work for me when I send the invoice it doesn't load the shipment object can anyone help me what I am doing wrong
Thanks In advance


texts: Remove the invoice link from the customer account page in Magento 2

texts:
I would like to remove the Invoices link from the customer account page in Magento 2:

I tried to search it in templates and layout files but no luck.

Someone know how to do?


texts:
I've started to get some weird errors in my system.log this morning after flushing the cache after uninstalling a possibly problem causing module.

I'm getting a lot of fopen errors showing missing permissions for opening several cache files in var/cache/mage--(numbers)/. After checking all the permissions for all the mage cache folders I noticed all those involving the cache were owned and grouped by root and not the actual website user and group.

Is this supposed to be set this way? or has something gone wrong somewhere along the way? (I'm thinking the latter as, well I'm getting an error, but i don't know if the error is the permissions of the file or permissions of the website user or the fact that this file is trying to be opened)


texts: How to rename products images for more SEO-friendly

texts:
I want to rename all my products images for a better SEO-friendly.

Is it a good idea ?
How to do it ?


texts: Add CMS page links into Nav menu using local.xml

texts:
I have been trying to add cms page links into the Main navigation using the local.xml file. I tried the following, however this references the top links instead of the main nav.

<reference name="top.menu">

        <action method="addLink" translate="label title" module="customer">
            <label>test</label>
            <url>/</url>
            <title>test</title><prepare>true</prepare>
            <urlParams/>
            <position>5</position>
        </action>

</reference>

I would like the main menu to go:
Home   |    Products (with drop down)   | CMS Page | CMS Page | CMS Page | etc.

Is this possible through xml?

Thank you


texts: How to show module in multiple stores in magento1.9?

texts:
Can anyone help me that how to show module in mutiple store view in magento1.9?
Actually my module show only in main website store when we select store then its not showing...so plz provide me the solution for that.


texts: What to consider when adding a new web store to Magento 1.9?

texts:
Our company has 2 websites, but now there is another one on Prestashop that we bought and we want to have all 3 webstores in our one Magento admin but all on separate domains. I'm a bit confused about whether it is possible.
I mean.. We create a new webstore in Magento admin. How can we match this new store with this Prestashop store's domain? Then we were thinking of extracting all products from Prestashop to a XML file and import it to Magento.

Could there be any difficulties involving these procedures that I cannot think of right now..?


texts: magento 2 - display shipping method logo

texts:
I have created a module to add a shipping method logo.
In backend its successfully working fine like uploading logo image, deleting logo image, etc. Please see the below image.

But I am stuck to display that logo image on checkout page shipping method list.

How to display custom system configuration value in knockoutjs html file.
I am new to knockoutjs, please give me steps to add a logo in rates array.


texts: Admin 404's after migration, tried every solution I've found with no success

texts:
I'm trying to help a friend migrate his magento site to a new host. I exported the DB, zipped the site files and moved everything over. There was a hiccup with the SQL on import, but I found a fix.

The DNS propagated and the front end works great, but the admin gives: https://sitedomain.com/index.php/admin. I try just /admin, and it redirects to that with this error:

  The server can not find the requested page:

sitedomain.com/index.php/admin (port 443)

I've tried every fix you can find via google - running this:

SET FOREIGN_KEY_CHECKS=0;
UPDATE `core_store` SET store_id = 0 WHERE code='admin';
UPDATE `core_store_group` SET group_id = 0 WHERE name='Default';
UPDATE `core_website` SET website_id = 0 WHERE code='admin';
UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN';
SET FOREIGN_KEY_CHECKS=1;

...clearing caches, setting admin SSL to 0 from 1, nothing.


texts: how to add a discount for specific products? Shopping cart price rules

texts:
I can code in PHP and Laravel alright, so the snippet should not be difficult but I am new to Magento.
I have been tasked with the request of coding a snippet that would give a 20% discount on black Friday for some items identified by the code. The thing is that I have no idea where to look at to start studying the code. On reading papers here and there, it seems that there is not even a need to code as Magento offers that ability, but how can I say, apply the discount to products whose code is between 100 and 200?

I am reading this tutorial (Shopping cart price rule)
http://www.demacmedia.com/magento-commerce/shopping-cart-price-rules-in-magento-walk-through/

which is very close to what I want, but here it offers discount if you spend at least 99 dollars. What I want is to offer discount for the products whose ID number is between 100 and 200


texts: What is the event name for "Continue Shopping" button or the plug in for the same?

texts:
Once the user clicks "continue shopping", I got to take him to a custom page.

Can anyone suggest me a way or extension?

Thanks in advance..!


texts:
I have this code:

public function getCounter()
    {
        /** @var \Amasty\ShopbyPage\Model\Page $model */
        $model = $this->_coreRegistry->registry(RegistryConstants::PAGE);
        return count($model->getConditions());
    }

But in line:

return count($model->getConditions());

I get error in php 7.2:

  Warning: count(): Parameter must be an array or an object that
  implements Countable

Magento 2.3 version. PHP7.2

In php 7.1 works fine.
How can I fix it?


texts: Issue with the product count on the pagination not working on product listing page

texts:
I am working on a magento 2 store and I am getting this weird issue.

The total count of the product on the pagination doesn't match the total number of product displayed on the category page.

Below screenshot would make my issue very clear.

Is anyone facing similar issue and has the fix please suggest. I'm not sure from where to start figuring this out.

What I have tried out:

I have completely re indexed the store.
I don't see such issue listed on magento2 issue github so not sure if it is generic issue of magento 2.
I tried upgrading to latest version of magento

Can anyone suggest anything?

Regards.


texts: How to pass custom quote id while placing order in Magento 2

texts:
I have created a functionality to replace default checkout cart quote values by my custom quote values, and it is working fine for me.
But, when I am placing an order, order is taking checkout cart quote id, and the values are not same as my Custom quote values.
Please guide me on this, thanks in advance.


texts: Upgrade Magento 2 via composer not working

texts:
I try to upgrade Magento 2.1.6 to Magento 2.1.9.

To do this I ran this command:

composer require magento/product-community-edition 2.1.9 --no-update

after this I ran : composer update and I received this error:

Your requirements could not be resolved to an installable set of packages.

Problem 1

  The requested package magento/product-community-edition 2.1.9 exists as magento/product-community-edition[2.1.6] but these are rejected by
  your constraint

My composer.json look like this:

{
    "name": "magento/project-community-edition",
    "description": "eCommerce Platform for Growth (Community Edition)",
    "type": "project",
    "version": "2.1.9",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],
    "require": {
        "magento/product-community-edition": "2.1.9",
        "composer/composer": "@alpha",
        "ebizmarts/mailchimp-lib": "^3.0",
        "mailchimp/mc-magento2": "^1.0",
        "dividebv/phpdivideiq": "^0.5.0",
        "beberlei/assert": "^2.4"
    },
.........................................

Even I remove the rest of the extensions like this, is still not working

   "require": {
            "magento/product-community-edition": "2.1.6",
            "composer/composer": "@alpha"

        },

How I can avoid this issue?


texts: Magento 2 - Data Migration Tool - Triggers

texts:
Intro
Regarding the Data Migration Tool (M1 to M2), the migration creates m2_cl_ trigger tables that I can eventually run bin/magento migrate:delta will only update those triggered tables, or do they update eav_attribute items as well?
The main question is: for all the other tables that do not have m2_cl_ triggers setup, can I simply just copy them after delta migration completes?
Discussion
For instance, none of the eav_attribute tables have m2_cl_ trigger tables in the source database.
I have migration that is not really working completely, products out of stock (other related question), attributes not all being imported into their corresponding eav_attribute_group tables (especially 50% of the configurable attribute groups for some reason.
I am tired of trying to solve the migration the way I have been doing - I have around 15 steps which data processed after initial migration (migrate:data) finishes to get categories, etc working.  These remaining issues with attributes, groups, and attribute sets that do not import correctly are a major headache.
Quite simply, the Data Migration Tool does not work 100%, especially not with our data that have over 300 attributes, 30 configurables etc.   I would simply just want to be able to import the required tables afterwards.
Question:
So, the main question is: for all the other tables that do not have m2_cl_ triggers setup, can I simply just copy them after delta migration completes?  (I will just want to concentrate on the eav_attribute entries firstly).


texts: Magento 2.2.3 - Get all products in product grid/list

texts:
I'm trying to get all products in my store programatically and show them in the default product grid/list as shown below.

I've already gathered all products with the productcollection. But i don't know how to display them in the product grid/list.


texts:
I've an issue with Magento 2: please Help!

I've added some HTML code in:

Content > Design > Configuration > Theme Edit > HTML Head

The code doesn't work (it's ok, no worries for me, cause the site is running - except for the two lines error in the top header). I'd like to delete that HTML code, but I cannot access to

Content > Design > Configuration > Theme Edit

(I cannot enter the default page view - The wheel keep on rotating but nothing happens). Is there any file I can edit to delete that html code?


texts: Can't Save Products in Admin after editing

texts:
We have a default Magento 2.1 store setup (Nexcess)

We uploaded our products via Dataflow (I did create a product manually and I am able to edit the simple products)

EDIT: It appears it is only for configurable products

When I go back to edit a product the "gifs" spins but no confirmation of a save.

This applies to all parts of the product section.

I have tried the following:

composer update

and

rm -r www/pub/static/_requirejs/
rm -r www/pub/static/adminhtml/
rm -r www/pub/static/frontend/
rm -f www/pub/static/deployed_version.txt
rm -r www/var/page_cache/
rm -r www/var/view_preprocessed/
rm -rf www/var/di www/var/view_preprocessed/ www/var/tmp/ www/var/cache/ www/var/composer_home/ www/var/generation/ www/var/report/ www/var/page_cache/ www/var/resource_config.json www/var/.cachestates.json www/var/.regenerate
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex

That didn't help so I un-tared the 2.1 tarball and re rsync'd it to the project.

I have cleared cache, re-indexed.

No customizations, Fresh Magento 2 install.

We did find this: Do I need to re-compile? I just did that! (I did update permissions)


texts: code for if and else condition connected with database

texts:
we are using an extension , so that the extension provides a text box in the admin panel.

if we enter the numbers in the admin panel text field means automatically it will save in the database table

we saved list of numbers in the database .

if the number is present in the database, than we have to display the message if condition

" available", if it is not present means than we have to display else condition "un avaialble"

please give me the php code for these kind of feature

please don't clsoe this question as un clear, if you have any doubts , please comment here, so that i will try to  to clear it.....


texts:
In magento 1, I have used addCss function to add css file to head.

However, I don't see this function in magento 2.
 Can you help me?


texts:
The code to fetch data from columns is:

<?php
    /**
      * Get the resource model
      */
    $resource = Mage::getSingleton('core/resource');

    /**
     * Retrieve the read connection
     */
    $readConnection = $resource->getConnection('core_read');

    /**
     * Retrieve our table name
     */
    $table = $resource->getTableName('catalog/product');

    /**
     * Execute the query and store the results in $results
     */
    $sku = $readConnection->fetchCol('SELECT sku FROM ' . $table . ');

    /**
     * Print out the results
     */
     var_dump($results);

So what is the code for fetching data from a row? Is it like this?

<?php
    /**
      * Get the resource model
      */
    $resource = Mage::getSingleton('core/resource');

    /**
     * Retrieve the read connection
     */
    $readConnection = $resource->getConnection('core_read');

    /**
     * Retrieve our table name
     */
    $table = $resource->getTableName('catalog/product');

    /**
     * Execute the query and store the results in $results
     */
    $sku = $readConnection->fetchRow('Random Query');

    /**
     * Print out the results
     */
     var_dump($results);

Or is there any special procedure for it?


texts: what's the best approach to lock specfic category for non registered users on (Magento 1.9) for specific country


texts: Magento Category Static block not displaying

texts:
Hi I have a running  ecommerce sites built on  magento and in that I have created custom categories for the menu and for each categories I have created static block in the magento's admin panel and linked each one of them to their respective categories.

For ex:-

Category            Linked Static block

Faq                 Faq
History             History_New
Press               Press_New

Now the problem is that when i refresh the cache and click on any category it shows its respective static block data but the same static block data is also displayed for all other categories.

For ex:- If I click on History it shows data from History_New static block but the same data is also displayed when I click on Faq or Press Category.

Visit the site.
http://www.jaydensjuice.com/beta

Any help is appreciated.

Thanks.


texts: How to update product stock using custom script in Magento 2

texts:
How to create a script for update product stock.
After the product stock update saves the product.
Anyone helps me to create this script.


texts: Is it safe to disable Klarna magento 2,3 module?

texts:
We want to disable Klarna from our Magento installation, and will this be safe?
I can see the module is under vendor and not app/code.


texts: Logs full of /rest/V1/analytics/link 500 errors

texts:
Working on a new M2.4 store and we've got the store blocking access to all visiting IPs except ours.
Our logs are filled all day, every day with hundreds of this error: Error  52.73.51.61 500 GET /rest/V1/analytics/link HTTP/1.1
The IP seems to be coming from Amazon AWS.  Any idea what this hit is?


texts: Custom error message for invalide coupon code magento2

texts:
I want to be able to set a specific error message for when the criteria of a promo code is not met.

For eg. I have promotion rule for t-shirt qty 1.

Entered valid promo code
  No tshirts in shopping cart -> receive custom error message ("Limit 1 shirt per coupon code.")
Greater than 1 tshirt in shopping cart - > receive custom error message ("Limit 1 shirt per coupon code.")
1 tshirt in the cart -> no error message; transaction is able to continue. (e.g. with free tshirt and free shipping)
Entered invalid promo code -> receive default error message for invalid promo code

I need help to create this functionality.

I want to create this functionality in Magento2.


texts:
I'm buildin rest apis for mobile app and when call the api it takes about 20 to 30 second to responds.

I'm in developer mode and disabled the cache.

  requirements are satisfied:

  php version is 7.0.8
  apache version is 2.4

I'm running on xampp with phpmyadmin database
Is that because of my implementation of the api or there is other reasons?


texts: Magento 2: Change the product title structure

texts:
I want to change product title like below:

  Brand attribute value + attribute set name + guarantee = product title

How should i do it?


texts:
I understand that Magento uses canonical URLs.  For example, when I navigate through some categories on my website and select a product I may be taken to a URL that looks like the following:

www.myshop.com/shop-by-brand/natures-plus/agelosstm-joint-support-tablets.html

However when I view source, I can see that the canonical URL points to here:

www.myshop.com/agelosstm-joint-support-tablets.html

Therefore search engines understand that the page I'm on is really a duplicate of the page on the root.

I see that under Manage Products in admin I have this field:

I'm assuming this the true URL of the product.  Or the preferred URL, whatever you want the search engine to index.

If I wanted to include categories within the canonical URL, would I simply change this field?

To something like this?

category/subcategory/agelosstm-joint-support-tablets

And if that is the case, would I then need a 301 to tell search engines that www.myshop.com/agelosstm-joint-support-tablets.html is now category/subcategory/agelosstm-joint-support-tablets.html or will Magento take care of that itself?

Thanks


texts: Why search suggestion only shows previously searched terms when using ElasticSearch?

texts:
Wether Magento 2.3 or 2.4 (with ElasticSearch), the searchbox seems to display suggestions only for previously searched terms.
I've configured ElasticSearch 7.6, cron, did the reindex and flushed caches a few times, but it doesn't bring any suggestion, unless for terms I have searched and pressed [enter].

(Above example using sample data)
Is there a way to pre-populate the suggestions, based on search-able attributes?


texts: Insert JavaScript block on product pages via Observer

texts:
I'm trying to add console.log() to specific page types such as product_view or onepage_success. However, I am encountering difficulties doing so. I'm trying to use an event observer to check which page type I am running:

config.xml

<?xml version="1.0" encoding="UTF-8"?>
<config>
...
    <global>
        <models>
            <my_module>
                <class>My_Module_Model</class>
            </my_module>
        </models>
    </global>
    <frontend>
        <events>
            <controller_action_postdispatch_catalog_product_view>
                <observers>
                    <my_module_addjs>
                        <type>singleton</type>
                        <class>my_module/observer</class>
                        <method>addJavascriptBlock</method>
                    </my_module_addjs>
                </observers>
            </controller_action_postdispatch_catalog_product_view>
        </events>
    </frontend>
</config>

Observer.php

<?php
class My_Module_Model_Observer {
    public function addJavascriptBlock($observer) {
        $controller = $observer->getAction();
        $controller_name = Mage::app()->getFrontController()->getRequest()->getControllerName();
        $controller_action = Mage::app()->getFrontController()->getRequest()->getActionName();
        if ($controller_name === 'product' && $controller_action === 'view') {
            $this->appendJS($controller);
        }
    }

    private function appendJS($controller) {
        $layout = $controller->getLayout();
        $block = $layout->createBlock('core/text');
        $block->setText(
        '<script type="text/javascript">
            function hello() {
                console.log("Foo");
            }
            hello();
        </script>'
        );
        $layout->getBlock('head')->append($block);
    }
}

For which I get Fatal error: Call to a member function getLayout() on a non-object in $layout = $controller->getLayout();

If I use the controller_action_layout_generate_blocks_after event, it works. Any ideas why this happens? Is controller_action_postdispatch_* being fired before the layout gets initialised?


texts: Magento2 - How to display sales order table data to admin grid?

texts:
HI I want to know that i need to create a module that will show the report of sold product and their generated revenue.

so I want to know that can we fetch custom table data and display it in admin grid anyone have any idea about it kindly please provide some guidance.

I think I needs to fetch this table data

sales_order


texts: Magento site so slow after some changes in.htaccess and configuration which were made to remove index.php from the url

texts:
I had this requirement:

Remove directory /new / from the url: mysite/new/ and the site is built with Magento.

I read all necessary articles over here and over other sites.did all kind of configurations starting from

  Changed the url from admin panel->System->Configuration->Web->Secure and unSecure url.

  Changed Use Web Server Rewrites under Search Engine optimizations from "NO" to "YES".
     After i have Reindexed Data -Catalog URL Rewrites - from System-> Index Management.

Added some code in my .htaccess file

RewriteRule . /index.php [L]

as well i tried with

RewriteRule ^(.*)$ index.php?/$1 [L] (both cases later didnt work)

As well I have cleared the Cache and sessions...
I wasnt able to remove that directory + my site was down. I got back the site after i did an undo of my actions. and here i am facing something else:
My links now have index.php inside the url.

mydomain/new/index.php/xxxxxxxxx.html

My client used to post on facebook its articles and they have

old url : mydomain/new/xxxxxxxxxxxx.html

So i have to remove the index.php again. but i cant do that,my site goes down again.

What am i missing over here?
After i read some comments about my issue in Stack Overflow. i did another change in my .htaccess file
RewriteRule ^index.php/(.+)$ http://yourdomain.com/$1 [R=301,L]
and than i noticed that my site is slow. Overwrited an original file of my .htaccess and still the site is so slow . takes about 40 sec to open . What can i do now. Performance is more important now than index.php removal.


texts: Magento2: How to remove PERIOD option from the report?

texts:
I am creating a custom report.

I don't need Period and Empty Rows Option from the report.

How can I remove it?


texts: Magento 2 Product Sort by Price as High to low

texts:
I set default sort by price in admin
but still i need to sort price from high to low.
Magento by default sort it low to high.
i try to find option in admin but can't find that.
can any one tell me code for that to make it high to low sort by default?
I am using porto theme for my store.


texts: Magento 2: How get All products (2000 products) using Rest API?

texts:
I use Magento2.
I have 2000 products.
I try to get all products, using Rest API.

My request str.:
GET https:///rest/default/V1/products?searchCriteria[pageSize]=1000.
But this is not enough because the total quantity of products  is 2000.
If I try to use:

GET https:///rest/default/V1/products?searchCriteria[pageSize]=0
or
GET https:///rest/default/V1/products?searchCriteria.

I received error or empty response. I think the response data is too large. So I think, that I need to use pages.
QUESTION: How can I create a Next page, that will start from the last data of the previous page?
EXAMPLE:

I have 20 products;
1-st Page includes 10 products (From 1 to 10);
2-nd Page should include 11 products(From 10 to 20);


texts: Magento - can't find - $this->getForm()->toHtml()

texts:
In my store when dealing with orders in the admin section via Admin > Sales > Orders > Edit Shipping Address the "State" field is missing for some reason.

I finally found the file in the backend located

app/design/adminhtml/default/default/template/sales/order/address/form.phtml

But when I try to add the field it only has this php code:

<?php echo $this->getForm()->toHtml() ?> in line 41.

Where can I edit the getForm()?

Is it a file someplace, or in the database, or in the configuration settings somewhere?

UPDATE - Still stuck been 4 hours :(

I see in the database the "adminhtml_customer_address" and changed values around - flushed cache and nothing changed....

Database screenshot

Admin screenshot mission "state/region" missing


texts: Magento 2.1 Rest API save attribute group does not change attribute_set_id

texts:
Preconditions

Magento 2.1.7
PHP 7.0.18

Steps to reproduce

1. Having a test attribute group:

{
  "attribute_group_id": "103",
  "attribute_group_name": "Test",
  "attribute_set_id": 4,
  "extension_attributes": []
}

Send a Rest API request:

  PUT /rest/V1/products/attribute-sets/4/groups

Headers:

content-type: application/json
Authorization: Bearer <authorization token>

Body:

{
  "group": {
    "attribute_group_id": "103",
    "attribute_group_name": "Test",
    "attribute_set_id": 13,
    "extension_attributes": []
  }
}

Expected result

{
  "attribute_group_id": "103",
  "attribute_group_name": "Test",
  "attribute_set_id": 13,
  "extension_attributes": []
}

Actual result

{
  "attribute_group_id": "103",
  "attribute_group_name": "Test",
  "attribute_set_id": 4,
  "extension_attributes": []
}

Response 200 OK.

Works if changing "attribute_group_name".


texts: How to list groups of an attribute set using REST API in Magento 2

texts:
I am trying to use the Magento 2 rest API to list the groups of an attribute set:

GET /V1/products/attribute-sets/groups/list

But the request fails with the following error:

{
  "message": "%fieldName is a required field.",
  "parameters": {
    "fieldName": "attribute_set_id"
  }
}

I can't seem to find how to pass the required field and there is no documentation on how that should be passed.


texts: Where will the newly created cms page with admin panel appear in magento files?

texts: i have to render a page depending upon the logging in customer. so I need to create two home pages basically. If i create a new cms page with admin panel then where it will appear in files because i got to put css,html etc and and insert products links in that page as well?


texts: I want to change the price of the product then add to cart on the product listing page?

texts:
I am using multi vender extension, in which this extension shows the multiple seller of the same products (ex : available from 2 more sellers) . I have shown in the drop-down of seller name with price for the particular product. Now I want to change the default product price with the listed seller price then add to cart the product.

Now I have changed the product price using jQuery, but when I add the product into the cart, it displaying the default price.

How can I achieve this.

I am using the below code for this :

<select class="select" id="seler-option-<?php echo $_product->getId(); ?>" name="option" onchange="myseller('<?php echo $_product->getId(); ?>',this.value)" style="position: absolute;top: 15px; right: 25px;">
                            <option value="select<?php echo $_product->getId(); ?>">select seller</option>
                            <?php $i=0; ?>
                            <?php foreach($sellerinfo as $sellerinfos){?>
                                <?php if($sellerinfos){?>
                                    <?php $explodestr = explode('seller',$sellerinfos)?>
                                    <option value="<?php echo $_product->getId().$i; ?>"><?php echo $explodestr[0].' ($'.$explodestr[2].')'?></option>
                                <?php } ?>
                            <?php $i++; } ?>
                        </select>

<script type="text/javascript">
    function myseller(prdid, sellerId) {

        jQuery('.seller-price-'+prdid+' ul li').each(function(){

            var selerprice = jQuery(this).attr('sellerprice');
            jQuery('.price'+selerprice).hide();
             if(sellerId == selerprice){
                jQuery('.price'+selerprice).show();
                jQuery('.seller-price-'+prdid).prev('.price-box').hide();
             }else if(sellerId == 'select'+prdid){
                jQuery('.seller-price-'+prdid).prev('.price-box').show();
             }
        });

    }
</script>


texts: How to move logo and search into header in RWD theme

texts:
I need change the position of logo, search bar, account link and cart link to the header.

I Need to change the position of the following

LOGO
SEARCH BAR
ACCOUNT AND CART LINK

Refer attached image


texts: Magento2: Search by Keyword in logic update for Grid

texts:
In Magento2, For Admin Product Grids, Search by keyword logic is not working effectively when catalog size is bigger. (>= 25 lacs)

Due to its searching logic:

Searching by SKU
Searching by Product Name
Searching in short desc, desc (when a full-text search is enabled)
Other attributes which have property is_searchable is set

If we want to Restrict Search by keyword only looks for Sku for Product Grid.

What is the best way for doing this without attributes update (via is_searchable property)?

Thanks,
Nilesh


texts: Cannot instantiate interface Magento\\Catalog\\Model\\Layer\\FilterableAttributeListInterface

texts:
I have this error:

  [Tue Dec 20 12:18:12.372646 2016] [:error] [pid 15395] [client
  192.168.255.24:51090] PHP Fatal error:  Uncaught Error: Cannot instantiate interface
  Magento\Catalog\Model\Layer\FilterableAttributeListInterface in
  /var/www/magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:73\nStack
  trace:\n#0
  /var/www/magento/vendor/magento/framework/ObjectManager/ObjectManager.php(71):
  Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Catalog...')\n#1
  /var/www/magento/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(126):
  Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Catalog...')\n#2
  /var/www/magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(53):
  Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array,
  'Magento\\Catalog...', NULL, 'filterableAttri...',
  'Magento\\Catalog...')\n#3
  /var/www/magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(82):
  Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\\Catalog...',
  Array, Array)\n#4 /var/www/magento in
  /var/www/magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php
  on line 73

My code is:

<?php
namespace Sistel\PosicionFiltros\Block\Filtros;

class Index extends \Magento\Framework\View\Element\Template
{

      public function __construct(
        \Magento\Framework\View\Element\Template\Context $context,
        \Magento\Catalog\Model\Layer\Resolver $layerResolver,
        \Magento\Catalog\Model\Layer\FilterList $filterList,
        array $data = []
    )
    {
        $this->_catalogLayer = $layerResolver->get();
        $this->filterList = $filterList;
        parent::__construct($context, $data);
    }

    public function getHelloWorldTxt()
    {
        $activeFilters = $this->filterList->getState()->getFilters($this->_catalogLayer);
        var_dump($activeFilters);
        exit;
        return $activeFilters;
    }
}

It is similar than other code in the core of magento 2. I don´t understand.


texts:
We have a pixel at our success.phtml and at this moment we get the grand total by grand_total. By the grand total the order amount is shown including tax and shipping costs. We want to change this to the amount without tax and shipping.

Does someone know how to change this?

<?php
  $lastOrderId = Mage::getSingleton('checkout/session')->getLastOrderId();
  $order = Mage::getSingleton('sales/order');
  $order->load($lastOrderId);
  $total = $order->getData('grand_total');
?>

<img src="http://www.domain.nl/tuin/img.php?campaignID=a1fddd&productID=8e7ba6&conversionType=sale&transactionID=<?php echo $this->getOrderId()?>&transactionAmount=<?= $total ?>&currency=EUR" alt="" width="1" height="1" border="0" />


texts: Maintain cart for a week in Magento 2.3.1

texts:
Ref - same issue link

Everything enabled but still facing cart expiry in hour issue for guest checkout, any idea? My Magento version is 2.3.1


texts: Back end field is not disabling in magento

texts:
I am new to magento, here I created the custom module in that Created & Updated field is there. I don't want to show these two fields for this i given disabled=true. but it's displaying.

my code is

$fieldset->addField('created_dt', 'text',
            array(
                'label' => 'Created Date',
                'class' => 'required-entry',
                'required' => false,
                'name' => 'created_dt',
                'disabled' => true,
                'value' => date('Y-m-d H:i:s'),
            ));

can tell me where I went wrong or how to resolve this?

thanks.


texts: Unable to save value of customer attribute in magento2

texts:
I am trying to edit customer form data in which i have added one contact number as attribute in form.
On removing the text from contact number and then saving it i am not able to save null or empty string in database after form is submitted.
Code: $customerDto->setCustomAttribute('contact_number',NULL); $this->customerRepository->save($customerDto);
Is there any other way to save custom attribute value of customer to null or empty string on form submit


texts:
When accessing payment methods menu in admin panel (Magento 1.9.2.2)  I get the following fatal error.

And in the frontend this:

I asked my hosting company to instal mCrypt module on Server as shown on the screenshots below

but nothing changed even after the server restart.

Is there some other solution that can help us solve the fatal error?


texts: Get product FINAL price without loading entire product

texts:
I can get product attributes efficiently without loading the entire product by using:

Mage::getResourceModel('catalog/product')->getAttributeRawValue($productId, 'attribute_code', $storeId);

However, I can only do this with the price 'attribute, since final_price is technically not an attribute. Since I'm grabbing a few hundred products on one page load, and the only data I need is the product's final price, doing this is very inefficient:

foreach($productIds as $productId) {
    $finalPrice = Mage::getModel('catalog/product')->load($productId)->getFinalPrice();
    ....
}

Since I'm loading the entire product. If anybody can suggest a more efficient way, I would really appreciate it. Cheers!


texts:
I want to add 10% on cart and also include on shipping price.

Meance one item have 100$ and shipping price is 10$, then final price is:

  100 + 10 = 110, then 110 * 10% = 121$ final price.

I know there are options for tax calculation, but not sure for shipping price include in tax.


texts:
What purpose of using secureUrlList at Magento di.xml?
It appear at few di.xml base and for frontend:

Like an example:

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Framework\Url\SecurityInfo">
    <arguments>
        <argument name="secureUrlList" xsi:type="array">
            <item name="contact" xsi:type="string">/contact/</item>
        </argument>
    </arguments>
</type>


texts:
How do I retrieve the grid filters in an observer?

public function beforeCollectionLoad(Varien_Event_Observer $observer)
{
    $collection = $observer->getCollection();

    if (!isset($collection)) {
        return;
    }

    //get filter here
    //normally:
    //$filter = $this->getParam($this->getVarNameFilter(), null);
}


texts: how to get current login customer invoice list and shipments in magento 2?

texts:
Actually i am trying to get current login customer invoice list and
  shipments and to display it in customer account dashboard custom link.

If anyone have idea please help me....


texts:
I need to remove this link only from a custom handle. The handle is working, but I cannot find the right syntax to remove the link, maybe removeLinkByUrl or byName.

<reference name="top.links"><action method="addLink" translate="label title" module="customer"><label>Faq</label><url>faq</url><title>Faq</title><prepare>true</prepare><urlParams/><position>200</position><liParams/><aParams/></action></reference>

thanks


texts: Advanced module for cross sell/accessoires

texts:
I am looking for a module that can display cross sell/accessoires on the productpage.
But I am looking for a much more advanced solution than the default Magento method.

I want to display some products of a specific category, that is related to the product.

So that when someone buys a notebook, he/she can easily add a mouse, sleeve, software etc to the cart.

See this screenshot for example: [![enter image description here][1]][1]

Does anyone knows a solution to this?


texts: Magento 2 - Add custom logic after Order creation

texts:
I've tried to push orders data to 3rdParty webservice. I created observer for event sales_order_place_after - order Id is missing there. I believe it's not a bug - order is not saved in database.

Next try.

I've tried sales_order_save_after - it gives empty array of items, no payment method information. Tried to reload it again with ordermodel->load(id_of_order) but it gives empty data again.
I'm pretty sure, order save event is raised before address, payment and other order stuff is saved in database or object in event is order prepared for save, so all additional informations are filtered out.

Any idea how to get correct order data on order place event.


texts: Product Images not shown after uploading in Magento 1.7

texts:
I am having a very strange problem, i am uploading product images through admin panel but when i upload image it shows 100% uploaded but doesn't show image row at all .
Even i import product or upload image via FTP then still same issue Tried so many things but couldn't make it work.

Please help if anybody know about this problem


texts: Magento Product Grid 'Cost Price' 3 decimal place

texts:
I want 3 decimal places for "cost" like the "Price"

app/code/local/Mage/Adminhtml/Block/Catalog/Product/Grid.php

        $store = $this->_getStore();
    $this->addColumn('cost',
        array(
            'header'=> Mage::helper('catalog')->__('Cost'),
            'width' => '80px',
            'currency_code' => $store->getBaseCurrency()->getCode(),
            'index' => 'cost',
    ));

    $this->addColumn('price',
        array(
            'header'=> Mage::helper('catalog')->__('Price'),
            'type'  => 'price',
            'currency_code' => $store->getBaseCurrency()->getCode(),
            'index' => 'price',
    ));

    $this->addColumn('special_price',
    array(
        'header'=> Mage::helper('catalog')->__('Special Price'),
        'type'  => 'price',
        'currency_code' => $store->getBaseCurrency()->getCode(),
        'index' => 'special_price',
    ));

if anyone can help me in this...


texts:
I'm trying to create a simple frontend module on Magento 2.3.2,
It seems to work, but I see a blank content on frontend.

I have this folder structure

-app
    -code
        -MyVendor
            -MyModule
                -Block
                    --Index.php
                -Controller
                    -Index
                        --Index.php
                -etc
                    --module.xml
                    -frontend
                        --routes.xml
                -view
                    -frontend
                        -layout
                            --mymodule_index_index.xml
                        -templates
                            --homepage.phtml

These are the files

app/code/MyVendor/MyModule/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="MyVendor_MyModule" setup_version="1.0.0"/>
</config>

app/code/MyVendor/MyModule/etc/frontend/routes.xml

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

app/code/MyVendor/MyModule/Controller/Index/Index.php

<?php
namespace MyVendor\MyModule\Controller\Index;

class Index extends \Magento\Framework\App\Action\Action
{
    protected $_pageFactory;

    public function __construct(
        \Magento\Framework\App\Action\Context $context,
        \Magento\Framework\View\Result\PageFactory $pageFactory)
    {
        $this->_pageFactory = $pageFactory;
        return parent::__construct($context);
    }

    public function execute()
    {
        return $this->_pageFactory->create();
    }
}

app/code/MyVendor/MyModule/Block/Index.php

<?php
namespace MyVendor\MyModule\Block;
class Index extends \Magento\Framework\View\Element\Template{
    public function __construct(\Magento\Framework\View\Element\Template\Context $context)
    {
        parent::__construct($context);

    }
    public function _prepareLayout()
    {
        return parent::_prepareLayout();
    }
}

app/code/MyVendor/MyModule/view/frontend/layout/mymodule_index_index.xml

<?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">

        <title>My Title</title>

        <referenceContainer name="content">
            <block class="MyVendor\MyModule\Block\Index" name="mymodule_index_index" template="MyVendor_MyModule::homepage.phtml" />
        </referenceContainer>

</page>

app/code/MyVendor/MyModule/view/frontend/templates/homepage.phtml

This is a custom module

Then I executed this commands

bin/magento setup:upgrade
bin/magento cache:flush
bin/magento cache:clean

Then I go to https://www.example.com/myurl/index/index
I can see the theme, but no title and no "This is a custom module"

Any help would be appreciated :)


texts: Magento 2 (magento 2.2.1) New Custom Language Pack How To Install( Eg : Tamil )

texts:
When i create my new custom language pack completely but it showing error when i install

php bin/magento setup:static-content:deploy ta_IN


texts:
I changed location product tabs. In first tab I added "Custom tab (oferty)".
But when I open product then first is displayed szczegóły (en: details).

Any one know how to display first after open product page first tab "oferty" ?


texts: Magento 2: Two plugins of LayoutProcessor

texts:
We have an extension that has a block class that implements the \Magento\Checkout\Block\Checkout\LayoutProcessorInterface
I need to add a custom field in checkout so I created my own plugin of Magento\Checkout\Block\Checkout\LayoutProcessor which works as expected.
But when I create a plugin of the LayoutProcessor class of the extension, it doesn't work. I can't see my custom field. But it should work right? As the class extension is implementing the LayoutProcessorInterface
Now my question is why is my plugin not working,when the class implements the LayoutProcessorInterface?


texts: Magento 2 - some products not showing in frontend - 404 site not found

texts:
I am editing the description of a certain product for hours now and saved alot during this time and it always worked and showed me the updated description in the frontend after reload, but now I suddenly get 404 site not found in the frontend.

So I tried php bin/magento indexer:reindex but it was not helpful.

I also flushed all caches.

I also tried to call the product directly with

https://www.example.com/catalog/product/view/id/3860

but I also get 404.


texts:
hello i am trying to override the default book.phtml file with my own for a module the costumer.xml code for this is

<customer_address_index translate="label">
    <label>Customer My Account Address Book</label>
    <!-- Mage_Customer -->
    <update handle="customer_account"/>
    <reference name="my.account.wrapper">
        <block type="customer/address_book" name="address_book" template="customer/address/book.phtml"/>
    </reference>
</customer_address_index>

in my modules .xml file i placed

<layout version="0.1.0">
    <customer_address_index translate="label">
        <reference name="my.account.wrapper">
            <action method="setTemplate"><template>[module]/customer/address/book.phtml</template></action>
        </reference>
    </customer_address_index>

</layout>

what is my error?
thanks


texts: How do i add quick filters to the admin grids?

texts:
I've been trying to add a new filter category for an already existing column when I discovered the existence of Quick Filters.

My question is twofold:

is Quick Quickfilters compatible with the backend and, if so, how do I get them / add them to my Magento install?

Any help would be appreciated, as I've been frustrated by this for a while.


texts: Create product for each color on catalog, but all link to one configurable

texts:
I am currently using Magento for a fashion website. I am looking for an extension or some way to do the following:

PRODUCT 1 has 3 colors. Currently there is one configurable for PRODUCT 1 and then simples for each color, size variation. PRODUCT 1 shows on the category page 1 time.

What I want to do is have PRODUCT 1 show on the category page 3 times, one time for each of the colors. But still allow customers to view each color once entering the product.

Is there an extension that can show the product as 3 different ones on the category page, and then possibly link to the one configurable that is already created if clicked? This way I can keep the same number of products/ configurables in the backend, but the front end will show a product for each color variation.

Thank you in advance for all your help!


texts: Magento2.2.x Custom page side bar in display mini cart items

texts:
My custom page in displaying all product with add to cart product functionalities I want display mini cart items on page sidebar. after add to cart item update and display in that sections.

like that.


texts:
I tried below code -

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

    $installer->addAttribute("eav_attribute", "cv1_price", array("type"=>"decimal"));
    $installer->addAttribute("eav_attribute", "cv1_shipping_cost", array("type"=>"decimal"));
    $installer->endSetup();

But I want to add new attribute to all related table.


texts: What's the template code to display error/success messages?

texts:
I want flash messages to appear on a custom page I am making. Since I am removing pretty much all of the other layout, I need to find the templating code that prints out messages.

If I already have the desired messages, dow do I display them? Where is the template code for actually displaying the messages?


texts: Magento 404 error page loading but server status is 500

texts:
Our custom magento error page show fine and when expected (ie when there is no page).  But I have just notice the page status returned for the server is 500 and not 404.  How do I fix this, should this be setup in the nginx conf file for the website or is it set somewhere in the magento install?

Just to be clear, to the normal user everything is showing fine (does not effect user experience) but on a technical level the wrong page status is being returned from the server.


texts: Problem with order id after migrating from Magento 1 to 2

texts:
Problems with increment_id
We just migrated from magento 1 to 2, and when we did a purchase test, the new orders instead follow the continuation of the last id, started from the beginning.

Example last order in magento1 migrated to magento 2
300017136

I should continue in the
300017137

But he came out with
300000001

Can someone help me solve this please?


texts: Is there any single observer hook for all Admin events?

texts: Am creating a module for listing the online admin users, for that i need to update a last_activity_time (custom field of admin user).On each activity of admin user current time will be updated on last_activity_time column. I am planing to consider the users who's last_activity_time is with in few minutes from current time(say 5 minutes). Is there any observer hook available for listening to all activities of admin user ?


texts: Magento 2 - How to programmatically add a product to cart multiple times but with different options?

texts:
How to add multiple items (same product ID) with different options to cart ?

Following code is working for one product or different products.

But, with two items of same product ID, with different options, only one appears in cart with quantity = 2 and the options of first one...

Following function is executed on a custom form submit :

namespace Vendor\Module\Controller\Post;
use Magento\Framework\App\Action\Action;
class Checkout extends Action {

protected $_cart;
protected $_productRepositoryInterface;

public function __construct(
    \Magento\Checkout\Model\Cart $cart,
    \Magento\Catalog\Api\ProductRepositoryInterface $productRepositoryInterface,

) {
    $this->_cart = $cart;
    $this->_productRepositoryInterface = $productRepositoryInterface;
}

...

public function execute()
{
   $post = $this->getRequest()->getPostValue();
        if ($post) {
            unset($post['form_key']);

            $contacts = array();
            foreach ($post as $key => $values) {
                foreach($values as $id => $value) {
                    $contacts[$id][$key] = $value;
                }
            }

            foreach($contacts as $contact) {
                $productSku = "abcd";
                $_product = $this->_productRepository->get($productSku);

                $lastNameOptionId    = $this->getOptionIdByTitle('last_name', $_product);
                $firstNameOptionId   = $this->getOptionIdByTitle('first_name', $_product);
                $customOptionId     = $this->getOptionIdByTitle('custom', $_product);

                $customOptionTypeId = $this->getOptionTypeId('custom', $_product);

                $params = array (
                    //'form_key' => $this->formKey->getFormKey(),
                    'product' => $_product->getId(),
                    'qty' => 1,
                    'price' => $_product->getPrice(),
                    'options' => array(
                        $lastNameOptionId => $contact['last_name'],
                        $firstNameOptionId => $contact['first_name']
                    )
                );

                if(isset($contact['custom']))
                    $params['options'][$customOptionId] = $customOptionTypeId;

                $this->_cart->addProduct($_product, $params);
            }
            $this->_cart->save();

        }
    }


texts: Magento 2 REST api for guest cart - display product in Magento's checkout

texts: I have an Ember app that handles adding to basket via the REST API. I then want to jump back into Magento's front end for the checkout process, however the cart is empty. Is there a way to pass a quoteId to the /checkout page? Or will I need to implement the checkout process in my custom app?


texts:
I need to access server folder of project.

ie. mydomain.net/my_project through my system's command prompt in order to run magento commands. For example php bin/magento setup:upgrade.

I'm using windows 10 Operating System.


texts: Connection Problem with "Magento Google Content API for Shopping" Extension

texts:
I am having problems with the "Google Content API for Shopping" Magento Extension
I am using Magento 1.9.1 and I'm based in the UK.

I've installed the latest version of Google Content API for Shopping, but I can't get it to work. It's installed fine; I can enter settings in Configuration>Sales.
Unfortunately, I don't know what to enter!

I tried the following:

Account ID = My Merchant Account ID
Account Login = My Google User Name
Account Password = My Google Password
Account Type = Hosted or Google

I then go to Catalogue>Google Content>Manage Items
I tick the products I want to upload to Google Shopping, select "Add to Google Content" in the Action menu.
Unfortunately, the result is the following message:

  The product cannot be added to Google Content. Unable to connect to Google Content. Please, check Account settings in configuration.Error: Unable to Connect to ssl://www.google.com:443. Error #110: connection timed out

I tried contacting the extension vendor (Magento) a few weeks ago, but they have not responded.

Can anyone help? Am I doing anything wrong?


texts: How can I update customer custom attribute on order save?

texts:
I have an observer for the event when an order is placed by a customer.
I tried "sales_model_service_quote_submit_before"

I would like to take a value from the Order and save it to the customer.

For example.

$customer = $quote->getCustomer();
if ($customer) {
  $customer->setData('someValue', $quote->getData('someValue')))
  $customer->save();
}

I have also tried

$customerId = $quote->getCustomerId();
if ($customerId) {
  $customer = $customerRepository->getById($customerId);
  $customer->setSomeValue('1234');
  $customer->save();
}

Can someone please provide an example of an observer to do this correctly?


texts: Is there a faster way for me to show 'Only X Remaining' on a category page?

texts:
1.9.3.1 - My catalog setup is using configurable products with associated simple products.  My category pages show the configurable and I'd like for the 'Add to Cart' text to read 'Only X Left' if all of the simple products for that product combined quantity is below a specific threshold.  I got this working, but it puts a heavy strain on page load time whenever a cache refresh is triggered.  I lazy load the category pages to begin with and this recursive manual tally of simple products  multiplied by about 100 configurable products per category creates load times over 30 seconds in some cases. Is there a better method to retrieve this value (does it exist already somewhere?) and display it than how I'm accomplishing?

/app/design/frontend/mytheme/default/template/catalog/product/list.phtml

<?php $btnText = 'Add to Cart' ?>
<?php $sku = Mage::getModel('catalog/product')->load($_product->getId())->getSku(); ?>
<?php $total = 0; ?>
<?php $ids = $_product->getTypeInstance()->getUsedProductIds();  ?>
<?php foreach ($ids as $id) : ?>
    <?php $simpleproduct = Mage::getModel('catalog/product')->load($id); ?>
    <?php $total = $total + (int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($simpleproduct)->getQty(); ?>
<?php endforeach; ?>
<?php if ($total < 6) { ?>
<?php $btnText = 'Only ' . $total .' left!' ?>
<?php } ?>


texts: Magento2 does n't get the order collection from Order\CollectionFactory

texts:
I am using  the Magento2.2 version .
I am using the class Magento\Sales\Model\ResourceModel\Order\CollectionFactory;
to get the order collection.But getting the error

  Fatal error:  Uncaught Error: Call to a member function create() on
  null.

when I try to call create() function.
Why I getting the error.please give a solution...

My code is:

<?php
namespace {VendorName}\{moduleName}\Cron;
use Magento\Sales\Api\Data\OrderAddressInterface;
use Magento\Sales\Model\ResourceModel\Order\CollectionFactory;

class {class name}
{
    protected $orderAddress;
    protected  $orderCollectionFactory;

    /**
     * @param OrderAddressInterface $orderAddressInterface
     * @param CollectionFactoryInterface $collectionFactoryInterface
     */
    public function __contruct(

        OrderAddressInterface $orderAddressInterface,
        CollectionFactory $collectionFactoryInterface
    )
    {
        $this->orderCollectionFactory = $collectionFactoryInterface;
        $this->orderAddress = $orderAddressInterface;
    }
    public function execute()
    {
        $dateNow = (new \DateTime())->format('Y-m-d H:i:s');
       echo  $days_ago = date('Y-m-d H:i:s', strtotime('-180 days', strtotime($dateNow)));

        $orderCollection =  $this->orderCollectionFactory->create()
            ->addFieldToFilter('updated_at', ['lteq' => $days_ago]);
        echo $orderCollection->getSelect()->__toString();
        return $orderCollection;

    }

}


texts: I want to checkout for a service (not a product) in my magento site

texts:
I want a customer to pay for a service (not a product). I have a service on a CMS page and if customer wants a detail description for the service then payment is required.

For this I had a button (say, Pay Now). If customer click on it then he/she should be redirected to checkout page for further process.

As I want to checkout for a service and not for a product so is this possible ?

If YES, How can I implement this ?


texts: Wait time of 400ms should I look at page caching or something else? (Dedicated Magento from NginX + PHP-FPM)

texts:
Firstly could some one help me with what specifically this 'wait time' is.
e.g. php render? browser render ? can i do anything about it?

Should i be looking to implement page cache to reduce this 'wait time'?

While my site feels pretty fast, I have been getting more and more concerned about the figures shown on tools.pingdom.com,

I appreciate it would be somewhat difficult to help given i'v chosen not to include my magento domain, but I feel the question is generic enough to apply to all who run magento.
I did consider posting in the general webmasters thread, but since this is a dedicated magento store, i felt it best to start here.

External Tests

http://tools.pingdom.com

http://gtmetrix.com/

https://developers.google.com/speed/pagespeed/insights/


texts: Magento 2 Layered Navigation doesn't show search filter's values

texts:
I have a store with 10 products simple , configurable and grouped. My category layered navigation is working fine with filterable attributes. but when I search it shows empty attributes.

I did the reindex , cache clean  also still same issue. need help about this issue. I'm using default layered navigation magento version 2.1.7


texts:
I am using a custom reviews form. After submiting the form I want the user to be directed to a new page saying thank you. Currently it is being redirected by the indexcontroller.php with:

$this->_redirectReferer();

How would I get it to redirect to a cms page?


texts: New Order transactional email template nonexistant?

texts:
I've tried to load the 'New Order' email template into my transactional emails and there is no result, and no error message.

The other ones seem to be working fine

Can anyone advise on this strange issue?


texts: AW_Blog Extension: Trying To Create A URL Rewrite To A Blog Post

texts:
I use the AW_Blog extension for my blog posts and am trying to do an internal URL rewrite through Magento's Catalog->"URL Rewrite Management" menu.

The URL of the blog post looks like this:

www.site.com/store-name/blog-route/cat/category-name/post/full-post-name

and I would like the URL

www.site.com/short-post-name

to point to it.

So far, I have two custom rewrite rules. The first does a 301 redirect from

www.site.com/short-post-name

to

www.site.com/store-name/short-post-name

This one works fine. For the second, I have an internal (no redirect) rewrite from

www.site.com/store-name/short-post-name

to

www.site.com/store-name/blog-route/cat/category-name/post/full-post-name

This one, however, does not work unless I add the 301 redirect, which leaves the long and ugly URL in the address bar (and defeats much of the point of the rewrite).

I think the problem lies in the fact that the blog posts are not static pages, but rather served through a controller action, similar to category and product pages (which get their own rewrite options).

Does anyone know of a way that I can achieve this rewrite?


texts: product/list/toolbar.phtml Invalid template file: error

texts:
How to solve the template error in system.log which says:

Invalid template file: 'product/list/toolbar.phtml' in module: 'Vendor_Module' block's name: 'product_list_toolbar' [] []

I have overridden the catalog search  module.

In view/frontend/templates:
I have oly result.phtml

view/frontend/layout: catalogsearch_result_index

<?xml version="1.0"?>
<referenceBlock name="product_list_toolbar">
  <action method="setTemplate">
    <argument name="template" xsi:type="string">Vendor_Module::product/list/toolbar.phtml</argument>
  </action>
</referenceBlock>

etc/frontend/routes

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

etc/module.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Vendor_Module" setup_version="2.2.0">
    <sequence>
        <module name="Magento_Catalog"/>
        <module name="Magento_CatalogSearch"/>
        <module name="Magento_Swatches"/>
        <module name="Magento_ConfigurableProduct"/>
        <module name="Magento_Eav"/>
        <module name="Magento_Customer"/>
        <module name="Magento_Store"/>
        <module name="Magento_Backend"/>
        <module name="Magento_MediaStorage"/>
        <module name="Magento_Config"/>
        <module name="Magento_LayeredNavigation"/>
        <module name="Magento_Theme"/>
    </sequence>
</module>
</config>

How to override the toolbar.phtml
What should be my layout file contents??

I heard we have to place our custom template in app/design/frontend/myvendor/mytheme..?

I mean why do we have to keep our templates in theme folder? is that necessary? If so how ?


texts: Ecomdev_PHPUnit not loading custom attributes

texts:
I am dropping the test database before invoking phpunit in Ecomdev_PHPUnit.

It creates the database and it's not importing user attributes from eav_attribute.

Is it safe to just clone the real database to a test one ? I can't find the code responsible for attribute loading in Ecomdev's.

Thank you.


texts: Extend Magento Controller AND create new action

texts:
I am creating a new module for Facebook Login (no i dont want to use the existing ones) and I am attempting to access/extend the core AccountController.php actions while also adding a new action. The reason I want to extend the AccountController.php class is because I want to register the Facebook user in my custom action and then use some of the functions in the core.

When a user registers, magento uses loginPostAction(). When my Facebook user registers I want to use fbLoginPostAction() in my own AccountController.php in my module and then call some functions in the core AccountController.php.

$this->_dispatchRegisterSuccess($customer);
$this->_successProcessRegistration($customer);

I've tried several variations but I can't seem to extend the core account controller AND add my custom action. I've been able to extend it and overwrite the existing.

I need to call these functions as I need to dispatch the event after the customer registers.

Am I going about this the right way?

    <?xml version="1.0"?>
    <config>
        <modules>
            <ModEgo_Facebooklogin>
                <version>0.1.0</version>
            </ModEgo_FacebookLogin>
        </modules>
        <frontend>
            <routers>
                <customer>
                    <args>
                        <modules>
                            <modego_facebooklogin before="Mage_Customer">ModEgo_Facebooklogin</modego_facebooklogin>
                        </modules>
                    </args>
                </customer>
            </routers>
        </frontend>
    </config>

app/code/local/ModEgo/Facebooklogin/controllers/AccountController.php

    <?php

    require_once Mage::getModuleDir('controllers', 'Mage_Customer').DS.'AccountController.php';
    class ModEgo_FacebookLogin_AccountController extends Mage_Customer_AccountController
    {
        public function fbLoginPostAction() {
            // this new action wont work
            echo 'hey';
        }
        public function loginPostaction() {
            // this works
            echo 'hey2';
        }
    }


texts:
Does anybody has used stripe payment module for Magento 2?
I need a suggestion for stripe payment module. Alos need Apple pay and Android Pay.
Please, guys, suggest me a good working module which you might have used for your store and working well.

Alos have any idea for google products and bing products (Magento 2)?

Thanks in advance.


texts: Infinite loading during checkout process with Payflow

texts:
I have upgraded Magento version from 2.2.1 to 2.2.8, and I was using Braintree as a payment processor for CC payments. Now I enabled Paypal Payflow, but facing an issue.

I am trying placing order through Paypal Payflow Pro(credit card payment method) and I couldn't place the order successfully. However, when I have tried paying through PayPal Express then order got placed successfully.
In the case of CC, it is showing endless loading and when I refresh the checkout page, it redirects to the empty cart page. I have checked in the database, the cart is available in the database but the session is getting expired.
Anyone have faced this type of issue or anyone know the solution of this issue?

I am using Magento 2.2.8.

There is a discussion on this issue, Infinite loading during the checkout process with payflow. But the solution accepted is not valid in my case, because we can't use a fresh installation at the moment.

I am using Aheadworks onestep checkout extension.


texts:
I'm using the CMS to display the product list block on my homepage via this markup in the CMS editor

{{block type="catalog/product_list" mode="grid" name="home.catalog.product.list" template="catalog/product/list.phtml" column="one_column" size="small"}}

I wanted to add additional blocks beneath it, however the blocks from that markup don't end up in the layout? Using Alan Storm's Layoutviewer module to inspect the layout the block I'm looking for (with name home.catalog.product.list) doesn't show in the output.

Considering that Alan's module is somehow missing elements added by the CMS, I went ahead and tried to add the blocks I'm after via Custom Layout Update XML under Design in the CMS editor for the homepage:

<reference name="home.catalog.product.list">
    <block type="page/html_pager" name="product_list_toolbar_pager"/>
</reference>

The pager markup isn't added to the page though, probably because the home.catalog.product.list block isn't in the layout... But how is that possible, the markup for the catalog/product_list block is on the homepage, it's just not present in the layout (that I can tell).

My question - why isn't the block I'm adding from the CMS showing up in the layout?


texts: Admin modules not loading when transferred to new server

texts: Just transferred files from old server to new. When I go to access any modules in the menu they don't seem to work. I've refreshed cache, deleted sessions, checked config.xml for any anomalies and nothing pops out. Is there something else I should be looking for?


texts: Magento2 Unable to send mail: Unknown error, on php 7.2.3

texts:
I've created a custom email functionality.
It's working fine on the PHP 7.2.2 version server.
But it's not working on a PHP 7.2.3 server.
Case 1

Magento Version:  2.3.3
Php version: 7.2.2
Result: working

Case 2

Magento Version:  2.3.3
Php version: 7.2.3
Result: Not working
Error: Exception #0 (Magento\Framework\Exception\MailException): Unable to send mail: Unknown error

Is this related below
https://community.magento.com/t5/Magento-2-x-Programming/Magento-2-3-0-Unable-to-send-email-Unknown-error/td-p/119595
Please help me with this issue. To sorting issue.


texts: What referenceContainer are the product page breadcrumbs in?

texts:
I want to add a banner to the top of all the product pages. So far I've added

<referenceContainer name="columns.top">

to the default.xml that links to my template file. This displays the banner, but its under the breadcrumbs and is screwing with the block titles on some of the static pages.

Where should I reference to have my banner above the breadcrumbs, but below the navigation?


texts: Programmatically added custom options not showing in admin panel

texts:
I am programmatically adding products from the front end along with custom options. After adding, the custom options are missing from the product in the admin. They only show up when I add another option from admin.
I am using this for custom options:

$product->setCanSaveCustomOptions(true);
$product->getOptionInstance()->addOption($optiondata);
$product->setHasOptions(true);


texts: Magento 2 How to flush javascript cache?

texts:
I rewrote the code in validation.js.
It was successfull,the new text has appeared on the site and now i want to change it again but this time its not changing on the frontend.

I tried to flush cache,static content,css/javascript.
Trought SSH i flushed the cache,reindexed the datas,used setup:upgrade and setup:static-contend:deploy as well.
Also used ccleaner just to be sure.

I also tried to upload the old file from backup but nothing.

Thank you


texts:
I need to be able to hide the add to cart button of certain products are already in the cart.
I have Full Page Cache turned on so it seems to cant access the checkout session.
What would be the best approach to take on this?


texts: Layer Navigation - Maximum Number of Price Intervals - Not Working

texts:
For Layer Navigation Setting, I have set Default Price Navigation Step, which is working fine. However, Maximum Number of Price Intervals are not working.

I input this to 4 but it has no impact on frontend and shows price intervals till maximum price value. (10 price intervals)

I would like to see up to 4 intervals, with last one display with $300 and above

Current Problem: 0-$100, $100- $200, $200- $300, $300 - $400, $400- $500, ......... till last catalog price.

Desired Output: 0-$100, $100- $200, $200 - $300, $300 and above.

Anyone who could help?


texts: Clicking on product (Edit option) from ADMIN is throwing a -----"Fatal error: Uncaught TypeError argumentsResolver('created_by)'"

texts:
The problem is the same as here,[Magento migration product error: UiComponentFactory->argumentsResolver('created_by', NULL)

but it has not solved my problem. everyone have any other solutions?

Fatal error: Uncaught TypeError: Argument 2 passed to
Magento\Framework\View\Element\UiComponentFactory::argumentsResolver()
must be of the type array, null given, called in
/vendor/magento/framework/View/Element/UiComponentFactory.php on line 222 and defined in
/vendor/magento/framework/View/Element/UiComponentFactory.php:174 Stack trace: #0
/vendor/magento/framework/View/Element/UiComponentFactory.php(222):
 Magento\Framework\View\Element\UiComponentFactory->argumentsResolver('created_by', NULL)
 #1 /vendor/magento/module-ui/Component/Form/Field.php(85):
 Magento\Framework\View\Element\UiComponentFactory->create('created_by', '', Array)
 #2 /vendor/magento/framework/View/Layout/Generator/UiComponent.php(164):
 Magento\Ui\Component\Form\Field->prepare()
#3 /vendor/magento/framework/View/Layout/Generator/UiComponent.php(161):
Magent in /vendor/magento/framework/View/Element/UiComponentFactory.php on line 174


texts: Magento2 remove index.php from frontend url

texts:
I have a magento2 based website and i am trying to get the index.php removed from the url. I have enabled mod_rewrite on the server and also enabled it via the magento admin panel.

In my virtual host file on the apache2 server i have the below

<VirtualHost *:80>
    # The ServerName directive sets the request scheme, hostname and port that
    # the server uses to identify itself. This is used when creating
    # redirection URLs. In the context of virtual hosts, the ServerName
    # specifies what hostname must appear in the request's Host: header to
    # match this virtual host. For the default virtual host (this file) this
    # value is not decisive as it is used as a last resort host regardless.
    # However, you must set it for any further virtual host explicitly.
    ServerName testsite.islandtrinketz.com

    ServerAdmin ****@gmail.com
    DocumentRoot /var/www/i******.com

    # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    # error, crit, alert, emerg.
    # It is also possible to configure the loglevel for particular
    # modules, e.g.
    #LogLevel info ssl:warn

    <Directory /var/www/html/*****.com>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/****_error.log
    CustomLog ${APACHE_LOG_DIR}/****_access.log combined

    # For most configuration files from conf-available/, which are
    # enabled or disabled at a global level, it is possible to
    # include a line for only one particular virtual host. For example the
    # following line enables the CGI configuration for this host only
    # after it has been globally disabled with "a2disconf".
    #Include conf-available/serve-cgi-bin.conf

I also ran the below command in ssh and it says its enabled

sudo a2enmod rewrite

So I am not sure why when I go to the site the only way a page will load is if i put index.php in the url manually?


texts: Magento where do I get customer salt value used

texts: I want to find what salt value, which is used to store password in customer_entity table.


texts: Development mode loads more than 450 files on every page reload

texts:
I've Magento 2 in Dev Mode. It's slow as hell but that's for another discussion.

My problem is that on every page and page reload magento requires +450 files.

E.g. An infinite number of _module.less, _widget.less and others, plus big images (part of the site content) my computer freezes/restarts at least 2 times a day because of all of these.

I was wondering if I'm missing something or Dev mode is supposed to require all these shitload of useless files every time?


texts: Magento2 DI compilation takes too much time

texts:
After creating/updating new module/theme, I use following command in root Magento installation directory

php bin/magento setup:upgrade

Which asks me to run compilation, so I use

 php bin/magento setup:di:compile

which takes around 8 minutes of time to compile it. Is there a way to fasten the compilation process?


texts: Get Bundled Product's Dynamic Price Despite being "Fixed Price"

texts:
I understand and have experimentally confirmed on magento1 version 1.9.1.0, that once you create a bundled product, you cannot change the pricing type (from dynamic to fixed, or vice versa).

I have a bundled product on fixed pricing.

Is there a method call to obtain the dynamic pricing anyway?

It wouldn't be getPrice(), since that will smartly grab the price that the product type that it is set to.

It seems there would be a way.
Is re-creating a dynamically priced version of the bundled product the only way?


texts: Programmatically Changing Order's Weight

texts:
Our products have custom fields corresponding to weight. How could I add (and update) this weight for the order, so that shipping is calculated with this new weight*?

*Product weight value + custom field weight value.

To clarify my calculation, I've added a custom "weight" field to customizable options with the intention of adding the weight of these selections to the base product weight, so that it's a factor in shipping.


texts: How to create coupon code to be used only by people who have subscribed to the newsletter

texts:
I need a help to create a 15% OFF coupon code for products.

This coupon is only for people who have subscribed to our newsletter.

As far as I know, there is no option in Magento to do so, but is there anyone who can help me in this?


texts: What is best way to move database from Magento 2 to Magento 1

texts:
I wanna move product category order from Magento 2 to Magento 1.

what is the best way for this? I create export from product and import to Magento 1 by default tools on manage but I get some error like

  product type does not match and....

so that does not work.

What is difference between M1 DB and M2 DB and it impossible to use M2 DB for M1?
Or maybe we move some table between two databases?


texts: Need to expand related products into a full product info block, is this as big a job as I think it is?

texts:
The site I'm working on requires extended functionality out of related products. As per the screenshot each related product needs to be an individual product details block by itself. Product groups are not an option as all products are configurable. Basically related products need to behave like little self contained product pages of their own.

The more I look at this as a concept the more it looks like something where extending related products won't be able to do this and it will have to be a scratch built extension which is no small task. Am I right? Or am I missing some magic out of the box functionality?


texts: How to combine payment method and order review tab in a single tab

texts:
Can anyone help me to solve the requirement in magento 1.9
In the checkout page how do I combine the payment method tab and order review tab in a single tab .

Thanks .


texts: Problem placing the contact form in a CMS page

texts:
I am trying to place my "contact us" form in another CMS page following this answer.
i.e.:

{{block type="core/template" name="contactForm" form_action="{{store direct_url='contacts'}}/index/post" template="contacts/form.phtml"}}

But this is all I get as the output:

EDIT

I am placing the variable from the above answer in the "content" of the CMS page.