Simple Products are not showing as associated in configurable products in Magento 1.9 - magento-1.9

Hope you are doing well.
I need to ask about how to set up a simple product to be able to show it to my configurable associated products.
I think I already configure all the attributes like,
visibility = not show individually
stock = in stock
price = also set
status = enable
anything I missed? Because when go to my configurable product there is nothing as Associated Products.
Any help appreciated.

Hello Quan,
To associate them
not needed:
visibilty = not show inidividually
stock = in stock
price = also set
status = enable
needed:
attribute set = the same as configurable product (check configurable product attribute in admin section)
to create a config
Beside this you need to make sure, that the attributes you want to be configurable are NOT system, "Global", input type "Dropdown" and "allowed for configurables"
to show them in frontend
Only the simple ones which are in stock and enabled are shown in frontend, might be an indexing issue?
Thanks!

Related

Magento 1.9, Modify the existing Label under Category

i want to edit/Modify the labels under Category in Magento 1.9 Back-end.
here is the image for your reference.
Those are Labels for Attributes of catalog/category model.
You can edit them via Setup script or directly in the database.
This will give you a complete overview of category attributes:
SELECT * FROM `eav_attribute` WHERE `entity_type_id` = 3
Labels are stored in field frontend_label
I honestly have no clue why someone would want to change those labels.
If your goal is to translate them, then this is a wrong approach. For
translation use locale files instead.

Magento migration from 1.9.1.0 to Magento 2 doesn' show product in front end

I have installed Magento 1.9.1.0 with sample data, without error. After that installed magento 2x without error. Then i migrate content from 1.9.1.0 to 2x with data migration tool, and it completed. Products and almost all informations are migrated, and i can see product in Admin side. But couldn't visible for other users.It showing 'We can't find products matching the selection.'. What would be the problem???
To show the product, check if the product following options:
General->Status = Enabled
general->Visibility = Catalog,Search
Inventory->Qty > 0
Inventory->Stock Availability = In Stock
Websites = checking your site
Catgories = checking your category.
If you want checking product to subcategory, go to Catalog->Manage Categories->Select your category, open tab Display Settings and change option "Is Anchor" to "Yes". Save category

How to quickly assign an attribute value to all products in a category, in Magento

I would like to quickly update all products assigned to a particular category in Magento with a particular attribute/value. For example, all products in category Bed > Designer Bedding would have their google_product_category attribute value set to 2541. Anyone know how I could do this?
I'm not entirely sure what your WHERE clause would be based on your question but, you could use something similar to the following (and adjust as needed)
UPDATE [table] SET google_product_category = 2541 WHERE category = 'Bed'

Is HTML5 localstorage appropriate to store input field values?

I have a question, on how to best store local values of some form fields.
In my website, users use the keypad to keep a tally count of items. They can enter a label for the items they count. The problem is that each user apply different labels for their needs - and, each time they visit the labels are blank.
My sites are running through site44.com, which does not allow the use of server side php. So, in my research, I think using HTML5 localstorage may allow a user to keep the label after the exit the site?
Is this a correct interpretation?
Can someone give me a guide if I have, say 3 inputs - with different ids - how to set up the script?
you can use the local storage like this :
var fn = document.getElementById("firstname").value;
localStorage.setItem("firstname", fn);
var ln = document.getElementById("lastname").value;
localStorage.setItem("lastname", ln);
var em = document.getElementById("email").value;
localStorage.setItem("email", em);
thus the clients browser will have these items set in their local storage.
Now if a user visits the website afterwards. you can check for the value of localStorage and find the items of your need.
Suppose on users' next visit you want to send him a greet message ( he has not logged in ofcourse ) you can use a script like this below:
var name = localStorage.getItem("firstname");
alert("Hello"+name);

What is the best way to merge 2 tables with Active Record and Mysql

We need to allow users to customize their entities like products... so my intention was to have a product table and a custom_product table with just the information the users are allowed to change.
When a client goes to the product I want to merge the information, means I want to merge the two tables - the custom overwrites the default Products table.
I know that in mysql there exists a ifnull(a.title, b.title) way but I was wondering if there is any nice and efficient way to solve this in Rails 4 with Active Record. Assume that the products and custom products table have just 2 columns, ID and TITLE
I think you can convert both objects to JSON and then handle their params as a hash, using the merge method:
class Product
end
class Customization
belongs_to :product
end
a = Product.find(...)
b = a.customization
c = JSON(a.to_json).merge(JSON(b.to_json).reject!{|k,v| v.nil?})
Therefore c will contain all params from Product eventually overridden by those in Customization which are not nil.
If you still want to use a Product object with hybrid values (taken from Customization) you can try this:
a.attributes = a.attributes.merge(b.attributes.reject!{|k,v| v.nil?})
In this case a will still be a Product instance. I would recommend to keep the same attributes in both models when doing this.