2

ウェブページの上部にあるカート ブロックと、各商品の [カートに追加] ボタンの両方が消えます。これは私のウェブサイトのすべてのページで発生し、突然発生します(申し訳ありませんが、私が行った変更がこれを引き起こしていることを思い出す/絞り込むことができれば、ここでは質問しません)

問題をトラブルシューティング/解決しようとしたこと:

  • 「カート ブロック」v1.2 モジュールがインストールされ、有効になっていることを確認しました (また、無効にして再度有効にし、リセットし、アンインストールして再度インストールしてみました)
  • 「モジュール」>>「位置」の下で、「カートブロック」が「ページヘッダー」と「ページのトップ」の両方の下にあることを確認しました
  • 404エラーのJavascriptファイルがないことを確認
  • カート ブロックまたは [カートに追加] ボタンに HTML コードがまったくないことを確認したため、CSS の問題は無関係です<section id="header_user" class="blockuserinfo-cart header-box"></section>
    • デフォルトのテーマに戻しましたが、まったくうまくいきません

これは私が見逃した些細なことだと確信しています。私のサイトは明らかにカート機能なしでは機能しないため、助けてください.

ありがとう、

Prestashop のバージョンは 1.5.5.0 です

以下は、参考までに私の Smarty デバッグ ログです。

Smarty Debug Console - Total Time 0.09338 included templates & config files (load time in seconds)/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/feeder/feederHeader.tpl (compile 0.00000) (render 0.00011) (cache 0.00000) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/paypal/views/templates/hook/paypal.js(compile 0.00000) (render 0.00009) (cache 0.00000) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/blocklanguages/blocklanguages.tpl (compile 0.00000) (render 0.00031) (cache 0.00000) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/blockpermanentlinks/blockpermanentlinks-header.tpl (compile 0.00000) (render 0.00000) (cache 0.00010) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/blocksearch/blocksearch-top.tpl (compile 0.00000) (render 0.00000) (cache 0.00008) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/blockuserinfo/blockuserinfo.tpl (compile 0.00000) (render 0.00035) (cache 0.00000) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/blocktopmenu/blocktopmenu.tpl (compile 0.00000) (render 0.00000) (cache 0.00010) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/blockviewed/blockviewed.tpl (compile 0.00000) (render 0.00120) (cache 0.00000) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/blockcms/blockcms.tpl (compile 0.00000) (render 0.00000) (cache 0.00031) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/blockadvertising/blockadvertising.tpl(compile 0.00000) (render 0.00000) (cache 0.00011) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/blocknewsletter/blocknewsletter.tpl (compile 0.00000) (render 0.00047) (cache 0.00000) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/blocknewproducts/blocknewproducts.tpl(compile 0.00000) (render 0.00000) (cache 0.00011) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/paypal/views/templates/hook/column.tpl(compile 0.00000) (render 0.00015) (cache 0.00000) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/blockwishlist/blockwishlist.tpl (compile 0.00000) (render 0.00017) (cache 0.00000) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/homeslider/homeslider.tpl (compile 0.00000) (render 0.00000) (cache 0.00012) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/homefeatured/homefeatured.tpl (compile 0.00000) (render 0.00000) (cache 0.00015) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/editorial/editorial.tpl (compile 0.00000) (render 0.00000) (cache 0.00010) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/blockmyaccountfooter/blockmyaccountfooter.tpl(compile 0.00000) (render 0.00000) (cache 0.00010) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/modules/blockcontactinfos/blockcontactinfos.tpl(compile 0.00000) (render 0.00000) (cache 0.00013) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/index.tpl (compile 0.00000) (render 0.00011) (cache 0.00000) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/layout.tpl (compile 0.00000) (render 0.00105) (cache 0.00000) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/header.tpl (compile 0.00000) (render 0.00036) (cache 0.00000) 
/Applications/MAMP/htdocs/niuniu/themes/fashionbird/footer.tpl (compile 0.00000) (render 0.00009) (cache 0.00000) assigned template variables $HOOK_FOOTER Smarty_Variable Object (3)
->value = " <!-- MODULE Block footer -->..."
->nocache = false
->scope = "Smarty root" $HOOK_HEADER Smarty_Variable Object (3)
->value = " <link rel="alternate" type="applicat..."
->nocache = false
->scope = "Smarty root" $HOOK_HOME Smarty_Variable Object (3)
->value = "<!-- Module HomeSlider --> <script ty..."
->nocache = false
->scope = "Smarty root" $HOOK_LEFT_COLUMN Smarty_Variable Object (3)
->value = " <!-- Block Viewed products --> <se..."
->nocache = false
->scope = "Smarty root" $HOOK_RIGHT_COLUMN Smarty_Variable Object (3)
->value = "<!-- MODULE Block new products --> <..."
->nocache = false
->scope = "Smarty root" $HOOK_TOP Smarty_Variable Object (3)
->value = " <!-- Block languages module --> <s..."
->nocache = false
->scope = "Smarty root" $PS_ALLOW_MOBILE_DEVICE Smarty_Variable Object (3)
->value = true
->nocache = false
->scope = "Smarty root" $PS_CATALOG_MODE Smarty_Variable Object (3)
->value = true
->nocache = false
->scope = "Smarty root" $PS_SHOP_NAME Smarty_Variable Object (3)
->value = "NiuNiu"
->nocache = false
->scope = "Smarty root" $PS_STOCK_MANAGEMENT Smarty_Variable Object (3)
->value = "1"
->nocache = false
->scope = "Smarty root" $SCRIPT_NAME Smarty_Variable Object (3)
->value = "/niuniu/index.php"
->nocache = false
->scope = "Global" $add_prod_display Smarty_Variable Object (3)
->value = 1
->nocache = false
->scope = "Smarty root" $b2b_enable Smarty_Variable Object (3)
->value = false
->nocache = false
->scope = "Smarty root" $base_dir Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/"
->nocache = false
->scope = "Smarty root" $base_dir_ssl Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/"
->nocache = false
->scope = "Smarty root" $base_uri Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/"
->nocache = false
->scope = "Smarty root" $cart Smarty_Variable Object (3)
->value = Cart Object (23)
   ->id = 6
   ->id_shop_group = "0"
   ->id_shop = "1"
   ->id_address_delivery = "5"
   ->id_address_invoice = "5"
   ->id_currency = "1"
   ->id_customer = "2"
   ->id_guest = "21"
   ->id_lang = "1"
   ->recyclable = "0"
   ->gift = "0"
   ->gift_message = ""
   ->mobile_theme = "0"
   ->date_add = "2013-10-20 14:32:18"
   ->secure_key = "63c9bc62096e6e078d1e5377ac39e35e"
   ->id_carrier = "0"
   ->date_upd = "2013-10-27 11:36:53"
   ->checkedTos = false
   ->pictures = null
   ->textFields = null
   ->delivery_option = ""
   ->allow_seperated_package = "0"
   ->id_shop_list = null
