hey.
i am working with drupal 6, ubercart 2, views 2.
i have several products that are related to a product kit.
i want to define a view that will show all the kits and their products.
but when defining my view, i cant add a relationship between the product kit and the products that are member in this kit.
any help ?
Don't know if it's still relevant, but looks like node relations fields in CCK are perfect for your task. Views nicely work with them too. Just create one for your product type and set it to point to product kits.
This way you would get a many-to-one relation between products and product kits.
Related
I want to create some sort of export that shows all products of all shops including product
variations in a HTML table.
Can anyone tell me how to get all products with variations for all products available in all shops?
I'm using latest version of Shopware 6 (SW 6.3.3.1).
You can use this method to fetch all parent products (products with variations) through the product repository (dependency inject it). This works because parent products does not have a parent and they have at least one child product.
If you want all variants, search for all products with parentId not null.
You can also consider using ->searchIds() instead of ->search() (much faster, you et the IDs only) and then fetch specific variations afterwards based on a specific parent ID.
$criteria = new Criteria();
$criteria->addFilter(new RangeFilter('childCount', [RangeFilter::GT => 0]));
$criteria->addFilter(new EqualsFilter('parentId', null));
$parentProducts = $this->productRepository->search(
$criteria,
Context::createDefaultContext()
)->getElements();
In my KeystoneJS (v4) setup I have the following lists:
Stores
Product Categories
Tags
The stores can have categories associated with them.
If I open up a category I can see it's Relationships (stores that use a certain category).
But, is it possible to see these relationships in the list layout as well? Not seeing it in the docs...
Adding the relationship to the column is not possible.
Currently i'm working with Microsoft Azure Search ( PaaS ) services for my product selector implementation.
I made research on azure search & thought of using collections concept but i'm stopped at multi-level hirerchy rendering.
Let me brief about my problem, we have aggregated product data ( meaning multiple aggregator of products ).
In our database having diffrent levels of products hirerchy like 2,3,4 and 8 levels ( taxonomy categorizstion ).
For example
Chocolate > Cream Chololates > Snickers Chocolate, 150 gm
Personal Care > Face Care > Face Wash > Family Facewash > Family Facewash Single Pack > HUL > Ponds > Men Fair & Clean FaceWash - 50 gms
Sports > Team Sports > Hockey > Sticks > Hockey Stick - 60 cm
Note: Last level is product & we don't know the how many levels product hirerchy limited to.
Problem Statement:
In Front End, on selection of datasource we have to call API to render in frontend.
Here, every datasource is independent of hirerchy levels. ( i.e first datasource may have 5 levels, second one may have 8 levels )
Now problem here is user may select any level by simply searching word ( like Facewash). in other way, top-bottom / bottom-top approach.
If i use the azure search collection approach then i'm not sure of result with reference to level ( i can find only product level ).
can someone suggest best approach to solve this issue ? Thanks in advance.
We don't have a built-in way to handle multi-level taxonomies yet, but you could try the following approach proposed by one of our users: Multi-level taxonomy facets in Azure Search. To render different taxonomies for different data source types, you could use filters. The following article explains how to use the Filter and Facet APIs together: How to implement faceted navigation in Azure Search.
We have a requirement to delete certain products from everywhere in hybris (including cart, orders, promotions) and all its references as well like Media, Category, Stocks, etc.
I found this one solution:
REMOVE Product [batchmode=true];itemType(code)[unique=true]
;Product;
I was wondering if just deleting the product, would remove all its references from hybris, or is there any better solution to do this.
Any help is greatly appreciated!
Removing the product will remove references to it, but not the objects which are refering to it (like Media, Category, Stocks, etc.)
The only objects which will be deleted are those refered by attributes with the partOf modifier.
A Part Of relationship between two classes extends an aggregation
relationship by ensuring that the lifecycle of the dependant object
(the part) is bound to the lifecycle of the parent object. When you
delete the parent object, all instances of its attribute types that
are marked as partOf will then be cascade-deleted.
Hybris doesn't know if a Media or a Category is no longer needed after a Product is removed. Therefore you must delete those objects explicitly.
Removing product will remove only instances of product type, but not all data like media.
To remove from cart : it should inform user that product no longer available in store
For successfully placed orders : you should be able to display basic details of product with message as in cart [ :) :) But you should deliver if order is placed successfully and payment is received otherwise its a bad eCommerce impression]
For promotions : you should remove all promotions related to this product Or reconfigure according to business need.
I've followed the topic 'Creating lists' in the Orchard Project docs but I'm struggling to think how best to implement my preferred sort order and direction in the resulting rendering of Summary display of the content items.
For example, if I create a Book Reviews list as in the example, and I then add a Published Date field following the topic 'Creating a custom field type' then how would I alter my theme or the views in the Module to display (and possibly also filter) the content items by that custom field.
The 'Creating lists' topic discusses how widgets can implement sorting and filtering, but not how the main content type can do so.
p.s. if you know the answer to this you're probably well on the way to being able to implement an Event Calendar Module as suggested by the Orchard Module Challenge; why not have a go and stand a chance to win a TV / XBox / KINECT!
Research to date:
I've noticed that ordering in a Container part is implemented using the following property
OrderByProperty
(Orchard.Core.Containers.Models.ContainerPartRecord)
In Orchard 1.4 you can Projection Module to achieve that.
In previous versions, I used LINQ queries to do the sorting on the custom field.