How can we customize cart items in magento. I have used custom options but it is not working as intended. All I need is to show some configurable data in cart page and in order page.
Can some one help how can I achieve it.
Edit: To elaborate, along with cart item, type and qty. I want to display supporting text for each item type. I got it working with custom options, but I had to include qty inside custom options which created an issue on cart page during cart update. Now I am looking for some other way by which I can acheive same thing.
Thanks
According to your question, you are trying to edit the product that are in the cart. Hope i am getting you right. For this you just need to have a look at the file default.phtml in
app/design/frontend/base/default/template/checkout/cart/item/default.phtml
This phtml file is responsible for displaying the item in the cart. Here you can get the custom options of the product as well. You can edit as per your requirement.
But remember before you edit copy this file to your theme because this is the best practice not to edit the magento's core files.
Hope this will help.
Related
I've got some code working perfectly on my single product pages. For some reason, it will not function the same in archive/list view.
First, I used a plugin to make the variations radio buttons instead of the dropdown. Then I modified that and made it display the price of each variation. Like I said, works great on product page.
I'm new at this google and compile until my eyes bleed and eventually it works. No such luck this time.
Here is the product page: http://pchdelivery.com/product/star-wars-kush/
Here is archive: http://pchdelivery.com/menu/
I don't need any of the cart functionality, only to display the variations and respective price with each product in categories.
Thanks in advance
As per I can understand the issue, you may need to change the settings from the attribute options for the product where you will have to choose the option to not shown in product archive pages.
Screenshot : http://www.awesomescreenshot.com/image/2352336/b6552a6b4d83f8c16efd5935046728c4
Hope it helps.
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.
I want for products of a specific category to add an additional field with extra cost for packages, as shown here: http://i.imgur.com/bm9ccBC.jpg
Is there any mechanism in Magento by which to do this or require additional module?
You can use
Custom Options
in order to fulfill your requirement.
You can add this option from the Magento admin for a particular product. Please refer screen-shot.
Click to view image
The answer that Anx submitted is absolutely right. But you'll have to assign custom option to each product of that category. If you want to repeat the same custom option in multiple products, it will be a lot of manual work.
The simplest solution to apply the same custom option to multiple products is through this free extension.
http://www.magentocommerce.com/magento-connect/custom-option-manger.html
first, apply the custom option as mentioned by Anx, and then use this extension to copy paste it to multiple products. I used it on my site and it worked fine.
Whenever I add a product to cart with similar custom options, magento is creating a new item block instead of merging quantities in existing one with similar options. Below is the code I am using during checkout.
$product->addCustomOption('extra_options', serialize($extraOptions));
Can anyone please help me what I am doing wrong
Here the link below help you to shortout your answer
How to programmatically add a product with custom options to cart in Magento?
In above link answer will help you to add custom options
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);