Paypal issue with QC V 1.0

brainfreeze

No avatar

2005-11-03 13:13

I am using the latest version o QC...
I used the have the code for Paypal in orders_saved.tpl
When clicking on the pay button all data was transfered to paypal like: order id, adres to pay to and the total amount.

With the new shop I can't get the correct total amount to paypal. Only the amount without shipping cost...

Could anybody please help!

to do or not to do

treewood (OpenSolution)

Avatar: treewood

2005-11-03 13:19

create <input type="hidden" name="fSummary" value="$aList[fSummary]" /> near submit.

brainfreeze

No avatar

2005-11-03 14:06

I already added this line to
orders_delivery.tpl
Only then an amount was put to Paypal but... without the shipping cost.

Leaving value empty as in the old version... also didn't work...

Any other suggestions???

to do or not to do

treewood (OpenSolution)

Avatar: treewood

2005-11-03 17:14

create function witch count order cost by summary of products (db/orders_products.php) and shipping cost saved in (db/orders_ext.php)

witaj.net

treewood (OpenSolution)

Avatar: treewood

2005-11-04 08:01

<?php
function countOrderSummary$iOrder ){
  
$aData      dbListBasket$iOrder );
  if( isset( 
$aData ) ){
    
$iCount   count$aData );
    
$fSummary 0;
    
// count summary, products in basket
    
for( $i 0$i $iCount$i++ ){
      
$fSummary += tPrice$aData[$i][3] * $aData[$i][4] );
    } 
// end for
    // add shipping cost
    
$aData    dbThrowOrderExt$iOrder );
    
$fSummary tPrice$aData[4] + $fSummary );
  }
  return 
$fSummary;
// end function countOrderSummary
?>

brainfreeze

No avatar

2005-11-04 09:22

Hello Treewood...

I am sorry I could not get it to work. I have put the code in orders-ff.php... no result
Later I put it in products-ff.php... also no result...

Why does the printOrder.tpl get the correct info for showing the order but I cannot use those strings to put to Paypal?

to do or not to do

brainfreeze

No avatar

2005-11-04 09:43

I am not sure but is a string for the whole page or just the layer (div) it was created on...
So could it be that the layers is closed before the final fSummary could be read?

to do or not to do

brainfreeze

No avatar

2005-11-04 10:11

Really wierd...

I have put the paypal code in the printOrder.tpl
Now it puts the correct amount to Paypal...

So why is it not possible to use the same strings of this tpl in orders_delivery.tpl...

....



to do or not to do

julia &#1490;'&#1493;&#1500;&#1497;&#1492;

No avatar

2005-11-04 18:30

could you post the explanation how you did it
&#1514;&#1493;&#1491;&#1492; &#1502;&#1512;&#1488;&#1513;

brainfreeze

No avatar

2005-11-07 08:08

Just put the following code in printOrder.tpl
It generates the button and puts you through the payal website with the right amount...



For payment you can either use Paypal









name=''submit'' alt=''Payable by PayPal it is for free , fast , and certainly !''>


But it would ik to have this from the orders_saved.tpl... I have tried to make another print page by substituting all words print by paypal... I could not get this to work...

Has anybody any solution... I shop with the possibilty to pay is no shop...

to do or not to do

Back to top
about us | contact