Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [custom-variable]

The tag has no usage guidance.

0
votes
0answers
17 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
34 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
20 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
20 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
184 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
47 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
243 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
83 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 / ...
0
votes
0answers
54 views

Magento 1.9 Inserting Customer Group in transactional Email

I'm trying to add the customer group into the transactional emails. So far I've tried adding the following code to app/code/local/Mage/Sales/Model/Order.php and then adding {{var order....
0
votes
0answers
32 views

How to create my own custom variables for order emails?

I need to create a few email templates which requires a lot of details which aren't included in regular magento emails. To get some information like order details, such as product images for each ...
1
vote
1answer
546 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....
3
votes
1answer
214 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
1k 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
171 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
88 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
574 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
298 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
327 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
996 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
75 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
127 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
214 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
61 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=...