->nocache = false
->scope = "Smarty root" $cart_qties Smarty_Variable Object (3)
->value = 0
->nocache = false
->scope = "Smarty root" $come_from Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/en/"
->nocache = false
->scope = "Smarty root" $conditions Smarty_Variable Object (3)
->value = "1"
->nocache = false
->scope = "Smarty root" $content_dir Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/"
->nocache = false
->scope = "Smarty root" $content_only Smarty_Variable Object (3)
->value = 0
->nocache = false
->scope = "Smarty root" $cookie Smarty_Variable Object (3)
->value = Cookie Object (0)
->nocache = false
->scope = "Smarty root" $css_dir Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/themes/f..."
->nocache = false
->scope = "Smarty root" $css_files Smarty_Variable Object (3)
->value = Array (28)
  /niuniu/themes/fashionbird/css/grid_prestashop.css => "all"
  /niuniu/themes/fashionbird/css/global.css => "all"
  /niuniu/themes/fashionbird/css/modules/carriercompare/style.css => "all"
  /niuniu/themes/fashionbird/css/modules/blockpermanentlinks/blockpermanentlinks.css=> "all"
  /niuniu/themes/fashionbird/css/modules/blockviewed/blockviewed.css => "all"
  /niuniu/themes/fashionbird/css/modules/blocknewproducts/blocknewproducts.css => "all"
  /niuniu/themes/fashionbird/css/modules/blockuserinfo/blockuserinfo.css => "all"
  /niuniu/themes/fashionbird/css/modules/blockmyaccountfooter/blockmyaccount.css => "all"
  /niuniu/themes/fashionbird/css/modules/blocklanguages/blocklanguages.css => "all"
  /niuniu/themes/fashionbird/css/modules/blockcms/blockcms.css => "all"
  /niuniu/themes/fashionbird/css/modules/blocktags/blocktags.css => "all"
  /niuniu/js/jquery/plugins/autocomplete/jquery.autocomplete.css => "all"
  /niuniu/themes/fashionbird/css/product_list.css => "all"
  /niuniu/themes/fashionbird/css/modules/blocksearch/blocksearch.css => "all"
  /niuniu/themes/fashionbird/css/modules/blocknewsletter/blocknewsletter.css => "all"
  /niuniu/themes/fashionbird/css/modules/crossselling/crossselling.css => "all"
  /niuniu/themes/fashionbird/css/modules/productscategory/productscategory.css => "all"
  /niuniu/themes/fashionbird/css/modules/blockcontactinfos/blockcontactinfos.css => "all"
  /niuniu/themes/fashionbird/css/modules/blocklink/blocklink.css => "all"
  /niuniu/themes/fashionbird/css/modules/productcomments/productcomments.css => "all"
  /niuniu/themes/fashionbird/css/modules/homefeatured/homefeatured.css => "all"
  /niuniu/modules/paypal/css/paypal.css => "all"
  /niuniu/modules/editorial/editorial.css => "all"
  /niuniu/js/jquery/plugins/jgrowl/jquery.jgrowl.css => "all"
  /niuniu/modules/sendtoafriend/sendtoafriend.css => "all"
  /niuniu/modules/blockwishlist/blockwishlist.css => "all"
  /niuniu/themes/fashionbird/css/modules/blocktopmenu/css/superfish-modified.css => "all"
  /niuniu/modules/homeslider/bx_styles.css => "all"
