Hi,
This morning I found that an order had been placed on the site and that the 'person' making the order had not made payment through Paypal - currently the only means to make a payment on this shop.
I was initially suspect when I looked at the address which doesn't seem to be valid.
How is it possible to place the order without any record of it appearing in Paypal? Is this something that I can prevent? Is there potentially a loophole here, I dunno!
Any words of wisdom from the more experienced? Opinions?
- osCommerce Support Forum
- → Viewing Profile: Topics: AndrewRavenwood
Latest News: (loading..)
About Me
Any similarities to persons both living or dead are purely coincidental.
Community Stats
- Group Members
- Active Posts 54
- Profile Views 1,686
- Age Age Unknown
- Birthday Birthday Unknown
-
Real Name
Andrew
-
Gender
Male
Contact Information
0
Neutral
User Tools
Friends
AndrewRavenwood hasn't added any friends yet.
Latest Visitors
Topics I've Started
Bypassing the payment step?
23 August 2012 - 10:36 AM
After login proceed to selected page
18 July 2012 - 02:16 PM
Hi all,
If a site-user adds item to the cart then clicks the checkout button they are redirected to the login page unless they are already signed in. However upon signing in the default behaviour appears to be to redirect them to the site home page where a better user experience would be to have them redirected to the the page that they were trying to access in the first place.
Having examined login.php I believe the code that handles this behaviour begins at around line 68:-
if (sizeof($navigation->snapshot) > 0) {
$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);
$navigation->clear_snapshot();
tep_redirect($origin_href);
} else {
tep_redirect(tep_href_link(FILENAME_DEFAULT));
}
Which in English appears to say:-
If the variable $navigation has been set create a new variable $origin and give it the link to the page stored in $navigation or else redirect to the site home page.
If I am reading this right then I have an issue whereby the code in application_top.php used to set the referring page isn't doing this.
Additionally I need to grab the url originally requested and feed that into the $navigation variable in order to achieve my desired result.
I wondered if anyone had previously solved this? I guess I'd like an actual OSCommerce way of sorting this out before I start messing around with the code.
There is a community addon designed to redirect to the referring page http://addons.oscommerce.com/info/3129/ - Which is missing a closing bracket and even when fixed doesn't appear to work, at least not in a 2.3 installation.
If a site-user adds item to the cart then clicks the checkout button they are redirected to the login page unless they are already signed in. However upon signing in the default behaviour appears to be to redirect them to the site home page where a better user experience would be to have them redirected to the the page that they were trying to access in the first place.
Having examined login.php I believe the code that handles this behaviour begins at around line 68:-
if (sizeof($navigation->snapshot) > 0) {
$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);
$navigation->clear_snapshot();
tep_redirect($origin_href);
} else {
tep_redirect(tep_href_link(FILENAME_DEFAULT));
}
Which in English appears to say:-
If the variable $navigation has been set create a new variable $origin and give it the link to the page stored in $navigation or else redirect to the site home page.
If I am reading this right then I have an issue whereby the code in application_top.php used to set the referring page isn't doing this.
Additionally I need to grab the url originally requested and feed that into the $navigation variable in order to achieve my desired result.
I wondered if anyone had previously solved this? I guess I'd like an actual OSCommerce way of sorting this out before I start messing around with the code.
There is a community addon designed to redirect to the referring page http://addons.oscommerce.com/info/3129/ - Which is missing a closing bracket and even when fixed doesn't appear to work, at least not in a 2.3 installation.
Order confirmation email - Company logo
03 July 2012 - 10:47 AM
Hi all,
I was pretty sure that this one would be an easy win, but it seems as though it's not quite as straight forward as I had thought.
When the customer receives an email confirmation of their order I thought that it would be a nice touch of professionalism to have that email contain the site logo, seems an obvious enough request!
So I tracked down the php file that concatenates the email and adapted it thus:-
$email_order = '<a href="siteHref"><img src="logoHref' /></a>';
$email_order .= STORE_NAME . "\n" .
The function tep_mail() apparently allows the variable $email_text to contain HTML entities, so I assumed that this would just work. However it does not!
I googled this and found a few questions on a few message boards going back 4-5 years, but no answers. I also note that there is at least one contribution that was maintained up until V2.2 of OSCom but I don't really want to implement something like this at this stage in the game.
Probably should mention that the store is set to send out HTML emails via the admin panel and I've successfully produced a "welcome to the store" html email.
I'm interested in discovering if anyone has managed to achieve the addition of a company logo on this particular email in the past?
I was pretty sure that this one would be an easy win, but it seems as though it's not quite as straight forward as I had thought.
When the customer receives an email confirmation of their order I thought that it would be a nice touch of professionalism to have that email contain the site logo, seems an obvious enough request!
So I tracked down the php file that concatenates the email and adapted it thus:-
$email_order = '<a href="siteHref"><img src="logoHref' /></a>';
$email_order .= STORE_NAME . "\n" .
The function tep_mail() apparently allows the variable $email_text to contain HTML entities, so I assumed that this would just work. However it does not!
I googled this and found a few questions on a few message boards going back 4-5 years, but no answers. I also note that there is at least one contribution that was maintained up until V2.2 of OSCom but I don't really want to implement something like this at this stage in the game.
Probably should mention that the store is set to send out HTML emails via the admin panel and I've successfully produced a "welcome to the store" html email.
I'm interested in discovering if anyone has managed to achieve the addition of a company logo on this particular email in the past?
Devising an order number?
28 June 2012 - 09:11 AM
I've been thinking about how the order number appears to the customer.
As you know when a customer places an order that order is given an idea in the database (in simple terms). That number begins at 1 and multiplies by 1 as each order is placed.
Personally I think that makes the shop feel a little small-time... "Oh, I'm only the 23rd person to buy anything from this shop....hope they are legit!".
Therefore I was thinking of concocting a more complex order ID for the shop that I am working on. Something along the lines of a letter string like the first three letters of the month, the year then the order ID. Although I might run into some issues maintaining this wherever it's required.
So I'm curious; What have others done in the past? Happy with the default method employed in OSCommerce? Never even considered it?
Genuinely interested in your views
As you know when a customer places an order that order is given an idea in the database (in simple terms). That number begins at 1 and multiplies by 1 as each order is placed.
Personally I think that makes the shop feel a little small-time... "Oh, I'm only the 23rd person to buy anything from this shop....hope they are legit!".
Therefore I was thinking of concocting a more complex order ID for the shop that I am working on. Something along the lines of a letter string like the first three letters of the month, the year then the order ID. Although I might run into some issues maintaining this wherever it's required.
So I'm curious; What have others done in the past? Happy with the default method employed in OSCommerce? Never even considered it?
Genuinely interested in your views
Paypal integration - Cart not being updated
26 June 2012 - 10:16 AM
My latest Paypal integration issue!
I have tested the user journey as a buyer that completes payment and chooses to return to the originating site. This works as expected.
There are inevitably going to be buyers that after making the purchase either close the browser window or continue to their paypal account instead of returning to the originating site. The issue I am seeing is that if they don't return to the shop, although their order is placed the cart still contains the product in other words the cart is not being emptied upon a successful purchase.
My assumption on how OScom works is that the cart contents are stored on the customer's computer as a cookie and because they are not returning to the shop the cookie is not being updated.
How have others combated this issue?
I have tested the user journey as a buyer that completes payment and chooses to return to the originating site. This works as expected.
There are inevitably going to be buyers that after making the purchase either close the browser window or continue to their paypal account instead of returning to the originating site. The issue I am seeing is that if they don't return to the shop, although their order is placed the cart still contains the product in other words the cart is not being emptied upon a successful purchase.
My assumption on how OScom works is that the cart contents are stored on the customer's computer as a cookie and because they are not returning to the shop the cookie is not being updated.
How have others combated this issue?
- osCommerce Support Forum
- → Viewing Profile: Topics: AndrewRavenwood
- Privacy Policy
- Forum Rules ·



Find content