Results 1 to 10 of 510

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    296
    Plugin Contributions
    2

    Default Re: Back In Stock Notifications

    Hello,
    I was having problem with special chars in title and the display in the bisn form at the bottom of the page. As my shop is in utf8 it shows the ?

    Now i recently noticed that replacing htmlentities in tpl_product_info_display.php solves the problem like so:
    PHP Code:
    $intro_text sprintf(BACK_IN_STOCK_NOTIFICATION_TEXT_FORM_INTRO,
        
    //htmlentities($products_name));
        
    strip_tags($products_name)); 
    Is it known that htmlentities doesn't cope well with utf8?
    Are there drawbacks i should consider changing the code like this?

    thanks,
    jeroen

  2. #2
    Join Date
    Aug 2004
    Location
    Belfast, Northern Ireland
    Posts
    2,480
    Plugin Contributions
    14

    Default Re: Back In Stock Notifications

    Hi Jeroen,

    Quote Originally Posted by nagelkruid View Post
    Is it known that htmlentities doesn't cope well with utf8?
    htmlentities without any parameters doesn't support UTF8. You need to upgrade toa more recent version of Ceon Back In Stock Notifications, support for UTF8 was added in April 2009!

    (2.6.0 is most recent release, a slightly newer version will be out later this month).

    For your reference:

    PHP Code:
    htmlentities($products_nameENT_COMPATCHARSET
    ..is how UTF8 is supported in the htmlentities function.

    All the best..

    Conor
    ceon

  3. #3
    Join Date
    Apr 2007
    Location
    California, USA
    Posts
    233
    Plugin Contributions
    0

    Default Re: Back In Stock Notifications

    (2.6.0 is most recent release, a slightly newer version will be out later this month).
    I have stock by attributes will the new version have support to be able to work to show the actual attributes that come back in stock too?
    Thanks
    Supersnow

  4. #4
    Join Date
    Aug 2004
    Location
    Belfast, Northern Ireland
    Posts
    2,480
    Plugin Contributions
    14

    Default Re: Back In Stock Notifications

    Hi,

    Quote Originally Posted by supersnow View Post
    I have stock by attributes will the new version have support to be able to work to show the actual attributes that come back in stock too?
    No. Stock by attributes will NEVER be supported.

    All the best..

    Conor
    ceon

  5. #5
    Join Date
    Nov 2006
    Posts
    296
    Plugin Contributions
    2

    Default Re: Back In Stock Notifications

    Quote Originally Posted by conor View Post
    Hi Jeroen,
    (2.6.0 is most recent release, a slightly newer version will be out later this month).

    For your reference:

    PHP Code:
    htmlentities($products_nameENT_COMPATCHARSET
    ..is how UTF8 is supported in the htmlentities function.
    Ahh, thats too bad, i just downloaded and used version 2.2.4 which was the latest available in the zen-cart downloads section. Didn't realise there would be a newer version elsewhere, i'll go and find that one.

    Thanks for explaining the htmlentities, i still have some minor issues with utf8, it is good to know i can use the function in this way to support the char set.

  6. #6
    Join Date
    Aug 2004
    Location
    Belfast, Northern Ireland
    Posts
    2,480
    Plugin Contributions
    14

    Default Re: Back In Stock Notifications

    Hi,

    Quote Originally Posted by nagelkruid View Post
    Ahh, thats too bad, i just downloaded and used version 2.2.4 which was the latest available in the zen-cart downloads section.
    Oh dear, I didn't realise the downloads area was so out of date! That downloads area is such a pain (for developers, obviously it's handy for users)!

    I'll upload the new version to it of course.

    Quote Originally Posted by nagelkruid View Post
    Thanks for explaining the htmlentities, i still have some minor issues with utf8, it is good to know i can use the function in this way to support the char set.
    Yes, it's good to know how these things work for future use.

    All the best..

    Conor
    ceon

  7. #7
    Join Date
    Nov 2006
    Posts
    296
    Plugin Contributions
    2

    Default Re: Back In Stock Notifications

    cancel post , found new version, thanks!

  8. #8
    Join Date
    Jul 2009
    Posts
    127
    Plugin Contributions
    0

    Default Re: Back In Stock Notifications

    I installed the mod but whenever I try to access the Catalog=>Back In Stock it takes me to the log in page with out actually ednding my session, just taking me to the page. I haven't yet installed the css and js files in the docs foldere because I don't know where they go. Where do they go?

  9. #9
    Join Date
    Jul 2009
    Posts
    127
    Plugin Contributions
    0

    Default Re: Back In Stock Notifications

    Quote Originally Posted by novastar View Post
    I installed the mod but whenever I try to access the Catalog=>Back In Stock it takes me to the log in page with out actually ednding my session, just taking me to the page. I haven't yet installed the css and js files in the docs foldere because I don't know where they go. Where do they go?
    To be more specific, I can get to the page but whenever I try to run one of the options from the dropdown list, what I described in the above post happens.

 

 

Similar Threads

  1. Ceon Back In Stock Notifications 3.0.0
    By conor in forum Addon Admin Tools
    Replies: 204
    Last Post: 8 Apr 2025, 05:19 PM
  2. Replies: 146
    Last Post: 13 Dec 2020, 09:52 AM
  3. Replies: 4
    Last Post: 14 Feb 2013, 09:33 PM
  4. v139h Back In Stock Notifications only notify customers ONE time?
    By SRQHoyas in forum General Questions
    Replies: 0
    Last Post: 9 Jun 2012, 01:58 PM
  5. Problems with Back In Stock Notifications addon
    By dhanesh in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 21 Aug 2008, 02:26 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