Questions tagged [custom-variable]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
27 views

It's possible to call block type template in custom variable?

sorry it's my question it's stupid, but i want to know if it's possible in Magento 1.9, to call a block of type template in custom variable ? Thanks you, have a good day :)
0
votes
0answers
11 views

Is it possible to pass a custom system variable to a value in an email template in Magento 2?

In Magento 2.3: I have created a custom system variable (System > Other Settings > Custom Variables) that contains a url. I'd like that url to be able to be used in a link in a {{trans}} block ...
2
votes
1answer
30 views

How would it be possible to change the color for a url that is a Custom Variable inserted in a transactional e-mail?

Here is the custom variable: <a href="https://customer-support-page">CUSTOMER SUPPORT</a> It gets a default color: #aaa; and I cannot manage to find where is that color set from ...
0
votes
2answers
69 views

How to call Magento 2 custom variables in phtml file?

I have created custom varibles in "System -> Other Settings -> Custom Variables" for different store views. How can i call them in phtml files for store views? I am trying following ...
0
votes
0answers
67 views

After magento upgrade from 1.7 to 1.9 Order email custom variables are not showing in order emails

After magento upgrade from 1.7.0.2 to 1.9.4.5 Order email custom variables are not showing in order emails anymore. Actually /app/code/core/Mage/Sales/Model/Order.php is extended on website and '...
0
votes
1answer
144 views

How to redirect to controller using jquery ajax in magento 2.3.5

I want to pass dynamic text-box value to controller using ajax, so if anyone have idea about it then please share with me. Thanks In Advance
0
votes
0answers
24 views

How to hide 0 when using {{var order.increment_id}} in an email or PDF invoice?

Is it possible to hide the zero ?
2
votes
1answer
589 views

Magento 2 email_order_set_template_vars_before observer triggers only when I resend email in the admin

I created a new template var using email_order_set_template_vars_before observer and it works when I send email new order through the Magento admin. But it does not trigger when new order is placed. ...
0
votes
0answers
43 views

Custom email template, use user id. Magento 2.3.4

I want to use user id/name in custom emails, when i use {{trans "% name," name = $ user.name}} , i get empty field. Do I have to create custom variables for this data?
0
votes
0answers
65 views

Magento 2 - Custom Variables API

I was wondering if there is an API for the Custom Variables in Magento under System > Other Settings > Custom Variables. Going through the System > Integrations > API lists it as ...
0
votes
0answers
311 views

Magento 2 - Custom Variable | How to get the Plain Value as well as HTML value using directive {{CustomVar code=“CUSTOM_VAR_CODE”}} in CMS Blocks?

I have added the Custom Variable from Admin > System > Other settings > Custom Variables > Add New Variable, it is possible to add both the Variable HTML Value as well as Variable Plain Value as in ...
0
votes
0answers
69 views

Magento2 echo current year/month as custom variable?

Looking for a way to echo the current day of week, month, and/or year as a custom variable? Can this be done? I want to add it to a CMS page as a text so that in other words, if I say: "Looking for ...
1
vote
0answers
11 views

How make a custom variable to get Payment ticket bank (Boleto in PT-BR) in Magento 2

How can I get a payment ticket link in Magento 2 and set this value in a "Custom Variable" to use in my emails Templates? I know how to get a transaction and I think the ticket is a string inside "...
0
votes
1answer
1k views

Add email variable to all transactional emails

Is there any way to add one email variable to all transactional emails? My idea is to create a custom variable, put some code in it and display it in all transactional emails.
0
votes
1answer
104 views

Magento 2 - Transactional email templates

How I can get Sales Representative Contact Email in a transactional email templates? I try to add something like this but the href is not display: <li style="background: black; color:white;"> ...
1
vote
0answers
165 views

How to Create Custom Variables inside WYSIWYG editor in Magento 2?

I have created a Custom field under Stores->Configuration->General. I need to use that field as Custom variable inside WYSIWYG editor when Insert Variable option is clicked. I don't Know how to ...
0
votes
0answers
195 views

Magento2 How to create custom variables to use on config.xml

In the etc/config.xml I can use some variables, like {{base_url}}, but I need to use other urls in this config. How I can create custom variables to use in the etc/config.xml file? Example: In my ...
0
votes
1answer
783 views

magento 2 dynamic value not comes in custom email template

I am trying to send dynamic value in my custom email template. I can send email with my custom template, but dynamic value not able to pass in that email. Here is my code for send email $...
1
vote
1answer
109 views

How to remove first few digits from order id using order id variable in email template

I am using a 3rd party plugin for order number customization and the format I am using is- {order id}-{counter}AB e.g. 1234-30000AB In the email template when I include order id variable it ...
0
votes
1answer
41 views

How to add custom configs variables to custom shipping method?

I have created a custom shipping method following this tutorial: https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/ Now I would need to add a couple of extra variables to admin ...
1
vote
1answer
1k views

