Magento - product that are not for sale - magento

Does anyone know how to list products in Magento that are not for sale? I still want the items to appear in the store, but I would like the "Add to cart" function to be disabled. This seems like it would be something that is easy to set up, but I haven't been able to figure it out. Thanks in advance!

Set stock level to zero and disable backorders.

Our store uses this on occasion- Adding to what dick mentioned :
Set Stock to 0.
If your store allows out of stock items to be visible, then this will work immediately.
If you do not allow items to be visible once they are out of stock, you'll need to switch this setting in the backend.
Alternatively, you could set up a new product attribute that replaces the add to cart button with something different (more info button, popup, etc).

If you want to display for sale only then set it's stock qty to 0 and try to set option from admin like this go to your admin side click on system->configuration->catalog->inventory and set yes Display Out of Stock Products so that the product is display on front side without add to cart functionality
Hope this will help you

Related

Magmi import: Add To Cart Button not showing

I have managed to make a csv which imports my products using magmi into my magento store. All works well but the buy now buttons don't appear unless I go to the product and click save. I've tried reindexing or clearing the cache but nothing seems to work. Any further ideas. The same happens when i send an update import.
I'm using the up to date magento/magmi.
Hi,
I'm using this sample. I've already tried to update an randomly attribute of many products, to act like an "mass save", but it won't works too.
The 'add to cart' button will disappear if you let Magento manage stock / when the item is out of stock. Did you define is_in_stock and manage_stock in your header?
Try this:
In Catalog > Manage products. Select all or the ones you want. Action : Modify attributes.
Set
Catalog-> Manage Products-> X product-> Design-> Display Product Options In: to Product Info Column
Worked for me

Magento Qty Increments

Basically all my products in magento are single units, however everything is sold in packs say 10 units to a pack. Theres the Enable Qty Increments on the product options in Magento and then you enter the Qty increments, which works without problems. However by default when you go to the product on the front end, hit add to cart it tries to add just 1 unit not the minimum of 10 is there a way, when you hit add to cart it adds the minimum qty of 10 rather than 1?
I know this is a while after you posted the problem & you probably have a fix already..
We are looking at this problem ourselves.. & have an issue with Bundled products not allowing us to add more than one instance of the product on each page.. hard to explain..
What I am thinking to do is remove the quantity box from the actual product.. Customers can select in a drop down if they want packs of 5 - 10 - or singles.. if they require odd numbers they can adjust the number still in the checkout..
does that all make sense..
Add to cart & Qty box are on the products.phtml page i think... I am still looking at all my options though.. Setting up a selection of Grouped products at the moment..
Just a passing suggestion ;)
Edit.. // What we have done as a final solution.. Use // Promotions /
Shopping Cart Rules.. You can make specific rules for Bulk categories
& Products in set numbers.. This will be a lot easier for our staff to
manage.. just drop requested products into a category called "bulk"
..wish I had thought of it earlier :)
In Admin panel go to
System >> Configuration >> Catalog >> Inventory >> Product Stock Options and set Qty Increments to what you want.
Magento provides Bundled Products to achieve such sell of products in packets.
Create a Bundle Product and follow these steps at Bundled Items tab in product edit form
Add New Option
Provide Title, select input type checkbox or multiselect and set Is Required to Yes
Search your product in below grid and add this product providing "Qty to add" to 10
Add selected product to option and then save product.

magento show "Sign up to get notified when this product is back in stock" link for simple-associated products

