Jump to content
Dutch-lifestyle

Foutmelding als ik op actieve winkelwagens klik in backoffice

Recommended Posts

Hallo allemaal,

Ik krijg een foutmelding als ik op actieve winkelwagens klik. Zie onderstaande melding. Heeft een van jullie enig idee wat dit is en hoe ik dit oplos? Ik hoor het graag.

Groeten,
Renate


[PrestaShopException]

Invalid address #792
at line 401 in file classes/Address.php

 

// if an id_address has been specified retrieve the address
if ($id_address) {
    $address = new Address((int)$id_address);

    if (!Validate::isLoadedObject($address)) {
        throw new PrestaShopException('Invalid address #'.(int)$id_address);
    }
} elseif ($with_geoloc && isset($context->customer->geoloc_id_country)) {
    $address = new Address();
    $address->id_country = (int)$context->customer->geoloc_id_country;
    $address->id_state = (int)$context->customer->id_state;

 
AddressCore::initialize - [line 197 - classes/tax/Tax.php] - [1 Arguments]

* @param id_address
* @return float $tax_rate
*/
public static function getProductEcotaxRate($id_address = null)
{
$address = Address::initialize($id_address);

$tax_manager = TaxManagerFactory::getManager($address, (int)Configuration::get('PS_ECOTAX_TAX_RULES_GROUP_ID'));
$tax_calculator = $tax_manager->getTaxCalculator();

return $tax_calculator->getTotalRate();

 
TaxCore::getProductEcotaxRate - [line 610 - classes/Cart.php] - [1 Arguments]

$this->_products = array();
if (empty($result)) {
    return array();
}

$ecotax_rate = (float)Tax::getProductEcotaxRate($this->{Configuration::get('PS_TAX_ADDRESS_TYPE')});
$apply_eco_tax = Product::$_taxCalculationMethod == PS_TAX_INC && (int)Configuration::get('PS_TAX');
$cart_shop_context = Context::getContext()->cloneContext();

foreach ($result as &$row) {
    if (isset($row['ecotax_attr']) && $row['ecotax_attr'] > 0) {

 
CartCore->getProducts - [line 3328 - classes/Cart.php]

if (!ProductDownload::isFeatureActive()) {
    return false;
}

if (!isset(self::$_isVirtualCart[$this->id])) {
    $products = $this->getProducts();
    if (!count($products)) {
        return false;
    }

    $is_virtual = 1;

CartCore->isVirtualCart - [line 1464 - classes/Cart.php]

if ($type == Cart::ONLY_DISCOUNTS && !CartRule::isFeatureActive()) {
    return 0;
}

// no shipping cost if is a cart with only virtuals products
$virtual = $this->isVirtualCart();
if ($virtual && $type == Cart::ONLY_SHIPPING) {
    return 0;
}

if ($virtual && $type == Cart::BOTH) {

CartCore->getOrderTotal - [line 1392 - classes/Cart.php] - [2 Arguments]

    if (!Validate::isLoadedObject($cart)) {
         die(Tools::displayError());
    }

    $with_taxes = $use_tax_display ? $cart->_taxCalculationMethod != PS_TAX_EXC : true;
    return Tools::displayPrice($cart->getOrderTotal($with_taxes, $type), Currency::getCurrencyInstance((int)$cart->id_currency), false);
}


public static function getOrderTotalUsingTaxCalculationMethod($id_cart)
{

CartCore::getTotalCart - [line 854 - controllers/admin/AdminCartsController.php] - [3 Arguments]

{
    $context = Context::getContext();
    $context->cart = new Cart($id_cart);
    $context->currency = new Currency((int)$context->cart->id_currency);
    $context->customer = new Customer((int)$context->cart->id_customer);
    return Cart::getTotalCart($id_cart, true, Cart::BOTH_WITHOUT_SHIPPING);
}

public static function replaceZeroByShopName($echo, $tr)
{
    return ($echo == '0' ? Carrier::getCarrierNameFromShopName() : $echo);

AdminCartsControllerCore->getOrderTotalUsingTaxCalculationMethod - [line - ] - [2 Arguments]
Argument [0]
3072
Argument [1]
Array
(
    [id_cart] => 3072
    [date_add] => 2015-11-17 09:34:14
    [customer] => t. test
    [total] => 3072
    [carrier] => Afhalen (niet geldig op Zoedt producten)
    [status] => Niet besteld
    [badge_success] => 0
    [badge_danger] => 1
    [id_guest] => 0
)


call_user_func_array - [line 321 - classes/helper/HelperList.php] - [2 Arguments]
 

        $this->_list[$index][$key] = rtrim(rtrim($tr[$key], '0'), '.');
    } elseif (isset($tr[$key])) {
        $echo = $tr[$key];
        if (isset($params['callback'])) {
        $callback_obj = (isset($params['callback_object'])) ? $params['callback_object'] : $this->context->controller;
        $this->_list[$index][$key] = call_user_func_array(array($callback_obj, $params['callback']), array($echo, $tr));
        } else {
           $this->_list[$index][$key] = $echo;
        }
    }
}

post-1136438-0-03550400-1447793049_thumb.png

post-1136438-0-10205900-1447793059_thumb.png

Share this post


Link to post
Share on other sites

Ja precies ik zie het inderdaad. Logische verklaring idd dat het door het handmatig terugzetten die winkelwagen fout is gegaan. Het is opgelost! Top bedankt Michael!

Edited by Dutch-lifestyle

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More