Questions tagged [custom-variable]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
9 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
51 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
51 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
78 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
73 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
230 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
37 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
25 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 ...
0
votes
1answer
395 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
55 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 ...
1
vote
1answer
374 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
166 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
929 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
334 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 "...
1
vote
1answer
2k 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
223 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
111 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
641 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
332 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
4k 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
4k 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
368 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
9k 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
97 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
139 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
251 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
1k 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
62 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=...