Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal / PayMate - A solution to customer not returning to site that they can't miss!


gregp

Recommended Posts

This thread is for discussion on the module of the same title which can be found at http://addons.oscommerce.com/info/7326

 

This is not the only contribution of this nature but I think it deals with the problem more effectively than some others. Many people seem to have a problem with customers that pay with PayPal (and perhaps other payment modules) not returning to their website. When their customers do this, the store owner receives payment, but does not receive the order information.

 

For a long time I've had an animated .gif on the checkout_confirmation.php page which flashes at the users but we'd still get some people who wouldn't read it.

 

So I've taken it one step further and made a div layer with a warning message that actually sits ABOVE the Confirm Order button and disappears when clicked - so they can't actually get to the 'Confirm Order' button unless they've read the message!

 

It might not stop everyone but at least you've got a mighty big stick to take to those customers who still don't follow the instructions!

 

 

Installation is straightforward - an image goes into /images/, two lines of text into /catalog/includes/languages/english/checkout_confirmation.php language file, and finally two blocks of code go into /checkout_confirmation.php

 

I'm no great coding expert so I'd welcome anyone to go through my work and revise it as they see fit. Hope it helps someone!

Edited by gregp
Link to comment
Share on other sites

Incidentally if the PayPal default text 'Return to <vendor>' annoys you as much as it does me for being utterly undescriptive of how important it is to click it, you can customise it to say whatever you want. In /catalog/includes/modules/payment/paypal.php, around line 90 where $process_button_string is being defined, add the following:

 

tep_draw_hidden_field('cbt', 'Complete your order with YOURSTORENAME) .

 

Or whatever you want to say.

 

so the code snippet looks like this:

tep_draw_hidden_field('currency_code', $my_currency) .

tep_draw_hidden_field('cbt', 'Complete your order with YOURSTORENAME') .

tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) .

 

Makes far more sense than just 'Return to YOURSTORENAME' as it more accurately describes the importance of the button.

Edited by gregp
Link to comment
Share on other sites

  • 2 months later...

Updated to v1.2

 

* fixed bug in IE where overlay would sit to the left of the 'Confirm Order' button

* rewrote css into ids rather than classes

* included code to change the 'Confirm Order' button to a 'Pay Now' button when using PayPal or PayMate, which more accurately indicates what clicking the button will actually do. Note you may need to redesign this button to suit your site's look and feel, this is just the one I use, but I have included a layered .png file which should allow you to do this. I used Adobe Fireworks for this but any image program like Photoshop or The Gimp should be able to do something similar.

Link to comment
Share on other sites

  • 2 weeks later...

Hi Greg

 

I have tried using this module as I'm having the same problem when customers don't return to the store from the paypal confirmation page.

 

However, I can't seem to get it to work.

 

Just to clarify, where should I be putting the button_pay_now image?

 

Thanks,

 

Craig

Craig Shaw

Linden Design

Link to comment
Share on other sites

Hi Greg

 

I have tried using this module as I'm having the same problem when customers don't return to the store from the paypal confirmation page.

 

However, I can't seem to get it to work.

 

Just to clarify, where should I be putting the button_pay_now image?

 

Thanks,

 

Craig

 

Hi Craig,

 

In the readme I say to put button_pay_now.gif in /catalog/includes/languages/english/buttons/ but obviously if you use a different default images directory (or language) it would need to go there. You don't need to upload the .png version.

 

Is that what you meant? When you say it's not working, what exactly is happening? The only requirement is that Javascript is enabled which is pretty safe to assume these days.

 

Greg

Link to comment
Share on other sites

Hi Craig,

 

In the readme I say to put button_pay_now.gif in /catalog/includes/languages/english/buttons/ but obviously if you use a different default images directory (or language) it would need to go there. You don't need to upload the .png version.

 

Is that what you meant? When you say it's not working, what exactly is happening? The only requirement is that Javascript is enabled which is pretty safe to assume these days.

 

Greg

 

Hi Greg,

 

Thanks for replying.

 

I'll give it a go later on today or tomorrow and see if I can get it to work. I think I must have made a little mistake somewhere.

 

I'll post back with how I get on.

 

Thanks again,

 

Craig

Craig Shaw

Linden Design

Link to comment
Share on other sites

Hello Greg.

 

I've tried it again and still not managed to sort it. My browser is definately java enabled.

 

