Prohibited Items (Google Checkout and PayPal)

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
calvis
Rear Admiral (RADM)
Rear Admiral (RADM)
Posts: 710
Joined: Tue Jan 27, 2004 3:57 pm
Location: Redmond, WA

Prohibited Items (Google Checkout and PayPal)

Post by calvis » Wed Feb 16, 2011 12:53 pm

There is a box in product details to prevent offending products (that are listed in Google Checkout user's agreement) from being purchased via Google Checkout. PayPal has a similar agreement, but I am not seeing anyway to prevent offending products being purchased via PayPal.

How are others handling this?

Thanks
Able Customer Since 1999 Currently Running on GOLD R12 SR1 and PCI Certified.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Prohibited Items (Google Checkout and PayPal)

Post by jmestep » Wed Feb 16, 2011 2:08 pm

We handled it on one site by making the Paypal payment method not visible if the basket contained a product was checked to not display for Google checkout.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Prohibited Items (Google Checkout and PayPal)

Post by Mike718NY » Wed Jun 01, 2011 2:38 pm

jmestep wrote:We handled it on one site by making the Paypal payment method not visible if the basket contained a product was checked to not display for Google checkout.
Good idea. But exactly how did you do this? Do you need the source code to do this?

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Prohibited Items (Google Checkout and PayPal)

Post by jmestep » Thu Jun 02, 2011 5:24 am

No, we didn't need the source code. I don't remember exactly, but I think I did it on the conlib on the basket page where the paypal express and google checkout button display.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Prohibited Items (Google Checkout and PayPal)

Post by mazhar » Sat Jun 04, 2011 6:02 am

Mike718NY wrote:
jmestep wrote:We handled it on one site by making the Paypal payment method not visible if the basket contained a product was checked to not display for Google checkout.
Good idea. But exactly how did you do this? Do you need the source code to do this?
Edit Website/ConLib/PayPalExpressCheckoutButton.ascx.cs and then locate following code

Code: Select all

 // FIND THE PAYPAL GATEWAY
 PayPalProvider provider = StoreDataHelper.GetPayPalProvider();
and update it like

Code: Select all

Basket basket = Token.Instance.User.Basket;
foreach (BasketItem item in basket.Items)
{
            if (item.OrderItemType == OrderItemType.Product)
                {
                    if (item.Product.IsProhibited)
                    {
                        this.Visible = false;
                        return;
                    }
         }        
}
// FIND THE PAYPAL GATEWAY
PayPalProvider provider = StoreDataHelper.GetPayPalProvider();
Hopefully that will do the trick

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Prohibited Items (Google Checkout and PayPal)

Post by Mike718NY » Mon Jun 06, 2011 8:22 am

thanks. . but will this take PayPal out the "Payment Method" options on the Checkout page?

Is "PayPal Express" the one where the user is taken directly to paypal without having to
enter their billing/shipping address at the store?

I think I'm using the regular paypal where the user fills out billing/shipping and then
is sent to paypal.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Prohibited Items (Google Checkout and PayPal)

Post by mazhar » Mon Jun 06, 2011 10:11 am

Well if you want to take away it from payment methods as well then you need to do the same in Website/Checkout/PaymentMethodForms/PayPalPaymentForm.ascx.cs file.

Post Reply