Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 52
  1. #31
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Product Name Not Appearing in Detail Line Items

    re; 1.53 paypalwpp.php

    "All the items in your shopping basket (see details in the store and on your store receipt)."

    Wondering if it's some kind of array element mismatch, as in my debug testing using if (strval($optionsST['ITEMAMT']) < 0) instead of the <= 0 actually outputs the product line detail to PayPal, however it also includes the product code in square brackets [ ] in the product detail which seems odd. Almost seems like some kind of mismatch somewhere, be it an array element or how its accessed or something else etc...

    E.G. With the debug test mode of < 0 it's outputting "TEST Product [123]" with 123 being the product code, instead of just "Test Product" as it used to. This brings me back to my previous question regarding statement if (strval($optionsST['ITEMAMT']) <= 0) and what a zero value as opposed to a greater than zero represents in the shopping basket transaction?

    Definitely seems this relates to the crux of the issue though and working backwards from here should reveal more about the cause.
    Thanks,
    007

  2. #32
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Product Name Not Appearing in Detail Line Items

    re; v1.53 paypalwpp.php

    What's the name of the product detail array ? i.e. that forms the product line detail e.g. "TEST Product [123]" etc...
    Thanks,
    007

  3. #33
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Product Name Not Appearing in Detail Line Items

    re; v1.53 paypalwpp.php

    Why is the code appending the product ID to the product name ? Is that the new format ? or is that leftover debug code not removed?

    $optionsLI["L_NAME$k"] = $order->products[$i]['name'] . ' [' . (int)$order->products[$i]['id'] . ']';
    Thanks,
    007

  4. #34
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Product Name Not Appearing in Detail Line Items

    There's no leftover debug code there.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #35
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Product Name Not Appearing in Detail Line Items

    re; v1.53 paypalwpp.php
    It's evident that;
    re;
    if (strval($optionsST['ITEMAMT']) <= 0) {

    If I just make it <0 as follows;
    if (strval($optionsST['ITEMAMT']) < 0) {

    The product line detail then gets displayed in my order at least.

    However then looking at the below code.

    $optionsLI["L_NAME$k"] = $order->products[$i]['name'] . ' [' . (int)$order->products[$i]['id'] . ']'; is producing "TEST Product [123]" in the line item output. So why is that ? Normally the line item output is just "TEST Product"

    Appending . ' [' . (int)$order->products[$i]['id'] . '] is resulting in the [123] in the product line item output which is then showing in the PayPal order detail.
    Last edited by HeyIts007; 20 Dec 2014 at 02:28 AM.
    Thanks,
    007

  6. #36
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Product Name Not Appearing in Detail Line Items

    re; v1.53 paypalwpp.php
    "All the items in your shopping basket (see details in the store and on your store receipt)."


    What are the implications of applying these two code adjustments to correct the PayPal missing product line output issue in my v1.53 that seems to have resulted from data migration from 1.39 ?

    1.
    if (strval($optionsST['ITEMAMT']) <= 0) {

    Becomes: if (strval($optionsST['ITEMAMT']) < 0) {

    2.
    $optionsLI["L_NAME$k"] = $order->products[$i]['name'] . ' [' . (int)$order->products[$i]['id'] . ']';

    Becomes: $optionsLI["L_NAME$k"] = $order->products[$i]['name'] ;

    These two adjustments correct the PayPal product line output problem in my case, however will applying them cause other problems?
    Thanks,
    007

  7. #37
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: Product Name Not Appearing in Detail Line Items

    So, this question/request was made a while back to try to answer the question of why the database of your existing store upgraded/brought into your rebuilt store is causing the issues that you have observed and the request remains unanswered. Now the solution being proposed is to 1, change the way the code is written (which is not unheard of) but based on some previous experience (huh, when I last drove my car 50 mph down this road, with my eyes shut nothing happened. Where did that car come from?). If you take the time to identify why this issue is happening on your site (or provide the information to help others do the same) then the "problem" whether on your site or in the core code can be resolved.

    Although I only briefly looked throught that portion of the paypal code, it seemed to me that that section was about verifying that things were set up correctly to move forward with the sale/purchase. I'm only calling from my memory of yesterday as I hadn't taken the time today to look through the code to try to determine what it is you are not providing...

    When you goto modules->Order Total in the admin panel, what modules are listed that do not have a red circle? What are their sort orders and are they green or some other color?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #38
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Product Name Not Appearing in Detail Line Items

    re; v1.53 paypalwpp.php
    "All the items in your shopping basket (see details in the store and on your store receipt)."

    Thanks for looking at this. Yes I've spent a week on this issue and not identified a forum solution for my case. Shipping and Total are green, everything else is red. The only 1.53 code change made was the commenting out of the SSL3 reference in paypal_curl.php to address PayPal Poodle BUG. From there it was working perfectly until the 1.39 data migration. Seems like perhaps there's some kind of data mismatch in the array processing.

    Does the data migration also update PHP coding? I will presume not at this stage. I'm not a PHP expert and don't know how all this ZenCart code works, but failing a provided solution, I'm having to try to come up with my own. That is why I have sought to clarify if these two proposed code adjustments which correct the PayPal product line output problem in my case, will cause other problems if implemented on my live site? I'm asking if there's a car coming I guess. I expect someone familiar with this code would know the answer to that.
    Last edited by HeyIts007; 21 Dec 2014 at 11:58 AM.
    Thanks,
    007

  9. #39
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Product Name Not Appearing in Detail Line Items

    To further clarify re; your question about the modules settings. The following two are green. The rest are red.

    Shipping ot_shipping 200
    Total ot_total 999
    Thanks,
    007

  10. #40
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: Product Name Not Appearing in Detail Line Items

    Quote Originally Posted by HeyIts007 View Post
    To further clarify re; your question about the modules settings. The following two are green. The rest are red.

    Shipping ot_shipping 200
    Total ot_total 999
    In each of those, what are the settings? (We are talking about the settings of either the imported old data or the old store, they ought to be the same.)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 4 of 6 FirstFirst ... 23456 LastLast

Similar Threads

  1. Product Name Not Appearing in Detail Line Items
    By yoz8225 in forum PayPal Express Checkout support
    Replies: 6
    Last Post: 21 Jun 2013, 03:58 PM
  2. line height in Product Detail Description
    By tcjay in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Aug 2011, 02:08 PM
  3. Product name not appearing on preview screen
    By Wilfred in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 7 Dec 2010, 04:50 PM
  4. HELP!!-Multiple Images Appearing IN PRODUCT DETAIL PAGE
    By Artstudent25 in forum General Questions
    Replies: 1
    Last Post: 26 Feb 2009, 10:05 PM
  5. Product Name Not Appearing
    By bendvelo in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 25 Jan 2009, 04:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR