Magento - Products not showing on "not visible individually" - php

I've got a website with Magento Enterprise Edition's 1.14.1.0.
If I set my product's visibility to "not visible individually" it will return 404 error when I try to access their details page directly using url.
Any idea/suggestion would be appreciate. Thank you.

Magento has functionality to make certain items not visible individually so you can, for example, take 6 products and turn it into 1 product where a customer can choose their options.
You then hide all the individual products, leaving only that one product visible on the site and reducing duplicate content issues.
So those individual pages never actually appear on the site. They are just created to allow Magento to pull inventory on those items from that configurable product.
I would get a 404 (and if I searched for it, nothing would come up) because as far as the world outside of Magento admin is concerned, that URL doesn't exist.

Related

No traces of a user's shopping website until user reopens shop?

I have a friend that found one more problem with the shopping website, her StackOverflow account (Displayed ID name is Ruth) has been used to ask a question for something else today and could not ask another one until two days later. So I have decided to ask the question for my friend.
She is creating a shopping website that allows users to create an account and open a website. If they choose to close down the shop, there is a button for it. So far on the database table, there is a disabled field for the shop, so that the user can reopen the shop again, so she's not completely deleting the shop from the table. But she wants the users not be able to find the information and items of that closed website. So basically no traces of the website is there until the shop owner opens it back up again.
How to make it so that others are not able to find any traces of the website and its items all at once?
It's simple, you add a flag in the database table for example Enabled (boolean) and depending on the condition you fetch the data accordingly.
In your php file, you can fetch the result of the shop from MySQL and if the shop enabled is false, you display a page saying that it's not reachable otherwise you display the shop.
Depends on your application's logic.
Do you have the "disabled" field on a user or shop table? I think it would be easier to implement it on a shop table, that way your shop is set to disabled more clearly.
In this case, I do not think having no traces of the shopping website is even accurate to put. Are you fetching data from a get variable to show the items of that shop? Okay, maybe the ID of that item still exists, because you need it to exist if you still have the table and all the shop items not deleted. What you can do is set up an if statement when the page receives the get variable to display that item. This statement tests whether the item's shop is disabled or not, and this you would need MySQL to help. So when it is disabled, just redirect them to a 404 page or an error page of your customization.
Now, when you do go looking for that shop's website, that should also redirect to a page saying that the shop is not existing. Although this practice is not entirely the best (in terms of security), it may very much be what you are looking for.

Magento Multi-Step Product Configuration

I'm currently attempting to extend the inherent Magento product view to divide the custom options belonging to a configurable product into sections loaded by ajax. The end goal is to create a step by step process guiding the user through each step of the product configuration process before they would add the product to the cart.
Advanced Custom Product Options
We are also utilizing Mageworx's Advanced Custom Product Options to allow for the larger customization of products.
Simple Products Linked to Configurable
Our current environment is set up to handle simple products as configurators for their parent configurable product. When a user navigates to the simple product, they are directed to the configurable product with the option represented by the simple product pre-selected.
End Goal
The hopeful endpoint would be that once a user clicks on a simple product, they would be redirected to the configurable product with a single pre-selected option depending on the simple product. The user would then be able to customize their order, or jump directly to adding it to the cart as is. The customization process would re-evaluate at each step to determine if there is a concurrent step, for example, if the user were to select to add trim, there would be an additional step to customize that trim, whereas if they opted out, the step would be skipped.
The idea is simply a product configurator within the Magento framework, something similar, in function, as to what appears below. The checkout steps being Style, Color, and Size, each which have their own page.
The Overarching Question
I am fairly new to the development of Magento, and am wondering what the best method of attacking this problem is. I have thought of using an observer to hook into before add to cart, but I am unsure it would allow me to refresh the blocks and load in new data. My other idea was to tap into view.phtml and set up some ajax loading within the page itself, but that seemed a bit 'hacky'.
I have spent quite a while searching for examples on how some have overcome this problems, but haven't found much outside of some very vague ideas on what could work. If any one has insight onto a solution to my problem, their thoughts would be much appreciated.
Current Approach
So far I've tried creating a Router for a Controller to handle POST requests to change out the Product Option sidebar when a value is changed. It seems a little bit slow, however.

Display Custom Options from Simple Product into Magento 1.9.0.1

I am creating a simple test product in magento and trying to add some custom attributes for variants. Unfortunatly these are not showing up in the front end.
So I'm pretty sure it's a theme issue here...
When I add a custom product option such as a drop down, the Add to Cart button vanished and can no longer be purchased... as well as now showing the dropdown.
Any thoughts would be greatly appreciated. Is there a directory to look this stuff up in?
I've added some photos in case my description wasn't clear enough
Thanks
Try clearing your caches
Check the inventory tab, if product is saleable on frontend (in stock and has qty)
check /var/log/ and /var/report for errors
calling isSaleable() on the product object can direct you as well (this check is also in product actions template where the add to cart button is rendered)
Just a note but if you have product variants (say size) you probably want to use configurable products instead of custom options
I have had same issue in my new magento 1.9
I just clean all caches from var/cache
Also clean your cache from magento admin.

Product is repeating on next page automatically in magento

Link of my site: http://www.classiquefurniture.com.au/index.php/
I have entered some products in this category: http://www.classiquefurniture.com.au/index.php/bookcases.html but some products are repeating automatically on 2nd page as well but thing is, the product is entered only once in backend. And some product is not displaying on any page.
Now one more strange thing: When I choose option (12 products per page) then some products are not displaying on any page but likewise when I choose (all product in one page) those products are displaying.
I don't know why this is happening. Its really surprising for me. Please help me in this matter.
A simple solution might be to enable the flat product catalog of Magento under System > Config > Catalog > Frontend After reindexing, Magento will use the flat table for the store view on product listing pages on the frontend. It might be that solves the issue already for you. If it doesn't solve your problem, try adding another sorting criteria, for example the entity_id. You can do that using an event observer for the catalog_product_collection_load_before event. ($observer->getCollection()->setOrder('entity_id', 'ASC');).

How to get Recently viewed products globally in magento?

I have searched google to get recently viewed products in magento from all users. Then i got following answer to get recently viewed products
$collection = Mage::getSingleton('Mage_Reports_Block_Product_Viewed')->getItemsCollection();
This collection return only the products which are viewed by that customer only. But I want to get the product collection which are viewed by globally. All the forums have the answer with the above result only. How to get Recently viewed products Globally in magento?
Thank you
Simplest and not so hard for a server capacity is to add EAV attribute in admin named for ex. "viewed" and for each detail showing (you can filter robots etc...) you can write +1 to the number "viewed".
This is good for 1) you can edit it by magento admin, and you can call that number anyway by simple getViewed() request. You can sort items by that key on forntend and backend too by default function of Magento and don't need to create new functions.

Categories