Couple of points though:

 

The buttons folder existed in english/images/buttons, not english/buttons.

 

Also, my checkout-confirmation.php page was slightly different.

 

Now, around line 378-419, directly below:

 

 

echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');

 

if (is_array($payment_modules->modules)) {

echo $payment_modules->process_button();

}

 

 

replace echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "\n";

 

In my file, I didn't have the first part of the code, but I did have most of the last line, so I just replaced that.

 

I had "echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . "\n";" this in my file.

 

Could you suggest anything to make it work?

 

Thanks,

 

Craig

Craig Shaw

Linden Design

Link to comment
Share on other sites

Hello Greg.

 

I've tried it again and still not managed to sort it. My browser is definately java enabled.

 

Couple of points though:

 

The buttons folder existed in english/images/buttons, not english/buttons.

 

 

Whoops my bad :(, yep it needs to go into english/images/buttons. I've updated the instructions, thanks!

 

 

Also, my checkout-confirmation.php page was slightly different.

 

In my file, I didn't have the first part of the code, but I did have most of the last line, so I just replaced that.

 

I had "echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . "\n";" this in my file.

 

Could you suggest anything to make it work?

 

Thanks,

 

Craig

 

 

That line you quoted button_confirm_order is what needs to be replaced. Here's how my code looks:

 

 

<td width="10"> </td>

<td align="right" class="main">

 

<?php

if (isset($$payment->form_action_url)) {

$form_action_url = $$payment->form_action_url;

} else {

$form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');

}

 

echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');

 

if (is_array($payment_modules->modules)) {

echo $payment_modules->process_button();

}

?>

 

<style>

#warningdiv {float:right; position:relative;}

#confirmbutton {position:absolute; top:0; right:0; z-index:10;}

#hideimage {position: absolute; top: 0; right: 0; z-index:20; border:2px solid #900; padding: 5px; background-color: #fff; color: #900; width: 500px;}

.stopimage {float: right;}

.stopimage img {border: none;}

 

</style>

<div id="warningdiv">

<div id="confirmbutton">

<?php

if ($GLOBALS['payment'] == 'paypal') {

echo tep_image_submit('button_pay_now.gif', IMAGE_BUTTON_PAY_NOW) . '</form></div>' . "\n";

print '<div id="hideimage"><span class="stopimage"><img src="images/stop.gif" /></span>' . TEXT_PAYPAL_WARNING . '<br /><a href="#" onClick="showDiv(\'hideimage\');return false;">'. TEXT_PAYPAL_WARNING_CONFIRM . '</a></div>';

}

 

elseif ($GLOBALS['payment'] == 'paymate') {

echo tep_image_submit('button_pay_now.gif', IMAGE_BUTTON_PAY_NOW) . '</form></div>' . "\n";

print '<div id="hideimage"><span class="stopimage"><img src="images/stop.gif" /></span>' . TEXT_PAYMATE_WARNING . '<br /><a href="#" onClick="showDiv(\'hideimage\');return false;">'. TEXT_PAYMATE_WARNING_CONFIRM . '</a></div>';

}

else {echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form></div>' . "\n";}

 

 

?>

</td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

 

Not sure if I've entirely understood your question but hopefully that's assisted a bit? If not please advise.

 

Greg

Edited by gregp
Link to comment
Share on other sites

Hi Greg,

 

Here is the code I'm using. Can you see anything that might be wrong with it? Might it be to do with the name of the payment module I'm using. I think its just called Paypal Standard. One of the ones that is there when first installing OSCommerce.

 

Thanks so far. Really appreciate it.

 

 

<!-- body_text //-->

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td>

<?php

if (isset($$payment->form_action_url)) {

$form_action_url = $$payment->form_action_url;

} else {

$form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');

}

 

echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');

?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_confirmation.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<?php

if ($sendto != false) {

?>

<td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr><!-- PWA BOF -->

<td class="main"><?php echo '<b>' . HEADING_DELIVERY_ADDRESS . '</b>' . (((! tep_session_is_registered('customer_is_guest')) || (defined('PURCHASE_WITHOUT_ACCOUNT_SEPARATE_SHIPPING') && PURCHASE_WITHOUT_ACCOUNT_SEPARATE_SHIPPING=='yes') )? ' <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>':''); ?></td>

</tr><!-- PWA EOF -->

<tr>

<td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br>'); ?></td>

</tr>

<?php

if ($order->info['shipping_method']) {

?>

<tr>

<td class="main"><?php echo '<b>' . HEADING_SHIPPING_METHOD . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>

</tr>

<tr>

<td class="main"><?php echo $order->info['shipping_method']; ?></td>

</tr>

<?php

}

?>

</table></td>

<?php

}

?>

<td width="<?php echo (($sendto != false) ? '70%' : '100%'); ?>" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<?php

if (sizeof($order->info['tax_groups']) > 1) {

?>

<tr>

<td class="main" colspan="2"><?php echo '<b>' . HEADING_PRODUCTS . '</b> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>

<td class="smallText" align="right"><b><?php echo HEADING_TAX; ?></b></td>

<td class="smallText" align="right"><b><?php echo HEADING_TOTAL; ?></b></td>

</tr>

<?php

} else {

?>

<tr>

<td class="main" colspan="3"><?php echo '<b>' . HEADING_PRODUCTS . '</b> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>

</tr>

<?php

}

 

for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {

echo ' <tr>' . "\n" .

' <td class="main" align="right" valign="top" width="30">' . $order->products[$i]['qty'] . ' x</td>' . "\n" .

' <td class="main" valign="top">' . $order->products[$i]['name'];

 

if (STOCK_CHECK == 'true') {

echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);

}

 

if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {

for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {

echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';

}

}

 

echo '</td>' . "\n";

 

if (sizeof($order->info['tax_groups']) > 1) echo ' <td class="main" valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";

 

echo ' <td class="main" align="right" valign="top">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '</td>' . "\n" .

' </tr>' . "\n";

}

?>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="main"><b><?php echo HEADING_BILLING_INFORMATION; ?></b></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr><!-- PWA BOF -->

<td class="main"><?php echo '<b>' . HEADING_BILLING_ADDRESS . '</b> <a href="' . ((tep_session_is_registered('customer_is_guest'))?tep_href_link(FILENAME_CREATE_ACCOUNT, 'guest=guest', 'SSL'):tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL')) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>

</tr><!-- PWA EOF -->

<tr>

<td class="main"><?php echo tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br>'); ?></td>

</tr>

<tr>

<td class="main"><?php echo '<b>' . HEADING_PAYMENT_METHOD . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>

</tr>

<tr>

<td class="main"><?php echo $order->info['payment_method']; ?></td>

</tr>

</table></td>

<td width="70%" valign="top" align="right"><table border="0" cellspacing="0" cellpadding="2">

<?php

if (MODULE_ORDER_TOTAL_INSTALLED) {

echo $order_total_modules->output();

}

?>

</table></td>

</tr>

</table></td>

</tr>

<?php

if (is_array($payment_modules->modules)) {

if ($confirmation = $payment_modules->confirmation()) {

?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="main"><b><?php echo HEADING_PAYMENT_INFORMATION; ?></b></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" cellspacing="0" cellpadding="2">

<tr>

<td class="main" colspan="4"><?php echo $confirmation['title']; ?></td>

</tr>

<?php

for ($i=0, $n=sizeof($confirmation['fields']); $i<$n; $i++) {

?>

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main"><?php echo $confirmation['fields'][$i]['title']; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main"><?php echo $confirmation['fields'][$i]['field']; ?></td>

</tr>

<?php

}

?>

</table></td>

</tr>

</table></td>

</tr>

<?php

}

}

?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<?php

if (tep_not_null($order->info['comments'])) {

?>

<tr>

<td class="main"><?php echo '<b>' . HEADING_ORDER_COMMENTS . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main"><?php echo nl2br(tep_output_string_protected($order->info['comments'])) . tep_draw_hidden_field('comments', $order->info['comments']); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<?php

}

?>

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="right" class="main">

<?php

if (is_array($payment_modules->modules)) {

echo $payment_modules->process_button();

}

 

?>

 

<style>

#warningdiv {float:right; position:relative;}

#confirmbutton {position:absolute; top:0; right:0; z-index:10;}

#hideimage {position: absolute; top: 0; right: 0; z-index:20; border:2px solid #900; padding: 5px; background-color: #fff; color: #900; width: 500px;}

.stopimage {float: right;}

.stopimage img {border: none;}

 

</style>

<div id="warningdiv">

<div id="confirmbutton">

<?php

if ($GLOBALS['payment'] == 'paypal') {

echo tep_image_submit('button_pay_now.gif', IMAGE_BUTTON_PAY_NOW) . '</form></div>' . "\n";

print '<div id="hideimage"><span class="stopimage"><img src="images/stop.gif" /></span>' . TEXT_PAYPAL_WARNING . '<br /><a href="#" onClick="showDiv(\'hideimage\');return false;">'. TEXT_PAYPAL_WARNING_CONFIRM . '</a></div>';

}

 

 

else {echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form></div>' . "\n";}

 

 

?>

?>

</td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td width="50%" align="right"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>

<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>

</tr>

</table></td>

Edited by lindendesign

Craig Shaw

Linden Design

Link to comment
Share on other sites

Perhaps before I go any further, could you tell me the problem?? :) You've said it "doesn't work" but that's a pretty broad fault description. The only thing that stands out from what's below is that it's not the whole page source so I can't see if you've included the Javascript as per the readme.

Link to comment
Share on other sites

I had a few formatting problems partly due to my layout but mostly with IE-FF differences. One thing I did notice, with this installed and using modules other than paypal there are a couple of orphaned <divs> laying around. My solution was to include them in the php statement;

 

<tr>
<?php
 if (is_array($payment_modules->modules)) {
   echo $payment_modules->process_button();
 }
 if ($GLOBALS['payment'] == 'paypal_standard') {
   echo '<td align="right" valign="top" class="main"><div id="warningdiv">
           <div id="confirmbutton">';
   echo tep_image_submit('button_to_paypal.gif', IMAGE_BUTTON_PAY_NOW) . '</div>' . "\n";
   print '<div id="hideimage">' . TEXT_PAYPAL_WARNING . '<br><br><span style="padding-left:350px"><a href="#" onClick="showDiv(\'hideimage\');return false;">'. TEXT_PAYPAL_WARNING_CONFIRM . '</a></span></div></div>';
 }
   else {echo '<td align="right" class="main">' . tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . "\n";}
?>
           </td>
         </tr>

 

I also replaced

define('TEXT_PAYPAL_WARNING_CONFIRM', 'Yes I understand this, I will follow these instructions after payment.'); 

with

define('TEXT_PAYPAL_WARNING_CONFIRM', '<b>' . tep_image_button('button_understand.gif', IMAGE_BUTTON_UNDERSTAND) . '</b>');

as an image button was more intuitive for me (you need to make your own button though).

 

Hope this may help someone. Take a look here if interested (please, no dummy orders).

 

Kudos to the author, very effective.

G

Link to comment
Share on other sites

Nice work JG... feel free to update the code in the repository with your modifications, particularly the code. If the code can be improved then so much the better. As you say the 'I understand' button is themed to your site, perhaps you could include that but retain the original text code in case some people want to just use a text link?

 

Also did you find the formatting problems in v1.2? IE8 didn't play nicely with v1.0 or 1.1 but the 1.2 update fixed that for me.

 

I like your wording too... not quite as 'pointed'! I guess I've put up with people not following more and more obvious instructions for so long now I have little patience for people who don't read the obvious! ;)

 

Greg

Edited by gregp
Link to comment
Share on other sites

Hi Greg.

 

I found the problem!

 

I had to change where it said

 

if ($GLOBALS['payment'] == 'paypal')

 

to

 

if ($GLOBALS['payment'] == 'paypal_standard')

 

That seemed to do the trick.

 

Thanks for your help :).

 

