texts:
Magento 2.3.4
Is it somehow possible to get the current page in a model? I am using some sort of page speed optimizer and want to disable some of its features on the product page. I checked the code and the place to do that would be in a model class.
Possible?


texts: How to transfer the product thumbnail to the right side in Porto Theme 2.1.0 magento 2

texts:
I'm new to magento 2, I'm having hard time transferring the product thumbnail below the product image to the right side. I have attached a screenshot to be more clearer.

Thanks


texts: Which one to use Factory or Direct Model class in Magento 2

texts:
I need to create product programmatically So either i can inject

\Magento\Catalog\Model\Product

or i can use

\Magento\Catalog\Model\ProductFactory

from the factory i can create product model

Which one should i use.Tell me advantage and disadvantage of both


texts: How to Get Gallery Resized Gallery Images in Product list

texts:
<?php
$i = 1;
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$product = $objectManager->create('Magento\Catalog\Model\Product')->load($_product->getId());
$images = $product->getMediaGalleryImages($_product, $imageDisplayArea);
foreach ($images as $child) { ?>
  <img src="<?php echo $child->getUrl(); ?>" alt="<?= $block->escapeHtml($_product->getName()); ?>">
<?php  } ?>

I am trying to get resized image from the gallery and currently, I am getting the full-sized image.


texts: Use Website/Default checkbox for Mage_Adminhtml_Block_Widget_Form field

texts:
I have a form in the admin section that is dealing with a custom entity. This entity has a main table and then a table to store options on a store level. I am wondering if it is possible to use the same check-boxes on my form as are in the config or product edit page when the scope is changed.

My form extends Mage_Adminhtml_Block_Widget_Form and I add the fields as follows.

$fieldSet->addField(
        'field_code',
        'text',
        array(
            'label'    => Mage::helper('myhelper')->__('Field Label'),
            'class'    => '',
            'required' => false,
            'name'     => 'field_code',
        )
    );

I have already added the scope switcher via layout.xml and save the entity values for the scope in a separate table, which all works well.

But it would be great if the user did not have to enter these values if they wanted to use the default scope entry.

NOTE: I have seen some people use after_element_html before to add the elements but I thought there may be a core function that would do this.


texts:
I make bundle products in Magento with in stock.

When I try to add to cart so it displays error:

  the requested for x product not available

and it is on my live server not in localhost Xampp server.

I didn't understand what the problem is. Can anyone give suggestions?


texts:
So I have the store code and I would really like simply the store id. Ideally I do not want to simply load the store completely as I only need the id.

One idea I had was to load this via a collection but I was wondering if there was another way via a helper or resource.


texts: Magento 2 header custom block not cacheable for customer session

texts:
Magento 2 header custom block not cache-able for customer session for example

<referenceContainer name="header-wrapper">
                 <block class="Company\Genaral\Block\Genaral" name="order.dropdown" before="minicart" template="Magento_Theme::html/custom.phtml" cacheable="false" />
</referenceContainer>

I write code in phtml

<?php $helperUrl = $this->helper('Company\Genaral\Helper\Data'); ?>
<?php $ckcustomer = $helperUrl->getcustomerSession(); ?>
 <?php if($ckcustomer !=1): ?>

                <a href="<?php /* @escapeNotVerified */ echo $helperUrl->getAccountLoginUrl() ?>">

                      <?php /* @escapeNotVerified */ echo __('Login'); ?>

<?php else: ?>

<a href="<?php /* @escapeNotVerified */ echo $helperUrl->getLogoutUrl() ?>"><?php /* @escapeNotVerified */ echo __('Logout'); ?>

 <?php endif; ?>

Anyone know why it's not working.


texts: I have gone thruogh the Magnto doc for MFTF but not getting proper setup.Can any one help me on this.


texts: CSS and JS don't load in mobile after configuring Fastly CDN in Magento 2.x Enterprise Cloud Edition

texts:
I am working on a Magento 2.x Enterprise Cloud Edition project and have configured Fastly CDN after moving to the staging environment.

The website opens fine on desktop, but when I checked in mobile, I found that both CSS and JS don't load.

Has anyone faced the similar issue?

Can anyone guide me how to solve it?

Thanks in advance


texts: Magento Event dispach for Product View Page

texts: I am using Magento 1.9.0.1. I want to write an observer on an event when the 'request path' is entered in the browser address bar. Can anyone please tell me which event dispatcher is called before url is re-written when the 'request path' (as present in CORE_URL_REWRITE) is entered in browser address bar.


texts: Validate input field that contains only number or letter

texts:
I need to validate my input field that need to contain only number or letter, not both of them. For example:

  13131 or LosAngeles are valid.

  Los131 is invalid

Here is my form:

<form id="search-form" method="post" action="">
  <lebel>Search For</label>
  <input type="text" class=""/>
</form>
<script type="text/javascript">
  var searchForm = new VarienForm('search-form');
</script>

How can I do that ? I really appreciate your help.


texts: Order for a single product getting placed and cancelled automatically along with all orders

texts:
There is no issues in placing order from the website. But in Magento admin panel along with each order a default product is shown as ordered and cancelled. This is making me confused. How to solve this issue.

Embellished Flare Abaya with Tight Sleeves - CS037-XL
SKU: CS00037-XL
Canceled    AED375.95
AED375.95
Ordered 1
Canceled    1
AED375.95
AED0.00 0%  AED0.00 AED375.95

Adorned Abaya with Soft Black and White Wool Layer - CS007
SKU: cobracs00-L
Size
L
Ordered AED400.00
AED400.00

Ordered 1
AED400.00

AED0.00 0%  AED0.00 AED400.00

The one which is in bold is not ordered from website. But still it is shown in the Magento dashboard. This is the case for each new orders. The product showing as ordered and cancelled is the same in all orders.


texts: Adding the Now date/time format in Magento

texts:
Maybe someone could help me out here. I'm trying to get the correct date/time for this variable.

<?php echo $rma['created_time']; ?>

I've tried lots of ways. Mage::getModel('core/date')->date("F j, Y g:i a"); is the date format I'm trying to get but I need it to convert $rma['created_time']; to the new format.

Here's one attemp but it creates a new date on each page load.

<?php $rma['created_time'] = Mage::getModel('core/date')->date("F j, Y g:i a");echo $rma['created_time']; ?>

Thanks


texts: Current Store View configurable products option label translation

texts:
For some reason I don't know the attribute option/labels for store view is not working and I don't want to use csv files for translations, therefore I find out that the options are generated by Code/Core/Mage/Catalog/Block/Product/View/Type/Configurable.php

I managed to translate the attribute label by changing the $productAttribute->getLabel() to $productAttribute->getStoreLabel() in line 170

However the attribute options labels are still showing the Global label instead of store view label.

How can make the 'label' => $value['label'] to something like above to show the current store view option label?

Thanks


texts: In category page move the category image to top after header

texts: I want to display the category image in top of category page just after the header.Currently it is showing in 2colums-left.phtml right side container.I don't want to change the layout but just the image alone need to be displayed on top..


texts: How do you know what CSS name an element is to override it

texts:
If I see an element such as this in the code, how do I work out what to put in my less file to override the CSS used on it?

button id="bundle-slide" class="action primary customize" type="button"

I believe the background color for this one would be: @button-primary_background


texts: Why are the "Use" declaration lines of code disappearing?! Magento2

texts:
I am adding a new PHP file to an existing Controllers folder. I am trying to insert the same "use" declarations into my new file as in the other existing controller files within this same folder.
When I try to copy over the use declarations into my file and then press save the "use" declaration code disappears!

Here's the use statements I am trying to insert that disappears when I hit save:

use \Mobileplans\Api\Data\VirtualnumbersInterface;
use \Mobileplans\Api\VirtualnumbersRepositoryInterface as VirtualnumbersRepository;
use Magento\Backend\App\Action\Context;
use Magento\Framework\Controller\Result\JsonFactory;

The only use declaration code block that saves to this new file without disappearing is:

use Magento\Backend\App\Action\Context;


texts: How to change “creat account” text on category view?

texts: How to change “create account” text on category view?


texts: The address information of the Magento registration page is modified to be non-required

texts: I want to change the address information of the Magento registration page to be unnecessary. What should I do? Thank you.


