I was wondering how the VAT number is being saved in the billing-address from a customer. I can't find it in the code and there is no solution to be found online. Hopefully someone can help me out.
Reason why I'm looking for this: Magento Core 1.7 provides the EU VAT service itself instead of installing 3th party extensions. But it looks # the VAT number which is saved in the address instead of the VAT number from the customer. Unfortunately it's not possible to add the VAT number in the address you create in "my account" by default.
Big thanks for anyone who can help out!
In the invoice PDF I use:
$taxvat = $order['customer_taxvat'];
And then echo that where you need it.
In the admin I suppose you can use {{order.customer_taxvat}}, but I haven't tested that yet.
Related
I receive a daily listing of url's as part of a MailChimp based emailing and I want to find out if it is possible to automate the process of retrieving the end url.
For the example, I receive ‘Outpouring of love’: Justin Welby addresses mourners at Queen’s funeral | Queen Elizabeth II | The Guardian'
Which when clicked directs to:
us2.list-manage.com/track/click?u=50eac70851c7245ce1ce00c45&id=08efb7cfcc&e=852b2b1fd4
Which then seems to redirect to the endpoint:
https://www.theguardian.com/uk-news/2022/sep/19/justin-welby-sermon-queen-funeral?utm_source=Daily+media+digest&utm_campaign=c6b9dd75ec-EMAIL_CAMPAIGN_2019_11_27_02_01_COPY_01&utm_medium=email&utm_term=0_296e14724b-c6b9dd75ec-248630149&mc_cid=c6b9dd75ec&mc_eid=852b2b1fd4
I am thinking it's not possible as I don't have any access to the MailChimp account but it would be good to have this confirmed by someone cleverer than me...
I am a bit of a newbie so please try keep things simple. Very many thanks,
I'm using the variables found on this page: https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/#id08A6HI0J0VU
to try to pre-populate the form data for buyers when they purchase things on my site. The trouble is, some of the fields are getting filled in, while others are not. First name, last name, telephone number, and email address work without a problem.
However, the country is always set to the USA, and address1, address2, city, and zip are left blank. I'm sure my code is correct. I'm currently using the sandbox for testing. Has anyone else experienced this problem and can tell me what the solution is? Any help would be appreciated.
Make sure you pass over all the address fields. If you do not pass over one of the variables, the address will not be displayed. If this still does not work, can you provide an example of what you are sending over and list what is not getting displayed when you test this and I will look into it further. However, make sure you are passing over all of the address fields.
I am trying to get the customer's name, email, and order number to pass to a payment gateway once the customer hits the place order button. So far I have managed to get the total using
$total = Mage::getModel('checkout/cart')->getQuote()->getGrandTotal();
I tried using
Mage::getSingleton('customer/session')->getCustomer();
$email = $customer->getEmail();
$firstname = $customer->getFirstname();
$lastname= $customer->getLastname();
but they don't seem to return a value. I know this because I echo the variables after, and none of them work but the $total. Help would be greatly appreciated.
The best way to do this is to create a Custom Payment Gateway module.
See
http://www.excellencemagentoblog.com/magento-create-custom-payment-method
Magento Custom Payment Gateway
http://roysimkes.net/blog/2009/11/creating-your-own-payment-gateway-for-magento-part-1/
http://roysimkes.net/blog/2009/11/creating-your-own-payment-gateway-for-magento-%E2%80%93-part-2/
I have created an email service in force.com.Can anyone help me out of how to use thta in apex classes.say,i wanna send mail when user registration is successful??
Many Thanks,
Sandhya Krishnan
I assume you want to send an email directly from Apex code, either in a Trigger or from a page controller ... ? If so, this page can get you started:
http://www.forcetree.com/2009/07/sending-email-from-your-apex-class.html
Clearly you don't want to hard-code your email template into your classes, so make sure to read at least through the part that shows how to look up the template dynamically. That should be enough to get you on your way.
Does anyone know if there is a wordpress plug-in which lets you set up a form which has an email field, among others.
The form, after filled in, would:
send the content of the form fields to an email address (name:joe, phone number: 555 etc)
send an instance response to the email provided ('thanks for your contribution')
add email address to an internal database (which is exportable) within the wprdpress admin
Thanks.
This will accomplish your task and more - http://wordpress.org/extend/plugins/formstack/
cformsII from Delicious Day is what you're looking for. Customizable, easy to set up, and can be set up to track all form submissions. Find it at http://www.deliciousdays.com/cforms-plugin/