Make downloadable product link auto selected on product page Magento - php

Hi i have downloadable products on my site, there is a required field (a checkbox) on the product page. The customer has to select the check-box every time before they can add to cart. I want to checkbox auto selected so the customer doesn't have to check it manually.
Any suggestions on how I can do this?

You can set "Links can be purchased separately" to No to remove the checkbox:
You'll get this:
This might not be desirable if you're just looking for a way to set a default instead of forcing it.

I assume the checkbox is from a product option? Magento does not support default values for them but there is an extension for it: Magento Configurable Product Default Options Extension
It is not free but in contrast to other solutions you find on the web it works without any modification to the core.

Related

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.

Magento product custom option added in admin but does not show at front

We added a custom option in our magento product by using the import option and updated the product catalog. It's successfully done and we also did indexing but it's still not showing this option on front.
We also tried a custom script for saving the product data manually. Still it didn't show on front.
But when we open the product and click on save then and only then it works, but we can't use this manual method because there are thousands of products. So please suggest a good solution for this issue.
Find image below for reference:
In your custom script, did you set the store to admin?
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);

Adding configurable products to cart using default values in Magento

All the products in the magento site are configurable products. The add to cart button works okay in the product page.
My problem comes in when I try to add the product to the cart from the compare window, the wishlist page or related products, it doesn't add the product to the cart for the obvious reason that there is no selected option on the dropdown attribute I've added(product size).
Anyway, how can I add the product to the cart from these windows using the product with the smallest size as the default value so that the customer wouldn't be redirected to the product page anymore to select a size when the link/button obviously says Add to Cart?
There are 2 solutions.
1°) Display a dropdown selection in every one of these places. To let user choose size.
2°) Define a global rule to define the default size to select (like the smallest in stock, or always the 'M', etc.) you may have a rule for every attribute set if needed.
Then modify these area to show information of the configurable except price and add to cart button that are taken from the "default" simple product, the one with the default attribute value.
!! Be sure to always have a default size (ie. your rule have some 'else'/'catch' part to always find a size even if 'M' doesn't exist or isn't in stock).
There is no code here, choose a solution, try to do it and if you're unsuccessful someone (incl me) will help you.

Hiding a custom option on a product in Magento

I have several hundred products in my Magento store, all of which have a very similar set of custom options. I used one product as a template, and copied its custom options to all of the other products so that all of the products currently have the same set of custom options.
I would like to disable or hide certain custom options for some products in my store without deleting the option completely. Right now, I only have the ability to delete an option for a product entirely. For example, some products cannot currently be ordered in different colors, but they might be later; I'd like to be able to disable the color option rather than delete it and re-add the entire list of colors later.
Does anyone have any similar experience who can provide me with some help with this problem? Thanks, I really appreciate the help!
Using custom options for attributes like "color" is not a correct approach for Magento. Magento has special product type - Configurable product for the catalog structure you're trying to achieve.
Here's benefits you'll get from using configurable product instead of custom options:
Automatic stock management. You won't need to enable-disable your custom options as soon as some physical item is out of stock - Magento will do it for you.
You won't have to copy all custom options to a new product you create. The attribute for the Attribute set this product belongs to will automatically be available for new entries.
You will have ability to filter your products by the color attribute on Category page using Layered Navigation.
Here's the guide how to create configurable product from the official Magento wiki.

Magento: Nick-naming products added to the cart

I'm working on a storefront that sells bundled products, sort of like build-your-own-PCs.
Once the customer has selected their desired options, I'd like them to also give a (nick)name to the product before adding it to their cart. This would be a standard text field purely for the customer's reference.
This field will be displayed in the cart, during checkout, and in the order details once the order is submitted.
What is the best/proper way to implement this user-editable product field?
I had thought Custom Options would be best, however it states that a "Bundle with dynamic pricing cannot include custom defined options. Options will not be saved."
As I'm aware Magento doesn't have any built in way to implement this. You're options would be to find a third party extension or write a custom module.
I found and implemented the workaround shown here: http://amirshakya.wordpress.com/2012/07/08/custom-options-on-a-bundle-product-in-dynamic-pricing/ It essentially disables the warning and enforcement of that rule.
Yes, I realize this is a bit of a hack, but it works great because:
The custom option doesn't need to affect the price (which is why Magento blocks it I think)
It will show both the bundle options and the custom nickname option on the page
User selections will be saved for both

Categories