Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

eCommerce Tycoon


You are currently viewing our eCommerce Tycoon as a guest. Please register to participate.
Login



Reply
Custom Payment / Invoice email?
Old 08-01-2012, 04:07 PM Re: Custom Payment / Invoice email?
madnhain's Avatar
Skilled Talker

Posts: 63
Name: Jez
Location: Grand Junction, CO / Williston, ND
Trades: 0
Right, but my fear was that perhaps that variable contained more than just the value I wanted.

I'm at a total loss, I've researched every avenue I can think of, and still nothing.

Why would the attempt to convert it to an int or float return 0?

Is there a function that I'm overlooking?

thank you chrishirst, for you continued input by the way.

I should also note that banging my head against the desk has not yielded any additional incite into this.
madnhain is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-01-2012, 04:31 PM Re: Custom Payment / Invoice email?
madnhain's Avatar
Skilled Talker

Posts: 63
Name: Jez
Location: Grand Junction, CO / Williston, ND
Trades: 0
is there some avenue I have missed? should I scrap this idea and try something different? Should I drink myself into a drunken stupor and pray to the php gods?

Last edited by madnhain; 08-01-2012 at 04:32 PM..
madnhain is offline
Reply With Quote
View Public Profile
 
Old 08-01-2012, 04:42 PM Re: Custom Payment / Invoice email?
chrishirst's Avatar
Defies a Status

Posts: 43,949
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
If it "prints" the correct value to screen on echo($total), it's fine.

To find the right section of code search for this string >> uc-price"=""
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-03-2012, 06:43 PM Re: Custom Payment / Invoice email?
madnhain's Avatar
Skilled Talker

Posts: 63
Name: Jez
Location: Grand Junction, CO / Williston, ND
Trades: 0
yes, it echos the correct value, but when plugged into the form, it decides to be something else.

I found this in the theme file, It looks like it could possibly be the culprit of the issue, though I'm at a loss as to what to do about it...

PHP Code:
function theme_uc_price($variables) {
  
$output '<span class="uc-price">' uc_currency_format($variables['price']) . '</span>';
  if (!empty(
$variables['suffixes'])) {
    
$output .= '<span class="price-suffixes">' implode(' '$variables['suffixes']) . '</span>';
  }
  return 
$output;

madnhain is offline
Reply With Quote
View Public Profile
 
Old 08-03-2012, 09:42 PM Re: Custom Payment / Invoice email?
madnhain's Avatar
Skilled Talker

Posts: 63
Name: Jez
Location: Grand Junction, CO / Williston, ND
Trades: 0
Problem solved!
a rather simple fix it turns out.

Code:
<input type="hidden" name="amount" value="<?php echo strip_tags($total); ?>">
Makes sense. I knew there was something I Was overlooking

Thanks for the help chrishirst!
madnhain is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Custom Payment / Invoice email?

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17429 seconds with 10 queries