Magento 2: format var invoice.created_at

I'm using EaDesgin/magento2-pdf-generator2 to format the customer's invoice. This works nice. But in this template I use the magento 2 variable {{var invoice.created_at}}, what gives me the ugly ...
0
votes
1answer
72 views

Showing Variable in Magento Description

Is there a way to show Custom Variables in Magento Description? There are lots of products which has a paragraph as common, so I want to use the variable for that. In case something changes in ...
2
votes
1answer
748 views

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

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, ...
1
vote
0answers
649 views

Get custom variable in phtml file - Magento 2 theme Luma | HELP

I created this custom variable Path: Stores -> Attributes (Product) Code Variable: time_di_consegna_modulo Now I want to print the variable inside the product page. Path: public_html / vendor / ...
1
vote
2answers
3k views

How to use custom variables in Magento 2?

I have seen email templates to use built-in custom variables. Can someone explain how to use System -> Other Settings -> Custom Variables? For example category count, which will show in frontend....
2
votes
1answer
549 views

is there a way to add custom variables to product description (using the editor) in magento 2?

I am using magento 2.2.2 and I want to add custom variables to the products description. for now, I can do that with the pages but not for the products (in the page editor there's a button called "...
2
votes
1answer
3k views

Get plain value from custom variable in php with objectManager

I want to get a plain value from custom variable (defined on admin) in php with objectManager. storeID is in $order->getStore()->getId() Custom Variable Code is 'mycustomvar' why does ...
0
votes
1answer
322 views

convert {{var customer.getName()}} to customer name

I am create SMS module and in SMS template i use custom variable such as {{var customer.getName()}} . How i can convert this variable to same variable for example if user use {{var customer.getName()}...
1
vote
1answer
147 views

use customer variable text in email

I know in email we can use {{var customer.getMarketerName()}} for get and use customer attribute. But my attribute is an select and above code return id replace text how I can get attribute text?
2
votes
0answers
697 views

Magento 2 : How to Load a Cms Block and Set Custom Variable Values

I created cms block with custom variable name 'redemption'. I wanted to load cms block, pass and replace value to custom variable 'redemption'. Please help, It's Urgent.
0
votes
1answer
377 views

Magento(1.6.2.0) add custom customer registration field to email template

i used the new customer registration field guide from here: (Thanks @Marius) https://magento.stackexchange.com/a/65760/47305 Works fine but is it possible to add the new created custom field in ...
2
votes
0answers
5k views

How to Use Custom Variable in Email Template?

I'm following below post & able to send email. how to send custom email no template in magento2? I have created 1 custom variable named Custome Footer. app\code\Custom\Module\view\frontend\...
2
votes
1answer
5k views

How to use custom variables in phtml file for email

I have created a Transactional Emails template in magento admin to send multiple coupon codes dynamically for this I have created a template file says email/custom.phtml and it is included in email ...
3
votes
1answer
473 views

Magento 1 - Can Custom Variables be translated?

I got a question about Custom Variables. Our store uses them to have Print Specifications for different products. Is it possible to translate those Custom Variables? I have tried putting: <?php ...
1
vote
3answers
1k views

How to add template in Custom Variable HTML Value in magento

I have created a custom variable in magento. But I want to call a template file for this variable value. For this I am using {{block type="core/template" template="custom/my.phtml"}} in Variable ...
2
votes
2answers
10k views

Get my custom variable into an email template

We currently use a plugin for gaining points when ordering items. I want to display the users points balance inside various emails, now the plugin company gave me the code to echo out the current ...
1
vote
2answers
111 views

I want to store the detail's in custom variable any one know how to done this?

I want to store the detail in custom variable any one know how to done this? like {{order_number}},{{order_price}} i want set variable at backend.
1
vote
0answers
146 views

Set custom field value in customer registration

I created a custom field named location_city in customer. In the admin, under Account Information tab, the name of the field is: account[location_city] Now during new registration, I want to set the ...
1
vote
1answer
277 views

How to use custom variable in magento custom module

I have created a custom module for send SMS at the time of order place, I have created a observer for this which works and send SMS to customer. I have provide message field in system configration and ...
2
votes
3answers
2k views

Use a custom variable in a category description

I recently created a custom variable named storecount - which I'll be programatically increasing for every store that is added to my store locator plugin. I'd like to show this in various locations ...
0
votes
1answer
2k views

Custom Variable Plain Value in Email template

I'm aware that it's possible to call the HTML value by: {{customVar code=custom_variable_code}} Question is simple: Is it possible to receive plain value of custom variable in email template (Magento ...
0
votes
1answer
66 views

Custom variable in block always giving last requested value in phtml file

I've injected custom variable named slider_id to my block like below, <reference name="content"> <block type="sliderpro/sliderpro" name="defaultslider" as="defaultslider" before=...