texts:
My open cart site is (http://www.example.com/). & i have created the new site in magento. & Moved all data of opencart into magento using  cartmigration extension.

My question is that how to map (http://www.example.com/) in magento if magento is install in other server.


texts:
I have followed the answer in this question however when I test my results are coming back the the extensions are still enabled

I have created a file in app/etc/modules called zzz_Disabled_Modules.xml

<?xml version="1.0"?>
    <config>
        <modules>
            <Mage_Downloadable>
                <active>false</active>
            </Mage_Downloadable>
            <Mage_Authorizenet>
                <active>false</active>
            </Mage_Authorizenet>
            <Mage_Rss>
                <active>false</active>
            </Mage_Rss>
            <Mage_Poll>
                <active>false</active>
            </Mage_Poll>
            <Phoenix_Moneybookers>
                <active>false</active>
            </Phoenix_Moneybookers>
            <Mage_Bundle>
                <active>false</active>
            </Mage_Bundle>
            <Mage_Rating>
                <active>false</active>
            </Mage_Rating>
            <Mage_Tag>
                <active>false</active>
            </Mage_Tag>
            <Mage_Captcha>
                <active>false</active>
            </Mage_Captcha>
        </modules>
    </config>

I then have a file in my doc root called test.php

include('app/Mage.php');
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
error_reporting(E_ALL | E_STRICT);
Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);

zend_debug::dump(Mage::helper('core')->isModuleEnabled('Mage_Poll'));
exit;

The result that comes back for all modules is bool(true)


texts:
In my API response (all orders) I get this extension_attributes
"extension_attributes": {
    "my_attributes": {
        "order_id": null,
        "company_id": 1,
        "company_name": "TestCompany 1"
    }
}

Is it possible to use / get these values in an afterGetList Plugin?


texts: How can I link customer_id with product_id that he ordered?

texts:
I know there are two tables sales_flat_order and sales_flat_order_item

but the relevant fields in sales_flat_order are:

customer_id, base_total_paid etc but no relation to product

and in the other table

order_id, product_id, but no relation to customer.

So I cant see any common field to link them.

I am trying to export 2 tables so that I can create a new database from scratch not based in magento, and I need  to know what each customer ordered.

Something like this:

select product_id, customer_id
from cp8_sales_flat_order
left join cp8_sales_flat_order_item
on sales_flat_order_item.order_id = sales_flat_oder.entity_id

I am getting an error that #1054 - Unknown column 'sales_flat_order_item.order_id' in 'on clause'


texts: Magento 2.2 admin order rounding price error

texts:
The amount of my order is 50.688
but in the orders listing view I've got 50.68 instead of 50.69

in my order details I've got 50.69. It's correct

what can I do to make a best rounding in the listing?

The bad price

The good price


texts:
I want to create REST API in Magento 2.3.2 for Mobile Application but I have few confusions regarding REST API. Can anyone guide me on this, please?

Is there any quick start or say ready-made API structure available. Like this one https://github.com/DivanteLtd/magento2-review-api
Is it necessary to build API for all Module? (Like Catalog, Customer, Order etc). I am asking this because I have read that Magento 2 by default provide REST API, So can I reuse it?
How can I Implement Token-based authentication? I want to access My Magento 2.3.2 Site data using CURL. how can I do that?

Any help would be appreciated.

Thanks In Advance.


texts: How to get credit memo collection from last 2 weeks in magento2

texts:
I see that Magento\Sales\Model\Order\CreditmemoFactory has createByOrder and createByInvoice methods and I cannot do ->create()->addAttributeToFilter('created_at'

I would like to get the credit memos from the last 2 weeks regardless of when the order was placed. So I cannot do $order->getCreditmemosCollection().

Any ideas?

Thanks!


texts:
When import gives error
Category doesn't exist

_category -> category name

Error not showing in log file.


texts:
I need to add some form validation for telephone field on admin side for magento. I am looking for correct file to work on

There's already some validation for required fields on the admin sales_order_create I am trying to find the right file that I can work on for the page sales_order_create. I did some search but still I had no luck on my code base.


texts:
I used Magento 1.9 and it was okay.It wasnt as fast as a simple joomla site but i had many customers with no problem.

Now i wanted to upgrade my site to Magento 2,i bought a new host (same as i currently have) and installed Magento 2 without sample data and its a pain to use.Not just the admin,but the empty homepage as well take minutes to load and when i try to create an account i getting error that i "Resource Limit Is Reached"

I tried with Facebook FlashCache,OptimumCache and Cloudflare but nothing has changed even though the creators said Magento 2 is much faster than the first version.

I'd like to understand why they cant fix it after so many years and why so many people using it?

Is there any way fasten it up?

UPDATE:

I used mgt-commerce before and it was incredibly fast,took less than 2s to load but it cost too much: AWS Price + € 199.00

They offered php7 / HHVM , Varnish, Redis , CDN ,NGINX by default i guess thats why it was fast.

I had to buy Amazon WS account i don't know why i guess my site was actually hosted by Amazon.

Im looking for the same speed for a lower price.
A VPS provider example.

I was looking around but found that every hosting provider claims they have Magento hosting.
Siteground,Mochahost,Hostgator,Fastcomet etc.

Maybe there's a hosting provider who would install these caches to beat competitors.

PS: Sorry if my post seems to be silly for programmers i'd choosen economics,commerce and marketing at university unfortunately :(


texts: Is having a file uploading form on my site a security risk?

texts:
I have a form with file uploads, what do I need to do to make sure it doesn't pose any security problems?
here is how i am adding it

$this->addAttribute('customer', 'certificate', array(
    'type'      => 'varchar',
    'label'     => 'Certificate',
    'input'     => 'file',
    'position'  => 1290,
    'required'  => true,
    'is_system' => 0,
));
$attribute = Mage::getSingleton('eav/config')->getAttribute('customer', 'certificate');
$attribute->setData('used_in_forms', array(
    'adminhtml_customer',
    'checkout_register',
    'customer_account_create',
    'customer_account_edit',
));
$attribute->setData('is_user_defined', 0);
$attribute->save();

and i put it in the phtml with this

    <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="form-validate" class="scaffold-form" enctype="multipart/form-data">

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

        <input type="file" name="ts_certificate" title="<?php echo $this->__('Certificate') ?>" id="ts_certificate" class="input-text" />


texts: Magento 2: Mailchimp subscribe on checkout checkbox

texts: I setup Magemonkey/mailchimp on Magento 2 application. In my checkout page, I do not see checkbox to subscribe to mailchimp mailing list. I tried to configure it in Admin page, but I don't see the "Subscribe on checkout" option in the mailchimp general configuration in admin page. Why is it missing? What needs to be done to show this option?


texts: "There is an issue with this product mapping" message

texts: I am working on a site that seems to be working correctly, except for the drop-down lists on the category view pages.   Both the sorting drop down and the items per page drop down result in a pop up error message:  "There is an issue with this product mapping, please contact the administrators"   This is a fairly straight forward site with only a small number of third party extensions.   I have been looking for a solution, but have not found one.   I might be overlooking something obvious.   Has anyone run into this before?


texts: Products displayed incorrectly on homepage

texts:
Clean install of Magento ver. 2.2.1 with the "Ultimo" theme.

I have added 25 products on my homepage using a "CMS product list", but they don't have any hover effect, "Add to wishlist" or "Add to compare" buttons.

This is my homepage: https://havm5.pixact.dk/

The products are displayed correctly in the categories as you can see here: https://havm5.pixact.dk/dametoj/regntoej_dame.html

I inspected the HTMl, the classes are different on the homepage compared to the ones in the categories, the products would be displayed correctly if they had the same classes - is there a way to fix this without editing the Magento files / theme files?

Can this be changed through the admin panel?

Any help is greatly appreciated.

Thanks!

A reason as to why the products are displayed correctly in the category: I used a migration service called "Cart2Cart" which migrated all of the categories, but I have added the products on the homepage myself.


texts: I want show first layer navigation then product list how i make this


texts: Magento 2 ACL is not working on custom controller

texts:
I have tried to use ACL on custom admin controller but it is not working.

My etc/acl.xml file is this:

<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
    <acl>
        <resources>
            <resource id="Magento_Backend::admin">
                <resource id="Vendor_Module::index_index" sortOrder="10" title="Tool Title"/>
            </resource>
        </resources>
    </acl>
</config>

Controller location:

  Vendor/Module/Controller/Adminhtml/Index/Index.php

I have also added this function in my controller

protected function _isAllowed()
{
    return $this->_authorization->isAllowed('Vendor_Module::index_index');
}

After this, option appearing in admin role, but after assigning to role, tool is not appearing on that specific role user.

Any help would be highly appreciated.


texts: Multiple stores with a combined store Magento 2?

texts:
We would like to have 3 different stores - these would be set up as Multiple stores in one Magento installation as recommended.  But the tricky part is:

Question : Can we have a combination of these 3 stores in one store on the same installation?

For example
we have a store called: 1) surfboards,  2) wetsuits and 3) standupboards.  But let's say we want a 4th store called watersports.  Is it possible to combine the 3 stores catalogs into this combined watersports store?

I haven't been able to find anything about this yet, perhaps I am asking the wrong questions in my searches


texts: Return value of Magento\Elasticsearch7\Model\Client\Elasticsearch::query() must be of the type array, string returned in Model/Elasticsearch.php:367

texts:
When I tried to load my category page, the following error showing..
TypeError: Return value of Magento\Elasticsearch7\Model\Client\Elasticsearch::query() must be of the type array, string returned /hostname.local/app/code/Magento/Elasticsearch7/Model/Client/Elasticsearch.php:367
Versions details
Mac OS Big sure 11.2.x
MAMP Pro 6.3.1
Magento 2.4.2
Elasticsearch 7.12.0 (installed recently using Homebrew)
This isssue is reported here before but there is no help at all.
I updated the Store->Configuration -> Catalog -> Catalog -> catalogSearch area in admin and the Test button returns Successfull.
Any kind of help will be appreciated..


texts: Remove Sign in and Create account links from header Magento 2

texts:
I used following code for remove top links Create Account link successfully removed but Sign in link still show so can u please check and let me know what is the correction.

<referenceBlock name="top.links">
        <referenceBlock name="register-link" remove="true" />           <!--for Create Account Link-->
        <referenceBlock name="authorization-link" remove="true" />      <!--for Sign In Link  -->
    </referenceBlock>


texts: After Revert Magento Extension Order Page Not Working

texts:
After deleted installed extension files order page not working. My order page return Blank page.

Log Error :

  exception 'Mage_Core_Exception' with message 'Invalid block type:
  Mage_Eltrino_Diamantedesk_Block_Adminhtml_Sales_Order_Edit_Tab_Tickets'
  in /home/giritra/public_html/app/Mage.php:595

Note : Actually i deleted Diamantedesk extension. But still error shown regard Diamantedesk extension.

How can i solve the error?


texts:
I followed all the steps to solve the problem of phishing magento by timely updates not installed. Guruincsite.

I cleaned my database of foreign users, I cleaned the various tables listed in the guides, I cleaned logs, I pulled over code in the Magento administration panel. Yet after asking google reviews on the site keeps coming up with a poster of "Security Error".

Need help, thank you.


texts: Changing the validation rules for all forms

texts: I want to change the rules in all magento forms, to accept just English characters. So any non-english character in magento form should not be accepted. any suggestion how I could do it?


texts: How to Get Custom Product Attribute In Sensei Product Recommendation

texts:
How to get custom product attribute in Adobe sensei product recommendation slider.
It is a B2B Module Sensei Magento2 Product Recommendation

Kindly Share your Answer.
Thanks in advance.


texts:
I use data link by holbi, when I go onto Magento it is showing the correct amount of stock but my website is still showing zero, I have to click on the product in Magento then save and it will update.

Does anyone know a solution for this?


texts: Problem in duplicating magento installation to subfolder

texts:
I am facing something like this issue,
i cloned the live server to a sub-folder for testing purposes and created subdomain for it. Now
1- if i use subdomain.livesite.com as url (both secure/unsecure) all links (categories/products etc) on site target to livesite.com
and
2- if I use livesite.com/subfolder as base url, category urls works but product urls still target to livesite

(links are not just redirected to live site, they actually had href attribute value of live site)

Note: As the other question is not answered yet so i don't think of my question as duplicate.


texts: How to change a search input box into a search icon as in mobile view

texts: How to have a search icon in the place of search box in the header, once the search icon is clicked the search box has to drop down, can some one help me how to do it


texts: If we can access data by using simple http request ,then why to use rest or soap api or curl?

