Correct way to force an invoice e-mail to be sent to a user in UberCart?
10 years, 5 months ago
10 years, 5 months ago
What is the correct way to force the system to send an invoice to a client. I’m trying to use:
But I keep getting:
Fatal error: Call to undefined function uc_price() in C:xampphtdocsYourEstablishmentsrcsitesallmodulesubercartpaymentuc_paymentuc_payment.module on line 149
|share|improve this question
asked Oct 6 ’09 at 9:24
13.3k3737 gold badges141141 silver badges273273 bronze badges
add a comment
It might be a flaw in the module. The function that it’s complaining about, uc_price, is defined in
Since it’s located in a ini file, that means that drupal wont include it by it self. I’m not familiar with ubercart, since I’ve never used it, but it seems like this could be a bug in the module. If no one here can come up with an explanation, you should go to the issue tracker.
A quick fix to your problem would be to add this before you call the function
require_once(drupal_get_path(‘module’, ‘uc_store’) . ‘/includes/uc_price.inc’);
it will include the needed file.
|share|improve this answer
answered Oct 6 ’09 at 9:44
31.8k1414 gold badges6161 silver badges8181 bronze badges
add a comment
Thanks for contributing an answer to Stack Overflow!Please be sure to answer the question. Provide details and share your research!But avoid …Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.To learn more, see our tips on writing great answers.
Sign up or log in
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Post Your Answer
Not the answer you’re looking for? Browse other questions tagged drupal ubercart or ask your own question.
The Overflow Blog
Podcast 222: Learning From our Moderators
Building dark mode on Stack Overflow
Featured on Meta
An Update On Creative Commons Licensing
Community and Moderator guidelines for escalating issues via new response…
Triage needs to be fixed urgently, and users need to be notified upon…
Dark Mode Beta – help us root out low-contrast and un-converted bits
Upcoming Feature: New Question Close Experience
3Is it possible to have anonymous purchases with ubercart without the creation of a new user account?2SimpleXML problem in Drupal Ubercart Google checkout0Ubercart – login users in the checkout page1error with eva when adding products to ubercart : Notice: Undefined variable: entity in _eva_extract_entity_from_build()0Ubercart Invoice converted to PDF document using ubercart theme(*) TCPDF0Drupal 7 Ubercart 3.4 emailing order invoice action is not working0getting maximum execution time exceeded in drupal after linking the modules0Drupal apc module
Hot Network Questions
How do I replace ALL text in a file after a certain line with the content of another text file, using sed/awk?
Why are ‘ghost flights’ necessary?
How can I design a religion based on real demons to maintain its stability?
If liquid and gas are both chaotic states of matter, what’s the difference between them on the molecular level?
What types of these lines are?
Am I entitled to be placed on furlough after resigning?
What monster attacks have “Miss” outcomes?
Constitutionality of more restrictive bans on assembly
Can you choose to automatically succeed on a saving throw you make because of a spell you cast?
Can a character rest while under the Etherealness spell?
Has my idea for a time lapse technique been used before?
IRS notice of owing money for income tax and interest
Approaching unresponsive high level research professor as an undergraduate without any program
Generating generating expressions for sequences
Ticket to Ride Train Cards
Can one translate ἀθάνατος as ‘living’ rather than ‘immortal’?
How to politely ask someone to use Google Translate instead of their own non-native english
Order of product of group elements
Is there an origin story for the Iron Giant?
Is a “stalled” aircraft free-falling?
my sourdough starter is going wrong in every possible way
How many spots do these frogs have?
How to dig a trench for a cable for a garden office
What had Rey understood in The Last Jedi?
more hot questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.