magento-1.5

Magento: how to translate action tag content?

泪湿孤枕 提交于 2019-12-06 08:47:48
问题 I have default page.xml. I have added <block type="core/text" name="for_everyone"> <action method="setText" translate="text"><text>Some text!</text></action> </block> to <block type="core/text_list" name="content" as="content" translate="label"> <label>Main Content Area</label> </block> and I got this one: <block type="core/text_list" name="content" as="content" translate="label"> <label>Main Content Area</label> <block type="core/text" name="for_everyone"> <action method="setText" translate=

Magento - Load Product Collection with Pagination

好久不见. 提交于 2019-12-06 06:06:32
I've been trying to load a product collection and then filter it by calling in the review ids into array and then applying that filter to it. I've enclosed the code below which is in the top of the List.phtml that I'm running it through a custom copy of the list.phtml like so <block type="catalog/product_list" name="sale" template="reviewsList/index.phtml"> Good news is that the collection will load, but it breaks the pagination. If anyone has any ideas that would be great. Full code below. Any help much appreciated. <?php $reviewCollection = Mage::getModel('review/review')->getCollection()-

Before And After In Local.xml Magento?

我是研究僧i 提交于 2019-12-06 04:24:32
问题 I've managed to get to the point where I understand how to move blocks from column to column in my Magento layouts: via specifying a "left" or "right" attribute in the <reference> tag. However, I don't understand how to change the order in which blocks appear. I've noticed that the "before" and "after" attributes of the <block> tag have something to do it with, but I'm not sure how they work. If I want to move a block from the top of its area to anywhere else in our page, what's the proper

Magento - How to create “decimal” attribute type

送分小仙女□ 提交于 2019-12-05 23:24:00
问题 I've done a bit of searching online but I have not found any answers to this question yet. I have a situation where I need a product attribute that is a decimal value and it must support negative numbers as well as positive and must also be sortable. For some reason, Magento does not have a "decimal" attribute type. The only type that uses decimal values is Price, but that doesn't support negative numbers. If I use "text" as the type, it supports whatever I want, but it doesn't sort properly

Magento EAV: how to hard delete an attribute value?

谁说胖子不能爱 提交于 2019-12-05 19:25:07
Let's ask the question clearly before entering into the details: Is there a way of hard deleting an attribute value from a product? By hard I mean, removing the row from the database and not only setting the value to null or empty. Now, the details: I'm currently confronted to a problem on Magento. Many product in my store have user defined attributes that are not related to the product. For example, let's say we have a bag product, among other products like t-shirts,dresses,pants ,etc.: Our bag product has only configurable 1 attribute: color . Our T-Shirt product has 2 configurable

Why doesn't magento autoload parent class

半城伤御伤魂 提交于 2019-12-05 16:25:23
I have a module which will use my controller over magento's by doing <routers> <checkout> <args> <modules> <Some_Thing before="Mage_Checkout">Some_Thing</Some_Thing> </modules> </args> </checkout> </routers> In my class that extends the core class I have to explicitly require the class. Does anyone know why this is? The Magento autoloader is a simple "replace underscores with slashes" algorithm. Because Zend Framework names its controllers differently, and because Magento uses parts of Zend and is inspired by Zend in others, its controllers are named with Zend conventions and placed in a

Directly go to Product Detail page on click of a category in the nav bar

夙愿已清 提交于 2019-12-05 12:31:23
In my store, one of the category has only one product. Is it possible to take the user directly to the product detail page of this one product whenever they click this category in the nav bar? Yes this can be done by using the URL Rewrite Management option in Magento Admin . In Magento Admin: Select from menu bar Catalog > URL Rewrite Management . Click on the Add URLRewrite button. Select the category you want to redirect from. Make a note of the ID Path (e.g.: category/10 ) and the Request Path (e.g.: flowerpots.html ) Repeat steps 1 & 2 , but this time select Custom from the Create

Show recent_viewed products on product Page

↘锁芯ラ 提交于 2019-12-04 15:06:56
The Current default functionality of magento is that it shows the recently viewed products on right side of category page. Now I would like to display the same content on at the bottom of product page. the phtml file used is named at location as frontend/base/default/template/reports/product_viewed.phtml . Is there any simple way to do it ? In your theme you will modify the catalog.xml file (/app/design/frontend/{your theme}/default/layout/catalog.xml). Find the following section and add a block call for the template towards the bottom of the content reference. <catalog_product_view translate=

Magento: how to translate action tag content?

我怕爱的太早我们不能终老 提交于 2019-12-04 14:55:07
I have default page.xml. I have added <block type="core/text" name="for_everyone"> <action method="setText" translate="text"><text>Some text!</text></action> </block> to <block type="core/text_list" name="content" as="content" translate="label"> <label>Main Content Area</label> </block> and I got this one: <block type="core/text_list" name="content" as="content" translate="label"> <label>Main Content Area</label> <block type="core/text" name="for_everyone"> <action method="setText" translate="text"><title>Some text!</title></action> </block> </block> Then I added two files for my theme: app

Custom Start Number for Order Numbers in Magento 1.5

故事扮演 提交于 2019-12-04 13:16:21
问题 How do I customise the starting number for orders, invoices etc in Magento 1.5? 回答1: From magento's forum: by LindyKyaw (Magento Team Member), changing start number (through sql query): There is a table in the database which stored increment id of order. It is called “eav_entity_store” table. You can check which entity type id belongs to which entity by looking at eav_entity_type table. You can run following query to update last increment id for the order. update eav_entity_store inner join