Pages:

need paypal for QC1.4

prince

No avatar

2006-11-02 06:25

anyone can u please help me.

here is my messages.tpl file

<!-- BEGIN ORDER_PAYPAL -->
<div id="message">
<div id="ok">
<form target="paypal" name="_$iOrder" action="https://www.paypal.com/cgi-bin/webscr";; method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="$config[email]">
<input type="hidden" name="item_name" value="Order ID $iOrder">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="amount" value="$aList[fSummary]">
<input type="hidden" name="shipping" value="$aData[fCourierPrice]">
<input type="hidden" name="no_note" value="1">
<input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but6.gif";; name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form><br />
$lang[Order_finished]<br />
<a href="javascript:windowNew( '?p=ordersWindowPrint&amp;iOrder=$iOrder' );">&raquo; $lang[Order_print]</a><br />
<a href="?p=">$lang[Homepage]</a>
</div>
</div>
<!-- END ORDER_PAYPAL -->
<!-- BEGIN DONE -->
<div id="message">
<div id="ok">
$lang[operation_completed]<br />
<a href="?p=$link">&laquo; $lang[operation_go_back]</a>
</div>
</div>
<!-- END DONE -->

and my orders.php

if( checkOrderFields( $_POST ) === true && checkOrderProducts( $iOrder ) === true ){
saveOrder( $iOrder, $_POST );
//--------- Start PayPal Code
$aData = throwOrder( $iOrder );
listBasket( $iOrder);
$aData['fSummary'] = sprintf( '%01.2f', $aData['fCourierPrice'] + $aList['fSummary'] );
if( $aData['fCourierPrice'] > 0 ){
$content .= $tpl->tbHtml( 'messages.tpl', 'ORDER_PAYPAL' );
}
else
//-------- End PayPal Code
$content .= $tpl->tbHtml( 'messages.tpl', 'ORDER_SAVED' );

No paypal button shows up, please help.

Thanks
Aj

aj

Claps

Avatar: Claps

2006-11-02 07:42

prince - the code looks right, and the button should appear after the "send" button is hit after completing fields in "Order - Delivery address"screen. The only problem is that your courier field value is 0 and the code must be modified as follows:

//--------- Start PayPal Code
$aData = throwOrder( $iOrder );
listBasket( $iOrder);
$aData['fSummary'] = sprintf( '%01.2f', $aData['fCourierPrice'] + $aList['fSummary'] );

if( $aData['fCourierPrice'] >= 0 ){ //<--- here modification

$content .= $tpl->tbHtml( 'messages.tpl', 'ORDER_PAYPAL' );
}
else
//-------- End PayPal Code

wokkers

No avatar

2006-11-02 15:08

hey all,

PHP noob. is there a readme/manual for Paypal intyergration? I have looked but i must have missed it (if it is there).

Thanks

prince

No avatar

2006-11-02 15:13

Hey Claps,

Nothing is showing up man, in another thread you did recommend to edit the en.php file, here is mine. Even the message "Thank you. Your order has been saved and we will send you a confirmation email with all the details. <br />You can now pay for your order by <b>PayPal</b> using the button below to make your payment to us.<br />We will dispatch your order as soon as we receive immediate confirmation of your payment from PayPal .';
doesnt show up.


* Messages
*/
$lang['category_not_found'] = 'Category not found';
$lang['prepaypal'] = 'Thank you. Your order has been saved and we will send you a confirmation email with all the details. <br />You can now pay for your order by <b>PayPal</b> using the button below to make your payment to us.<br />We will dispatch your order as soon as we receive immediate confirmation of your payment from PayPal .';
$lang['cf_no_word'] = 'Please fill in all required fields';
$lang['cf_mail'] = 'Enter e-mail address';
$lang['cf_wrong_value'] = 'Enter correct value';
$lang['cf_to_small_value'] = 'Value is too small';
$lang['cf_txt_to_short'] = 'Text is too short';

$lang['operation_saved'] = 'Data save completed';
$lang['operation_changed'] = 'Data update completed';
$lang['operation_sure_delete'] = 'Do you really want to do this?';
$lang['operation_yes'] = 'Yes';
$lang['operation_no'] = 'No';
$lang['operation_deleted'] = 'Data delete completed';
$lang['operation_completed'] = 'Operation was successful';
$lang['operation_not_completed'] = 'Operation was NOT successful';
$lang['operation_especify_all_required_fields'] = 'Please fill in all required fields';
$lang['operation_not_found'] = 'Data not found';
$lang['operation_go_back'] = 'go back';

$lang['Order_finished'] = 'Your order has been saved and will be sent as soon as possible.<br />Thank You';
$lang['Order_print'] = 'Print your order!';

$lang['Logged_in'] = 'Logged in correctly';
$lang['Error_login_or_pass'] = 'Wrong login or password!';
$lang['Logged_out'] = 'Logged out correctly';

$lang['products_not_found'] = 'Products not found';
$lang['Choose_courier'] = 'Choose courier';
$lang['Not_found'] = 'Not found';
$lang['basket_is_empty'] = 'Your cart is empty';

$lang['write_topic'] = 'Enter topic';
$lang['Error_email_send'] = 'Mail sending error';
$lang['Email_send'] = 'E-mail has been sent. Thank You';
$lang['Answer_soon'] = 'We\'ll get back to you soon';

$lang['Fill_login'] = 'Enter login';
$lang['Fill_password'] = 'Enter password';
$lang['Fill_product_list'] = 'Enter products list limit on per page';
$lang['Fill_admin_list'] = 'Enter admin list limit on per page';
$lang['Fill_products_photo_size'] = 'Enter product photo size';
$lang['Fill_categories_photo_size'] = 'Enter category photo size';

Aj

Claps

Avatar: Claps

2006-11-02 15:22

prince - now I have on screen your site with the button for paypal showed. Where are you looking at?

Claps

Avatar: Claps

2006-11-02 15:25

I don't have a Paypal account to make you a test payment. (AndreWeb store)

prince

No avatar

2006-11-02 15:28

Yes Yes u r right, tks man. I see it now.

When you click the paypal link, the total is in
Total Amount: &pound;8.00 GBP how do you change this to dollars.

Also how does it determine which paypal account it goes to? Does it find the account according to my last name?

Thanks Claps.

Aj

Claps

Avatar: Claps

2006-11-02 15:33

prince - nope, this line is responsible for that,

<input type="hidden" name="business" value="$config[email]">

$config[email] variable is the email address used for creating the paypal account and the mail specified by you in admin->config->email.

Claps

Avatar: Claps

2006-11-02 15:34

and for the first question:

change

<input type="hidden" name="currency_code" value="GBP">

to

<input type="hidden" name="currency_code" value="USD">

prince

No avatar

2006-11-02 16:05

Thanks alot Claps. You're Good.

Aj

prince

No avatar

2006-11-02 18:01

Hey Claps,

How do i have a frontpage/homepage instead of when you go to http://beckiesbliss.com/cart you see the items. can you have another starting page?

Thanks again.
Aj

Aj

Claps

Avatar: Claps

2006-11-02 18:25

prince - admin->Configuration->Start Page

prince

No avatar

2006-11-02 18:34

Hey Claps.

I am only seeing productslist and contact. Is there another way to have another blank page in there.

tks
aj

Aj

Claps

Avatar: Claps

2006-11-02 18:40

admin->category->Add new category-> Field "Type" select "content" -> save

prince

No avatar

2006-11-02 18:53

Tks.
Can you tell me how to fix my top menu so that it reads :

Home / Products / Basket / About us / Contact....

INSTEAD OF:

Products / Basket / contact / home

Aj

Claps

Avatar: Claps

2006-11-03 14:39

prince - try this http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=2760

prince

No avatar

2006-11-03 18:10

Thanks Claps,

I did that and it worked to a point, but if you look at the site http://www.beckiesbliss.com/cart/ I want the Contact link at the end. How to set that? In Catagories I have Home as 0, Products 1, Content 2, and Contact 3 that should work but its not setting Contact to the end.

Tks
aj

prince

No avatar

2006-11-06 22:15

Thanks Claps,

I did that and it worked to a point, but if you look at the site http://www.beckiesbliss.com/cart/ I want the Contact link at the end. How to set that? In Catagories I have Home as 0, Products 1, Content 2, and Contact 3 that should work but its not setting Contact to the end.

Tks
aj

Claps

Avatar: Claps

2006-11-07 07:55

prince - in templates/page.tpl delete $sContentsMenu variable and replace it with links to your pages in the order you desire, something like:

<ul>
<li><a href="?p=p_10&sName=Home">Home</a></li>
....
<li><a href="?p=productsList">$lang[products]</a></li>
<li><a href="?p=ordersBasket">$lang[basket]</a></li>
...
<li><a href="?p=p_1&sName=contact">Contact</a></li>
</ul>

prince

No avatar

2006-11-11 05:29

hello claps.
thanks so much for everything so far. another issue i have is when i submit and go to paypal link after submitting my information. although my prices are in CAN $, in paypal its charging in US $. How can i change that.

Thanks
aj

Pages:
Back to top
about us | contact