Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hei @cloveras og @iverok

    Veldig interessert i gjentagende betaling gjennom Vipps. Siste oppdateringen fra dere var i fjor, og bare lurte p? hvor langt dere har kommet?

    To remove the state field from the checkout and “edit my address” pages, you have to remember to remove it not only from the billing address but the shipping address as well.

    add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
    add_filter( 'woocommerce_billing_fields' , 'custom_override_billing_fields' );
    add_filter( 'woocommerce_shipping_fields' , 'custom_override_shipping_fields' );
    
    function custom_override_checkout_fields( $fields ) {
      unset($fields['billing']['billing_state']);
      unset($fields['shipping']['shipping_state']);
      return $fields;
    }
    
    function custom_override_billing_fields( $fields ) {
      unset($fields['billing_state']);
      return $fields;
    }
    
    function custom_override_shipping_fields( $fields ) {
      unset($fields['shipping_state']);
      return $fields;
    }
    Thread Starter Christopher

    (@c_turnbull)

    As suspected there are limit and offset parameters in the icontact api class (gravity-forms-icontact/api/iContact.class.php) which haven’t been specified in the API call, so it appears to default to 20 items. I changed this line in the getLists() method:

    $response = $this->callResource("/a/{$this->accountId}/c/{$this->clientFolderId}/lists",'GET');

    to this:

    $response = $this->callResource("/a/{$this->accountId}/c/{$this->clientFolderId}/lists?limit=50",'GET');

    It’s only a quick hack and hardcoding a limit isn’t recommended, but at least now I can select from any of my lists. Hopefully helps out anyone else with the same problem.

    I must admit I can’t find out how Magento goes about getting the default store view when there isn’t one specifically named ‘default’. Perhaps it’s just the first one in the list of store views that gets loaded (i.e. sort order 1), for all I know. But it works, so I’m happy enough!

    Ok. I found out why I am getting the error. I posted the solution on your blog, but basically if you don’t have a store with the code ‘default’ the plugin will crash and burn. So for now one can just edit the plugin file manually, and change:
    Mage::app( 'default' );
    to:
    Mage::app( 'your_store_code_here' );

    Hi,
    I appear to be getting roughly the same error as oscarino. I have a functioning webshop. I have modified the (__) function as instructed. When I enter the absolute url of Mage.php the settings page for Mage Enabler is just blank, no errors or anything. The front end of my blog is completely blank. The following showed up in my error log:

    [Wed Sep 01 09:42:15 2010] [error] [client xx.xx.xxx.xxx] PHP Fatal error:  Uncaught exception 'Mage_Core_Model_Store_Exception' in /var/www/magento/htdocs/app/code/core/Mage/Core/Model/App.php:1228
    Stack trace:
    #0 /var/www/magento/htdocs/app/code/core/Mage/Core/Model/App.php(760): Mage_Core_Model_App->throwStoreException()
    #1 /var/www/magento/htdocs/app/Mage.php(322): Mage_Core_Model_App->getStore(NULL)
    #2 /var/www/magento/htdocs/app/Mage.php(334): Mage::getStoreConfig('web/url/use_sto...', NULL)
    #3 /var/www/magento/htdocs/app/code/core/Mage/Core/Controller/Request/Http.php(196): Mage::getStoreConfigFlag('web/url/use_sto...')
    #4 /var/www/magento/htdocs/app/code/core/Mage/Core/Controller/Request/Http.php(148): Mage_Core_Controller_Request_Http->_canBeStoreCodeInUrl()
    #5 /var/www/magento/htdocs/app/code/core/Mage/Core/Model/App.php(379): Mage_Core_Controller_Request_Http->setPathInfo()
    #6 /var/www/magento/htdocs/app/code/core/M in /var/www/magento/htdocs/app/code/core/Mage/Core/Model/App.php on line 1228

    It may be worth pointing out that I don’t have a ‘default’ website/store setup – I have two websites, and two stores for each website (to handle different languages). Although I don’t see how this can be a problem. Should I be specifying a store to use somewhere?

Viewing 6 replies - 1 through 6 (of 6 total)