texts:
I am accessing database using simple http request and use it on another interface.for example api's for Andriod or iphone .Even simple http request and method created in mage functionality without  using any api its running perfectly.

Then Why there is any need of api's , rest or soap ?
Below code is used to load magento site cart through android app .No api is used in this.

<?php

require_once 'app/Mage.php';
Mage::setIsDeveloperMode(true);
$websiteId = Mage::app()->getWebsite()->getId();
$storeId = Mage::app()->getStore()->getStoreId();
$currencySymbol = '£';
$method = isset($_REQUEST['method']) ? $_REQUEST['method'] : "";
switch ($method) {
    case 'LoadCart': http://mysiteurl/T4T-mage-api.php?method=LoadCart&cart_id=2//loading time= 506 msif($_REQUEST['cart_id'])
        {
            $session = Mage::getSingleton("core/session", array("name" => "frontend"));
            $quote = Mage::getModel('sales/quote')->load($_REQUEST['cart_id']);
            $quote->setIsActive(true);
            $quote->save();
            Mage::getSingleton('checkout/session')->replaceQuote($quote);
            header('location:/checkout/cart/');
        }
        break;
    default :echo 'This is Not a Valid Method.';
}?>


texts: How to create a email template with cart products - Magento 2.3

texts:
How to create an email template with cart products, I want to create my own module with cart products and want to send the mail to the admin. How can I do this please educate with brief note.

Thanks in Advance :)


texts:
i just installed the XAMPP in my localhost. Can i know how do i able to run the following command in my localhost?

$ php bin/magento module:enable xxx...

My xampp command prompt is always showing '#', how do i convert that to '$'? It always say the PHP is not recognized as the internal or external command. I have tried navigate to xampp/php/php.exe but it does not trigger the php command either.


texts: How Salable Quantity Works and how we can manage?

texts:
On the Category page, a product shows "Add to Cart" button and after clicking on it it redirect on product detail page with "Out of stock" message.

As checked and found that this product has 2 qty and stock is "In stock" while "Salable Qty" is 0 due to which it shows "out of stock" on detail page.

First Question:- Why qty is showing 2 and "Salable Qty" 0,how can we manage "Salable Qty".

Second Question:- when i modify the product qty to 20 then "Salable Qty" becomes 18 and when modify to 100 it becomes 98 means it always minus two why?

Please find attachment.


texts: Custom Attribute on Category Page not Displaying

texts:
I'm trying to add a custom attribute to the category page to show/hide product prices for individual categories.

I was trying to follow this tutorial, but I can't seem to get the field to display on the category page in the Dashboard.

http://www.pearlbells.co.uk/add-custom-attribute-dropdown-category-section-magento/

I can see the plugin installed in System >> Configuration >> Advanced and it's enabled. I've also cleared cache and reindexed.


texts: Magento 500 Internal Server - No Log Files?

texts:
I have just upgraded my site from Magento 1.7 to 1.9 and i'm now getting a 500 Internal Server Error. From other posts, I have done the following:

Deleted the maintenance.flag file
Changed permission on index.php to 755
Changed permission on downloader/index.php to 755
Changed permissions recursively on /var to 777
I've also gone through the files and all directories seem to be 755 and all main files '666'.

I'm still getting the 500 Internal Server Error. The bigger problem is that I have no error files in /log to be able to identify the problem. I created the folder /log (because it didn't exist) but no files are in there. I do not have access to the frontend of backend (because of the 500 Internal Server Error) to make sure that logging is turned on.

Any idea how I can try to troubleshoot / get these error logs?

Edit: My server error log shows the error 'Premature end of script headers: index.php'....


texts: Global Payments Realex 511 Redirect Issue Magento 2.2.2 HPP

texts:
I am using this module for Global Payments / Realex Payments for Magento 2.2.2 store form Magento Marketplace
"name" : "realexpayments/hpp",
"description" : "A Magento 2 module for Global Payments HPP payments",
"type" : "magento2-module",
"version" : "2.0.0",

Using Hosted Payment Page in One Step Checkout - Embedded HPP
After user completes a successful transaction they are not being correctly redirected to the correct url page and the order is not showing in my admin emails - been having this problem for months now with no help from Global Payments at all - very frustrated  they not answering calls or emails!
I am unable to process the order and complete it. And get confused as to payed orders and failed already sent out several orders when they were no payed for by mistake because of this problem
If we select other payment options such as Bank Transfer the order and emails goes through fine and it redirects user to success page
https://www.mydomain.co.uk/checkout/onepage/success/
I get instead emails see below
/ 511 Alerts
Please be advised the following alert(s) appeared on our system as we were unable to connect to your response page.
Time    Account Order ID    URL / IP
https://www.mydomain.co.uk/realexpayments_hpp/process/result
Explanation of this alert in more detail:
As you are using the Hosted Payments Page, this means that your customer is redirected to a secure payment page hosted on the Global Payments servers to enter their card details.
Once the transaction is processed, we return the transaction response - and your customer - to a nominated response page on your servers.
In this instance we could not connect with your response page to notify you of the transaction response, and so this alert was generated.
What do you need to do?
This particular transaction may have been successfully authorised but as we could not connect to your response page, it is important that you check the status of this transaction to ensure no orders are missed. The RealControl reporting tool can be used to check the status of this transaction.
Why does this happen?
As all communication with your response page happens via the open channels of the internet, connections can be dropped from time to time which will result in a 511 alert.
A high incidence of 511 alerts may indicate an issue with your response page and may warrant further investigation.
If this occurs, Global Payments can enable logging on your transactions, which will allow us to get more information around the response received from your particular server, which may help determine the source of the problem.
Additional Configuration Information:
We recommend you set Success and Failure text which will be displayed to the customer in the event we can't connect back to your response page by navigating to the Client Settings section of RealControl.
Kind regards,
Global Payments ECOM Support
I am unable to upgrade to Magento 2.3 or higher because the site has many extensions and personalisation which is not yet compatible - and the extension version HPP 2.0.0 is the only one we can install on Magento 2.2.2   Please help this is nightmare


texts: How to create a different product page structure for specific products under a one category?

texts: I want to have custom design only for all products which are under a one category. Assume you have category 'A' and it has products 'a','b','c'. I want only to show these 'a,b,c' products in a different structure (design). How to achieve this?


texts: What Happen when we call save method on collection like $collection->save();

texts:
i just try to call save method on collection function like bellow code

    class Index extends \Magento\Framework\App\Action\Action
{

    protected $resultPageFactory;
    private $product;
    /**
     * Constructor
     *
     * @param \Magento\Framework\App\Action\Context  $context
     * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
     */
    public function __construct(
        \Magento\Framework\App\Action\Context $context
        \Magento\Catalog\Model\Product $product,
        \Magento\Framework\View\Result\PageFactory $resultPageFactory
    ) {
        $this->resultPageFactory = $resultPageFactory;
        $this->product=$product;
        parent::__construct($context);
    }

    /**
     * Execute view action
     *
     * @return \Magento\Framework\Controller\ResultInterface
     */
    public function execute()
    {
        $collection = $this->product->getCollection();
        var_dump($collection->save());exit;
    }
}

it not show any error just go in infinite loop .... no any error.

My Question is what actually happen it save all product or any error ?


texts: How to get product images based on its sku?

texts:
I implemented a custom module Company/Module.

In the controller folder i have upload.php file.

I need to modify this file to display the output in a tabular form with sku and product image.

Please suggest me the possible ways.

Thank you in advance !


texts:
I want to add something (a small text or image) before the price.

The only way to do is to update the catalog_product_view template and copy the whole view.phtml in my module and then add the thing i want into my updated/modified view.phtml?

Why i can't add a block inside the block like this?

<catalog_product_view>
        <reference name="product.info">
            <block type="core/template" name="product.info.something" template="path/to/my/something.phtml"/>
        </reference>
</catalog_product_view>

Is there another way to do this without copy/paste(overriding) the whole view.phtml in my module?


texts: How to Override en.xml in zend/locale/Data with custom module

texts:
Hi have an issue like currency format. with multi language.

My currency showing in base store english language : 6,084 CAD $

But when i change franch language its showing like : 6 084 CAD $

I resolved the issues to change Zend/Locale/Data/fr.xml

<symbols numberSystem="latn">
   <decimal>,</decimal>
   <group> </group>

<symbols numberSystem="latn">
    <decimal>.</decimal>
    <group>,</group>

But I feel like change directly in lib/zend folder is not a good way. So i need to create a custom module to achieve this.

So please could you share your idea to create a custom module.

Thanks,


texts: magento 2.3 add store view switcher in custom header template

texts:
I have two store views for two languages english and spanish in magento 2.3 EE.
The english store is default one and I want to add store view switcher drop down in my custom header template.

How to show that ?

The main requirement is that I want only one page in spanish with complete spanish header, footer and content. So, for that I have created the above two store views.
I am using custom weltpixel theme.
But store switcher is not showing up on header.


texts:
I am messing with this problem for two days, i want my horizontal menu to appear on all pages except the homepage.
my homepage shows both vertical and horizontal menu, however, i just want vertical menu to appear on the home page and horizontal menu to appear on all other pages.
here is the code of

  /app/design/frontend/my_package/my_theme/Magento_Theme/layout/default.xml <

 <referenceContainer name="page.top">
        <container name="top.container" as="topContainer" label="After Page Header Top" htmlTag="div" htmlClass="top-container"/>

        <block class="Magento\Framework\View\Element\Template" name="navigation.sections" before="-" template="Magento_Theme::html/sections.phtml">
            <arguments>
                <argument name="group_name" xsi:type="string">navigation-sections</argument>
                <argument name="group_css" xsi:type="string">nav-sections</argument>
            </arguments>

            <block class="Magento\Framework\View\Element\Template" name="store.menu" group="navigation-sections" template="Magento_Theme::html/container.phtml">

                <block class="Magento\Theme\Block\Html\Topmenu" name="catalog.topnav" template="html/sidebarmenu.phtml" ttl="3600"/>
                <block class="Magento\Cms\Block\Block" name="main_menu">
                    <arguments>
                        <argument name="block_id" xsi:type="string">main_menu</argument>
                    </arguments>
                </block>

Can someone guide me what should I do so that the horizontal menu does not appear on the front-page but appear on all other pages?

