Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Imedes Konfigurator Einbau - Nur noch ein Problem

    Benny

    • Mitglied
    • Beiträge: 245
    Imedes Konfigurator Einbau - Nur noch ein Problem
    am: 25. Februar 2010, 21:53:29
    Hi Leutchen,

    ich teste gerade den Einbau des Konfigurators.
    Bin durch die Anleitung und Winmerge nur auf ein kleines Problem gestoßen.

    Änderung laut Anleitung:
    -includes/cart_actions.php
    ---------------------------------------------------------------------------------------------------
    finde folgendes:

    Code: PHP  [Auswählen]
                    case 'add_product' :
                            if (isset ($_POST['products_id']) && is_numeric($_POST['products_id'])) {
                                    if ($_POST['products_qty']> MAX_PRODUCTS_QTY)
                                            $_POST['products_qty'] = MAX_PRODUCTS_QTY;

                                    if (is_object($econda)) {
                                            $econda->_emptyCart();
                                            $old_quantity = $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'], $_POST['id']));
                                            $econda->_addProduct($_POST['products_id'], $_POST['products_qty'], $old_quantity);
                                    }

                                    $_SESSION['cart']->add_cart((int) $_POST['products_id'], $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'], $_POST['id'])) + xtc_remove_non_numeric($_POST['products_qty']), $_POST['id']);
                            }
                            xtc_redirect(xtc_href_link($goto, 'products_id=' . (int) $_POST['products_id'] . '&' . xtc_get_all_get_params($parameters)));
                            break;
     
    und ersetze es mit:

    Code: PHP  [Auswählen]
                    case 'add_product' :
                            if (isset($_POST['products_id']))
                            {
                                    $pids = count($_POST['products_id']);
                                    for($i=$pids-1; $i>=0; $i--){
                                            if ($_POST['products_qty'][$i]> MAX_PRODUCTS_QTY)
                                                    $_POST['products_qty'][$i] = MAX_PRODUCTS_QTY;
                                    }

                                    if (is_object($econda)) {
                                            $econda->_emptyCart();
                                            $old_quantity = $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'][0], $_POST['id']));
                                            $econda->_addProduct($_POST['products_id'][0], $_POST['products_qty'], $old_quantity);
                                    }

                                    for($i=$pids-1; $i>=0; $i--){
                                            if ($i == $pids-1) $t_ids = $_POST['id']; else $t_ids = array();
                                            if (isset($_POST['products_qty']))
                                                    $_SESSION['cart']->add_cart((int)$_POST['products_id'][$i], $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'][$i], $t_ids)) + xtc_remove_non_numeric($_POST['products_qty'][$i]), $t_ids);
                                            else
                                                    $_SESSION['cart']->add_cart((int)$_POST['products_id'][$i], $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'][$i], $t_ids)) + xtc_remove_non_numeric($_POST['products_qty_'.$_POST['products_id'][$i]]), $t_ids);
                                    }
                            }
                            xtc_redirect(xtc_href_link($goto, 'products_id=' . (int) $_POST['products_id'][0] . '&' . xtc_get_all_get_params($parameters)));
                            break;
     
    Auszug aus meinem Shop:

    Code: PHP  [Auswählen]
    case 'add_product' :
                            if (isset ($_POST['products_id']) && is_numeric($_POST['products_id'])) {

                                    $cart_quantity = xtc_remove_non_numeric($_POST['products_qty']);

                                    if ($cart_quantity> MAX_PRODUCTS_QTY)
                                            $cart_quantity = MAX_PRODUCTS_QTY;

                                    if (is_object($econda)) {
                                            $econda->_emptyCart();
                                            $old_quantity = $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'], $_POST['id']));
                                            $econda->_addProduct($_POST['products_id'], $cart_quantity, $old_quantity);
                                    }

                                    $_SESSION['cart']->add_cart((int) $_POST['products_id'], $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'], $_POST['id'])) + $cart_quantity, $_POST['id']);
                            }
                            xtc_redirect(xtc_href_link($goto, 'products_id=' . (int) $_POST['products_id'] . '&' . xtc_get_all_get_params($parameters)));
                            break;
                    //EOF - Hetfield - 2009.08.18 - Bugfix for numeric quantitys
     
    Das Problem ist nun die Anpassung von Hetfield auf die Anleitung zu übertragen.
    Hat jemand da eine Idee?
    Danach könnte ich es mal testen.

    BTW Das Zusatzmodul Dynamic Description klingt vielversprechend.

    Gruß,
    Benny



    Linkback: https://www.modified-shop.org/forum/index.php?topic=4236.0

    alkim media

    • Experte
    • Beiträge: 658
    Imedes Konfigurator Einbau - Nur noch ein Problem
    Antwort #1 am: 26. Februar 2010, 04:29:36
    Tja, und nun?

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Imedes Konfigurator Einbau - Nur noch ein Problem
    Antwort #2 am: 26. Februar 2010, 08:10:59
    Ersetze doch testweise einfach mal den kompletten "case 'add_product' :" wie in der Anleitung vorgegeben.

    Grüße

    Torsten

    sturmi

    • Fördermitglied
    • Beiträge: 34
    Imedes Konfigurator Einbau - Nur noch ein Problem
    Antwort #3 am: 19. März 2010, 22:03:28
    Hallo,

    wofür ist dieser Konfigurator? Was kann man damit machen?

    jannemann

    • modified Team
    • Beiträge: 6.275
    • Geschlecht:
    Imedes Konfigurator Einbau - Nur noch ein Problem
    Antwort #4 am: 19. März 2010, 22:19:53
    hi,

    damit kannst du dir z.b. pc´s konfigurieren. du bietest also eine bestimmte konfiguration vor, welche du im backend selber definieren kannst.

    schöne grüße,
    jan

    Oliver

    • Neu im Forum
    • Beiträge: 30
    • Geschlecht:
    Imedes Konfigurator Einbau - Nur noch ein Problem
    Antwort #5 am: 20. März 2010, 17:53:05
    Hallo,
    bin neu hier und diesen konfigurator suche ich auch, gibt es den zufällig kostenlos ?
    habe nur welche gefunden die was kosten sollen, und am Anfang kann man sich ja nix leisten.
    Gruss

    speedy

    • Viel Schreiber
    • Beiträge: 3.214
    Imedes Konfigurator Einbau - Nur noch ein Problem
    Antwort #6 am: 20. März 2010, 18:30:36

    jannemann

    • modified Team
    • Beiträge: 6.275
    • Geschlecht:
    Imedes Konfigurator Einbau - Nur noch ein Problem
    Antwort #7 am: 20. März 2010, 19:20:45
    der einbau gestaltet sich allerdings manchmal mehr als schwieirg und aufwendig.. ich wollte das nur vorher sagen :-)

    schöne grüße,
    jan

    Oliver

    • Neu im Forum
    • Beiträge: 30
    • Geschlecht:
    Imedes Konfigurator Einbau - Nur noch ein Problem
    Antwort #8 am: 20. März 2010, 22:32:43
    der einbau gestaltet sich allerdings manchmal mehr als schwieirg und aufwendig.. ich wollte das nur vorher sagen :-)

    schöne grüße,
    jan

    na dann lasse ich mich mal überraschen danke für die links schaue mir das ganze mal an.

    25 Antworten
    10956 Aufrufe
    23. Januar 2012, 22:22:29 von h-h-h
    1 Antworten
    3035 Aufrufe
    08. November 2010, 10:53:40 von xarnu
    2 Antworten
    2404 Aufrufe
    23. April 2012, 23:53:13 von hugh_renson
    60 Antworten
    24669 Aufrufe
    14. November 2012, 16:08:36 von EmmKey
               
    anything