How can we display the "Sign up to get notified when this product is back in stock" link for associated products of a configurable product.
Say, we have a T-Shirt (a configurable product) and we sell it in 3 sizes - Medium, Large and Xtra-Large (simple - associated products).
When the Large size goes out of stock, how can we make user subscribe for it for notification when it is back in stock.
Please note I have already set this setting in admin:
System > Configuration > Catalog > Allow Alert When Product Comes Back in Stock - Yes
I noticed that the url for this alert is like (it is for one of the simple products in my store):
http://localhost/mystore/index.php/productalert/add/stock/product_id/1/[some key]/[some key],,/
Is there any way we can call this url directly, passing the product id of our associated product in question? If so, what about those keys at the end of the url?
please guide.
thanks
I added this link beside the out-of-stock associated product:
http://localhost/mysite/index.php/productalert/add/stock/product_id/[associated_product_id]/uenc/[any_key]/
For e.g.
http://localhost/mysite/index.php/productalert/add/stock/product_id/17/uenc/MTM0MzcyMDk0Mw==/
It does my job.
Only thing is, after successfully adding the alert record, it redirects to home page, instead of same page as in normal case.
This is due to [any_key], if we could somehow encrypt current page url [the any_key] just like magento does, we can have it redirect to same page also, after successful saving of alert record.
Any ideas?
Thanks
Ok I got it finally!
The uenc key [any_key] is actually base64 encoding of current url.
So with the help of https://github.com/carlo/jquery-base64, I did:
var encodedUrl = $.base64.encode(window.location);
var redirectTo = 'http://localhost/mysite/index.php/productalert/add/stock/product_id/[associated_product_id]/uenc/' + encodedUrl + '/';
Hope this helps!
The Magento way to get the url would be:
Mage::helper('productalert')->setProduct($_product)->getSaveUrl('stock')
Magento already avails the functionality to set out of stock from admin panel, unfortunately it is limited to some instances therefore we can not set this from admin panel, either way you can do it in code as above mentioned but its a manual task and can not be done again and again with links.
So i think its better to use ready made extension in case you have specific requirement to set product stock alert functionality for customer and they can subscribe for it.
Here is the well managed extension for Magento 2 which can help you to set Product alert and sign-up / subscription functionality with many more admin manageable features.
Link to Out of stock notification extension for Magento 2 - https://www.mconnectmedia.com/out-of-stock-alert-magento2.html

Hide buy button in product page in same products

I have one issue. It's able to make in magento that in some products don't show add to cart button. Because I want make these products just informational and not buyable.
Is any hack in magento like this?
You could add a custom attribute to your products that would mark them as not available for sale. After doing this, you can just modify your templates to not show the buy/add to cart buttons if the attribute is set to true.
Of course, good practice would suggest that you also prevent these products from actually being added to the cart manually, just hook an observer to the card add event and check for the attribute and skip if it's set to true.
It's not necessary to customize code
just set product stock 0 then enable Display Out of Stock Products
set product stock 0
Enable Display Out of Stock Products
Set Minimum Qty Allowed in Shopping Cart to 1
that's it.
When customer want to add product to cart, the system will not accept is because of the stock level.
PS : I suggest this technique is because of your request which you specified "but buyable" in your question.
Here is the extension Click here for extension which I guess is suitable for your question:
Call For Price

Please specify the product's option(s) in Magento

Actually i am using Elias_configurablebundle plugin for the configurable product as associated of the Bundle Product and to display GRID* for the configurable associated products i am using magento mechanics grid. here i have merged both of the extensions it showing GRID on bundle view page but showing Please specify the product's option(s)* on click of the **Add To Cart.
Although everything is fine, no required field left to fill out, i have applied any single custom options for any of the product.
so here i want to remove this validation so then it will directly redirect to shopping cart page.
Thanks
Configurable products need to have their options chosen (say, color or size) in order to be added to the cart. Otherwise, there is no way to decide which simple product should be decremented from the inventory. So there is no way for you to "skip" selecting this information, other than hardcoding the selections for the configurable product.
If you do that, just use the simple products instead, and skip all the headache.
Thanks,
Joe
Another thing to check is that the options fields are actually inside the tags. Its fairly easy in Magento to move the option selects to a different column and not realize that you are moving them outside the add to cart form tags.
if the options are selected outside the form tags, then as far as the form is concerned no options have been selected.
Hope this helps someone down the road.

Resources