I've asked this question two times before, and now I'm asking this for the third time.
dear seniors and experienced fellows guide me.
this is what i've tried on

  /app/design/frontend/my_package/my_theme/Magento_Theme/page_layout/1column.xml <

code below:

<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
   <referenceBlock name="main_menu" remove="true"/>
    <move element="catalog.leftnav" destination="sidebar.main" after="-"/>
    <referenceContainer name="columns">
        <container name="div.sidebar.main" htmlTag="div" htmlClass="sidebar-filter sidebar zoo-sidebar-main" before="main" htmlId="sidebar-without">
            <container name="sidebar.main" as="sidebar_main" label="Sidebar Main"/>
        </container>
    </referenceContainer>
   </refrenceBlock>
</layout>

what am I doing wrong?


texts: Magento 2 - How to modify order increment_id before saving it to sales_order_grid table?

texts: I want to remove prefix only from sales order grid increment_id.


texts: Remove Decimal of Price in Admin and Front End

texts:
I want remove the decimal in product price in admin and front end

Admin:

Front-End

I tried to modify price-utils.js under this path
\vendor\magento\module-catalog\view\base\web\js

in line 38:

precision = 0

But it still didn't work. Is there an extension like ET Currency Manager for Magento 2.1.3 or are there other ways to remove all the decimal?


texts:
We are facing an usual issue, when you go to https://gullybaba.magemojo.io/contacts/ and perfrom either of the below mention tasks

click on any blank area of the page(not on input fields)
http://recordit.co/rdm5lC9JE6
scroll down http://recordit.co/DDGjPO4w3W

Any mouse movement on the contact form part, the form disappears. The issue is not related to google map, that we have tested with removed google map. Please advice how can we get rid of this issue.


texts: Error while installing language pack via composer require in magento 2

texts:
I am getting below while running composer require mageplaza/magento-2-dutch-language-pack:*

The requested package mageplaza/magento-2-dutch-language-pack * is satisfiable by mageplaza/magento-2-dutch-language-pack[dev-master] but these conflict with your requirements or minimum-stability.

composer.json

{
  "name": "mageplaza/magento-2-dutch-language-pack",
  "description": "Dutch language package for Magento 2",
  "homepage": "https://www.mageplaza.com",
  "require": {
    "php": "~5.5.0|~5.6.0|~7.0.0"
  },
  "type": "magento2-language",
  "version": "1.0.0",
  "license": [
    "MIT"
  ],
  "authors": [
    {
      "name": "Mageplaza team",
      "email": "hi@mageplaza.com",
      "homepage": "https://www.mageplaza.com",
      "role": "Leader"
    }
  ],
  "autoload": {
    "files": [
      "registration.php"
    ]
  }
}

Can any one help me on this.


texts: How to set tax rates and rules to the products with GST in India

texts:
In India, the old sales tax, vat everything comes under GST.

Can anybody explain with an example, how to set a tax rate and rules to each product?


texts: How to add a select field to an adminhtml ui_component xml

texts:
The goal is to get a drop down list of stores the site has. The current implementation is attempting to add the following into a ui_component xml file around line 100.

<field name="store_id">
        <argument name="data" xsi:type="array">
            <item name="options" xsi:type="object">Magento\Store\Ui\Component\Listing\Column\Store</item>
            <item name="config" xsi:type="array">
                <item name="label" xsi:type="string" translate="true">Store</item>
                <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
                <item name="dataType" xsi:type="string">text</item>
                <item name="formElement" xsi:type="string">select</item>
            </item>
        </argument>
    </field>

However, when visit the adminhtml section, I get an error message stating that now the type is not an array at line 57. Which happens to be the following:

  <fieldset name="general">
    <argument name="data" xsi:type="array">

Does anyone know the proper way to implement this or have similar examples they could point me to?

Error:

  Warning: array_values() expects parameter 1 to be array, object given in WEB_ROOT/vendor/magento/module-ui/Component/Form/Element/AbstractOptionsField.php on line 57

Note:
The error goes away when I remove the field store_id.


texts: Helper comment text for product attributes

texts:
I'm wondering if there's an easy way to create comment help text for custom product attributes (or really for any product attributes - even some core attributes could use some helper text to make it a bit more clear what they do).

What I mean by comment help text is for example what you get when you use <comment> in system.xml.

So, for example, let's say you wanted to add a comment under Meta Title in the Meta Information tab of a product edit page to say "This is what will show up in the browser title bar".

I just noticed that Meta Description as an example already has some comment help text ("Maximum 255 chars") underneath it, but from a quick glance I'm not seeing where that would be defined under the Attribute details under Catalog > Manage Attributes > meta_description

I haven't done much digging yet into the core code to hunt for this yet, so my apologies if this is a really stupid question!


texts: Magento 1.9.3.1: Prevented a potential Cross-Site Scripting (XSS) vulnerability when adding a category

texts:
As you may know 1.9.3.1 has been been released.

In the release notes, I found that on top of bug fixes, there also was two security features:

  Prevented a potential Cross-Site Request Forgery (CSRF) vulnerability by changing the form key when a customer signs out of
  the storefront.
  Prevented a potential Cross-Site Scripting (XSS) vulnerability when adding a category.

I found the code change related to the first point in Mage/Customer/Model/Session however, I can't get my hands on the changes made to apply the second security feature. Anyone could enlighten me here ?


texts: Move HTTP GET request into a JSON array in Magento 2 REST API (V1/customers/search)

texts:
Is it possible to put the content of this rest api in a json array to put in GET parameters instead ? And if yes, what should the code look like ?

curl_init("http://my.website.com/index.php/rest/V1/customers/search?searchCriteria[filterGroups][0][filters][0][field]=email&searchCriteria[filterGroups][0][filters][0][value]=%&searchCriteria[filterGroups][0][filters][0][condition_type]=like");


texts: Magento 1.7 Redirect on review_product_view Page

texts:
I have 3 observers set up that execute a 301 redirect via this method:

Mage::app()->getResponse()
  ->setRedirect($url, 301)
  ->sendResponse();

2 of the observer events execute the redirect perfectly but the 3rd one does not. I tested to ensure that my 'if' conditions are all met and the redirect function is called but it seems that the redirect is simply ignored on the last observer. Here are my events:

controller_action_predispatch_catalog_product_view - 301 redirect works
controller_action_predispatch_review_product_list - 301 redirect works
controller_action_predispatch_review_product_view - 301 redirect ignored

I took a look at the controller and couldn't determine whats preventing the 301 redirect from working on controller_action_predispatch_review_product_view. I also use Alan Storm's Commerce Bug 2 and went through the useful list of events that his module includes. Something  in the Mage_Review_ProductController must be preventing the function from working but I cant put my finger on it. Please help...Thank you!

<events>
  <controller_action_predispatch_review_product_view>
    <observers>
      <commerceextensions_groupedproductredirect_observer>
        <class>CommerceExtensions_GroupedProductRedirect_Model_Observer</class>
        <method>redirectReviewView</method>
      </commerceextensions_groupedproductredirect_observer>
    </observers>
  </controller_action_predispatch_review_product_view>
</events>

The redirect part of this function does get reached, I have verified it many times.

  public function redirectReviewView($observer)
  {
    if(Mage::getStoreConfig('groupedproductredirect/active/overall')){
      $id = Mage::app()->getRequest()->getParam('id');
      $productId = Mage::getModel('review/review')->load($id)->getEntityPkValue(); // get product id
      $product   = Mage::getModel('catalog/product')->load($productId); // load the product
      if($product->getTypeId() == 'simple' && $product->getVisibility() == 1){
        $parentIds = Mage::getModel('catalog/product_type_grouped')->getParentIdsByChild($product->getId());
        if(!empty($parentIds)){
          $parentProduct = Mage::getModel('catalog/product')->load($parentIds[0]);
          if(Mage::getConfig()->getModuleConfig('CommerceExtensions_BetterReviews')->is('active', 'true')){ // IF BETTERREVIEWS EXTENSION INSTALLED
            if(Mage::getStoreConfig('productpagereviews/active/overall')){ // IF PRODUCTPAGEREVIEWS IS ENABLED
              // go the product page reviews section of the parent grouped product
              $url = $parentProduct->getProductUrl().'#customer-reviews';
            } else { // IF PRODUCTPAGEREVIEWS IS NOT ENABLED
              // go the reviews page of the parent grouped product
              $url = Mage::getUrl('review/product/list', array('id'=> $parentProduct->getId()));
            }
          } else {// IF BETTERREVIEWS EXTENSION IS NOT INSTALLED
            // go the reviews page of the parent grouped product
            $url = Mage::getUrl('review/product/list', array('id'=> $parentProduct->getId()));
          }
          Mage::app()->getResponse()
            ->setRedirect($url, 301)
            ->sendResponse();
        }
      }
    }
  }


texts: How to track the total amount spent by individual customer?

texts:
Hi I would like to know how to track the total amount spent by 1 individual customer? As in a customer might have made many transactions and the total amount spend for that customer.

Main reason is I need to find out my top spending customer from 1st transactions till present.


texts:
I want to override event for method saveDownloadableOrderItem :

<adminhtml>
   <sales_order_item_save_commit_after>
     <observers>
        <downloadable_observer>
              <class>downloadable/observer</class>
              <method>saveDownloadableOrderItem</method>
          </downloadable_observer>
      </observers>
  </sales_order_item_save_commit_after>
</adminhtml>


texts: Urgent - Magento 2.3.4 - "One or more indexers are invalid. Make sure your Magento cron job is running."

texts:
I am creating a store with Magento, but the products are not appearing, I believe it is due to the error "One or more indexers are invalid. Make sure your Magento cron job is running.".
I've tried everything a little. I tried to use the command php bin/magento indexer: reindex in the root folder of Magento, but it gives an SSL error or something. I tested the command again disabling the error, but a new error appears.
Please, I need to resolve this error soon to continue my work, if anyone can help me, I will be very grateful !!
I'm using:
Windows -> 10

Magento -> 2.3.4

MAMP -> 4.2.0.23973

PHP -> 7.3.0

MySQL -> 5.7.24


texts: Replace Carrier Name with "Free Shipping" when shipping price is zero

texts:
I'm using Magento CE 1.9.2.2 and Table Rates is my only shipping method.

The rate € 5,00 for all orders below € 99,95 and € 0,00 for all orders of € 99,95 or more.

This is what the Shipping Method step looks like when someone places an order of € 99,95 or more.

Now I want to dynamically replace the "Best Way" carrier name with "Free Shipping" when the order is € 99,95 or more.

I've found out that in

app/design/frontend/base/default/template/checkout/onepage/shipping_method/available.phtml

the following code

    <?php echo $this->escapeHtml($this->getCarrierName($code)) ?>

is responsible for printing the carier name.

I have tried

    <?php if ($this->getShippingPrice()== 0): ?>
        <?php echo $this->__('Free Shipping') ?>
    <?php else: ?>
        <?php echo $this->escapeHtml($this->getCarrierName($code)) ?>
    <?php endif; ?>

But this doesn't work. This logic always prints "Free Shipping" even if the shipping price NOT 0,00.

What is the best way to build some logic into this?


texts: Where do I go to upload pictures in version magento 1.7.0.2

texts:
Anyone if you can help.

I can't find out where to  upload my pics anymore in Magento 1.7.0.2.

I don't know much about it, only a tiny bit.

I have no developer to help me. I used to be able to upload but now I can't find the button not sure where to go. Tried inserting a picture here of my screen but not able to.

Anyone know what it even looks like the button? I am in pages in the backend trying to edit it in the wysiwyg part.

I clicked on icon of tree to upload picture but I can't I can only insert pics not what I want.


texts: Magento2 How to remove tab in myaccount page according to groupid

texts: How to remove my custom tab from myaccount page in Magento2. When current customer group id is match with my system configuration group id.


texts: Does Magento store copies of the Email messages sent through the CONTACT US page? Is it possible to retrieve them?

texts:
I made a big mistake by not changing the "Send Emails To" Email address in:

  SYSTEM - CONFIGURATION - GENERAL - CONTACTS - Email Options

The Email address in there was "hello@example.com" this whole time and so the customers who filled out the CONTACT US form on the

  www.mywebsitte.com/contacts

page sent that message to hello@example.com instead of our own Email address. I am not even sure if the hello@example.com Email address exists? Are there copies of the messages that are actually SENT by the Magento system through this Contact Us page kept anywhere? Can they be retrieved? It's important for us to get them back if possible.

I checked the default Email address on our domain but did not find copies of messages there.

EDITED 03-09-2017:

I sent a test message from my personal Email to "hello@example.com" yesterday and just now the Email returned with "Undelivered Mail Returned to Sender".

Your message for hello@example.com from 2017/03/08 could not be delivered.
It's attached below.

Reason:

4.4.0 smtp; 93.184.216.34: Timeout while connecting.
Persistent Transient Failure - Other or undefined network or routing status

So this would indicate this Email address does not exist at all and the Emails were being returned to sender....Any idea where they were returned to? Maybe I can still look for them.


texts: Adding onclick event and id selector for an Admin Grid column of type radio

texts:
I have an admin grid which shows up product details(like the one in Catalog/Manage Products) with the first column as radio type.

How to add onclick event, which should call a js function with a parameter of dynamic value(such as value of radio button itself), and id selector for the radio button, whose value should be a combination of static and dynamic value(such as column_id+radio_button_value).

The class which defines the column declaration is in the class which extends from Mage_Adminhtml_Block_Widget_Grid and my column declarations are in the _prepareColumns method, and the code for the first two columns in my grid has been declared as follows:

$this->addColumn('products_grid_radio',
         array(
                'header' => '',
                'type'      => 'radio',
                'html_name' => 'products_grid_radio',
                'value'    => array('1'),
                'align' =>'center',
                //'id'   => 'products_grid_radioproducts_grid_radio_value',
                //'onclick'   =>   'setProduct(products_grid_radio_value);',
           ));

   $this->addColumn('entity_id',
        array(
            'header'=> Mage::helper('catalog')->__('ID'),
            'width' => '50px',
            'type'  => 'number',
            'index' => 'entity_id',
    ));

What is the correct way to add onclick event and id selector to a column of radio type?

Many Thanks in Advance.


texts: Magento2 - Order status shows closed on zero subtotal order

texts:
I have free downloadable products on my Magento 2 shop (Magento 2.3.5 p1).
If a customer purchases a free downloadable product, he gets a zero subtotal order which I set Zero Subtotal Checkout to status processing via Magento Payment settings automatically.
This closes the order automatically and does not allow the customer to download his product. If I set the status to 'Pending'... then I have to generate a manual invoice to enable customer to download his order.
This behaviour was not observed in Magento 1, there it was always ending with status "complete" and the download was enabled automatically.
Means I get customers complaining because they can't download their zero total orders.
A zero total order should allow status to invoiced automatically. Fix required for this problem.


texts: Remove little checkbox from header checkbox when name is missing

texts:
So I have a product grid, a non-mass-action one. Because I wanted to have like in the mass-action, those checkboxes as the first columns, the representative for all value data, I added the following in my grid:

 $this->addColumn('product_ids', array(
        'type' => 'checkbox',
        'field_name' => 'product_ids[]',
        'align' => 'center',
        'index' => 'entity_id',
        'values' => array('1', '2'),
 ));

Everything is cool, except that, because I didn't put any header name, my checkbox header looks like:

My question is how to remove that little checkbox, but not adding any name on the header? Thank you in advance


texts: Magento 2 Setup error on latest xampp version 3.2.2

texts:
I've installed Xampp v.3.2.2 and downloaded Magento CE 2.2.4 & 2.3. but I am facing issue when installing them.

I get the following error::

  Fatal error: Uncaught Exception: Warning: "continue" targeting switch
  is equivalent to "break". Did you mean to use "continue 2"? in
  D:\xampp2\htdocs\MagentoCE224\vendor\zendframework\zend-stdlib\src\ArrayObject.php
  on line 426 in
  D:\xampp2\htdocs\MagentoCE224\vendor\magento\framework\App\ErrorHandler.php:61
  Stack trace: #0
  D:\xampp2\htdocs\MagentoCE224\vendor\composer\ClassLoader.php(444):
  Magento\Framework\App\ErrorHandler->handler(2, '"continue" targ...',
  'D:\xampp2\htdoc...', 426, Array) #1
  D:\xampp2\htdocs\MagentoCE224\vendor\composer\ClassLoader.php(444):
  include() #2
  D:\xampp2\htdocs\MagentoCE224\vendor\composer\ClassLoader.php(322):
  Composer\Autoload\includeFile('D:\xampp2\htdoc...') #3 [internal
  function]:
  Composer\Autoload\ClassLoader->loadClass('Zend\Stdlib\Arr...') #4
  D:\xampp2\htdocs\MagentoCE224\vendor\zendframework\zend-stdlib\src\Parameters.php(29):
  spl_autoload_call('Zend\Stdlib\Arr...') #5
  D:\xampp2\htdocs\MagentoCE224\vendor\zendframework\zend-http\src\PhpEnvironment\Request.php(67):
  Zend\Stdlib in
  D:\xampp2\htdocs\MagentoCE224\vendor\zendframework\zend-servicemanager\src\ServiceManager.php
  on line 941

I couldn't find any solution to fix this. Please suggest.

Thanks


texts: luma-theme .phtml file override in Custom Module

texts:
i want to override this file magento_dir/vendor/magento/module-theme/view/frontend/templates/html/collapsible.phtml

And do not want to make custom theme like app\design\frontend\Magento_Theme\templates\html\collapsible.phtml

Can we override collapsible.phtml in our custom_module?
guide me i will be appreciate to answer


texts:
I have migrate Magento 1.7.x to magento 2.0.7 .

In production mode also magento 2 as slow as in developer mode.

I have aslo enable cache and merge css and js.

Till speed is slow give me batter way to speed magento 2.


texts: Magento 2.2.4 EE Upgrade Magento version fail, Your requirements could not be resolved to an installable set of packages

texts:
I am trying to upgrade Magento 2.2.4 EE using composer but, upgrade fail and and show error message  Your requirements could not be resolved to an installable set of packages.
I have project in magento cloud.I follow Upgrade step from https://devdocs.magento.com/guides/v2.3/cloud/project/project-upgrade.html

Please see attach screenshot.


texts: Can you run multiple sites from one Magento Bridge, with different styling?

texts:
You can set-up multiple sites to run from 1 Magento Bridge installation, I can't however work out how to display different styling for each of the sites/profiles.

Any ideas on how to do this?


texts: Magento 2 .2 - How to add Static Product Prefix to Product Url?

texts:
I would like to add a Product Prefix (Static Path) to product URLs.

Something like www.test.com/product-prefix/product1.html

So all products url of the website follows the same structure - www.test.com/product-prefix/product2.html

Where product-prefix is a static product-prefix.

I want to add it as statically , no url rewrite concept.

I have checked core ProductUrlPathGenerator.php but not getting exact solution. Can anybody help and suggest the better way ?

Magento Version - 2.2


texts: difference between special price and actual price

texts: I have configurable product with special price ,i want to show the difference of special price and actual price of this product and the difference will change on change of the option selection


texts: Multiple shopping carts and copy paste cart

texts:
I have a client spec where the client is acquiring for us to develop a store where there are possible to have multiple shopping carts and an user can "copy a cart"
Is this possible? Are there any extension for such thing?

BTW, they want to use a guest wish list that allows to add and share wish list without logging in, and of course add items to this same cart...and download pdf

Any hints on good extensions for achieving those advanced features?


texts: After upgrading magento from v2.1.16 6o v 2.2.5 getting error in static content deployement

texts:
After successfully upgrade Magento from 2.1.16 to 2.2.5 when deploying the static content it throwing the below error, further debug to check file is present in the vendor folder.

Check Below Error in the console -

lenovo@lenovo-ThinkCentre-E73:/var/www/creativeroxyogi$ sudo bin/magento setup:static-content:deploy
[sudo] password for lenovo:

