Beiträge von Duplicate mbdesign

    Die gesamten eMail Templates sind zwar in DE und EN vorhanden, werden aber nur bei einigen Fuktionen benutzt.

    z.B. Bestellung und Anmeldung einwandfrei, denn der Kunde hat eine Session mit seiner Sprache.

    Was ist aber bei offene Warenkörbe oder RMA usw. versendet werden, die Session ist ja vom Admin und ich als Admin habe immer Deutsch DE asl Sprache ausgewählt.
    Die ganzen eMails die der Kunde bekommt sidn also deutsch und nicht in englisch bzw. seiner Sprache.

    Es müsste also die Sprache ausgewählt werden die in der Tabelle customers hinterlegt wird.

    Variante 1)
    man legt in der Tabelle countries fest welches Land welche Sprache als DEFAULT verwendet

    Variante 2) ein wenig mehr Aufwand aber besser
    man legt in der Tabelle countries fest welches Land welche Sprache als DEFAULT verwendet und zusätzlich wird beim Kunde in der Tabelle customers seine Wunschsprache geschrieben.
    z.B. kann man beim annelden den Kunden fragen "welche Sprache ist deinen bevprzugte Sprache?"
    oder man speichert einfach die language_id der Anmeldung oder der letzen Besetllung oder ähnliches in die Tabelle customers.


    Wo das Probleme her kommt sieht man in der cseo_get_mail_data.inc.php + cseo_get_mail_body.inc.php

    Anbei die Screenshots

    [ATTACH=CONFIG]756[/ATTACH][ATTACH=CONFIG]757[/ATTACH]

    Kleinigkeit als Verschönerung beim Kaufen und Merkzettelbutton. Es werden jetzt die passenden Icons angezeigt. Könnte man ja im nächsten update einfließen lassen.

    Erweitert um '<span class="glyphicon glyphicon-shopping-cart"> und '<span class="glyphicon glyphicon-star">

    Änderung in der class.product.php

    function getBuyNowButton($id, $name) {
    global $PHP_SELF, $current_category_id;
    if (MODULE_COMMERCE_SEO_INDEX_STATUS == 'True') {
    if (PRODUCT_ID > 0) {
    return '<a title="' . TEXT_BUY . TEXT_NOW . '" rel ="nofollow" href="' . xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $this->data['products_id'] . '&action=buy_now&BUYproducts_id=' . $id . '&' . xtc_get_all_get_params(array('action')), 'NONSSL') . '">' . cseo_wk_image_button('button_buy_now.gif', ((CSS_BUTTON_ACTIVE == 'true' || CSS_BUTTON_ACTIVE == 'css') ? '<span class="glyphicon glyphicon-shopping-cart"></span> '.TEXT_BUTTON_BUY_NOW : TEXT_BUY . $name . TEXT_NOW)) . '</a>';
    } else {
    return '<a title="' . TEXT_BUY . TEXT_NOW . '" rel ="nofollow" href="' . xtc_href_link(FILENAME_DEFAULT, 'cPath=' . $current_category_id . '&action=buy_now&BUYproducts_id=' . $id . '&' . xtc_get_all_get_params(array('action', 'cat', 'cPath')), 'NONSSL') . '">' . cseo_wk_image_button('button_buy_now.gif', ((CSS_BUTTON_ACTIVE == 'true' || CSS_BUTTON_ACTIVE == 'css') ? '<span class="glyphicon glyphicon-shopping-cart"></span> '.TEXT_BUTTON_BUY_NOW : TEXT_BUY . $name . TEXT_NOW)) . '</a>';
    }
    } else {
    return '<a title="' . TEXT_BUY . TEXT_NOW . '" rel ="nofollow" href="' . xtc_href_link(basename($_SERVER['SCRIPT_NAME']), 'action=buy_now&BUYproducts_id=' . $id . '&' . xtc_get_all_get_params(array('action')), 'NONSSL') . '">' . cseo_wk_image_button('button_buy_now.gif', ((CSS_BUTTON_ACTIVE == 'true' || CSS_BUTTON_ACTIVE == 'css') ? '<span class="glyphicon glyphicon-shopping-cart"></span> '.TEXT_BUTTON_BUY_NOW : TEXT_BUY . $name . TEXT_NOW)) . '</a>';
    }
    }

    function getWishlistButton($id, $name) {
    global $PHP_SELF, $current_category_id;
    if (MODULE_COMMERCE_SEO_INDEX_STATUS == 'True') {
    if (PRODUCT_ID > 0) {
    return '<a title="' . $name . TEXT_NOW_TO_WISHLIST . '" rel ="nofollow" href="' . xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $this->data['products_id'] . 'cPath=' . $current_category_id . '&action=wishlist&products_id=' . $id . '&' . xtc_get_all_get_params(array('action')), 'NONSSL') . '">' . xtc_image_button('button_to_wish_list.gif', ((CSS_BUTTON_ACTIVE == 'true' || CSS_BUTTON_ACTIVE == 'css') ? '<span class="glyphicon glyphicon-star"></span> '.TEXT_TO_WISHLIST : $name . TEXT_NOW_TO_WISHLIST)) . '</a>';
    } else {
    return '<a title="' . $name . TEXT_NOW_TO_WISHLIST . '" rel ="nofollow" href="' . xtc_href_link(FILENAME_DEFAULT, 'cPath=' . $current_category_id . '&action=wishlist&products_id=' . $id . '&' . xtc_get_all_get_params(array('action')), 'NONSSL') . '">' . xtc_image_button('button_to_wish_list.gif', ((CSS_BUTTON_ACTIVE == 'true' || CSS_BUTTON_ACTIVE == 'css') ? '<span class="glyphicon glyphicon-star"></span> '.TEXT_TO_WISHLIST : $name . TEXT_NOW_TO_WISHLIST)) . '</a>';
    }
    } else {
    return '<a title="' . $name . TEXT_NOW_TO_WISHLIST . '" rel ="nofollow" href="' . xtc_href_link(basename($_SERVER['SCRIPT_NAME']), 'action=wishlist&products_id=' . $id . '&' . xtc_get_all_get_params(array('action')), 'NONSSL') . '">' . xtc_image_button('button_to_wish_list.gif', ((CSS_BUTTON_ACTIVE == 'true' || CSS_BUTTON_ACTIVE == 'css') ? '<span class="glyphicon glyphicon-star"></span> '.TEXT_TO_WISHLIST : $name . TEXT_NOW_TO_WISHLIST)) . '</a>';
    }
    }

    Ja das stimmt, habe auch schon ein wenig probiert. Habe auch schon bei dem Sort.Filter eine Abfrage eingebaut nur wenn Sonderpreis vorhanden dann Option "Nur Sonderpreise" anzeigen geht aber ein wenig auf die Perfomance.

    Bzg. der Perfomance habe ich auch noch ein Tipp für euch, ich habe in meinem alten XTC Shop viele Abfragen optimiert die teilweise wirklich extrm langsam sind und teilweisew unssin, diese Abfragen habt ihr zu teil auch noch "falsch" leider hatte ich das damals nicht dokumentiert.

    Mit dem Tool http://www.jetprofiler.com/de/ findet Ihr wriklich alles, SlowQueries usw., das allerbeste ist die Abfrage kann direkt verändert und gestestet werden. FREE Version reicht aus.
    Der Shop muss logischerweise laufen und es muss traffic generiert werden um die Abfragen zu finden.

    Einige Idnizies und vor allem viele unnötigen JOINS konnte ich damit bereinigen.

    Was da teilweise Abfragen gebaut wurden in XTC ist irre :)