Create "custom" Customer attributes in registration of Magento 1.7.0.2 - php

I want to create some Custom Customer Attributes (like "company", or "prefered color") during the registration of a new customer in my web shop Magento 1.7.0.2
I have found an extension that creates custom attributes for customer, customer address and category.Hwg_Attributemanager-0.3.0
But it has a major problem...It doesnt show the textfields on the front-end.
(some users working 1.7.0.2 verified that happened to them)
Does anybody know a similar stable extension for 1.7.0.2 Magento for creating custom attributes for customer during registration?

There is a table called customer_form_attribute. That one decides what attributes are shown on which forms. You need to add a record to the table with your attribute. Let's say that your new attribute has the id '25'. You need to add these lines in the table I mentioned.
form_code |attribute_id
customer_account_create|25
customer_account_edit |25
adminhtml_customer |25
checkout_register |25
The last line is not important. If you add it it will show the attribute when registering during checkout.

Related

Issue while adding custom field in billing address section in Magento

I followed this tutorial for inserting new field in billing address section in Magento checkout.
I added new module, form field in billing.phtml page as described in this tutorial. I make sure that the module is enabled in advanced section in admin panel. And the attribute is saved in eav_attribute, sales_flat_order_address, sales_flat_quote_address tables.
The issue is when I make place order the checkout page become broken and nothing can done.
How can I solve this? Please help..

Magento configurable product displayed as simple in backend

Magento version 1.9.1.0.
I've added attributes to a set. Some are applied to the simple product type and others to the configurable type.
When I create a new configurable product. I successfully got the correct attributes in the backend form. But once saved, the form renders only simple attributes on this configurable product.
The project is working on version 1.8.1.0. I've tried to disable all local modules but I keep getting this misconfiguration.
Database analysis show that all of SQL records are similar to the 1.8 database. No cache enabled. Cache folders cleaned.
Even a hint would be appreciated. Thanks !
Attributes that you selected to use for configurable product are not included within standard tabs while editing product.
Those attributes should be displayed on "Associated Products" tab of Edit product form for configurable product.
You should create simple products with different values of those (configurable) attributes and link them to your configurable product (creation as well as linking can be performed on mentioned tab).

Magento Products how to pr-check values

I am using magento 1.4.1.1 and I use the regular API to generate products through an external ERP program. I have some reasons to check 3 values in the products backend manually, that this ERP program can't do for me through the magento API. That means i have to go into each product to check those 3 check-boxes and only after that the products is ready to buy.
How can i pre-check those values so i don't have to to this anymore?
It's in the stockholding area of the product page.
What you could try is create a custom module with a observer that watch for newly added product
For list of product observer see
Magento Add New product event observer
For how to create a custom module Change Magento default status for duplicated products (change catalog_model_product_duplicate to value from link #1)
For how to set stock see Set default product values when adding new product in Magento 1.7
(most of my example was base of magento v1.7 so you may have to look to see if it is the same in v1.4.1)
At least in Magento 1.6 and up it's possible to set default values for product attributes on a separate page in the backend.
Catalog -> Attributes -> Manage Attributes (/admin/catalog_product_attribute/)
If you can't edit a specific attribute, you need to mark that attribute as "user-defined" in the database. Set the column eav_attribute.is_user_defined to '1' for the desire attribute to enable editing in the backend.

Add custom attributes like serial number to order_item and quote_item

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

Magento 1.4.2.0 add custom attribute field to admin order creation page

I've recently upgraded to Magento 1.4.2.0. I have a simple custom module for keeping track of salesreps on customers and orders. Until the upgrade, it worked great, but magento 1.4.2.0 changed the way customer attributes are handled in the admin, The attribute needs to be in the customer_form_attribute table. I've run the code from this post to add the attribute to adminhtml_customer which restored the field on the customer account page, but when I added it to adminhtml_checkout it did not show up on the backend order creation page.
I can confirm the attribute IS being loaded into the $data array, and when creating an order for a customer with a salerep already assigned the salerep is copied to the quote, order, etc. but the dropdown just isn't showing up on the order creation page. And of course I checked that the fields are indeed in customer_form_attribute.
Do I need to add this to the customer forms in customer_form_attribute (customer_account_create, customer_account_edit, etc?), or should this be working as is?
Well, I've solved the problem. The answer to my last question is that yes, it should have been working as-is. My attribute didn't show up because the attribute had user_defined set to 0. Previously this didn't prevent the attribute from showing in admin, but apparently that changed between 1.4.1.1 and 1.4.2.0. I set it to 1, and the attribute showed right up where it was supposed to.

Categories