Zen Cart Logo
Forums / PayPal Express Checkout support / removing unit price, and quantity from paypal page

removing unit price, and quantity from paypal page

Views: 2,952

Results 1 to 7 of 7
10 Aug 2011, 3:27 PM
#1
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

removing unit price, and quantity from paypal page

Hi,

V.1.3.9H
tesoreriabahai dot org

I have hidden the product unit price, and quantity in zen cart, but I noticed that when using paypal express, on the review (final) page in paypal they are shown, is there some way to hide them, and leave only the total amount?

Thank you

10 Aug 2011, 5:20 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: removing unit price, and quantity from paypal page

Why are you hiding prices from your customers?

10 Aug 2011, 7:37 PM
#3
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: removing unit price, and quantity from paypal page

Not really hiding, the site is to have contributions (donations), and only members of the bahá'í faith can contribute, and I followed kuroi's suggestion here:
http://www.zen-cart.com/forum/showthread.php?t=181682

10 Aug 2011, 7:50 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: removing unit price, and quantity from paypal page

So, you're trying to hide the 1 EURO unit price so that the only thing showing is the total amount they're buying?
It the 1 EURO price really confusing people? It only shows in that one place. Everywhere else in the PayPal process it's going to show the aggregate final purchase amount, and the customer will always be confirming the final amount, and not the individual unit price.

I think this is the first time someone has ever wanted to hide the unit price ... everyone else has begged for showing the unit price with all the line-item details.
There are lots of sites using the same donation approach as kuroi described, and they don't seem to be bothered by the unit price being displayed.

To do what you're asking, while not recommended, can be accomplished by editing /includes/modules/payment/paypalwpp.php and adding an extra line as shown:```
function getLineItemDetails($restrictedCurrency) {
[B] return array();[/B]
global $order, $currencies, $order_totals, $order_total_modules;

10 Aug 2011, 8:57 PM
#5
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: removing unit price, and quantity from paypal page

It the 1 EURO price really confusing people?
Well the site, though being live, is not yet known by the potential users, hence I don't know how confusing it can be, I'm assuming, and trying to make as plain as possible.

Anyhow, if you do not recommended I guess I'd better leave it as it is, since you know better.
Would it be possible to add a css rule to not display it, so the code is not altered, if yes can you please give me the right syntax, and where to insert it?

Thank you.

10 Aug 2011, 9:18 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: removing unit price, and quantity from paypal page

If you're asking about using CSS for hiding something from display while on the PayPal website, I'm sorry, I can't help you. That's under their control.

Once the customer gets to the PayPal site, the display is up to PayPal. You can change colours and graphics there, but CSS is another story.

10 Aug 2011, 9:26 PM
#7
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: removing unit price, and quantity from paypal page

I thought I could have put it in the /includes/modules/payment/paypalwpp.php
But obviously I thought wrong.