Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Variations and the double quote character/inches

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Variations and the double quote character/inches

Tagged: inch, quote, variation

  • This topic has 6 replies, 3 voices, and was last updated 14 years, 8 months ago by amin007.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • September 9, 2010 at 4:27 pm #1812
    jables
    Member

    I saw a comment a while back about the use of double quotes in product variations to denote the inch unit (e.g. 12″ x 8″). This works fine for the drop-down variation box but appears to break the shopping basket. Is this an easy fix?

    I’m currently running v4.1.0, do future updates appear in the plugins area within WordPress?

    September 10, 2010 at 1:31 am #24098
    amin007
    Participant

    The variation data is read by a Javascript which causes an issue if there are quotes (“) in the string as it’s a special character. You can use the following in your variation:

    12 Inch x 8 Inch

    September 10, 2010 at 8:05 am #24099
    jables
    Member

    There must be a fix to escape double quotes in the code. I’ll have a go at fixing.

    September 10, 2010 at 8:41 am #24100
    jables
    Member

    Fixed :) The PHP function htmlspecialchars does the trick, but needs to be applied in a few places:

    eStore_button_display_helper.php, the variation option code should be changed to this <option value="'.htmlspecialchars($tmp_txt).'">'.$tmp_txt.'</option>

    eStore_payment_submission.php, references to the item name should be changed to this htmlspecialchars($item)

    September 11, 2010 at 1:28 am #24101
    amin007
    Participant

    Thank you for following it up and providing the solution. I have been meaning to go in the code and fix it up but it has never been a big issue so it kinda got low priority all the time :)

    I have made the changes in the plugin code.

    September 11, 2010 at 12:36 pm #24102
    wzp
    Moderator

    I’d like to confirm that in the first file there were 4 places; and in the second file, there were 7 places; that said changes had to take place.

    September 12, 2010 at 1:06 am #24103
    amin007
    Participant

    Yeah.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