IBM Support

JR54435: "Add to cart" button does not work for products that have single quotes (') in the defining attribute name

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An error is thrown (in console or firebug) when a shopper tries
    to add an item to the cart that is associated with a defining
    attribute that contains single quotes (') in the defining
    attribute name.
    
    The root cause is that the single quote in JSON string causes a
    js error, which prevents users from adding products to cart on
    both Product Details page and Compare page.
    

Local fix

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce V7 users with a published Feature Pack 7
    Aurora starter store.
    
    PROBLEM ABSTRACT:
    "Add to cart" button does not work for products that have single
     quotes (') in the defining attribute name
    
    BUSINESS IMPACT:
    Shoppers cannot purchase an item unless the single quotes (')
    are removed.
    
    RECOMMENDATION:
    

Problem conclusion

  • Escape defining attributes with names that contain single quotes
     (') by replacing the single quotes with a predefined single
    quote escaping string.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR54435

  • Reported component name

    WC BUS EDITION

  • Reported component ID

    5724I3800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-10-05

  • Closed date

    2015-12-16

  • Last modified date

    2015-12-21

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WC BUS EDITION

  • Fixed component ID

    5724I3800

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]

Document Information

Modified date:
11 December 2021