Deploy using quick strategy
frontend/Magento/blank/en_US            910/1016            =========================>-- 89% %   7 secs
Compilation from source: /var/www/creativeroxyogi/vendor/magento/theme-frontend-blank/web/css/styles-m.less
Unable to get content for 'frontend/Magento/blank/en_US/css/source/lib/_lib.less'
Compilation from source: /var/www/creativeroxyogi/vendor/magento/theme-frontend-blank/web/css/email-fonts.less
Unable to get content for 'frontend/Magento/blank/en_US/css/source/lib/_lib.less'
Compilation from source: /var/www/creativeroxyogi/vendor/magento/theme-frontend-blank/web/css/styles-l.less
Unable to get content for 'frontend/Magento/blank/en_US/css/source/lib/_lib.less'
Compilation from source: /var/www/creativeroxyogi/vendor/magento/theme-frontend-blank/web/css/email-inline.less
Unable to get content for 'frontend/Magento/blank/en_US/css/source/lib/_lib.less'
Compilation from source: /var/www/creativeroxyogi/vendor/magento/theme-frontend-blank/web/css/print.less
Unable to get content for 'frontend/Magento/blank/en_US/css/source/lib/_lib.less'
Compilation from source: /var/www/creativeroxyogi/vendor/magento/theme-frontend-blank/web/css/email.less
Unable to get content for 'frontend/Magento/blank/en_US/css/source/lib/_lib.less'

  [Magento\Framework\Exception\FileSystemException]
  Cannot read contents from file "/var/www/creativeroxyogi/pub/static/frontend/Magento/blank/en_US/css/styles-m.css" Warning!file_get_contents(/var/www/creativeroxyogi/pub/static/frontend/Magento/blank
  /en_US/css/styles-m.css): failed to open stream: No such file or directory


texts: Adding a value calories together with price of product

texts: I am making a website for food products. I wish to add a value calorie count with every product that would add up like price of product when choosing many products in the cart. How can I do this in Magento 2? I wish to do this for simple as well as bundled products.


texts: cron schedule table is empty after truncate

texts:
in my website send mail is not working so I truncated the cron_schedule table (before there are entries about sales order emails), the reason I truncated because the admin panel wasn't loading its working now, now when I order anything this table not getting any values. please tell me what should I do.
before I don't think my cron is not working properly, when I run crontab -l    nothing comes. because I am new to Magento I don't know how these cron runs.
*I install Magento using setup wizard so I don't really install cron
I will share you my website you can check if you want
http://zahratalebtsama.ae/
http://zahratalebtsama.ae/mail_test.php
I JUST WANT TO SEND MY TRANSACTIONAL EMAIL INSTANTLY before it was pending in this table
if anyone tell me to edit any file please just tell me the path also it will very helpful


texts: Magento 2 is sending order confirmation email when order is voided in Braintree and not created in Magento backend

texts:
I'm at a lost - orders are reporting that they received an order confirmation email (which I can see in our logs are being sent) but the orders are not actually created in our system.

When I search via the admin order grid - the order is not there.

When I search Braintree, I can see the order number and that the transaction has been voided.

Any guidance would be greatly appreciated.


texts: How to write custom config data to cache?

texts:
The scenario is like this.
I want to programmatically change config data and write those values to cache. I know changing config data through programmatically is possible and how to do. But how can I write those changed config values to cache?

Any suggestions will be appreciated.

Thanks in advance.


texts: where is B2B extension in Magento 2.2 EE?

texts:
I'm using Magento 2.2.2 Commerce(EE). I refer this Magento 2.2 B2B documentation but none of the extension I found by the name BundleNegotiableQuote, BundleRequisitionList.....etc.

Also, I heard request quote feature is added in Magento 2.2 but I didn't see any request quote button on the frontend.

Please clarify me.

Thanks.


texts: Override header Content and adding block

texts:
I have extended LUMA theme and want to customize header.

I want to add static block before logo and want to move logo to center of page which is on left side.

Final result will be

  [1] static block [2] logo (in center) [3] Search form (this is already
  on correct position).

Please advice how to achieve this.


texts: Magento 2: Setting div position on category page

texts:
I need this way

**strong text**

I checked 2columns-left.xml,but here it shown only sidebar

<?xml version="1.0"?>
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
     <update handle="1column"/>
     <referenceContainer name="columns">
        <container name="div.sidebar.main" htmlTag="div" htmlClass="sidebar sidebar-main" after="main">
            <container name="sidebar.main" as="sidebar_main" label="Sidebar Main"/>
        </container>
        <container name="div.sidebar.additional" htmlTag="div" htmlClass="sidebar sidebar-additional" after="div.sidebar.main">
            <container name="sidebar.additional" as="sidebar_additional" label="Sidebar Additional"/>
        </container>
    </referenceContainer>
</layout>

How to change the position of the div ?


texts: Migrate all products including pictures from Drupal ecommerce to magento

texts: Is there a easy way to migrate all products and categories from Drupal Commerce to Magento?


texts:
Is there any way to override Shipping Price by Special User (Customer Service Team) when they place an order for the customer.

I want to add a text box for the Custom Shipping price which will override existing shipping cost to quote when user will go to the next step.

For Example, I want to make 46.53 to 40.


texts:
I have a store where the configurable products have size and color as configurable attributes.
The issue i am having is on the product view page, the size dropdown is set to be the first to appear and dependent on the size, the color is displayed in the dropdown.
How can i switch it the other way round, so that i choose color first and then size?


texts:
I'm looking for an automated solution where the sku number is added to the image on frontend. Like this below:

Running Magento 1.9.2
Thanks :-)


texts: Magento 2.1: How to get Product attributes in overridden LayoutProcessor.php

texts:
I want to hide the "Zip/Postal Code" region in the summary Block in the cart page.I overwrote the block file LayoutProcessor.php. In that file, if I hid the following portion from the function process, then I would be able to hide the "Zip/Postal Code".

'postcode' => [
            'visible' => true,
            'formElement' => 'input',
            'label' => __('Zip/Postal Code'),
            'value' => null
        ]

I want to check the attributes of the products in the cart. If any of the products has the attribute value 'No', then hide the "Zip/Postal Code" and instead show an error message. How can I add the condition in LayoutProcessor.php to hide the same based on the attributes of the products on the cart.


texts: Magento 2 - Show character after i put custom video on product page

texts: I add custom product video in fotorama gallery, but after video pay 2-3 second. It's stop and show character same image . Help me please. Thank you


texts: Magento category add page description,Meta Keywords,Meta Description and image remove

texts:
Here i want to hide the category add/edit page some of the fields.

Fields

Description
Meta Description
Meta Keywords
Meta Description
Image

I tried to hide but unfortunately i can not able to find the file,so kindly suggest the file path.


texts: Magento storing huge amounts of session files

texts:
I have two Magento stores and a huge amount of session files are being stored (file system). This is causing my server to crash as it's running out of space.

Can anyone suggest a modification, so that I can for example, remove all session files older than 7 days?

I understand this may be possible with htaccess?


texts:
I tried to override Magento core model which located in vendor/magento/module-catalog/Model/Layer.php, but it doesn't work at all, here's my code:

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

<preference for="Magento\Catalog\Model\Layer" type="Vendor\Module\Model\Catalog\Layer" />

  app/code/Vendor/Module/Model/Catalog/Layer.php

namespace Vendor\Module\Model\Catalog;

use Magento\Catalog\Api\CategoryRepositoryInterface;
use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory as AttributeCollectionFactory;

class Layer extends \Magento\Catalog\Model\Layer
{

    public function __construct(
        \Magento\Catalog\Model\Layer\ContextInterface $context,
        \Magento\Catalog\Model\Layer\StateFactory $layerStateFactory,
        AttributeCollectionFactory $attributeCollectionFactory,
        \Magento\Catalog\Model\ResourceModel\Product $catalogProduct,
        \Magento\Store\Model\StoreManagerInterface $storeManager,
        \Magento\Framework\Registry $registry,
        CategoryRepositoryInterface $categoryRepository,
        array $data = []
    ) {

        parent::__construct($context,$layerStateFactory,$attributeCollectionFactory,$catalogProduct,$storeManager,$registry,$categoryRepository,$data);
    }

    public function getProductCollection()
    {
        die('asdas');
    }

}


texts: Make "login page" to be a homepage | Don't allow customers to view the website without being logged in

texts:
How can I make the login page my homepage? With no header/footer or any exit links.

So customer has to login or register if he wants to access my website.

If customer is not logged in, the website will be inaccessible.


texts: Async REST-Api calls without RabbitMq possible?

texts:
I tried to use the "Bulk endpoints" from this example:
https://devdocs.magento.com/guides/v2.3/rest/bulk-endpoints.html

The answer from Test-Shop was a 500 Error. A normal single Rest-Api call works.

Message: Unknown connection name amqp {"exception":"[object] (Exception(code: 0): Report ID: webapi-5d9c757ec15b6;
Message: Unknown connection name amqp at /vendor/magento/framework/Webapi/ErrorProcessor.php:208, LogicException(code: 0):
Unknown connection name amqp at /vendor/magento/framework-message-queue/ConnectionTypeResolver.php:43)"}

At the moment I don't want to setup a RabbitMQ Server. So how do I configure Magento to use normal cronjob to serve Rest-API-Calls like the one from the Bulk Example?


texts: I want to call a 3rd party REST API within Magento 2. Is there any class to handle the HTTP requests and responses for that?


texts: How to Move Shipping information (Ship To and shipping method) below payment method

texts: kindly help me with moving shipping information (Ship To and Shipping Method) below payment method. on checkout/cart/payment page in magento 2.1


texts: First product added to new cart returned with no JSON "price"

texts:
This is my first time currently working with Magento. I am developing a custom web shop solution for a machine shop with React.js.
My issue is the following:
After having completed a purchase and received a new quoteID as a logged in customer, where everything functions as expected, the first item added to the new cart is returned from our Magento backend WITHOUT a "price" attribute in the received JSON...
I have already checket out the different pricing settings in the backend, and I cannot seem to find the solution. The only weird setting is the "Special Prime Promotion" date changing randomly.
I hope one of you have encountered this issue before.
Kind regards,
Nikolaj Hem


texts: Extend coupon code action to present a popup when certian coupon codes are entered

texts:
I have read the following: https://stackoverflow.com/questions/20267425/how-to-override-cart-controller-coupon-action-in-our-custom-module-magento

My question is how do I start writing this out.  I simply want to declare an if statment determining if a certain coupon code was entered.  and then if true then proceed with the normal actions but also present a popup or div block on the cart page.

I assume this would be best done through a module instead of the coupon.phtml template file?

Thank you


texts: Magento 1.9.4.1 Setting up order IDs for different store views under the same store


texts: Magento administration - add maximum allowed price for order creation

texts:
I know that in "Mage_Sales_Helper_Data" class , there is a field "MAXIMUM_AVAILABLE_NUMBER" in order to control maximum allowed number for order price.

I see the functionality in the cart section in frontend.
But I want to have this limit in backend(administration) section. I mean when an admin want to create an order, he shouldn't be allowed to create it if the price is more than a specific amount.

