We want to add a static block to some of our category pages that will take up the first two spots in the product grid. It would look like this finished: For testing purposes, I’ve just added a generic li and div tag to the top of the product list. […]
Magento2
I have to redirect the user to our SSO login page ifhe is not logged-in during the checkout. As suggested here, I added this check into my phtml file that overrides this vendor/magento/module-checkout/view/frontend/templates/onepage.phtml. if(!$this->customerSession->isLoggedIn()) Debugging the code seems that this->customerSession is not present. So, how can I check if the […]
After the installation and I get to the main page of Magento the demo shows. The next thing I do is use the credentials I’ve provided during the installation. It will return “The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.” Now […]
I am trying to generate oauth 1 oauth/token/request for magento 2, I am using the below code $characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'; $nonce = ''; $maxRand = strlen($characters) - 1; $length = 32; for ($i = 0; $i < $length; ++$i) { $nonce .= $characters[mt_rand(0, $maxRand)]; } $dateTime = new DateTime(); $oauthConsumerKey […]
I am trying to provide video transcripts for each product video in a magento 2 site. I want to pull the transcript from the “video description” field in the admin area, and I have been somewhat successful, but only for a single video. Here is my code: Transcript.php <?php namespace […]
The reset password is not working, I’m receiving the email, and reset link is working. After entering the new password and submit, it says that the password reset link has expired. I’m using Porto theme. Please find screenshot. Thanks
There are 2 columns on the Index Management page: Status and Schedule status. Could you please provide detailed explanation what does each combination of values mean? For example: Status Schedule status Meaning Ready Idle (0 in backlog) It means: Indexer is ready. 0 not-processed items in changelog. Processing Suspended (0 […]
How could I implement in Magento 2 a http 307 redirect. I would like if possible use Magento methods/framework not phps. Thank you.
Currently, We have 5k Products on our store and we will upload more products on our store. I have just upgraded to 8g Ram 80g SSD 4 vCPUs from 4g ram and others same. Elasticsearch was getting killed after sometimes. now its much more stable after upgrading but it’s still […]