I have got answer.All Suggestions.
My Controller File CustomerDelete.php. And
I have get current time $current_time = time('h:i:s');
In Email Template set time like :-
"id" => $encodeId,
"time" => $current_time
In Email Template my account_expire.html file ...
This happens when you try to add products in magento having duplicate names . If the magento had already a product with same name the url is generated according to the name . So in short DON'T DUPLICATE PRODUCT NAME if you are not specifying product urls manually in the upload csv
There are 2 possible solutions .
change your product name in the ...
I can suggest a solution using cache lifetime (10 minutes), save your token_key into cache service with 10 minutes is cache lifetime, if you can't get your token_key on the cache system, that means the token_key is expired.
Reshad I would suggest, try with the command line composer to upgrade the magento.
Please follow below tutorial step by step and it will help you to upgrade magento easy and faster way.
If you are saving data in the database than save current time and then compare that time and date.
if you are not saving it then pass date and time in parameters and compare it with current time date.
Unorthodox solution just for fun :) You mentioned that you're sending inside controller:
class Send extends \Magento\Framework\...
You can generate a link with param attached to it. This param can be a timestamp or token.
1. Approach with timestamp
Your page link in email would be something like
<a href="https://your-site/your-page?expires=1600881883">Click here</a>
On your page, you can get the expire timestamp from URL, generate timestamp of current time & ...
Try this code
My Controller is as below :
class Edit extends \Magento\Backend\App\Action
public function __construct(
i also got the same issue this is the final sollution
I confirm, this happens also in 2.3.5-p1
The solution set in db table: email_template column is_legacy = 1
set is_legacy = 1 in desired template and it will start working like miracle
For development you can try this:
php bin/magento config:set dev/front_end_development_workflow/type client_side_compilation
php bin/magento cache:flush
Reference to official DevDocs: https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/css-guide/css_quick_guide_mode.html#using-client-side-compilation-mode
First of all, make call on /rest/default/V1/integration/customer/token instead of on /index.php/rest/default/V1/integration/customer/token.
Second, make sure you don't make call to mapped subdomains. For example if you mapped localhost or 127.0.0.1 onto mydomain.local in /etc/hosts, don't make call to http://mydomain.local/rest/default/V1/integration/...
Magento 1.7? I would advise upgrading to the latest 1.9 or closing the site as it will be hacked very soon.
The validate function on that line is called on either the billing or shipping address of the order.
$address = $isOrderVirtual ? $order->getBillingAddress() : $order->getShippingAddress();
So this suggests the address didn't' save correctly on ...
That is because Magento 2.3.4 doesn't support ElasticSearch 7.
Support has been introduced with Magento 2.3.5 and Magento 2.4.
Even if you get rid of that error, there might be others to follow.
Upgrade to Magento 2.3.5 or Magento 2.4 and it should work perfectly.
The following has been tested on Magento 2.3.4 and 2.4.0
<?xml version="1.0" ?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
explode can split a string by a string into an array
Here is a reference sample.
$customerGroup = $this->_customerSession->getCustomer()->getGroupId();//1
$groupsInString = $this->getConfigData('groups'));//(string) "1,5,9,10"
$groupsInArray = explode(",",$this->getConfigData('groups'));//(array) [1,5,9,10]
I had the same problem with another message, I got:
SQLSTATE: Integrity constraint violation: 1062 Duplicate entry 'default-0-amasty_checkout/layout_builder/layout_builder_config' for key 'CORE_CONFIG_DATA_SCOPE_SCOPE_ID_PATH', query was: INSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`) VALUES (?, ?, ?, ?)
So I opened phpmyadmin ...
Using this code I succeed add product to cart but without Custom options
type : Date and field
$magentoURL = "*************************";
$station = "fr";
$data = array("username" => "**********", "password" => "**********");
$data_string = json_encode($data);
$ch = curl_init($...