magento-1.7

Display Categories with Image in Multiple Pages of Homepage - Magento

回眸只為那壹抹淺笑 提交于 2019-12-12 02:17:35
问题 In my Customization , i have more than 100 categories under Default Category so I want to Display all the categories in multiple pages with images Homepage - Magento. Im Using the below code : <div class="category-products"> <ul class="products-grid"> <?php $_categories=$this->getCurrentChildCategories(); if($_categories->count()): $categorycount = 0; foreach ($_categories as $_category): if($_category->getIsActive()): $cur_category=Mage::getModel('catalog/category')->load($_category->getId()

Wrong price for configurable product in cart using SCP and ajax

人盡茶涼 提交于 2019-12-12 01:58:03
问题 I have a problem with the product list page (add to cart- fancy box) when you hover over product a button appears so you can quickly add a product to the cart once you do this a pop up (fancy box) appears - example of theme im using http://hellothemes.com/demo/?framework=hellonevada all is well until you choose an option and the price resets to zero once you select the option and add to cart the lowest priced option appears only. I am using simple configurable products and using excellence

error while trying to create product attributes from magento backend

*爱你&永不变心* 提交于 2019-12-12 01:40:02
问题 I am getting error while trying to create any product attribute. This is the error i am getting. I have nothing else to share. SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails ( kingshop . eav_attribute_label , CONSTRAINT FK_EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID FOREIGN KEY ( attribute_id ) REFERENCES eav_attributex ( attribute_id ) ON DEL) N.B -> I have checked the Engines. All EAV tables are using

Add new field in bundle item option in admin section

做~自己de王妃 提交于 2019-12-12 01:39:58
问题 I am new bie in magento.I am creating a bundle product from admin section .when I add the bundle item there is only the title field for information but I need to add one more field for the description like I created a bundle item for computers but I need to show description about it . Please help .my requirement is to add new field for description along with the title in bundle item option. any help will be appreciated . 回答1: you can add extra field to magento bundle products by editing app

Display specific category products on no results search page

此生再无相见时 提交于 2019-12-12 00:45:26
问题 When we search for a wrong keyword like "sdfsdf" in magento site, it displays that "your search returns no results". Here I want to display any category products like "similar products" category as we display "best sellers" on home page. I have tried by calling the block in the catalogsearch.xml. BUt catalogsearch.xml doent contain any block for no results. So how can I display any category products on no results page. I have an idea like can we display a specific category products on .phtml

Magento: Sort state/province dropdown alphabetically

≯℡__Kan透↙ 提交于 2019-12-12 00:39:55
问题 I've just imported over 4000 country/province codes into the directory_country_region table from here - http://www.magentocommerce.com/boards/viewthread/272591/. Works great...except for one thing. The state/provinces are ordered by region_id instead of the default_name column. It looks like it's already being done at a low level in app/core/code/core/Mage/Directory/Model/Resource/Region/Collection.php protected function _construct() { $this->_init('directory/region'); $this->_countryTable =

checkout is not working in magento1.7

青春壹個敷衍的年華 提交于 2019-12-11 23:23:02
问题 I have a multistore done in Magento 1.7 . Checkout is not working in one store. Nothing is happening after clicking the continue button inside Billing Information block which calls the function onclick="billing.save()" . I checked with firebug all blocks are coming correctly. I think the problem is with the function billing.save() . Where I can find this function. EDIT I have checked my response in transport.responseText in billing.save() for one store I am getting response like this {"goto

How to get subcategories under a custom menu on Magento

泪湿孤枕 提交于 2019-12-11 20:38:11
问题 I have successfully created a custom drop-down-menu for each specific category I needed but one of them needs to load the subcategory within a subcategory and I can't get it to work. The working code without the "subcategory within a subcategory" is the following but I need to find out how to add the 3rd level on this code. <!-- Vending --> <?php $main = Mage::getModel('catalog/category')->load(355) ?> <li class="eight"><a href="<?php echo $main->getUrl() ?>"><?php echo $main->getName(); ?><

Magento update subtotal item

流过昼夜 提交于 2019-12-11 20:26:21
问题 I can't update subtotal item in cart. I created module with observe checkout_cart_product_add_after I can get subtotal price from item: $subtotal = Mage::getSingleton('checkout/cart')->getQuote()->getSubtotal(); but I can't update this, for exmaple: $subtotal = $subtotal + 100; Mage::getSingleton('checkout/session')->getQuote()->setSubtotal($subtotal); Mage::getSingleton('checkout/cart')->getQuote()->setSubtotal($subtotal); Mage::getSingleton('checkout/session')->getQuote()->save(); Mage:

Show Custom Customer Fields in Checkout

淺唱寂寞╮ 提交于 2019-12-11 19:59:43
问题 I've succesfully managed to add custom fields to the customer. However I need these fields to show up in onepage checkout. I've overridden Mage_Customer_Block_Widget_Name and created my own customer/widget/name.phtml , added the attributes in the sql/xxx_setup/installer-x.y.z.php (added them to adminhtml_customer , customer_account_edit , checkout_register and customer_account_create ) and they work fine in the admin site, however they just wont work on the checkout form. The field shows up,