Title: The Generation's Replies | WordPress.org

---

# The Generation

  [  ](https://wordpress.org/support/users/thegeneration/)

 *   [Profile](https://wordpress.org/support/users/thegeneration/)
 *   [Topics Started](https://wordpress.org/support/users/thegeneration/topics/)
 *   [Replies Created](https://wordpress.org/support/users/thegeneration/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/thegeneration/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/thegeneration/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/thegeneration/engagements/)
 *   [Favorites](https://wordpress.org/support/users/thegeneration/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 320 total)

1 [2](https://wordpress.org/support/users/thegeneration/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/thegeneration/replies/page/3/?output_format=md)…
[20](https://wordpress.org/support/users/thegeneration/replies/page/20/?output_format=md)
[21](https://wordpress.org/support/users/thegeneration/replies/page/21/?output_format=md)
[22](https://wordpress.org/support/users/thegeneration/replies/page/22/?output_format=md)
[→](https://wordpress.org/support/users/thegeneration/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Svea Checkout for WooCommerce] The shopping cart is out of sync, you need to reload the checkout and try again.](https://wordpress.org/support/topic/the-shopping-cart-is-out-of-sync-you-need-to-reload-the-checkout-and-try-again/)
 *  Plugin Author [The Generation](https://wordpress.org/support/users/thegeneration/)
 * (@thegeneration)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/the-shopping-cart-is-out-of-sync-you-need-to-reload-the-checkout-and-try-again/#post-18364635)
 * Hi,
 * It seems that the error you’re encountering is related to the communication between
   the website and the iFrame. Does the same issue occur if you switch themes?
 * If changing the theme doesn’t work, I would recommend contacting Svea, as this
   error pertains to Svea’s logic within the iFrame.
 * Best regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Svea Checkout for WooCommerce] The shopping cart is out of sync, you need to reload the checkout and try again.](https://wordpress.org/support/topic/the-shopping-cart-is-out-of-sync-you-need-to-reload-the-checkout-and-try-again/)
 *  Plugin Author [The Generation](https://wordpress.org/support/users/thegeneration/)
 * (@thegeneration)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/the-shopping-cart-is-out-of-sync-you-need-to-reload-the-checkout-and-try-again/#post-18359703)
 * Hi,
 * That would be the latest version.
 * It could be a conflict with another plugin or theme. Could you try disabling 
   a few plugins and test the checkout back and forth until you’re basically left
   with only the essential plugins such as Svea Checkout and WooCommerce?
 * It could also be a conflict with the theme. If disabling the plugins didn’t help
   you could also try running the store with the Storefront theme.
 * Since these are kind of “aggressive” changes to the website we recommend doing
   them on a staging/development site if possible.
 * Best regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Svea Checkout for WooCommerce] The shopping cart is out of sync, you need to reload the checkout and try again.](https://wordpress.org/support/topic/the-shopping-cart-is-out-of-sync-you-need-to-reload-the-checkout-and-try-again/)
 *  Plugin Author [The Generation](https://wordpress.org/support/users/thegeneration/)
 * (@thegeneration)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/the-shopping-cart-is-out-of-sync-you-need-to-reload-the-checkout-and-try-again/#post-18359657)
 * Hi,
 * That error is most often caused by a plugin conflict where some cart item is 
   being changed in the background when Svea is communicating with the store.
 * Are you running on the latest version of the plugin? The 3.x.x version is much
   more resilient to that error.
 * Best regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Svea Checkout for WooCommerce] minium 18 of age error](https://wordpress.org/support/topic/minium-18-of-age-error/)
 *  Plugin Author [The Generation](https://wordpress.org/support/users/thegeneration/)
 * (@thegeneration)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/minium-18-of-age-error/#post-18329080)
 * Hi,
 * I can’t see the image you sent, but it sounds like something is going wrong when
   the customer’s personal identification number is being verified via Svea. My 
   recommendation is to reach out to Svea, as they can likely help you identify 
   what is causing the issue.
 * Best regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Svea Checkout for WooCommerce] minium 18 of age error](https://wordpress.org/support/topic/minium-18-of-age-error/)
 *  Plugin Author [The Generation](https://wordpress.org/support/users/thegeneration/)
 * (@thegeneration)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/minium-18-of-age-error/#post-18327375)
 * Hi,
 * Which version of the plugin are you using? Would you also be able to send a screenshot
   of how it looks when this error message appears for the customer?
 * Best regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Svea Checkout for WooCommerce] Validation callback failed on SVEA Checkout](https://wordpress.org/support/topic/validation-callback-failed-on-svea-checkout/)
 *  Plugin Author [The Generation](https://wordpress.org/support/users/thegeneration/)
 * (@thegeneration)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/validation-callback-failed-on-svea-checkout/#post-18271394)
 * Hi,
 * Have Svea reached out with a response?
 * We’ve recently seen a store where malware has been present which added their 
   own part on the website before the response to Svea. This made the response to
   appear in an invalid format for Svea to process. Could that be the issue in this
   case as well?
 * Best regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Svea Checkout for WooCommerce] Force phone number formatting](https://wordpress.org/support/topic/force-phone-number-formatting/)
 *  Plugin Author [The Generation](https://wordpress.org/support/users/thegeneration/)
 * (@thegeneration)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/force-phone-number-formatting/#post-18258308)
 * Hi,
 * This requires custom validation, so you would need to add functionality to enforce
   a specific format for phone numbers in WooCommerce. There might be plugins available
   for this, but we are not aware of any that we can recommend.
 * Best regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Svea Checkout for WooCommerce] Validation callback failed on SVEA Checkout](https://wordpress.org/support/topic/validation-callback-failed-on-svea-checkout/)
 *  Plugin Author [The Generation](https://wordpress.org/support/users/thegeneration/)
 * (@thegeneration)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/validation-callback-failed-on-svea-checkout/#post-18253113)
 * Hi,
 * I understand.
 * Since the logs show a successful response for the validation callback, I recommend
   reaching out to Svea’s support to see if they can identify what might be going
   wrong.
 * Best regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Svea Checkout for WooCommerce] Not loading Svea payment iframe](https://wordpress.org/support/topic/not-loading-svea-payment-iframe/)
 *  Plugin Author [The Generation](https://wordpress.org/support/users/thegeneration/)
 * (@thegeneration)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/not-loading-svea-payment-iframe/#post-18240105)
 * Hi,
 * It sounds a bit strange, but I would still recommend you to wait for Automattic
   to review it again.
 * Best regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Svea Checkout for WooCommerce] Not loading Svea payment iframe](https://wordpress.org/support/topic/not-loading-svea-payment-iframe/)
 *  Plugin Author [The Generation](https://wordpress.org/support/users/thegeneration/)
 * (@thegeneration)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/not-loading-svea-payment-iframe/#post-18233574)
 * Hi,
 * Okay, it seems like it might’ve been a misunderstanding by Automattic on what
   you needed help with since it’s not really support for the plugin but rather 
   why the script is being cut off.
 * And you’re exactly right, that is the part that’s being cut off. This is the 
   part that the Svea Checkout plugins injects to the checkout page (I’ve formatted
   the code and removed order IDs. This is also from a local environment using the
   staging API but the principle is the same)
 *     ```wp-block-code
       <div id="svea-checkout-container" data-sco-sveacheckout="" data-sco-sveacheckout-locale="en-IE" style="overflow-x: hidden; overflow-y: hidden;"><noscript> Please <a href="http://enable-javascript.com">enable JavaScript</a>. </noscript><iframe id="svea-checkout-iframe" name="svea-checkout-iframe" data-sco-sveacheckout-iframeSrc="https://checkoutapistage.svea.com/b/index.html" scrolling="no" frameborder="0" style="display: none; width: 1px; min-width: 100%; max-width: 100%;"></iframe></div><script type="text/javascript" src="https://checkoutapistage.svea.com/merchantscript/index.js?v=2e39fc121a579822b165ccba4b88fe9a"></script><script type="text/javascript">!function(e){var t=e.document,n=t.querySelectorAll("[".concat("data-sco-sveacheckout","]"));if(!n.length)throw new Error("No Svea checkout container exists on page");function c(){return!!e.scoInitializeInjectedInstances&&(e.scoInitializeInjectedInstances(),!0)}var o,i;c()||(o=0,e.setTimeout(i=function(){o+=1,c()||(o<150?e.setTimeout(i,20):[].slice.call(n).forEach(function(e){var n=t.createElement("div");n.innerHTML="Something went wrong, please refresh the page",e.appendChild(n)}))},20))}(window);</script>
       ```
   
 * However in your case it seems like the last bit of inline script is being removed
   which we’re unable to debug since Automattic is preventing some plugins from 
   being disabled.
 * Please note that we can still see that the code is being returned by the Svea
   API on your site, it’s the checkout that simply won’t render it.
 * Please ask Automattic to review this again and see why the inline script doesn’t
   work.
 * Best regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Svea Checkout for WooCommerce] Not loading Svea payment iframe](https://wordpress.org/support/topic/not-loading-svea-payment-iframe/)
 *  Plugin Author [The Generation](https://wordpress.org/support/users/thegeneration/)
 * (@thegeneration)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/not-loading-svea-payment-iframe/#post-18231307)
 * Hi,
 * Svea reached out to us regarding your site with a bit more information and we
   could start to debug a bit.
 * The underlying problem is that a part of the script that Svea responds with are
   being cut of before being injected on the checkout page. Our best guess is that
   it’s some kind of security measure but we’ve never encountered it before so we’re
   unsure on why it happens.
 * On a local environment with your stores credentials we’re getting the complete
   response so it seems to be related to your environment.
 * We’re unfortunately not able to debug much further since Automattic is managing
   parts of your website. Therefore we recommend that you reach out to them since
   we’re unable to further debug properly on your current setup.
 * Best regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Svea Checkout for WooCommerce] Not loading Svea payment iframe](https://wordpress.org/support/topic/not-loading-svea-payment-iframe/)
 *  Plugin Author [The Generation](https://wordpress.org/support/users/thegeneration/)
 * (@thegeneration)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/not-loading-svea-payment-iframe/#post-18227081)
 * Hi,
 * The log is showing a typical example of the flow and isn’t necessary an issue
   in itself.
 * However, it seems like the javascript that initializes the iframe isn’t being
   loaded on the checkout page. This is typically due to optimizing-plugins, are
   any such installed and active? If so, could you try disabling them all to see
   if the checkout loads again?
 * Best regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Svea Checkout for WooCommerce] Force minimum age](https://wordpress.org/support/topic/force-minimum-age/)
 *  Plugin Author [The Generation](https://wordpress.org/support/users/thegeneration/)
 * (@thegeneration)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/force-minimum-age/#post-18194152)
 * Update: we’ve added a new filter in version 3.1.3 that is named “woocommerce_sco_min_age”.
 * You can use it in this way for instance which would apply 18 for all products
   and if you’ve set a higher age requirement for a specific product, it would use
   that instead:
 *     ```wp-block-code
       add_filter( 'woocommerce_sco_min_age', function ( $min_age ) {    return max( $min_age, 18 );} );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Svea Checkout for WooCommerce] Countries outside europe](https://wordpress.org/support/topic/countries-outside-europe/)
 *  Plugin Author [The Generation](https://wordpress.org/support/users/thegeneration/)
 * (@thegeneration)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/countries-outside-europe/#post-18192736)
 * Hi,
 * Have you added postal code constraints to the shipping methods? And have you 
   selected that the shipping cost should be hidden until an address is entered?
 * I think that the issue here is that the shipping is not added to the order until
   you have entered your postal code and since you don’t have zero-sum-orders activated
   the checkout doesn’t work when the total amount is zero.
 * So if you uncheck the box hiding the shipping costs until an address is entered
   and make sure that there always are available shipping methods I think this issue
   will be resolved.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Svea Checkout for WooCommerce] Force minimum age](https://wordpress.org/support/topic/force-minimum-age/)
 *  Plugin Author [The Generation](https://wordpress.org/support/users/thegeneration/)
 * (@thegeneration)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/force-minimum-age/#post-18192702)
 * This is currently possible by utilizing the create and update filters:
   – Create:
   [https://plugins.trac.wordpress.org/browser/svea-checkout-for-woocommerce/trunk/inc/Models/Svea_Checkout.php#L382](https://plugins.trac.wordpress.org/browser/svea-checkout-for-woocommerce/trunk/inc/Models/Svea_Checkout.php#L382)–
   Update: [https://plugins.trac.wordpress.org/browser/svea-checkout-for-woocommerce/trunk/inc/Models/Svea_Checkout.php#L675](https://plugins.trac.wordpress.org/browser/svea-checkout-for-woocommerce/trunk/inc/Models/Svea_Checkout.php#L675)
 * Here you could check if a min age validation is being made and if not you could
   add your own min age.

Viewing 15 replies - 1 through 15 (of 320 total)

1 [2](https://wordpress.org/support/users/thegeneration/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/thegeneration/replies/page/3/?output_format=md)…
[20](https://wordpress.org/support/users/thegeneration/replies/page/20/?output_format=md)
[21](https://wordpress.org/support/users/thegeneration/replies/page/21/?output_format=md)
[22](https://wordpress.org/support/users/thegeneration/replies/page/22/?output_format=md)
[→](https://wordpress.org/support/users/thegeneration/replies/page/2/?output_format=md)