I need help with the following:
In Magento I have created a configurable product and assigned some simple products to it. They have an individual attribute set with individual, numeric attributes that I have created.
One attribute is for example "length". This attribute has the following values:
3,4,5,6,7,8,9,10,12,14,16,18,20
If I open the drop-down menu on the article details page, the values get displayed like that:
10,12,14,16,18,20,3,4,5,6,7,8,9
Thus, it seems that the attributes are saved as text (alphanumerical?) and not as numbers (numerical)?!
I need some advice on how I can change that. I have tried to work with "Input Validation for Store Owner" in "Manage Attributes", but that doesn't work. Is there f.e. any field in my database where I can simply switch the way my attributes are saved/displayed?
I have created many products and attributes, thus I don't want to re-create all of them again, if not necessary.
Thanks for any reply.
It has been a long time since you asked and might be you have already found a solution to it. I am just writing so that anyone coming on this page for the same problem does not have to go thru the same pain what i went thru.
When you create the attribute(length), you would have created the options (like 3/4/5.. etc) create the sort of that options in the attribute section and they will sort as per your requirement.
Related
Humm..After trying so many shopping cart codes by customizing according to my requirements I still not got proper solution.:(
I have two tables products and productoptions in which i stored the color or size of product. One product can have different sizes and colors.
Now the problem is I am unable and frustrated to integrate/ customize the code according to above scenario. There are issues coming like I can't add one product with two different colors and remove one of them. While removing one of them, the cart becomes empty.
Can anyone please suggest me how should I achieve the shopping cart with above scenario? Any online reference examples or any relevant source demo will be helpful if someone had done this type before.
Friends please suggest. I doing this first time. Thanks in advance.
It's simpler than you think.
Use sessions.
So let's say these two products have an id of 1.
Let's also admit there's no stock check, and you have an unlimited amount of products.
Whenever you add a product to your cart, add to $_SESSION['products'][]['item'] id of 1. You can also add ['color'] and such. But this will be one item.
At this point, you'll have to loop over your $_SESSION array to display your products.
Do it, and mark the div containing your product with the index that corresponds to its slot in your $_SESSION created earlier, with an input hidden for example.
Now whenever you'll click on delete, you should send the index marked in the div to the code deleting the product from cart.
With the index, delete the corresponding array in $_SESSION['products'].
Once this is done, only the remaining products will be displayed and counted in the cart.
This is only one method among many. Using AJAX is advised for a better user experience, it'll be more fluid.
But if you're new to all this, starting with simple PHP is advised.
I am working on magento project where I need two tabs on category page named "brand","local" just like http://www.fashionara.com/men/tees-polos.html .Can someone please guide me how can I do that ? any help will be highly appreciated.
Thanks,
Irphan
To filter products and come with a collection using product attributes is the best way.
You create an attribute is_branded for product. While products data entry is done make sure you fill this value with Yes or No.
Now use this in your collection as filter.
make sure this attribute is configured to be filterable.As you need this in flat table.
Other option is that when flat table is being populated you populate an additional field(is_branded) so not data entry is needed.
Or when a product is being created then using some before save event observer make out whether its branded or local and populate this value so as to be saved when product is saved.
I need to set product based upon their weight and dimension for a delivery system, so i have created sample 5 products each having different attribute based upon their w&d .Then each time when admin places order to a customer(adding to shopping cart) from those products based upon w&d. Now the problem i face how to change the Image and description of the product or order for each customer i have placed this image and description varies for every customer. Is there a way do it. I am open to any suggestion to achieve this can also use php and js if needed. Thanks.
You have solved it yourself alraedy by saying "image and description varies for every customer", so it would make sense to add customer attributes that hold this information. You will have to modify stuff around in your .phtml files though to make this fully work.
Furthermore it would be good if you included what you have tried already.
Each of the products in my Magento store has attributes that are used as filters. I would like to know if it is possible to give one product multiple attributes of the same type, or if there is an extension that makes this possible.
A specific example is this: I'm selling safes, and my products need to be filterable by what types of objects they can hold. For example, one particular safe might be designed to hold cash, documents, and valuables. My problems is that I am currently using the general settings under product management, and I'm only able to add only one such attribute to each product.
Basically, the way I'm doing it now, a safe could be shown to hold cash, or documents, or valuables, but not all three. I am looking for an extension or a programmatic way to get this done.
Any help?
Hi Dean, your issue is already resolved my Magento. All you need to do - is change the type of your "hold objects" attribute from "Dropdown" to "Multiple Select".
The bad news are - you actually can't change the attribute type directly in admin Attribute Management screen (Catalog -> Attributes -> Manage Attributes). So you'll have to create new attribute for your "Hold Objects" and choose the attribute type "Multiple Select".
I want to add a custom attribute to magento order_item and quote_item and a field in the order form for my serial number attribute and other custom attributes.
I'm selling Tablets offline but I am using Magento backend for managing all inventory and customer information along with orders, the tablets are given on subscription bases so there is no shipping as the customer would be at store during purchase.
I want to add custom attribute which are unique to the customer and tablet.
I could create an attribute for the customer but what if they order more than one tablets which means logically the only way is to place those attributes in the order item.
I seriously don't know how to go about.
I hope someone can point me to extended magento sales module and add my custom attribute to order_item and also show in magento order form.
First you need to add/change this two tables:
- sales_flat_order_item
- sales_flat_quote_item
just add fields and name it as you wish (that will be your new attributes)
file you need to edit for your new attribute to be visible on order page should be this one:
app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtml
and your new attribute:
<?php echo $_item->getMyCustomAttribute() ?>
If you would like to make that attribute "the proper way" it requires a bit more skill..
Here is an example how you can add custom category attribute, same would be for your problem:
http://inchoo.net/ecommerce/magento/how-to-add-new-custom-category-attribute-in-magento/
Thanks
I would ask some of the more popular extension providers for a custom quote. AheadWorks comes to my mind quickly... I say visit the Magento Connect store and browse through highly rated extensions and you'll see there are a small number of companies doing lots of successful work.
They will be able to "more properly" handle, store, track, and communicate your desired data through the entire system.
Once I better quantify a similar situation I would like to program, I will seek the help of experienced module builders. The Zend MVC is a miserable bowl of spaghetti once you start trying to code in it! :D