nopcart for Royal Mail UK & PayPal

Completed modifications to the NOP Shopping Cart. Additions, modifications, and more.

Moderators: Koibito, Stefko, Randy, Rosey

nopcart for Royal Mail UK & PayPal

Postby chueewowee » Wed May 30, 2007 3:42 pm

I'd like to give something back to a great outfit, nopcart.

With the inspiration from Koibito's 'Kamya' nopcart and its precedents, I've modified a nopcart with integrated royal mail for the UK & PayPal. It includes 2007 postage rates, and options to post inland 1st and second class, European Airmail WorldWide Airmail and WorldWide Surfacemail.
The monetary symbol is UTF-8 encoded £ throughout.
Other payment gateways may be activated.
These are exact postage rates by weight (up to 20KG), and transparent for the customer.
Checks may be taken as an option.
Weights are output in grams
Checkout.html takes you to the final checkout.pl where a buttontakes you to paypal
Email is sent to customer and business, as well as order written to cvs.
Handling/packaging charges are another issue, and can be inserted as a fixed charge addition to the shipping/postage total.

Please make sure to upload in ascii (not binary mode), and make sure your servers pages are serving in UTF-8.

Problems to overcome:
The postage and item subtotals are shown in PayPal, but the Total is given there as 'Subtotal with Postage". This is a tax issue which i hope to sort, with help or luck.

Download link and Instructions:
You need to edit the checkout.pl to suit your sendmail and paypal account.
The checkout.html is dedicated to this nopcart functions, and so is the perl checkout.



Download Link is on this page:

http://www.mightyzero.com/Archives/2007/May/nopcartforUKwithRoyalmai.html
chueewowee
WebMaster
 
Posts: 64
Joined: Mon Apr 16, 2007 6:57 am
Location: london, UK

Postby Koibito » Wed May 30, 2007 11:38 pm

Very nice :-)
John
Koibito
Site Admin / Guru
 
Posts: 918
Joined: Sun May 28, 2006 1:59 am
Location: New Jersey, USA

Problems to overcome:

Postby chueewowee » Thu May 31, 2007 3:45 pm

I checked with tests to paypal (real) as opposed to sandbox, and found that the SUbtotal with Postage problem is not an issue there. SOme bug/error with the sandbox.

The postage and item subtotals are shown in PayPal, but the Total is given there as 'Subtotal with Postage". This is a tax issue which i hope to sort, with help or luck
.

What I get there is, for example:

£14.00 GBP
Shipping & Handling: £1.20 GBP
Total Amount: £15.20 GBP

A link to 'shopping cart' takes you to an itemised view (on paypal's site)

OK, then, Enjoy!
chueewowee
WebMaster
 
Posts: 64
Joined: Mon Apr 16, 2007 6:57 am
Location: london, UK

Re: Error accesing website!

Postby chueewowee » Tue Jul 31, 2007 10:25 am

antirty2 wrote:Hey, this all sounds amazing... but there is an error accessing the file on your/the website... please send or something! :)


OK use http://mightyzero.nfshost.com/ as the stub of the url instead.
I forgot to update the domain registration, but that will work.
John
chueewowee
WebMaster
 
Posts: 64
Joined: Mon Apr 16, 2007 6:57 am
Location: london, UK

reply

Postby chueewowee » Thu Aug 02, 2007 8:39 am

shopping cart empty:
off the top of my head (and this is a common problem - passing the variables along):
1. did you code the products with values for weight and price etc?
2. Have you put your own sandbox address in the perl checkout file?

Payments:

payment is transferred from the customers bank to paypal who ten pay you.

Don't hesitate to ask me a question again. I may be able to be more helpful upon reflection, and taking a peek myself, as I am busy on other stuff at the moment.

I do understand problems like this are frustrating, and tedious. Coding your own cart does take some perseverance, which means a rest in between and searching for answers. SO it takes days longer....for small problems.
The beauty is that when you've cracked it, you have a customisable and slick cart.


By the way there is a form circulating on the board to use instead of the checkout form which gathers the hidden variables and prints them to screen, so you can check to see which product/checkout details are being passed
chueewowee
WebMaster
 
Posts: 64
Joined: Mon Apr 16, 2007 6:57 am
Location: london, UK

email I received

Postby chueewowee » Thu Aug 02, 2007 12:00 pm

Hi, I think you need to edit the perl checkout file and put your own sandbox and email settings in there. At the moment it is going to my address.

I think you wrote me a message on the forum about 'cart empty' and this is why.

Another thing to do , is to put GBP in the same file instead of £, if your email doesn't write £ (due to sever side email code).


John.

--On 1 August 2007 20:58:36 -0500 Antirty@hotmail.com wrote:

>
> A new order has been received. A summary of this order appears below.
>
> Order Date: August 02, 2007 02:58:36
>
> Bill To:
> --------
> James Ball
> The Crescent
> Santa Monica
> Firefox City, CA BN3 1EE
>
>
> Antirty@hotmail.com
>
>
> Ship To:
> --------
>
>
>
> ,
>
>
>
> Qty Price(?) Product ID - Product Name
> =====================================================================
> 01 ?99.00 RK1-Sat2408 - Reiki Level 1
> =====================================================================
> SUBTOTAL:
> TOTAL: ?99.00
>
> POSTAGE: ?0.00
>
>
> Comments:
> ---------
>
>
>
chueewowee
WebMaster
 
Posts: 64
Joined: Mon Apr 16, 2007 6:57 am
Location: london, UK

OK dont panic - check your header.

Postby chueewowee » Mon Aug 06, 2007 8:49 pm

Hi , in that case, check you have entered the correct URL for your domain in the Header.html which has the includes for the checkout.pl (i.e. nopcart.js).

E.G.

Code: Select all
<link rel="stylesheet" type="text/css" href="http://domain.co.uk/_css/checkout.css" media="screen" />
<script type="text/javascript" src="http://domain.co.uk/cart/language-en.js"></script>
<script type="text/javascript" src="http://domain.co.uk/cart/nopcart.js"></script>
</head>


I have updated the download with useful instructions for all settings, stylesheets and a more complete set of files and directories:

http://mightyzero.nfshost.com/Archives/ ... almai.html
chueewowee
WebMaster
 
Posts: 64
Joined: Mon Apr 16, 2007 6:57 am
Location: london, UK

Postby chueewowee » Wed Aug 22, 2007 10:28 pm

I expect you need to comment out the paypal code in the perl checkout that relates to shipping.
chueewowee
WebMaster
 
Posts: 64
Joined: Mon Apr 16, 2007 6:57 am
Location: london, UK


Return to Modifications

Who is online

Users browsing this forum: No registered users and 0 guests

cron