2011-03-01 61 views
2

我已經建立了一個由Magento 1.4.2社區版支持的B2B網站。有時候,顧客正試圖用他們的購物車中的大量商品結賬 - 高達250!我的問題是雙重的:無法簽到購物車中有大量商品(200+) - Magento 1.4.2

  1. 當購物車中有很多物品時,通過網站的簡單導航對用戶而言變得非常緩慢。
  2. 在OnePage結帳時,當他們四處提交訂單時,他們會得到一個JavaScript彈出窗口,簡單地聲明「未定義」,並且它們仍保留在onepage結帳頁面上。

有沒有人在處理這類問題方面有類似的經驗?

我試圖實現memcached以及整個頁面緩存,希望它有助於減輕服務器的壓力,但它在解決這個問題上還沒有效果。

回答

5

我遇到了企業版Magento的類似問題。如果您尚未這樣做,您可以嘗試禁用購物車邊欄,以便在瀏覽時幫助網站加快速度。我們更改了側邊欄,以便如果內容超過25項,則不會嘗試加載產品,這對幫助很大。

對於第二個錯誤,如果您在使用Firebug和Firefox時逐步完成訂單流程,則應該獲得比「未定義」更多的錯誤信息,這有助於弄清楚發生了什麼。

你也可以嘗試碰撞php.ini的memory_limit,我們最終將我們的設置爲256mb,這解決了我們網站的大部分內存錯誤。

+0

的感謝!實施這些建議,並會讓你知道它是怎麼回事...... – VinnyD 2011-03-01 20:51:25

+0

顯然,「undefined」錯誤與memory_limit&max_execution_time設置有關,因爲我只能下訂單。它確實需要一段時間才能真正下訂單並在結賬過程中移動步驟。在結帳頁面上沒有邊欄,所以你有更多的建議來加快速度? – VinnyD 2011-03-01 21:36:48

+2

在這一點上,你可能正在尋找調整my.cnf設置,使用諸如eAccelerator之類的東西等。Magneto有一個白皮書,涵蓋了很多服務器優化你可以做:http://www.magentocommerce.com/whitepaper它說它適用於企業,但大多數信息對CE也有好處。感謝, – Josh 2011-03-01 22:43:25

0

我不知道CE 1.4的數據庫結構,但是我的CE 1.6有嚴重的性能問題。
原因:錯誤和缺少索引。他們固定在CE 1.6.2
你可能會檢查它是否對你有幫助。
我減少了結賬時間爲38行,共73件商品,從123秒到4秒!!!!

這裏說到:

/*!40014 SET @[email protected]@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; 

/* Foreign Keys must be dropped in the target to ensure that requires changes can be done*/ 

ALTER TABLE `core_url_rewrite` 
DROP FOREIGN KEY `FK_CORE_URL_REWRITE_CTGR_ID_CAT_CTGR_ENTT_ENTT_ID` , 
DROP FOREIGN KEY `FK_CORE_URL_REWRITE_STORE_ID_CORE_STORE_STORE_ID` ; 


/* Alter table in target */ 
ALTER TABLE `catalog_category_entity_varchar` 
DROP KEY `MAGMI_CCEV_OPTIMIZATION_IDX` ; 


/* Alter table in target */ 
ALTER TABLE `catalog_product_bundle_stock_index` 
DROP KEY `PRIMARY`, ADD PRIMARY KEY(`entity_id`,`website_id`,`stock_id`,`option_id`) ; 


/* Alter table in target */ 
ALTER TABLE `catalog_product_entity_media_gallery` 
DROP KEY `MAGMI_CPEM_OPTIMIZATION_IDX` ; 


/* Alter table in target */ 
ALTER TABLE `core_url_rewrite` 
CHANGE `id_path` `id_path` varchar(255) COLLATE utf8_general_ci NULL COMMENT 'Id Path' after `store_id` , 
CHANGE `request_path` `request_path` varchar(255) COLLATE utf8_general_ci NULL COMMENT 'Request Path' after `id_path` , 
CHANGE `target_path` `target_path` varchar(255) COLLATE utf8_general_ci NULL COMMENT 'Target Path' after `request_path` , 
CHANGE `is_system` `is_system` smallint(5) unsigned NULL DEFAULT 1 COMMENT 'Defines is Rewrite System' after `target_path` , 
CHANGE `options` `options` varchar(255) COLLATE utf8_general_ci NULL COMMENT 'Options' after `is_system` , 
CHANGE `description` `description` varchar(255) COLLATE utf8_general_ci NULL COMMENT 'Deascription' after `options` , 
CHANGE `category_id` `category_id` int(10) unsigned NULL COMMENT 'Category Id' after `description` , 
CHANGE `product_id` `product_id` int(10) unsigned NULL COMMENT 'Product Id' after `category_id` , 
ADD KEY `FK_CORE_URL_REWRITE_PRODUCT_ID_CATALOG_CATEGORY_ENTITY_ENTITY_ID`(`product_id`) , 
DROP KEY `FK_CORE_URL_REWRITE_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID` , 
ADD CONSTRAINT `FK_CORE_URL_REWRITE_PRODUCT_ID_CATALOG_CATEGORY_ENTITY_ENTITY_ID` 
FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE , 
DROP FOREIGN KEY `FK_CORE_URL_REWRITE_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID` ; 


/* Alter table in target */ 
ALTER TABLE `eav_attribute` 
DROP KEY `MAGMI_EA_CODE_OPTIMIZATION_IDX` ; 


/* Alter table in target */ 
ALTER TABLE `eav_attribute_option_value` 
DROP KEY `MAGMI_EAOV_OPTIMIZATION_IDX` ; 


/* The foreign keys that were dropped are now re-created*/ 

ALTER TABLE `core_url_rewrite` 
ADD CONSTRAINT `FK_CORE_URL_REWRITE_CTGR_ID_CAT_CTGR_ENTT_ENTT_ID` 
FOREIGN KEY (`category_id`) REFERENCES `catalog_category_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE , 
ADD CONSTRAINT `FK_CORE_URL_REWRITE_STORE_ID_CORE_STORE_STORE_ID` 
FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE ; 

/*!40014 SET [email protected]_FOREIGN_KEY_CHECKS */; 
相關問題