->nocache = false
->scope = "Smarty root" $currencies Smarty_Variable Object (3)
->value = Array (1)
  0 => Array (12)
    id_currency => "1"
    name => "Dollar"
    iso_code => "SGD"
    iso_code_num => "702"
    sign => "$"
    blank => "1"
    format => "1"
    decimals => "1"
    conversion_rate => "1.000000"
    deleted => "0"
    active => "1"
    id_shop => "1"
->nocache = false
->scope = "Smarty root" $currency Smarty_Variable Object (3)
->value = Currency Object (14)
   ->id = 1
   ->name = "Dollar"
   ->iso_code = "SGD"
   ->iso_code_num = "702"
   ->sign = "$"
   ->blank = "1"
   ->conversion_rate = "1.000000"
   ->deleted = "0"
   ->format = "1"
   ->decimals = "1"
   ->active = "1"
   ->prefix = "$ "
   ->suffix = ""
   ->id_shop_list = null
->nocache = false
->scope = "Smarty root" $customerName Smarty_Variable Object (3)
->value = "Eric Nguyen"
->nocache = false
->scope = "Smarty root" $display_footer Smarty_Variable Object (3)
->value = true
->nocache = false
->scope = "Smarty root" $display_header Smarty_Variable Object (3)
->value = true
->nocache = false
->scope = "Smarty root" $display_tax_label Smarty_Variable Object (3)
->value = true
->nocache = false
->scope = "Smarty root" $errors Smarty_Variable Object (3)
->value = Array (0)
->nocache = false
->scope = "Smarty root" $favicon_url Smarty_Variable Object (3)
->value = "/niuniu/img/favicon.ico"
->nocache = false
->scope = "Smarty root" $hide_left_column Smarty_Variable Object (3)
->value = false
->nocache = false
->scope = "Smarty root" $hide_right_column Smarty_Variable Object (3)
->value = false
->nocache = false
->scope = "Smarty root" $id_cart Smarty_Variable Object (3)
->value = 6
->nocache = false
->scope = "Smarty root" $id_cgv Smarty_Variable Object (3)
->value = "3"
->nocache = false
->scope = "Smarty root" $id_currency_cookie Smarty_Variable Object (3)
->value = 1
->nocache = false
->scope = "Smarty root" $img_cat_dir Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/img/c/"
->nocache = false
->scope = "Smarty root" $img_col_dir Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/img/co/"
->nocache = false
->scope = "Smarty root" $img_dir Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/themes/f..."
->nocache = false
->scope = "Smarty root" $img_lang_dir Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/img/l/"
->nocache = false
->scope = "Smarty root" $img_manu_dir Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/img/m/"
->nocache = false
->scope = "Smarty root" $img_prod_dir Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/img/p/"
->nocache = false
->scope = "Smarty root" $img_ps_dir Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/img/"
->nocache = false
->scope = "Smarty root" $img_ship_dir Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/img/s/"
->nocache = false
->scope = "Smarty root" $img_store_dir Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/img/st/"
->nocache = false
->scope = "Smarty root" $img_sup_dir Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/img/su/"
->nocache = false
->scope = "Smarty root" $img_update_time Smarty_Variable Object (3)
->value = "1382845757"
->nocache = false
->scope = "Smarty root" $js_dir Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/themes/f..."
->nocache = false
->scope = "Smarty root" $js_files Smarty_Variable Object (3)
->value = Array (14)
  0 => "/niuniu/js/jquery/jquery-1.7.2.min.js"
  1 => "/niuniu/js/jquery/plugins/jquery.easi..."
  2 => "/niuniu/js/tools.js"
  3 => "/niuniu/modules/carriercompare/carrie..."
  4 => "/niuniu/js/jquery/plugins/autocomplet..."
  5 => "/niuniu/modules/crossselling/js/cross..."
  6 => "/niuniu/themes/fashionbird/js/modules..."
  7 => "/niuniu/js/jquery/plugins/jquery.seri..."
  8 => "/niuniu/js/jquery/plugins/jgrowl/jque..."
  9 => "/niuniu/modules/blockwishlist/js/ajax..."
  10 => "/niuniu/themes/fashionbird/js/modules..."
  11 => "/niuniu/themes/fashionbird/js/modules..."
  12 => "/niuniu/modules/homeslider/js/jquery...."
  13 => "/niuniu/modules/homeslider/js/homesli..."
