BigCommerce Add Global Variable - bigcommerce

I added user created custom field for customer sign up - "UPS Shipper".
And I want to show this value in Invoice email.
But it is impossible, for we can use only global variables and language variables in that email template, there is no variable for that custom added form field.
So I think it should be added a global variable for that field.
I'm not sure I'm right.
Please let me know how to add a global variable in bigcommerce.
Or let me know what I think wrong.
Best regards
Lorant

global variables are defined in the PHP and since Bigcommerce is a SaaS platform you will not be able to add that variable at all.
You may suggest that the customer can log in to their account to view the custom information if they need.

Related

Jenkins Dynamic Parameter Build

I am new to Jenkins and I am looking to create a parameter build. My issue is that I want to create a list of parameters that is dependent on the first parameter. For example, My fist selection will be to choose a domain. I then want a list of parameters or services to populate below that correspond to the specific domain selected in the first parameter. The list of parameters will be different for each selected domain.
I have tried the Active Choice Parameter Plugin as well as the Active Reactive, however these only allow the choices of the parameter to be dynamic, not the actual list of parameters itself.
Is there another plugin I should look into?
Here is a link to another post which describes what I am trying to accomplish if what I stated above was unclear. This issue is still unresolved on the Jenkins site.
https://issues.jenkins-ci.org/browse/JENKINS-5914
Thank you!
In order to accomplish the task above, I used the Active Choice Parameter to specify the first parameter selections. For the remaining parameters, I used the Avtice Choice Reactive Parameter which has a field to specify the parameter you wish to reference. this allows the parameter to re-fire every time you change the selection of the first parameter.

how do I force a field to be translated in my Odoo code?

I am developing a module for electronic invoicing, and should express the payment term in spanish, so I am setting a dictionary with all the needed fields, and when I do this:
{
...
'FmaPago': inv.payment_term.name,
...
}
The output file contains the value "name" in english. I've tried something like
_(inv.payment_term.name)
but with the same result.
How should I force the value to be expressed in a defined translation?
The field name of Payment Terms are already translatable. You can change the translation in Odoo by clicking the little button within a field in edit mode.
If you've done that correct, you have to avoid some typical mistakes at code side if you use the old API.
always pass the context
e.g. if you browse the invoice, pass the context, to get all translations correct
use partner language if you want to translate for them
Odoo is using user language in his context, to translate the web client correctly. If you print documents for customers, you want them in customer language of course...
So you maybe need to manipulate the context (key 'lang'). For new API you have to call with_context() to do that.
You must use _() for strings that you want to be able to translate.
You must make translating files *.po (as i remmember) and thats all I think.
Dont forget to check documentation link

Creating a custom message template in nopCommerce

I've written a method that collects some sales statistics that I would like to send as an email. I've searched through the project but I just can't figure out how to do this.
In the database there's a "MessageTemplates" -table with some information about the templates like "p" and "br" -tags with parameters like customer.name and so on. These templates seem to be implemented in "WorkflowMessageService" class. There's also a class called "MessageTokensProvider" but I can't see why I would need tokens as I just want the data collected from my method returned in the new mail.
Has anyone added a message template for nopCommerce before that can explain what I need to do and how it works? This would be very much appreciated.
Thank you
MessageTokensProvider is to allow certain token to be replaced with dynamic data. For example %Store.Name% will be replaced with the configured store name.
You can, of course, not use any tokens in your message template.

Pass product variables by user selection

I want to make a ticket sales site theme. As you might guess, most of ticket sales site using a flash based chair selection tool. Those systems using premade scenes which is audiences can select their chairs. I can make premade scenes with jQuery or flash but I don't know how can we handle this selection by Magento.
So, what I want to know that is it possible to pass a user specific variable in Magento? I mean, this variable should be available in checkout and backend as well. Could you please give me an advice to accomplish such an idea?
If this option can be selected from a fixed list of options, then what you want can be achieved using Configurable Products, or Custom Options.
If what you're looking for is a completely bespoke user-defined value, then this is pretty programming intensive, so if you're not a developer it's not an easy task.
Forgive the shameless self-link, but I've recently posted on this topic here:
http://mikebywaters.wordpress.com/2012/03/29/adding-custom-data-to-a-cart-item-in-magento/
In short, the post says that you can add an array of custom data to the quote when the item is added to the quote. For this, you’ll have to hijack the add-to-cart controller completely. To start with, take all the functionality from the existing controller. Look at the Mage_Sales_Model_Quote::addProduct() function and you’ll see that it takes two parameters like so:
$quote->addProduct($product, $request);
where $request is of type Varien_Object formatted like this:
$request = new Varien_Object(array(
'qty'=>$qty,
'options'=>$options,
'custom_options'=>$custom_options
));
Hope this helps.

Jira SOAP API custom field

Hi I'm am trying to get the list of issues from a JIRA server using the SOAP API provided by JIRA.
I'm trying to filter the issues based on a custom field (and latter I will want to set that custom field).
If I get the list of issue it returns the custom fields for those issues along with them (I get customfieldId, key, values for each custom field) and I can get the custom field with getCustomFields methods provided by the API (to look for the ID of the field with a given name).
The issue I have is that if I login with an account that is not an admin (using the API) I can't call the getCustomFields method (it throws an exception saying I have to be an admin to do that).
My question is: Is there any other way to know which is the ID of the custom field I desire that can be done using a normal user account?
Also if you know how to set a custom field for an issue, it would also be very helpful :) (I would also like to be able to do it with a regular user account).
You have to be an admin to get a list of custom fields. Any 'normal' account can act on the custom fields via the API provided the user knows the customfield ID.
You can set the value of a custom field too, even with a 'normal' account. Again, the user needs the appropriate permissions to do this. Example provided here.
More here and here.
You can also use getFieldsForEdit(token, issueKey), which will return RemoteField[] for all fields available for edit on that issue (even if it has not yet been defined on the issue). It does not require admin permissions, but because it has the word "Edit" in the method, it does require that you have permission to edit the issue (which means, e.g., if the issue is status=Closed, it will raise an exception unless you allow editing closed issues. Unfortunately, I have yet to find a way to retrieve the RemoteField[] list (in order to map id to name), so getCustomFields() and getFieldsForEdit() appear to be the only options.
Have you tried getting a list of issues from the project, picking one, zeroing out the data, and using that as a template? That might work.
SOAP is being deprecated in favor of the REST API, which also has a better method to get this information