I have a website and I need customers to upload images on our website for printing them on products. So, I have tried the custom option in magento but it did not work for me, it every times give me the following error
please specify the product's required option(s).
Here is the link for the product
Please provide a solution
Note : It is a simple product and I have added all the required option(s).
Firstly this error is not related to image uploading! it can happen under different circumstances mainly because one missing required parameter prevents Magento (or better to say add to cart controller) to add the product to the cart (this follows the logic that Magento should know what exact simple product is to be added to the cart). Have a look at these related questions: first this one: 1, then: 2, 3, 4. Eventually if you have used some code please add it to your question (what do you mean by you've tried the custom option?).
On the other hand if your case is just with uploading the image you can use: Varien_File_Uploader class in Magento (example).
IMPO You can change your current logic by removing the upload option from product page, first letting the customer to add the product to the cart and then in next step upload their image(s).
Related
how can we show associated simple product information of configurable product in product view page in magento.like sku number of simple product should be shown when we select an option from the drop down of configurable product in product view page.
I would also suggest the Simple Configurable Products extension http://www.magentocommerce.com/magento-connect/simple-configurable-products.html. There are some tweaks you need to make for recent versions of Magento but it works perfectly for me in 1.8.1.
Update with pointer to tweaks
I've pasted in below a review comment by tzvimoshe from the magentocommerce.com entry for SCP.
To get this to work in 1.7 you need to 1) apply fix from Github AND 2)
apply the fix to that as well. See 1)
https://github.com/magdev/magento-configurable-simple/blob/6d88e5e1846713f579f79905dc3ed35112772ebc/app/code/community/OrganicInternet/SimpleConfigurableProducts/Catalog/Model/Resource/Eav/Mysql4/Product/Indexer/Price/Configurable.php
2)
https://github.com/organicinternet/magento-configurable-simple/pull/85
For everyone's convenience I have posted the complete fix on pastebin.
See http://pastebin.com/spVj88T4 just paste into app / code /
community / OrganicInternet / SimpleConfigurableProducts / Catalog /
Model / Resource / Eav / Mysql4 / Product / Indexer / Price /
Configurable.php
This is a pretty big thing you are asking here.
I don't have a complete solution, but I can give you a nudge in the right direction.
I recommend you this extension.
It does not do what you need, but instead it changes the product dropdowns to clickable labels. This feature can be disabled if your don't need it.
But here is what you might be able to use from it.
When changing a product configuration, it changes the configurable product image if you configure it to do so.
You can take it and modify it so when it changes the image it changes also the name and/or sku.
This is the line that changes the product image: https://github.com/tzyganu/Switcher/blob/master/js/easylife_switcher/product.js#L274.
You can inject your logic there to change the sku or name also.
This is the line that collects the simple product images: https://github.com/tzyganu/Switcher/blob/master/app/code/community/Easylife/Switcher/Block/Catalog/Product/View/Type/Configurable/Config.php#L136.
You can add a similar one that would collect all your skus and/or names.
After that you will need to add some markup around the name or sku so you can easily identify it in the DOM with js.
I hope this helps you at least a little.
We have a Magento store on 1.5.0.1 Community Edition which uses configurable products with attribute sets to allow customers to select their preferred size and colour for a specific item (e.g., a shirt).
Each clothing range has its own attribute set, which was used to create the product, with simple products for each permutation of the product for stock keeping purposes.
We've compared all of the product's settings, and can't see any discrepancies between them, and yet one product range does not display the attribute drop-downs and add-to-cart button in the frontend, despite appearing in the frontend fine other than that.
I don't know if you have already found a solution, but after searching for a whole day, I've found what's causing the missing attributes in the front end for me... After deleting and readding simple products for a dozen times and making notes on the way I was quite sure that I correctly added simple and configurable products, so the problem has to be somewhere else. A casual look at the console in FireBug revealed a conflict in prototype.js... that's strange, since Magento comes with it. And I sure have not changed anything in it!
Did you at one point added jQuery to your Magento installation? If so, you HAVE to add 'jQuery.noComflict;' to the end of your jQuery file and the critical point is, to include the jQuery file BEFORE the prototype.js: The prototype.js is loaded by Magento in default/layout/page.xml at the beginning, so you have to add this line befor the prototype.js
jquery/jquery-1.2.6.noConflict.min.js
If you don't do that the drobdown item is shown but with not selectable entries, that's because the js/varien/product.js relies on the prototype.js to work. Without it your list won't be populated!
Hope it helps anyone searching for this mysterious problem... (the problem is also described here: Weird Chrome prototype/jQuery conflict)
Usually when the add-to-cart button does not display it is because your product has no inventory set. Remember that the configurable product needs to be set to in stock and the associated simple products have to have at least one item with non-zero inventory and be set as 'in stock'.
We have a SOAP connection to magento that is working great - we're able to pull product info, skus, descriptions, etc. using the magento API. We've been able to successfully add products to the cart programmatically with custom options, and that works great. The problem is this:
When you create a custom option for a product, it is assigned a unique ID that has to be called in order to pass that option value to the cart. For example:
www.mysite.com/magento/checkout/cart/add?product=7&qty=1&options[OPTION ID]=robots
Assuming I have my custom option ID correct, this will add 1 product with the option "robots." Which is nice.
However, we have hundreds of products, and while they all use similar custom options, each option is given a unique ID. That means I need to be able to call the magento API and get custom options details (specifically the option ID) so that we can add them to the cart properly. I have been back and forth with Varien Support (Magento), but they are less than helpful, as usual. Now, I know I can find these options by using firebug in Firefox or Chrome, which I've done to test the "add to cart" script. However, that's not a proper solution. I need to be able to grab this data from magento based on product id.
Can this really be that hard? Shouldn't this be tied to the data for the product somehow? I've done a var_dump on the catalog_product.info and i see where it asks if there are options but doesn't provide any details on them. Thoughts?
Thanks in advance.
Do you need to get all options ids for specific products or just some particular? For the latter you can use this code:
$productEntity = Mage_Catalog_Model_Product::ENTITY;
$colorAttribute = Mage::getModel('eav/config')->getAttribute($productEntity, 'color');
$colorAttribute->getId();
For the first option code in this question might be useful How to get all super attribute options for a configurable item in Magento
I have created a shopping cart price rule in my Magento store (version 1.4.1.1), and it seems to get applied without issue on the frontend, but the discount isn't actually reflected in the subtotal or final total. The original item price is $45.00, and the discount should be $35.00, making the final price $10.00. Here are some screenshots of the setup. (Sorry, because I'm a new user it won't let me post images directly in this posting.)
http://imgur.com/a/hdYDb
Main rule page
Actions page
Cart showing that promotional code was applied
Reviewing order (last step before submitting order)
This particular item has some custom options set, which set the pricing for four individual options. The price for the product is $0.00, and then each option has it's own price (I didn't set this part up, so I'm not sure if I'm missing something from here too). Here's a screenshot of the product custom options page: http://imgur.com/uO9HG
Any thoughts? I'm fairly new to Magento, so it's possible I'm just missing something obvious. Thanks in advance for any help or guidance!
I actually JUST figured out what was going wrong, or at least, I figured out a solution, though not sure exactly why this was affecting the shopping cart price rules. You're right that I wasn't even able to get a simple price rule to work - it simply wasn't working no matter how I changed the rule. Anyway, while working on another issue, I realized that I was missing the Subtotal/Grand Total box on the front-end of the shopping cart (I installed a clean copy of version 1.4.1.1 on my localhost, which is when I noticed it was missing from my live site). When I re-enabled the Subtotal/Grand Total box, the rules started working again. (I suppose now that Magento has a place on the front-end to show the discount, it actually applies it, whereas before it would just do nothing.)
So, to re-enable the subtotal/grand total box, in the back end, I went to System > Configuration > Advanced > Enable the Mage_Tax module. Again, not sure why it was disabled in the first place, and I'm not sure if this affects anything else on the site, but it's been up for awhile now and I haven't noticed anything awry. Here's a screen capture of it working: http://i.stack.imgur.com/kjl6S.png
I think the problem comes from using SKUs with your custom options combined with restricting your price rule to the product SKU. Magento combines them using a hyphen - place a test order to see if this is the problem.
The SKU in a test order I made comes out something like this;
[ORIGINAL_PRODUCT_SKU]-[CUSTOM_OPTION_SKU]
At least, that's the result I'm getting from version 1.5.0.1
The quickest solution I could find was to match the rule on the product url key rather than SKU. It isn't the most intuitive solution, but since you wouldn't change the URL on the product (I hope), it will work where SKU's with custom options fail.
In version 1.4, the URL key should be available to choose instead of SKU already. So you can just select url key instead of sku and insert your product's correct url key in your shopping cart price rule. Just replace "SKU is ..." with "URL key is ..." inserting the correct url key for your product.
In version 1.5 I had to enable "Use for Promo Rule Conditions" on the url_key attribute like this;
Log in to Magento admin area
Navigate to Catalog > Attributes > Manage Attributes
Locate the Atrtibute Code "url_key" and click to edit it
Change "Use for Promo Rule Conditions" to Yes
Save the changes
you may need to reindex the Product Flat Data index at this point
Then I could use it in my price rule.
Had this same exact problem on CE 1.9 running PHP7, applying the Inchoo "PHP 7 compatibility extension for Magento 1" solved the issue!
https://github.com/Inchoo/Inchoo_PHP7
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.