Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2009
    Posts
    48
    Plugin Contributions
    0

    Default Randomly inserted hyphens in customer reviews

    Hello everyone, I'm having an issue with my customer reviews in my store. I have a review that includes a web link, which is kind of long. The store randomly puts in hyphens in the web link, so it doesn't work right. When I got to edit the review there are no hyphens, but when I confirm it, it has hyphens.

    My preference would be to make it a clickable link, but I don't think that's possible, is it? If not, I'd at least like to get the link right. How can I stop this from happening?

    It's the bottom review here:
    http://www.iscatech.com/ecommerce/in...products_id=78

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Randomly inserted hyphens in customer reviews

    Did you use an Add On for the Reviews on the Product Page?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Randomly inserted hyphens in customer reviews

    Most likely is the code similar to:
    Code:
    zen_break_string(nl2br(zen_output_string_protected(stripslashes($review_info->fields['reviews_text']))), 60, '-<br />')
    What this is doing is breaking the text at 60 characters with '-<br />' and that adds the - then the break ...

    You can remove the hyphen so that these longer lines do not get the hyphen added ... and you can adjust the 60 to a longer length if it fits your layout ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Mar 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: Randomly inserted hyphens in customer reviews

    Thank you! I figured it out, I do have the product page review addon. The lines that I needed to modify were in

    includes\templates\yourtemplate\templates\tpl_dgReview.php.

    What I did was count the number of characters which it would split into (15) then did a search for that number. I then changed it to 50. It works!

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Randomly inserted hyphens in customer reviews

    Thanks for the update that you were able to get this issue resolved ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Reviews - Customer Reviews
    By jorsara in forum General Questions
    Replies: 2
    Last Post: 3 Apr 2010, 03:46 PM
  2. customer reviews ++
    By derekhorne in forum Managing Customers and Orders
    Replies: 5
    Last Post: 10 Dec 2007, 09:48 PM

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