->nocache = false
->scope = "Smarty root" $lang_iso Smarty_Variable Object (3)
->value = "en"
->nocache = false
->scope = "Smarty root" $languages Smarty_Variable Object (3)
->value = Array (3)
  0 => Array (10)
    id_lang => "1"
    name => "English (United States)"
    active => "1"
    iso_code => "en"
    language_code => "en"
    date_format_lite => "Y-m-d"
    date_format_full => "Y-m-d H:i:s"
    is_rtl => "0"
    id_shop => "1"
    shops => Array (1)
      1 => true
  1 => Array (10)
    id_lang => "2"
    name => "Chinese-Traditional"
    active => "1"
    iso_code => "tw"
    language_code => "tw"
    date_format_lite => "Y-m-d"
    date_format_full => "Y-m-d H:i:s"
    is_rtl => "0"
    id_shop => "1"
    shops => Array (1)
      1 => true
  2 => Array (10)
    id_lang => "3"
    name => "Chinese-Simplified"
    active => "1"
    iso_code => "zh"
    language_code => "zh"
    date_format_lite => "Y-m-d"
    date_format_full => "Y-m-d H:i:s"
    is_rtl => "0"
    id_shop => "1"
    shops => Array (1)
      1 => true
->nocache = false
->scope = "Smarty root" $link Smarty_Variable Object (3)
->value = Link Object (2)
   ->protocol_link
   ->protocol_content
