Jump to content
  • 0

Nie dodaje produktów do koszyka


plaxton

Question

Witam,

Mam problem po przeniesieniu skryptu prestashop na inny serwer, z dodaniem produktu do koszyka.

To stara presta 1.4 jednak działała bez zarzutów na poprzednim hostingu.

Teraz, przy kliknięciu w guzik dodaj do koszyka , nie pojawia się produkt w koszyku , ale moduł informuje że w koszyku jest jeden produkt. Wyświetla się  0 wartość zamówienia. Problem dotyczy mojego sklepu, jak i czyściutkiej presty 1.4 zainstalowanej na tym serwerze.

Przykład: http://www.alvitwg.pl/test-2/

P.s 1.4.4.1

PHP 5.6

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Wygląda to tak, jakby AJAX nie wykrywał tych przedmiotów. Odpowiedź z serwera jest taka:

{
"products": [
],

"discounts": [
],

"shippingCost": "8,61 zł",
"wrappingCost": "0,00 zł",
"nbTotalProducts": "0",
"total": "8,61 zł",
"productTotal": "0,00 zł",

"hasError" : false

}

Spróbuj włączyć debug i zobacz co się dzieje w konsoli / networku.

 

Link to comment
Share on other sites

  • 0


    W koszyku: 5 produkt na kwotę produktów na kwotę Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'onecreo_alvitwg-test-2.cp.id_product_attribute' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

    		SELECT cp.`id_product_attribute`, cp.`id_product`, cu.`id_customization`, cp.`quantity` AS cart_quantity, cu.`quantity` AS customization_quantity, pl.`name`,
    		pl.`description_short`, pl.`available_now`, pl.`available_later`, p.`id_product`, p.`id_category_default`, p.`id_supplier`, p.`id_manufacturer`, p.`on_sale`, p.`ecotax`, p.`additional_shipping_cost`, p.`available_for_order`,
    		p.`quantity`, p.`price`, p.`weight`, p.`width`, p.`height`, p.`depth`, p.`out_of_stock`, p.`active`, p.`date_add`, p.`date_upd`, IFNULL(pa.`minimal_quantity`, p.`minimal_quantity`) as minimal_quantity,
    		t.`id_tax`, tl.`name` AS tax, t.`rate`, pa.`price` AS price_attribute, pa.`quantity` AS quantity_attribute,
            pa.`ecotax` AS ecotax_attr, pl.`link_rewrite`, cl.`link_rewrite` AS category, CONCAT(cp.`id_product`, cp.`id_product_attribute`) AS unique_id,
            IF (IFNULL(pa.`reference`, '') = '', p.`reference`, pa.`reference`) AS reference,
            IF (IFNULL(pa.`supplier_reference`, '') = '', p.`supplier_reference`, pa.`supplier_reference`) AS supplier_reference,
            (p.`weight`+ pa.`weight`) weight_attribute,
            IF (IFNULL(pa.`ean13`, '') = '', p.`ean13`, pa.`ean13`) AS ean13, IF (IFNULL(pa.`upc`, '') = '', p.`upc`, pa.`upc`) AS upc,
    		pai.`id_image` as pai_id_image
    		FROM `ps_cart_product` cp
    		LEFT JOIN `ps_product` p ON p.`id_product` = cp.`id_product`
    		LEFT JOIN `ps_product_lang` pl ON (p.`id_product` = pl.`id_product` AND pl.`id_lang` = 6)
    		LEFT JOIN `ps_product_attribute` pa ON (pa.`id_product_attribute` = cp.`id_product_attribute`)
    		LEFT JOIN `ps_tax_rule` tr ON (p.`id_tax_rules_group` = tr.`id_tax_rules_group`
    			AND tr.`id_country` = 14
    			AND tr.`id_state` = 0)
    	    LEFT JOIN `ps_tax` t ON (t.`id_tax` = tr.`id_tax`)
    		LEFT JOIN `ps_tax_lang` tl ON (t.`id_tax` = tl.`id_tax` AND tl.`id_lang` = 6)
    		LEFT JOIN `ps_customization` cu ON (p.`id_product` = cu.`id_product`)
    		LEFT JOIN `ps_product_attribute_image` pai ON (pai.`id_product_attribute` = pa.`id_product_attribute`)
    		LEFT JOIN `ps_category_lang` cl ON (p.`id_category_default` = cl.`id_category` AND cl.`id_lang` = 6)
    		WHERE cp.`id_cart` = 2
    		
    		AND p.`id_product` IS NOT NULL
    		GROUP BY unique_id
    		ORDER BY cp.date_add ASC

 

To wyszło na stronie głównej  - po włączeniu debugowania.

Żadnych obrazków - tylko to

 

Ciekawostka że na seohost : wszystko śmiga bez problemu https://midwest.pl/test-1/

A na aftermarket takie kwiatki wychodzą: http://www.alvitwg.pl/test-2/

Edited by plaxton (see edit history)
Link to comment
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
×
×
  • Create New...