Stack Overflow » Magento
60 FOLLOWERS
Stack Overflow is a public platform building the definitive collection of coding questions & answers. This community is a place to get all your queries solved regarding Magento, an open-source e-commerce platform written in PHP.
Stack Overflow » Magento
10h ago
Running Magento 2.4.7 on Nexcess, php 8.1. though I tried with 8.2 as well.
Compile error:
[servername]$ php bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/9 [===>------------------------] 11% 1 sec 117.0
MiBPHP Fatal error: Null can not be used as a standalone type in
/servername/vendor/paypal/module-braintree-core/Plugin/DeleteStoredPaymentPlugin.php
on line 57
I use Adobe Payment Services, but not BrainTree or PayPal directly and could happily shut it down for now to get past this. My site is down. I tried turning off every PayPal and Brai ..read more
Stack Overflow » Magento
3d ago
I am working a Magento module. The user clicks on "Place order", an API call is made to an external API service, gets a unique ID, the Magento Order ID and the API unique ID are saved to a custom table, it constructs a url with the unique ID and redirects the user there. When the payment is complete, they get redirected back to Magento on a specific controller.
This is where I am having problems with. I need to now send them to the checkout/onepage/success thank you page but I can't understand what is preventing me from doing so.
I have a very basic redirection set up, that successfully redire ..read more
Stack Overflow » Magento
5d ago
I am getting an error in console of checkout page and also not getting the recaptcha box in the checkout page.
I am having the Magento 2.4.6 p5 version. I am able to place order if the configuration of captcha is disable but when it is enable I am getting the validation mesasage in checkout page.
See the image below:- Console Error in Checkout Validation Error message when placing order
I have tried to disable the captcha modules but it is not giving any result, also try to enable and disable the captcha from admin but the result I am getting is same.
I am expecting to clear the error I am get ..read more
Stack Overflow » Magento
5d ago
How can I check if the backend admin has logged in on the frontend in Magento 2?
I want to develop a module in Magento 2 If the admin has logged in to the backend, I want the SKU field in the frontend to be visible.
Can someone help me find where I am making a mistake?
<?php
namespace Ensa\SwatchSku\Helper;
use Magento\Backend\Model\Auth\Session as AuthSession;
class Data extends \Magento\Framework\App\Helper\AbstractHelper
{
protected $authSession;
public function __construct(
\Magento\Framework\App\Helper\Context $context,
AuthSession ..read more
Stack Overflow » Magento
1w ago
I'm trying to add a captcha to a custom form that I created in a CMS page in Magento. The captcha is working correctly on the default Contact Us page, but it's not refreshing every time on my custom form.
Here's how I'm currently calling the captcha block in my CMS page's theme PHTML file:
<?php
/**
* @var \Magento\Captcha\Block\Captcha $captchaBlock
*/
$captchaBlock = $block->getLayout()->createBlock(\Magento\Captcha\Block\Captcha\DefaultCaptcha::class);
$captchaBlock->setTemplate("Magento_Captcha::default.phtml");
$captchaBlock->setFormId("contact_us");
echo $captcha ..read more
Stack Overflow » Magento
1w ago
I am trying to install magento 2 and Docker on my mac, but I can't go any further, and I need some help.
I've tried to follow this for installing: https://www.mgt-commerce.com/tutorial/magento-2-docker/ I've got some troubles at the beginning, but I am at step 7 now, and everytime I try to execute this command ./vendor/bin/ece-docker build:compose --mode="developer" I get this error
In Config.php line 81:
Name could not be parsed.
In ConfigSource.php line 59:
Name could not be parsed ..read more
Stack Overflow » Magento
1w ago
recently i was upgrade magento 2.4.3 to 2.4.6-p6 for upgrade i fire below cmd
composer require magento/product-community-edition 2.4.6-p5 --no-update composer update --ignore-platform-reqs
after install latest version when i run setup:upgrade it will throw error
There is an error in /chroot/home/a77eba9d/28a6e11fee.nxcli.io/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php at line: 50 Cannot instantiate interface Magento\Theme\Model\Theme\StoreThemesResolverInterface#0 /chroot/home/a77eba9d/28a6e11fee.nxcli.io/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Mag ..read more
Stack Overflow » Magento
2w ago
I hope you are doing well. I'm reaching out to you because I've been experiencing difficulties trying to integrate a third-party service into my Magento 2 website after a recent update. Specifically, I've been attempting to integrate the Tidio service, which requires adding a code snippet to the HTML header of the page. However, despite following the steps correctly, the service never runs on my page.
I've done some investigation, and I suspect that the issue might be related to some sort of cache, permission, or server configuration. My website is beautygables.com.
So far, I've tried purging ..read more
Stack Overflow » Magento
2w ago
I want to add a ticket form on my website (I am using Magento 1.9). The ticket form is from Zoho. I have added the code:
<script type="text/javascript" nonce="{place_your_nonce_value_here}" src="https://desk.zoho.com/portal/api/web/inapp/954830000000277001?orgId=849940443" defer></script>
When I click on the submit button, I get this error in console: Access to XMLHttpRequest at 'https://desk.zoho.com/portal/api/composetickets?portalId=edbsn4819b1fde9b48121f03c6ad521ec66e49dfee18db46bc47f9d1c82ca0276b4a1' from origin 'https://maxigel.ro' has been blocked by CORS policy: Response to ..read more
Stack Overflow » Magento
2w ago
in magento 2.4.6 getting bellow error. i can not found solution so if anyone can help me then it will be great.
knockout.js:3753 Uncaught TypeError: Unable to process binding "visible: function(){return isVisible() }" Message: isVisible is not a function at visible (eval at createBindingsStringEvaluator (knockout.js:3221:28), :3:67) at update (knockout.js:5519:59) at ko.dependentObservable.disposeWhenNodeIsRemoved (knockout.js:3745:45) at Function.evaluateImmediate_CallReadThenEndDependencyDetection (knockout.js:2331:115) at Function.evaluateImmediate_CallReadWithDependencyDetection (knockout ..read more