Just wondering, how easy would it be to show a pop-up box when they click the normal confirm order button (if they choose paypal), that warns them like this? Instead of having the div that hides.

Craig Shaw

Linden Design

Link to comment
Share on other sites

Great! Yeah I guess that's a risk if the payment modules you're using have non-standard names. Glad you sorted it out.

 

I did think about the popup box but thought this would be easier to do (for me anyway). I do know that if you don't select a delivery method and try to proceed it pops up a box so it'd just be a matter of hacking that script for this page. I think this is a bit easier to control though in that you can have whatever wording / layout / style you want rather than being restricted by what the browser throws up.

Link to comment
Share on other sites

  • 3 weeks later...

Hi Greg.

 

I found the problem!

 

I had to change where it said

 

if ($GLOBALS['payment'] == 'paypal')

 

to

 

if ($GLOBALS['payment'] == 'paypal_standard')

 

That seemed to do the trick.

 

Thanks for your help :).

 

Just wondering, how easy would it be to show a pop-up box when they click the normal confirm order button (if they choose paypal), that warns them like this? Instead of having the div that hides.

 

Hi Craig,

 

I spent the last 6 hours installing Greg's add-on but, like you, the warning did not show up during checkout. I added "_standard" to "paypal" and now it works beautifully! Thank you for posting your fix!!

 