How can I do this?
where should I look at?


texts: Create customer for a specific store_id through soap

texts:
I'm trying to create a customer through soap api v2 for magento version 1.9.3 with WS-I compliance enabled.
Using Ruby and SAVON gem.
The call i make is as follows:

customer_info = [
  { mode: 'customer',
    firstname: 'Name',
    lastname: 'LastName',
    store: store_id,
    store_id: store_id,
    website_id: website_id,
    group_id: group_id,
    email: 'test_magento1@mailinator.com'
  }]

customer = client.call(:customer_customer_create, message: { session_id: session_id, customerData: customer_info} )

everything works fine, i can create the customer in the DB, however it is not linked to the store_id that i send. it's linked to default. I send the proper store_id, website_id, group_id combination.
After this call i also do

shopping_cart_customer_set

again, with store_id, website_id and group_id. I also add store as a parameter as it seems that's how the wsdl describes it. Still no luck.


texts: Magento System.log - Unknown connection name amqp [] []

texts:
I am following  this documentation for the custom cron job

https://devdocs.magento.com/guides/v2.3/config-guide/cron/custom-cron-tut.html

I should get the below message in the system.log as part of custom cron job

[2016-11-02 22:17:03] main.INFO: Cron Works [] []

but I am having another message along with the one I mentioned above, which is

[2020-03-03 12:05:03] main.INFO: Consumer "async.operations.all" skipped as required connection "amqp" is not configured. Unknown connection name amqp [] []

Does anybody know what this message?

This question is duplicate to another which is this
Consumer "async.operations.all" skipped as required connection "amqp" is not configured. Unknown connection name amqp
but I didn't find the answers as a proper solution/explanation


texts:
I'm trying to change Grand Total label in Checkout page using following code but it's not working

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
<referenceBlock name="checkout.root">
            <arguments>
                <argument name="jsLayout" xsi:type="array">
                    <item name="components" xsi:type="array">
                        <item name="checkout" xsi:type="array">
                            <item name="sidebar" xsi:type="array">
                                <item name="children" xsi:type="array">
                                    <item name="summary" xsi:type="array">
                                        <item name="children" xsi:type="array">
                                            <item name="totals" xsi:type="array">
                                                <item name="children" xsi:type="array">
                                                    <item name="grand-total" xsi:type="array">
                                                        <item name="config" xsi:type="array">
                                                            <item name="title" xsi:type="string" translate="true">Test Order Total</item>
                                                        </item>
                                                    </item>
                                                </item>
                                            </item>
                                        </item>
                                    </item>
                                </item>
                            </item>
                        </item>
                    </item>
                </argument>
            </arguments>
        </referenceBlock>
    </body>
</page>

any idea? what can be wrong?


texts:
I was following this tutorial http://www.solvingmagento.com/magento-bundle-product-type-part-1/ and everything was going smoothly, however I realised that my magento doesn't have a "website" or "bundled item" tab on the left hand side navigator. Is there a setting or something I need to add to make it run?

When I try the tutorial on another Magento website it seems to work fine.


texts:
I'm working on some Magento order export using SOAP and sales_order.info Using the shipping_address I'm able to get the obejct street. However this seem to include both Street 1 and Street 2. Which is the way of extracting both street 1st line and 2nd line, as I need to pass these values as two different fields to a separate system?

I use $shipdata['shipping_address']['street']


texts:
I need to use the function file_get_contents() on default website's base URL.
Currently there are many websites in magento system.
How to get the id of default website and base URL?


texts: Magento 2 disable delete product action from some admin user

texts:
Hi i have create a new user role in my magento2 admin panel . in that role i have only given access to catalog . So once that user login to admin panel they can only update product and category information .
Now i want to restrict some more thing from that user . I need to block delete product , update product price and update product quantity from that users . How can i do this ?


texts: Magento2 how to add GTM data layer scripts without extension

texts:
Magento2 I need to add all the datalayer script to Magento2 without any extension
How can I achieve this?
For e.g. Product Impressions script
I think this should be call on listing page, then other page
Also, for this product Impression script there is an array of 2 products, should I dynamically display all the product in this script?


texts: How to retrieve value from custom payment method in onepage checkout

texts:
I have built a new payment method and I added a custom field in the onepage checkout payment select step.

When you select my payment method, you have a choice to select installments. I need to access that value (number of installments) and post it via form to the payment service page.

How can I retrieve that value?


texts: Admin grid multiselect column not work with filter

texts:
If you go to the customer grid, there is an option to select the rows.

If you select some customers on the first page and filter another customer by email, the previously selected customers get unselected. But if you filter with full text or change page through pagination, it works perfectly.
I added customer grid into a form through inserListing and want it to work with fiter.
Please help me if there is any configuration.


texts: Magento 2: How to pass IN/OR Condition in Query

texts:
I have below query

$customers = array(1,2);

$select = $connection->select()
->from(
        ['ce' => 'customer_entity'], ['entity_id', 'firstname', 'lastname', 'email'] // Select Only Required Fields
)
->where('ce.entity_id IN? ',$customers);
echo $select;
exit;

How to pass IN & OR condition?


texts: Upload HTML Canvas on register page as image file

texts:
I have a jQuery signature plugin running on the register page that users must sign before they register which works until HTML Canvas.

What code can I run to upload this canvas image to the server via AJAX so I can then attach this image file to a hidden input for registration?


texts: I am new to magento 1.9 , can anyone please tell , what is the use of admin grid system ? and why we have to use it and where we have to use it ?.


texts: Changing favicon for admin side theme only - Magento 2.3

texts:
I've made the custom adminhtml theme and changed the login logo and the default top left logo on dashboard, however I'm unable to change the admin favicon.

In the default.xml that I'm using to modify the header logo i have added

<head>
    <link src="images/favicon.ico" rel="icon" sizes="32x32" />
</head>

to call a custom favicon that is stored in the app/design/adminhtml/%vendor%/%theme%/web/images/ folder but even though the logos have loaded fine, the favicon remains the same as the front-end.

is there a different string i should be using in the ? i have taken this string directly from the frontend favicon tutorial, so don't know what it would need changing for the adminhtml sections

I have also tested this in the default_head_blocks.xml but that appears to be front-end specific.

Edit:

It appears that the theme is active, (can change .phtml files successfully) but the default.xml and the admin_login.xml are both being ignored anyway. if i remove those files, the logo files with the default names load fine, but with the files in place the newly linked files from the xmls are ignored.


texts: how can I get the customer details from order from the magento database?

texts:
I want to list the details of all the customer which has made an order.
The customers who has created account , can easily be found out from the admin side.
But how can I find the list of all the guest customer who had made orders from the beginning of the store.

Please suggest me some query so that I can list all the customer from the order table.


texts: Zero cart price Issue in M2 ADD TO CART rest API in case of new customers

texts:
I'm working on M2 rest API's. I'm getting zero price issue in the same API.

How to re-create issue:

1. Create new customer through rest API.
2. Login with the registered customer.
3. Now add the product to cart.
4. Now check the cart info through rest API URL.

Now cart showing zero price with zero total.

If you again add a new product or same product again. The correct price will be displayed.

The zero price issue always comes only in case of new customers.

Request URL with parameters:
storeurl/rest/V1/carts/mine/items
SKU, qty, user_id

Please check screenshots of the response:


texts: Magento 2.3 - Admin create order customer grid add company name

texts:
I want to add the company name to the customer grid, when you create a new order in the admin panel.

Therefore I created the following module, but there is no field with company name added to the grid.

What am I missing here?

app/code/Vendor/Module/view/adminhtml/layout/sales_order_create_customer_block.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="adminhtml.customer.grid.container">
            <arguments>
                <argument name="dataSource" xsi:type="object">\Vendor\ Module\Model\ResourceModel\Order\Customer\Collection</argument>
            </arguments>
        </referenceBlock>
        <referenceBlock name="adminhtml.customer.grid.columnSet">
            <block class="Magento\Backend\Block\Widget\Grid\Column" as="company" after="billing_postcode">
                <arguments>
                    <argument name="header" xsi:type="string" translate="true">Company</argument>
                    <argument name="index" xsi:type="string">company</argument>
                </arguments>
            </block>
        </referenceBlock>
    </body>
</page>

app/code/Vendor/Module/Model/ResourceModel/Order/Customer/Collection.php

<?php
namespace Vendor\Module\Model\ResourceModel\Order\Customer;

class Collection extends \Magento\Sales\Model\ResourceModel\Order\Customer\Collection
{
    /**
     * @return $this
     */
    protected function _initSelect()
    {
        parent::_initSelect();
        $this->joinAttribute(
            'company',
            'customer_address/company',
            'default_billing',
            null,
            'left'
        );
        return $this;
    }
}


texts: Magento 2: How to set first image of slider in fotorama js after cancel fullscreen popup in product detail page

texts:
Magento 2: How to set first image of product slider after cancel or exit fullscreen popup of image slider.

By default its display current selected image after exit popup in detail page.  I have to display first image of slider which is default image after page load.

Any help would be appericiated.


texts: Allow customer to login only if they accept terms & condition

texts:
Allow user to access his account only if accept Terms and Condition on its first log in.
Sign in the agreement copy with the name or email id.

Can any one tell me how can I achieve this.

Any help would be appreciated.

Thanks in advance..!


texts: Purchase of product automatically handled with automatic mail?

texts:
I will try to be as specific as I can be.

I have a Magento webstore, now I wanted to know, if it is possible when a customer purchases a product, (ie: a license) that said product would be handled automatically, and that the customer will get his license (code or key) delivered by mail automatically without human interference.

Is there a way to make this work? Installing a bot, or a plug-in?

Hopefully one of you can help me out on this!


texts: How to make offline payment type as prepaid in magento 2?

texts: I created a offline payment method for admin. If I use that payment method to create an order means it showing as COD as the payment method type. But I want to make as Prepaid.


texts: Catalog price rules work only on the catalog page, not in single product page, cart and checkout

texts:
I have Magento 1.9

I created a rule for discount 3 of my categories.

