Forums

Simple Cart & Buy Now
[resolved] Name Problem When I add a product in the cart (16 posts)

  1. bonz
    Member
    Posted 1 year ago #

    Hi,
    when i add a product in the cart with name (example) "you've got a friend", the result is "you" without the rest of the name.
    thanx in advance for the answer
    bonz

    http://wordpress.org/extend/plugins/simple-cart-buy-now/

  2. bluey80
    Member
    Plugin Author

    Posted 1 year ago #

    You can't use a "'" in the name as it messed up the parsing of the field. Try using the HTML code for "'" of "'" instead. I think that will parse fine and look right in the final document as well.

    You could also try escaping the "'" -- ie: "you\'ve got a friend" but I'm not sure that will work and I think the first solution is better.

    Let me know if that doesn't fix it.

  3. bonz
    Member
    Posted 1 year ago #

    thanx for the answer.
    i don't use the " i used " only for include the example.
    the name in question is you've got a friend , result is you, here another name it's a rainy day result is it and not the entire name.
    thanx
    bonz

  4. bluey80
    Member
    Plugin Author

    Posted 1 year ago #

    Opps.. my html escape code got processed by the webpage. Let me try writing that again. The problem is the with apostrophe in the name (the character right after the end of the result). So instead of inputing:
    you've got a friend
    it's a rainy day
    try:

    you "& # 3 9 ;"ve got a friend
    it "& # 3 9 ;"s a rainy day

    Where you drop the extra spaces inside the "". That sound look the same, but not give the parsing problems.

  5. bonz
    Member
    Posted 1 year ago #

    I try to sell digital baking traks music and many titles have the apostrophe.
    ok. thanks.
    i'm waiting for your news

  6. bluey80
    Member
    Plugin Author

    Posted 1 year ago #

    Please try
    you "& # 3 9 ;"ve got a friend
    as I think that will fix your problem.

    Let me know,

  7. bonz
    Member
    Posted 1 year ago #

    i'm sorry but i don't know where to put these things that you say to me.
    i don't know html or php code

  8. bluey80
    Member
    Plugin Author

    Posted 1 year ago #

    In the form where you add a product to the cart with the name "you've got a friend" you need to replace the ' in you've. First, if you just drop the ' -- ie
    youve got a friend
    that should work fine, it just won't have he apostrophe. Now, add the text:
    & # 3 9 ;
    between the u and the v in "youve". Only drop the spaces between the characters. That will look like a ' in HTML.

    It should look something like
    [scabn name="you & # 3 9 ; got a friend" price="0.99" b_title="Add To Cart"]

    But again, remove the spaces around the & # 3 9 ; (if I remove the space in this forum post, you will just see a ' instead of the code.

  9. bonz
    Member
    Posted 1 year ago #

    I have tried in many ways but nothing to do
    always you

  10. bluey80
    Member
    Plugin Author

    Posted 1 year ago #

    Have you you tried without the apostrophe? EG:

    [scabn name="youve got a friend" price="0.99" b_title="Add To Cart"]

    Post what you are using.

  11. bonz
    Member
    Posted 1 year ago #

    yes without the apostrophe is ok
    [scabn name="You ve Got A Friend (Cumbia)" price="7.00" b_title="Add To Cart"]
    i think that I will remove all the apostrophes in the titles

  12. bonz
    Member
    Posted 1 year ago #

    if i use the shortcode
    [scabn price="7.00" b_title="Add To Cart"]
    it takes the name of the post and the result is You
    not You've Got A Friend

  13. bluey80
    Member
    Plugin Author

    Posted 1 year ago #

    Alternatively, take a look at http://www.theukwebdesigncompany.com/articles/entity-escape-characters.php for putting "'" and other symbols, etc, into your html without affecting the scripting. I think that will work in your title, but it definitely will work in the name="blah" section of the [scabn] code.

  14. bonz
    Member
    Posted 1 year ago #

    ok i'll gonna take a look.
    thank you for your support

  15. bonz
    Member
    Posted 1 year ago #

    ok now it works, perhaps before i didn't the right things
    [scabn name="You've Got A Friend" price="7.00" b_title="Add To Cart"]

    thanx again

  16. bonz
    Member
    Posted 1 year ago #

    You & # 3 9 ;ve Got A Friend
    as you had said

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic