AbanteCart Community

eCommerce construction => General Discussion => Topic started by: Siri M. on March 11, 2014, 10:48:18 AM

Title: Remove product name from invoice
Post by: Siri M. on March 11, 2014, 10:48:18 AM
Hi, very nice cart. I'm happy with everything so far and I will be making a donation soon.

Perhaps I am overlooking this option, but I am wondering if it is possible to remove the name of the product once it goes into the billing phase, such as into Paypal, etc. As I will be selling some things of a personal and intimate nature, I would prefer if it only lists the product number, or the SKU number on the invoice. This is to protect customers privacy. For example, instead of saying "One small-size Sexy Nurse Costume - $65.95." the invoice will just say "One 235644 - $65.95."

Is this possible? Sorry if I am overlooking something in the menus.

Thanks,
Siri.
Title: Re: Remove product name from invoice
Post by: abantecart on March 11, 2014, 02:53:00 PM
This is possible with code modification. This is depending on what paypal payment you use.

Example of standard paypal:
Look for file /extensions/default_pp_standart/storefront/controller/responses/extension/default_pp_standart.php

Locate code:
Code: [Select]
$this->data['products'][] = array(
'name'     => $product['name'],
'model'    => $product['model'],
'price'    => $this->currency->format($product['price'], $order_info['currency'], $order_info['value'], FALSE),
'quantity' => $product['quantity'],
'option'   => $option_data,
'weight'   => $product['weight']
);

Edit it to the way you need to modify the name
Title: Re: Remove product name from invoice
Post by: Siri M. on March 12, 2014, 12:48:52 AM
Thanks. Works great. Now it just shows the model name. Perfect.

Thanks for your time.