Immediately the rules works perfect, I see that everywhere sould be. But after a few time (I tried, but I didn't understand how much time or in consequence of what) the rules doesn't works good:

The rule work correctly on the catalog and category page (I see the discount), but when I go on the product's single page the discount dosn't work anymore.

The same thing when i go to the cart page or in checkout.

Pratically my discunt never work.

I tried to use the default theme, i tried to disable the plugin one by one but the problem persist.

This si an example:

CATALOG

SINGLE PAGE PRODUCT

CART AND CHECKOUT


texts: Is there a way to send an order shipment email with only order id provided?


texts:
I wondering if anybody can provide a known reason why customer prefix_options is scope to website level:

<show_in_store>0</show_in_store>

In: app/code/core/Mage/Customer/etc/system.xml

I would like to scope customer prefix values at the store view level and not just website level.

Imagine you have a a website called "Beligum" and in that website you have two store views: be_FR (Beligum-French) and be_NL (Beligum-Dutch). If you wanted to control the customer prefixes at the store view level you can't currently as show_in_store is 0.

Creating a custom module that depends on  with a system.xml file to override the value allows me to scope it to the store view level:

<customer>
    <groups>
        <address>
            <fields>
                <prefix_show>
                    <show_in_store>1</show_in_store>
                </prefix_show>
                <prefix_options>
                    <show_in_store>1</show_in_store>
                </prefix_options>
            </fields>
        </address>
    </groups>
</customer>

What I'm interested in is there is any negative side affects that I should look for? Or is this simply not scoped to store view level because Customers in Magento belong to websites?

Thanks


texts: Add GeoTrust image on checkout page in magento 2

texts: I want to add GeoTrust secure image with credit card info images i cant found the file where i add it. Help if any one knows.


texts:
I have to develop an option which customer can do a quick order.

In here, the customer can use product SKU and order quantity to add items to cart.

How can I implement that on my home page?

I need to check whether inserted SKU is valid/available and quantity is no need to check whether exceed the available stock or not. Need to check SKU and get SKU and quantity from the input box and dropdown respectively. then on button click, I need to add the selected quantity of selected item into cart.

My interface would seem like this:


texts: Error loading custom module listing page

texts:
In listing page from a custom module, i got this error when load more than 50 results.

  Attention

  Something went wrong.

  Something went wrong with processing the default view and we have
  restored the filter to its original state.

If i show no more than 50 results, it works.

In my local does not happens the error.

php.ini
memory_limit    756M
max_input_vars  1000000

Magento ver. 2.2.3


texts: Magento2 Add to compare Api using graphql?

texts:
Magento2 - PWA. I am developing PWA in Magento2. In products I am not able to see Add to compare link.
How can I create add to compare Graphql API & use it in PWA?


texts:
I am getting the error:

  One or more indexers are invalid. Make sure your Magento cron job is running.

I know that I could fix this using the command php bin/magento indexer:reindex using the Magento CLI, however I am using a shared hosting, which doesn't let me use a command line to execute this command. Any ideas how to reindex without CLI?


texts: GeoIP Extension not working for Store Views

texts:
I have installed Mageworx Geo Lock Free via SSH method & configured using the provided instructions.
https://support.mageworx.com/genext/install_m2/
https://support.mageworx.com/manuals/free/geolock/

I have used the following commands

php bin/magento module:enable MageWorx_GeoLock

php bin/magento module:enable MageWorx_GeoIP

php bin/magento setup:upgrade

php bin/magento cache:flush

php bin/magento setup:static-content:deploy

php bin/magento module:enable MageWorx_GeoLock

php bin/magento setup:upgrade

php bin/magento cache:flush

php bin/magento setup:static-content:deploy

I'm getting the Mageworx settings in Configuration and have set my US store to deny India and for my India store, I have set rule deny US country.
I have also updated the GeoIP database.

However, both stores get shown for both countries

Pl. help if anyone has used this.


texts:
I'm using Magento 1.9.1 and when creating a new order, whether it's from the frontend or Admin, the system is sending out 2 emails - both the same!

I've looked on the net and found a bug which was an old one and I couldn't find the code mentioned to comment out, it also looked like that was to do with Paypal orders and this isn't the case.

I've disabled ALL extensions and tried and still had the same issue so I'm confident that it isn't an Extension issue.


texts: Error message for table rate is not displaying how to fix in magento 2

texts: I have created a table rate it works fine, but if we give wrong pin number it does not shows error message instead it shows as "Sorry, no quotes are available for this order at this time". how can i fix it


texts: How to filter attribute collection in magento2?

texts:
I have added the Straps attribute for product...

I want to filter out the attribute collection...

    public function offer()
    {
      $productcollection = $this->_productCollection->create()
                ->addAttributeToSelect('*') ->addAttributeToFilter('staps', 'regular');
      echo count($productcollection);exit;
    }

But I can't get the answer.....

How to do that...

Thanks


texts: magento 1.8 store view language specific

texts:
app/locale/My_Language is right there, but 80% of front-end displays in English.

My_Langage is set up in Back End though.

I guess back end needs more tweaking. Any leads?


texts:
I am trying to add images product gallery to my custom widget using Fotorama.
What it should look like:

So I tried to initialize the gallery widget using the js script. Based on the info I got from https://devdocs.magento.com/guides/v2.4/javascript-dev-guide/widgets/widget_gallery.html.
But for some reason, it is not displaying correctly. Am I missing something here?
This is how it looks like: (It is display 3 images all at once instead just one image)

Any idea on how can I fix this? Thanks


texts:
Natively I can see its possible to have related products block on a product page but is it possible to not have it as a block but to just have a simple dropdowns based on categories.

For example if I am buying a computer I would like to have 3 dropdowns, 1 for screens, 1 for software and 1 for printers.

Each dropdown would contain related products for the revlant category


texts: How can I update reviews and rating on Magento Marketplace?

texts:
I purchased one product(extension in my case) from Magento marketplace and tried to implement that extension with my Magento website.

But unfortunately that is not working any more. I have given 2 star rating to that product and also asked an query to support portal for same.

They guys read my query and replied me within 12 hours and after some conversation within support staff, they found that issue is within extension.

They resolved that issue and now, I am very happy with the extension.

Now, I want to give 5 star rating on my previous 2 star rating. Is it possible as I can give 5 star rating and can update review text also?

Thank you,


texts: Backend doesn't work after installing Porto theme: Mage registry key "_singleton/all/update" already exists

texts:
I get this error after installing Porto theme and accessing to backend doesn't work, this is the same case: http://themeforest.net/item/porto-ultimate-responsive-magento-theme/9725864/comments?page=31&filter=all#comment_9645128

REPORT LOG: https://www.dropbox.com/s/06wxoinsveys4t9/error.txt?dl=0


texts: My Client Requests me to create a reusable template for scaled pricing

texts:
Is it possible to create the template for the tier pricing in configurable products so that the user doesn't have to create it again and again for each product?

The requirement is Instead of adding tier prices for a specific product the user can select a template in which the tier prices are already mentioned. I don't have any example though I haven't worked on or seen such functionality before.

Does magento support this functionality? If yes then please explain the logic I am also open to any sort of customization or using third party tools. IF not then please elaborate the reason.


texts: Magento 2 : How to Insert Category Name as Meta-Description of Each Category From Admin

texts:
From admin, I'm trying to insert category name as a variable in metatags (something like {category name} in meta description).

I go to admin: Products -> Categories. From the details of Category, In Search Engine Optimization dropdown., I am adding Meta Description which includes category name like in curly brackets {category name}. But, Im not able to do..

Not sure Im doing it right, Is there any way or certain variable for Category name, which we can insert like this.


texts: Clicking on store view redirects to a website

texts:
When I choose a particular store view in the configuration page of admin, it redirects to a url instead of staying and showing me the configuration of that store

How can I fix it? I tried to search for url in the files and it was not available so it seems that it is coming from database but I don't know how to find it?


texts: What's the relationship between vendor, package, module and namespaces?

texts:
Let's take the Contacts module inside my Magento 1.7 installation.

$ pwd
/var/www/vhosts/myproject/magento-1.7.0.2/app/code/core/Mage/Contacts

I know Contacts is the module, but is Mage the package, or the vendor? Then what's core? I'll heard them being described as 'code pools', but still not very clear.

And how does this relate to namespacing? (if it's relevant at all?)


texts: Magento SOAP API forgot password webservice implementation

texts:
I am using Magento SOAP API v2 for web services. It doesn’t support default Customer forgot password API.

Any one can provide me details how can I create the forgot password API and mail send in Magento?


texts: Show price for out of stock configurable products

texts:
How to show price of configurable product which is out of stock in magento2.2? Currently when child product's are out of stock then configurable product won't show price in magento 2.2.

Please help!


texts: how to disable credit card data menu for payment method in bakend

texts: When selecting a payment method, this menu of credit card data appears, which does not correspond to the payment method as it is not a credit card


texts: I want to redirect to /checkout if a coupon is applied and it is valid. I have tried this event controller_action_predispatch_checkout_cart_couponPost this only works on coupon cancel and /cart page. Not working on apply function and also in /checkout/#payment page where it uses ajax call.


texts: Magento 2 braintree paypal is not working getting null response

texts:
Magento 2.3.5 version using
when pay amount with Braintree PayPal then getting this error on the response from this URL - http://127.0.0.1/dummy/braintree/paypal/review/
Getting this error -
Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Payment\Model\Method\Logger::debug() must be
        of the type array, null given, called in /var/www/html/dummy/vendor/magento/module-braintree/Controller/Paypal/Review.php on line 69 and defined in
     /var/www/html/dummy/vendor/magento/module-payment/Model/Method/Logger.php:51 Stack trace:
     #0 /var/www/html/dummy/vendor/magento/module-braintree/Controller/Paypal/Review.php(69):
    Magento\Payment\Model\Method\Logger->debug(NULL) #1
    /var/www/html/dummy/generated/code/Magento/Braintree/Controller/Paypal/Review/Interceptor.php
    (24): Magento\Braintree\Controller\Paypal\Review->execute() #2 /var/www/html/dummy/vendor/magento/framework/App/Action/Action.php(108):
     Magento\Braintree\Controller\Paypal\Review\Interceptor->execute() #3
    /var/www/html/dummy/vendor/magento/module-braintree/Controller/Paypal/AbstractAction.php(66):
     Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #4
    /var/www/html/dummy/vendor/magento/framework/
    in /var/www/html/dummy/vendor/magento/module-payment/Model/Method/Logger.php on line 51

Also, there is a git issue but the solution is not there - https://github.com/magento/magento2/issues/23719
The Paypal popup is open and I am able to pay but the response is coming null.
Anyone know please how to solve this ?
Note - I am able to pay via Braintree credit card