->nocache = false
->scope = "Smarty root" $logged Smarty_Variable Object (3)
->value = true
->nocache = false
->scope = "Smarty root" $logo Smarty_Variable Object (3)
->value = "/niuniu/modules/paypal/img/logos/GB_v..."
->nocache = false
->scope = "Smarty root" $logo_image_height Smarty_Variable Object (3)
->value = "36"
->nocache = false
->scope = "Smarty root" $logo_image_width Smarty_Variable Object (3)
->value = "300"
->nocache = false
->scope = "Smarty root" $logo_url Smarty_Variable Object (3)
->value = "/niuniu/img/logo.jpg?1382845757"
->nocache = false
->scope = "Smarty root" $mail_dir Smarty_Variable Object (3)
->value = "/niuniu/mails/"
->nocache = false
->scope = "Smarty root" $meta_description Smarty_Variable Object (3)
->value = "Shop powered by PrestaShop"
->nocache = false
->scope = "Smarty root" $meta_keywords Smarty_Variable Object (3)
->value = ""
->nocache = false
->scope = "Smarty root" $meta_language Smarty_Variable Object (3)
->value = "en-tw-zh"
->nocache = false
->scope = "Smarty root" $meta_title Smarty_Variable Object (3)
->value = "NiuNiu"
->nocache = false
->scope = "Smarty root" $mobile_device Smarty_Variable Object (3)
->value = false
->nocache = false
->scope = "Smarty root" $modules_dir Smarty_Variable Object (3)
->value = "/niuniu/modules/"
->nocache = false
->scope = "Smarty root" $navigationPipe Smarty_Variable Object (3)
->value = ">"
->nocache = false
->scope = "Smarty root" $opc Smarty_Variable Object (3)
->value = false
->nocache = false
->scope = "Smarty root" $page_name Smarty_Variable Object (3)
->value = "index"
->nocache = false
->scope = "Smarty root" $pic_dir Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/upload/"
->nocache = false
->scope = "Smarty root" $priceDisplay Smarty_Variable Object (3)
->value = 0
->nocache = false
->scope = "Smarty root" $priceDisplayPrecision Smarty_Variable Object (3)
->value = 2
->nocache = false
->scope = "Smarty root" $request Smarty_Variable Object (3)
->value = "http://localhost:8888/niuniu/en/"
->nocache = false
->scope = "Smarty root" $request_uri Smarty_Variable Object (3)
->value = "/niuniu/en/"
->nocache = false
->scope = "Smarty root" $roundMode Smarty_Variable Object (3)
->value = 2
->nocache = false
->scope = "Smarty root" $shop_name Smarty_Variable Object (3)
->value = "NiuNiu"
->nocache = false
->scope = "Smarty root" $show_taxes Smarty_Variable Object (3)
->value = 0
->nocache = false
->scope = "Smarty root" $static_token Smarty_Variable Object (3)
->value = "e9169799f715848b8dd0593eef59e057"
->nocache = false
->scope = "Smarty root" $template Smarty_Variable Object (3)
->value = " <!-- Module HomeSlider --> <script t..."
->nocache = false
->scope = "Smarty root" $time Smarty_Variable Object (3)
->value = 1382847430
->nocache = false
->scope = "Smarty root" $token Smarty_Variable Object (3)
->value = "233105f0dd03355c312d2f6b4cd504f5"
->nocache = false
->scope = "Smarty root" $tpl_dir Smarty_Variable Object (3)
->value = "/Applications/MAMP/htdocs/niuniu/them..."
->nocache = false
->scope = "Smarty root" $use_taxes Smarty_Variable Object (3)
->value = 1
->nocache = false
->scope = "Smarty root" $vat_management Smarty_Variable Object (3)
->value = 0
->nocache = false
->scope = "Smarty root" assigned config file variables (outer template scope)
4

4 に答える 4

12

私はまったく同じ問題を抱えており、修正を探すのに何日も費やしました。

私にとってそれを修正したのは:

  • 設定/製品に移動
  • 「カタログモード」をOFFにする
  • 保存します。

また、すべてのフックがカート ブロック用にリセットされていることを確認してください。

于 2014-04-23T08:29:07.593 に答える
2

私にとってそれを修正したのは:

環境設定/製品に移動し、「カタログモード」をオフにしてから保存します。

それは私のPayPalの問題を修復しました。

于 2016-03-13T03:33:57.583 に答える
1

まったく同じ問題に遭遇しました。

私の場合、解決策はAvailable for order、製品ページでチェックボックスがチェックされていたことです。

于 2015-04-02T23:21:14.937 に答える
0

これはそこにあるのに、アニメーションで見えなくなって見えない場所ですか? もしそうなら、これは、カートを表示および非表示にするコントロールが、実際にはまったく別のモジュールであるユーザー情報モジュールに接続されていると彼らがかなり愚かに判断したためです。したがって、そのモジュールにカーソルを合わせると、両方がインストールされている場合、デフォルトのテーマと同じようにカートが表示されます。

于 2013-11-05T15:35:02.167 に答える