Magento 1 :Home page Same product show .this remove on this producrt - magento-1.9

Magento 1 home page only one product show 1 first product configurable and second product simple show problem only showing simple product get the home page work. and i have in home page only showing simple product please help this frind..enter image description here

I have 2 solutions for that:
You can use the filter to get all simple product on the collection.
You can check if/else on the loop when you print product. So, just display simple and ignore configurable product

Related

Opencart Custom Description Design (Products)

I've just purchased and set up Pav Fila OpenCart theme. Looks like a great theme and the only thing I want to change is the product description layout (design).
Is this easily possible with the inner block builder and layout builder or needs advanced coding? Maybe an extention?
See what we have now: http://mika.shoes/index.php?route=product/product&product_id=46 and what we
I want a simple evenly distributed description rows/columns like in the product description in G-RAW: https://www.g-star.com/en_bg/shop/women/jackets_and_blazers/d11950-6541-89
Please, note that I am DESIGNER not coder but learning now and understanding everything as explained. Do not be too harsh with me
Well if you want a simple layout change you can do this with opencart editor
Goto catalog > products > select your product ,click edit
Goto general tab
here you can customize your design like this-

How to access direct product URL with (Not Visible Individual) in magento1.9

I need a help in magento 1.9.x
I want access Product details page via URL but Product not visible in searching and Category so for that i use 'Not Visible Individual' in Visibility section when create product from backend.
So i can't understand what i do.
Please help me.
Either You have to change visibility to "Catalog Search" OR Add this simple product to any configurable product.

mediawiki api. how to chose page from response

When I make api query sometimes I have list with few pages. For example
http://en.wikipedia.org/wiki/Ask gives a lot of pages, I need website "Ask.com, a web search engine, formerly Ask Jeeves"
can I make query only for some category ("websites")?
How I can check category for each page in response?
Thanks
There is no trivial way to do what you're asking. You could do something like this:
Get the list of pages the disambiguation page list. You could do this by listing the links on that page (action=query&prop=links).
Get the categories of all the pages from the previous step and use that to decide which one is the one you're looking for. This is not that simple, because Ask.com is not directly in Category:Websites, it's in one of its subcategories.
I have list with few pages, for example http://en.wikipedia.org/wiki/Ask
The problem is that you're not getting a list of pages, you just are getting an ordinary page which is in the disambiguation pages category. To get the list, you need to get the links in that page.
can I make query only for some category ("websites")?
No, mediawiki does not support that.
How I can check category for each page in response?
Use the links property as a title list generator and get the categories of each page in the response. In your case, that would be http://en.wikipedia.org/w/api.php?action=query&titles=Ask&generator=links&prop=categories (don't forget to continue the query).
If you are OK with "full-text search" for "ask",
you can do that like this:
http://en.wikipedia.org/w/api.php?format=json&action=query&generator=search&gsrsearch=ask%20incategory:%22Online%20companies%22&prop=info
As you can see, "search" text is [ask incategory:"Online companies"]
The same solution also can be seen at:
Wikipedia API: how to search for a term in a specific category

Magento simple product attributes - $_item acting weird

I've been working on a magento site, and was able to pull the simple product attributes with this:
$_item->getAttributename()
This is on grouped.phtml template since I'm pulling those attributes to the table of a Grouped Product.
It was working fine until some days ago, it just stopped working. It's only showing the Sku and the Price of the simple product. Not displaying the other attributes (like capacity, etc).
I've been messing around with:
<?php print('<pre>');print_r($_item->getData());print('</pre>'); ?>
And found out that in my local copy it displays the attributes in the array of $_item, but it's not showing them online and that must be why I can't pull them with getAttributename.
My question is, why would the $_item just change like that? And how can I fix this?
Thank you!

Transclude a category in MediaWiki

I'm not quite sure if this is possible in MediaWiki.
I've got several categories, each containing a few pages. If you open a category page you'll see the contents of the category that usualy consists of these three parts:
A user defined text (which can be edited by using the edit link).
All subcategories that are attached to this category.
All pages that are attached to this category.
My goal is to create a page that includes at least part #3 of several categories. A page that shows me all page names that are attached to multiple categories of my choosing, grouped by their category.
My first approach was to use the standard transclude syntax of MediaWiki:
Category A contains these pages:
{{:Category:A}}
Category B contains these pages:
{{:Category:B}}
Category C contains these pages:
{{:Category:C}}
...
Unfortunatly, this only transcluded part #1 of a category: the user defined text. The page name listing was missing.
My second idea was to have a look at the parser functions. Perhaps there are some functions that offer enumerating through the pages of a category. But I didn't find any.
Perhaps there is a MediaWiki extension out there...
Is there a clever way to realize this?
Try http://www.mediawiki.org/wiki/Extension:CategoryTree, with the following syntax:
Category A contains these pages:
<categorytree hideroot="true" namespaces="-">Category A</categorytree>
If you want more control over how the results are displayed, you may want to give Semantic Mediawiki a try.
The syntax would look something like:
Pages in Category A:
{{#ask:[[Category:A]]
|format=ul
}}
Even if you are not using semantic properties, you can use the query mechanism to display pages based on categories.
The MediaWiki extension Dynamic Page List (http://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party)) does this with ease, producing bulleted lists of articles in a category:
Pages in Category A:
<dpl>
category=A
</dpl>
without a heavyweight solution like Semantic MediaWiki. Just install and go.
DPL has a rich syntax for more powerful dynamic lists. For example, to produce a numbered list in 3 columns:
<dpl>
category=A
mode=ordered
columns=3
</dpl>