I have a .xml where one of my field is this one:
Now in the backend module page, I have a dropdown called category with options - category one, category two. I have a custom made table with translated values for this options. My question is: How to perform actions on the drodown field options, before the rendering of the module?
Related
I have a problem in filtering a views with an entity referenced field.
I have a content type called "product" and a content type called "category".
In "product" node i have an entity reference field to "category" nodes (only one category per product).
I have a views page which is displaying products, and a filter by category (category field from product content type), but i can't filter products with the same category value.
I tried Views Reference Filter module, but i got an unexpected error.
Question: How can i filter my views with category? Thank You!
Create a view listing Content of type Product.
Click on add in RELATIONSHIPS section.
Search for Referenced Entity via your field in Product (for example field_category).
Require this relationship.
In FILTER CRITERIA add any field you want in the referenced
entity(Category).
N.B: if you want to expose this filter to users check Expose this filter to visitors, to allow them to change it.
We are considering kendo ui to replace GWT in our ERP product. The main motivator is kendo grid. We have many composite objects that are rendered and edited as a single column. The column editor will contain multiple fields.
An example: In sales invoice lines, the product column should display product code (autocomplete field), product name (Link), and a button to open products browser (a modal dialog with search fields and a grid that displays products along with images, names, available quantities, etc).After selecting a product in the products browser the grid should update the product in the row that requested the browser.
I think I know how to implement the products browser. But the composite editor is the one I do not know how to implement.
My question is: how can I edit a composite object in a single grid column using a composite widget? And we need inline editing not popup editors.
I have been browsing the demos to find a close example but could not find any. My search was "kendo grid composite object custom editor".
Yes, you can do that with Kendo UI
Check this demo (a ComboBox with a custom template)
http://demos.telerik.com/kendo-ui/combobox/template
You can create a custom row's template for the ComboBox (with multiple columns like in the demo) and in the grid you can use a custom template for the column products and use the ComboBox with the custom template.
Check this demo for the grid with a custom column template
http://demos.telerik.com/kendo-ui/grid/editing-custom
I need to put a group attributes in section
it means every title attribute are header in product attributes table
How I can do It
this my site
http://select-mob.com/huawei-honor-4c.html
this what I need to do
https://www.techbeat.mobi/eg_en/huawei-honor-4x.html
You can implement such feature described in following link
How to display Attribute Group Name on Product page?
In that code, first attribute group will be displayed and then all its attributes will be displayed.
I am working on custom module in magento.
I create two new attributes (combo box) make and location. After that I add values for these attributes using custom code against specific product. Like I add make "Sony" and location is "Australia" against product 1 (1 is id for product).
Now on admin side i want to display this product with attributes values like make is Sony and location is Australia and product is 1.
I found some tables where these values are linked like (catalog_product_entity_int,eav_attribute,eav_attribute_option,eav_attribute_option_value), but I am unable to query such records. The page where I want to display data I have attribute id and attribute code.
Can anyone knows how I can figure it out?
Very simple Dude.
inside your _prepareCollection() method of your custom module grid
Load the product collection and select these two attribute... If there is a need to filter it by these two attributes then do it.
I've got a page within my magento shop in where I list a collection of products. I joined the product collection with a custom table where some additional attributes are stored.
In the left column (navigation layer) the filters are shown where a selection can be made for a specific manufacturer or a specific category. Now I want to add my own filter on one of the fields from my custom table so that only the fields with a certain (non-negative) value for one of the added attributes will be shown when the filter is selected by the user.
When I try to find information on filters I often see people referring to the product attributes in the backend, however I doubt if it will apply here since it is not a product attribute in the sense of eav but one from my custom table (that is joined on sku). I am looking for an example or strategy on how I can add a filter based on a property in my joined collection.