Lisa

Lisa's Stitching Post

Edited by lisapeden
Link to comment
Share on other sites

Hi Craig,

 

I spent the last 6 hours installing Greg's add-on but, like you, the warning did not show up during checkout. I added "_standard" to "paypal" and now it works beautifully! Thank you for posting your fix!!

 

Lisa

Lisa's Stitching Post

 

No prob Lisa,

 

Glad it helped.

 

Good work Greg, Really liking this add on. Has solved my problem.

 

Regarding the none standard name, this was the one that came with a normal installation of oscommerce.

Craig Shaw

Linden Design

Link to comment
Share on other sites

Hi Greg,

 

When I make a purchase from my store and complete my Paypal payment, I get a window that says something about waiting to be redirected to my site--or to "click here" to reload if it takes more than 5 seconds.

 

When I tried to edit the message that is inside your box with the stop sign (with Dreamweaver), I received error codes during checkout.

 

Could you please share the code for this message so I can change the wording?

 

"define('TEXT_PAYPAL_WARNING', 'Note: You are about to be directed to PayPal\'s website to submit payment. Once you have paid for your order, you <b>*MUST*</b> click the <b>Return to YOURSTORENAME</b> button on PayPal\'s site to complete your order. Your order WILL NOT be received unless you follow this procedure!');

