Add search module in category page - magento

I would add the search form in the category pages. The module will make researches in the same category. It's possible?

Add category to Advanced Search. Some pointers here:
http://www.magentocommerce.com/wiki/5_-_modules_and_development/search_and_advanced_search/how_to_add_search_by_category_to_advanced_search
You will probably want to do it in a module rather than in a core hack...
Now put some simple form together inside a phtml file, put the layout xml together to load it on category pages. Set the search to add the current category to the search string that gets sent off to your modified 'Advanced Search'.
As for getting that category, try $this->getCurrentCategory();

Related

adding product listing on magento homepage with description

I need to show my new products on the home page as a list view. I have used a Magento widget, but it is not returning the description of the product. How can I fetch the whole details of the product in the home page as shown in the image below?
First find out(template hint) the file from where your widget is rendering products. It's located in app/design/frontend/<yourpackage>/<yourtheme>/template/catalog/product/widget/new/content/new_grid.phtml/new_list.phtml
Go look in that file, you will see how and what values are the widgets printing. So if you want description within the foreach loop you can get by printing $_product->getShortDescription() or $_product->getData('short_description')
Similarly to get other stuff like in list page, please take reference from template/catalog/product/list.phtml see how the other details are being printed and get those here on widget phtml file.

joomla using virtuemart i want the description to be placed under products

I have a joomla site using virtue mart in my products. I want my description to be placed under the products. Any help would be appreciated.
You will see here that the description is above the products.
I have had a look through the source files but was wondering the best way to go about this as I may just be missing something.
I hope you are using , VM2.x Versions.
The the Product Details Page Source file you can found on the following path.
components\com_virtuemart\views\productdetails\tmpl\
The product description and short descriptions are included in the default.php layout.
If you want to change the description ordering simply change its position as per your requirement.
$this->product->product_s_desc and $this->product->product_desc;
If you are planning to change the default VM template style , I recommend to use Joomla Override Concept this way you can simply override the default template with your own.
Here you need to override productdetails view then simply like below.
copy all the files from components\com_virtuemart\views\productdetails\tmpl\ and paste this to , templates/your_template/html/com_virtuemart/productdetails/ If you unable to find this path inside your template folder you have to create that.
This will simply load your new layouts from template folder rather than default path.
Hope it clear for you..
The VM Template system also lets you create additional view templates for categories and products. To override the default categories, category, or productdetails view, simple use the standard Joomla template override method. Copy /components/com_virtuemart/views/[categories, category, or productdetails]/default.php to /templates/[Your Template]/html/com_virtuemart/[categories, category, or productdetails]/default.php and make your changes to the template version of default.php.
To create additional views that can be set on a per category/product basis, simply copy /templates/[Your Template]/html/[categories, category, or productdetails]/default.php to a new file name like /templates/[Your Template]/html/[categories, category, or productdetails]/myView.php and make the desired changes. In the Virtuemart category or product configuration, you will find myView in the drop down list of alternatives views that can be used.

Magento Go - Adding attribute above product description in Grid view

Im wanting to add the Brand name (or designer name in this case which i have made a new attribute for) just above the product description in the Category view (grid) but cant figure it out.
As its Magento Go i have no access to the code, other than XML updates for the category itself.
Ive looked everywhere and would value any help.
Thanks
If you are cant get to the template phtml codes, you can put it on by admin.
Open catalog / attributes / manage attributes, find your attribute and in the properties set to
Visible on Product View Page on Front-end
Used in Product Listing
But it will not be on position you want.
You can edit CSS for the template and set an absolute position for your attribute.
Next way is to add in the admin in category XML layout, but this you need to do for each category. (Custom Layout Update)

Magento: Category product design update not applied to search result products

I'm using a design update XML applied to all products under specific categories. The update is applied successfully to those products when browsed to them from those categories, but not when those products are opened from search results. How can I make the design update affect those products when opened from search results?
You need to add a layout handle that you can "grab" for each one of these products and modify the layout through layout xml files.
The key to this process is in the initProductLayout method of Mage_Catalog_Helper_Product_View. This method is where custom layout handles are added based on the product model. You can grab the layout update object from the controller and call addHandle() on it with a string to add that handle. So you'll want to rewrite this method and do something like this:
$update = $controller->getLayout()->getUpdate();
foreach ($product->getCategoryIds() as $categoryId) {
$update->addHandle('PRODUCT_IN_CATEGORY_' . $categoryId);
}
Now, in a layout xml file you can target the <PRODUCT_IN_CATEGORY_##> handle for the ID of your category(ies) and any layout updates you put here will be applied to the product view page no matter how it is accessed.
Depending on the specifics of your installation, it may make more sense to key the handle with some other category identifier, like the name or URL key, instead of the numeric ID. For this, use $product->getCategoryCollection() and iterate through the collection to grab what you need. You may also want to use $product->getAvailableinCategories() if you want to include only category IDs that the product belongs to directly (instead of including categories of higher parentage).

Better configurable products - also load the related products

We are using the Magento module DerModPro_BCP (Betterconfigurable Products).
We have configurable products based on simple products. Some of these simple products have related products.
When selecting a configuration option, the related products of the assigned simple product should be loaded.
What is the right approach to add blocks to reload when changing options?
The extension renders the full simple product during the AJAX request and extracts the necessary data via Xpath queries from the generated HTML. Then it sends this data to the browser where CSS queries are used to replace the content in the page
Create a new module with a following config.xml
In the node global/bcp/update_selector_list add a new node <related />
In default/dermodpro_bcp add <update_related_.... entries to defined the Xpaths and CSS paths
In addition, catalog/product/list/related.phtml has to be modified in your theme to contain an empty <div> as a placeholder, if no related products are defined.

Resources