how to change name item name to product id/number to Paypal in cs-cart 4.13.
please help
It would require a customization to append the product_code to the product description (or to replace it). Providing an example of what you have and what you want would be helpful.
It would require a customization to append the product_code to the product description (or to replace it). Providing an example of what you have and what you want would be helpful.
does it need code the paypal func in cpanel?
it requires changes in the cs-cart paypal addon. Not sure what your reference is to cpanel.
it requires changes in the cs-cart paypal addon. Not sure what your reference is to cpanel.
yes..i mean addon
can you teach me ..what to change in paypal addon?
thank you
If you use PayPal Express, in the following file
app/addons/paypal/paypal_express.functions.php
replace
$order_data['L_PAYMENTREQUEST_0_NAME' . $product_index] = $product['product'];
with
$order_data['L_PAYMENTREQUEST_0_NAME' . $product_index] = $product['product_id'];
For other PayPal services open
app/addons/paypal/func.php
and change
$v['product'] = strip_tags($v['product']);
to
$v['product'] = strip_tags($v['product_id']);
(!) Not tested
If you use PayPal Express, in the following file
app/addons/paypal/paypal_express.functions.php
replace
$order_data['L_PAYMENTREQUEST_0_NAME' . $product_index] = $product['product'];with
$order_data['L_PAYMENTREQUEST_0_NAME' . $product_index] = $product['product_id'];For other PayPal services open
app/addons/paypal/func.php
and change
$v['product'] = strip_tags($v['product']);to
$v['product'] = strip_tags($v['product_id']);(!) Not tested
thank you
really apreciated
You are welcome! Hope it helps you