define('TEXT_PAYPAL_WARNING_CONFIRM', 'Yes I understand this, I will follow these instructions after payment.')"

 

Many thanks to you, Greg, for creating this contribution!

 

Lisa Peden

Lisa's Stitching Post

Link to comment
Share on other sites

Not sure I understand what's not working Lisa... I just went through your checkout procedure and everything worked up to the point I would have paid for my order within PayPal. But maybe you haven't added your changes yet...

 

It's normal to receive that 'wait five seconds or click' message on completion of payment, a standard PayPal thing.

 

As far as the 'code' for that message, you've got it right there, not sure what you're looking for? You can certainly change that wording if you need; the trick you MUST escape any apostrophes with a backslash, as you can see where I've put PayPal\'s. An apostrophe tells the system it's the end of the line, if you escape it it treats the following character as a literal character. Obviously leave everything as it is and just change the text between the apostrophe before Note and after procedure!

 

Perhaps if that hasn't addressed it feel free to post back with some more details.

 

Greg

Link to comment
Share on other sites

Not sure I understand what's not working Lisa... I just went through your checkout procedure and everything worked up to the point I would have paid for my order within PayPal. But maybe you haven't added your changes yet...

 

It's normal to receive that 'wait five seconds or click' message on completion of payment, a standard PayPal thing.

 

As far as the 'code' for that message, you've got it right there, not sure what you're looking for? You can certainly change that wording if you need; the trick you MUST escape any apostrophes with a backslash, as you can see where I've put PayPal\'s. An apostrophe tells the system it's the end of the line, if you escape it it treats the following character as a literal character. Obviously leave everything as it is and just change the text between the apostrophe before Note and after procedure!

 

Perhaps if that hasn't addressed it feel free to post back with some more details.

 

Greg

 

Hi again Greg,

 

Thanks for your order (lol)!

 

Because of the error message I received when I changed your checkout warning text, I had to revert back to your default text until I could work on it again (which is why it was working when you placed your order). I just finished working on it again and.....ta-dah!!! YOU WERE RIGHT! I was using apostrophes without putting in backslashes! I am very much a newbie at PHP and didn't know that needed to be done.

 

Many of my customers are LOLs (little old ladies) and some of them have never purchased fabric online before, so I have been getting lots of incomplete orders. Can't wait to see if they're able to follow the instructions in the warning!

 

Thanks a million, Greg. You're a life saver!

 

Lisa Peden

Lisa's Stitching Post

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...