Zen Follower
- Join Date:
- Feb 2006
- Location:
- UK
- Posts:
- 300
- Plugin Contributions:
- 0
Following PayPal error after upgrade to 1.3.5
I see the following in the description at the paypal site and ideas ?
MODULE_PAYMENT_PAYPAL_PURCHASE_DECRIPTION_TITLE
Views: 4,455
Zen Follower
I see the following in the description at the paypal site and ideas ?
MODULE_PAYMENT_PAYPAL_PURCHASE_DECRIPTION_TITLE
Zen Follower
To be clear, I should see the description of the item purchased, this should be passed to PayPal, but the description is not being passed to paypal, instead the constant MODULE_PAYMENT_PAYPAL_PURCHASE_DECRIPTION_TITLE is placed in instead ... any help?
Zen Follower
Ok had a look in the paypal.php and found what looks like a typo error?
zen_draw_hidden_field('item_name', MODULE_PAYMENT_PAYPAL_PURCHASE_DECRIPTION_TITLE)
So I added an S to the word DECRIPTION and made it DESCRIPTION and uploaded but it didn't fix it ... I am still looking any help greatly appreciated, or am I the only one seeing this problem ?
Oba-san
Using the Tools ... Developer's Tool Kit ...
Do a search in the bottom input box for:
MODULE_PAYMENT_PAYPAL_PURCHASE_DECRIPTION_TITLE
You should see it in two files:
/includes/languages/english/modules/payment/paypal.php
Line #46 : define('MODULE_PAYMENT_PAYPAL_PURCHASE_DECRIPTION_TITLE', STORE_NAME . ' Purchase');
/zencart_v135/includes/modules/payment/paypal.phpLine #188 : zen_draw_hidden_field('item_name', MODULE_PAYMENT_PAYPAL_PURCHASE_DECRIPTION_TITLE ) .
Zen Follower
Only found it here /var/www/html/includes/modules/payment/paypal.php Linda
Zen Follower
I have now made sure that both files exist in the appropriate places, however I still get the same error as before. A tad disconcerting that the files weren't already in place I have to admit .. I have also uninstalled and re-installed the module, then tried an order, but still get the aforementioned error. It appears to work ok, but just not giving the detail of the item.
Obaa-san
but just not giving the detail of the item.
Unless you have made modifications, the stock PayPal Module does not pass the item details. They are contained in the Order Confirmation email that is sent from the shop.
Zen Follower
The zen cart shouldn't put the detail in here?

Sensei
Zen Cart sends the cart "total" to PayPal for payment.
All the line-item details are stored in Zen Cart, and are visible to the customer in their My Account area, and on the order-confirmation email. The Administrator can see all the order details in the Admin section, along with all other orders.
Zen Follower
OK got the image to work, surely the cart should put the products information here, and pass it to PayPal, else how is paypal to know what one is purchasing ?

Sensei
Perhaps you might go back up and read Ajeh's post.
MODULE_PAYMENT_PAYPAL_PURCHASE_DECRIPTION_ TITLE is showing BECAUSE you missed upgrading the paypal language file:> /includes/languages/english/modules/payment/paypal.php
Line #46 : define('MODULE_PAYMENT_PAYPAL_PURCHASE_DECRIPTION_ TITLE', STORE_NAME . ' Purchase');
Try fixing that and things will make a bit more sense.
Zen Follower
DrByte:
Perhaps you might go back up and read Ajeh's post.
MODULE_PAYMENT_PAYPAL_PURCHASE_DECRIPTION_ TITLE is showing BECAUSE you missed upgrading the paypal language file:
Try fixing that and things will make a bit more sense.
I did read Ajeh's post, perhaps you could read my post where I said 'I have now made sure that both files exist in the appropriate places, however I still get the same error as before. A tad disconcerting that the files weren't already in place I have to admit'
Sensei
Do you have a custom language file that's overriding the master?
/includes/languages/english/modules/payment/paypal.php
/includes/languages/english/modules/payment/YOURTEMPLATE/paypal.php
If the define for MODULE_PAYMENT_PAYPAL_PURCHASE_DECRIPTION_ TITLE isn't in your override file, then you will continue to have the constant-name (those upper-case letters) displayed instead of the defined contents which are supposed to read like "My Store Purchase" (assuming your store is called "My Store").
Zen Follower
Yep, brilliant, thanks very much that was the problem there was an over-ride file :smile:
Tell staff why this post should be reviewed.