Results 1 to 10 of 3052

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    What CHARSET is in use on the site? Noting that the OPC's observer class (where the hashSession method resides) attempts to convert those HTML entities into their character counterparts:
    Code:
            // -----
            // Add the order's current total to the blob that's being hashed, so that changes in the total based on
            // payment-module selection can be properly detected (e.g. COD fee).
            //
            // Some currencies use a non-ASCII symbol for its symbol, e.g. £.  To ensure that we don't get into
            // a checkout-loop, make sure that the order's current total is scrubbed to convert any "HTML entities"
            // into their character representation.
            //
            // This is needed since the order's current total, as passed into the confirmation page, is created by
            // javascript that captures the character representation of any symbols.
            //
            // Note: Some templates also include carriage-returns within the total's display, so remove them from
            // the mix, too!
            //
            $current_order_total = str_replace(array("\n", "\r"), '', $current_order_total);
            $session_data['order_current_total'] = html_entity_decode($current_order_total, ENT_COMPAT, CHARSET);

  2. #2
    Join Date
    Nov 2005
    Location
    France
    Posts
    600
    Plugin Contributions
    8

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    What CHARSET is in use on the site?
    define('CHARSET', 'utf-8');

  3. #3
    Join Date
    Nov 2005
    Location
    France
    Posts
    600
    Plugin Contributions
    8

    Default Re: One-Page Checkout [Support Thread]

    I've got this in the error logs.

    PHP Warning: html_entity_decode(): charset `CHARSET' not supported, assuming utf-8 in /Users/steph/Sites/localhost/balloonmarket/includes/classes/observers/class.checkout_one_observer.php on line 732

    Using PHP 7.4

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by strelitzia View Post
    I've got this in the error logs.

    PHP Warning: html_entity_decode(): charset `CHARSET' not supported, assuming utf-8 in /Users/steph/Sites/localhost/balloonmarket/includes/classes/observers/class.checkout_one_observer.php on line 732

    Using PHP 7.4
    Hmm, what file contains that CHARSET definition?

  5. #5
    Join Date
    Jun 2011
    Posts
    85
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Love the addon. I cannot get sales tax to work with the TaxCloud observer. I just have 0.00 as Sales Tax Result.. It does work with standard multipage checkout.

    Not getting any error logs because of it.

    Any suggestions as to where to poke around!

    Thanks!

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    Check to see which notifications the TaxCloud observer has attached to. If it's looking for notifications issued on the checkout_shipping or checkout_payment pages, it'll need to also be looking on the checkout_one page. Ditto if it's looking for checkout_confirmation notifications; those should be augmented with the similar ones from the checkout_one_confirmation page.

  7. #7
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: One-Page Checkout [Support Thread]

    1.5.7c
    opc 2.3.7
    bs4_opc-1.0.0

    It works fine selecting English on site, but when switching to other language (Italian) it outputs the message on line 67 of
    includes/languages/italian/checkout_one.php

    Here the message in English
    define('TEXT_NOSCRIPT_JS_ERROR', 'Sorry, but our expedited checkout process cannot be used. Click <a href="%s">here</a> to use our alternate checkout process.');

 

 

Similar Threads

  1. Set number of products displayed per page (support thread)
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 146
    Last Post: 2 Nov 2023, 12:50 AM
  2. v151 Banners In Main Page - Support Thread
    By stevesh in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Sep 2021, 03:36 PM
  3. v151 Site Map/Page Not Found: Combined [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 4 Jan 2016, 02:19 PM
  4. v151 PayPal Express Checkout Using NVP 84.0 [Support Thread]
    By lat9 in forum Addon Payment Modules
    Replies: 32
    Last Post: 28 Dec 2015, 04:54 PM
  5. Checkout Amazon Style -- Support Thread
    By CJPinder in forum All Other Contributions/Addons
    Replies: 72
    Last Post: 13 Apr 2011, 08:18 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