Configurable product - orchardcms

I'm playing with custom module shoppingcart.
I currently have a product part with fields price and sku. What would be the best way to add a configurable product for example a shirt has different colors and sizes. But now all products has to be configurable. I want to have the user select from a dropdown in my view from available sizes.
If I create a new content part and attach enumeration field to i must choose one item when i create product from backend. What I want is to render all the items in the enumeration field in the view and be able to select one.
// Tomas

Related

Search for Shopware6 product variant

Is it possible in Shopware 6.x (via code or config) to allow users to search for a term, and have a product variant show up in the search result?
As of now, only the parent product is displayed, even if a search term has been added to a variant's Search keywords.
I've added search terms to a product variant, and run the indexer.
You need to change the storefront presentation of the product.
Edit the product in the administration.
Select the tab "Variants".
Click "Storefront presentation".
Select "Product listings" in the sidebar menu.
Select the "Expand property values in product listings" radio option.
Select all property groups you want to be split in the storefront. If you select all every single variant will be listed separately.
This setting will adhere in both the search results as well as regular product listing. There currently is no way to set the storefront representation for just the search results but not the listing and vice versa.

Some phrases and products for empty text search

As a part of empty search in Hybris,we are required to display some phrases and products even when customer does not search anything.
How to go about this scenario?Will we have to make changes in the individual controller methods?
You can return a searchEmpty CMS page whenever searchPageData doesn't contain the data.
Now you can design the searchEmpty CMS page as you want.
Like the page contains phrases and product components to display phrase and products which can be changed/configured though WCMS.
Edit:
As you mentioned in your comment, you want to show static text and products in autosuggestions when the user clicks search box.
Approach 1.
You can render static text and your selected product data in the hidden container with all pages. Now on search-box click event show that data as autosuggestion dropdown.
Approach 2.
On the search-box click event make ajax call(custom mapping) to get the static data content(JSP).

magento how to add tabs in product details page using attributes

I am using easy tabs now before it was customized by other person. Now if i add attributes and add it shows me as additional info and i want to show specifications as different tab in product details page.
I have 5 tabs, Product Description, Additional Information,Deals, Reviews and Returns so here Information,Deals, Reviews and Returns this all come from static block which is customized and now i want to add Specification tab i added but its showing me under additional information as i want to show as different tab.

Create an outline ( on categories ) contained by a frame - LOTUS NOTES 7

mates! I'm new in programming in lotus notes and I have a question.
I want to create an outline based on categories such as: Sorting people after their names, their birthdate and by their phone number. Could everyone explain me how to do this? Should I create an embedded outline ? This outline should be contain on a frame. Thanks!
Traditionally you would create a frameset that defines the layout of your application's frames, and then set one of those frames to display a page, which in turn contains the outline. The target of the outline frame would be a main frame where you show the views -- the selected outline node defines which view to show.
You need to create several views, one for each "sort by" you described if you want there to be a link to each sorted view. Your outline would then contain entries for each view. As an alternative, you could create just one view and make the column headers allow sorting provided you can show all the necessary columns in one view.

Display the responses to the current form inside an embedded view

I am trying to create a new Lotus Notes Database (classic, not using XPages) using the Domino designer which will be used to manage customers and orders.
As orders belong to customers, I implemented orders as responses to customers (this seems to be the only way to create a hierarchy).
Now, the form representing the customer should contain a view displaying all the orders which belong to the customer.
However, I don't know how to implement this view:
First, every embedded view based on a formula (I tried SELECT (Form = "Order")) creates an error message: "Unable to launch at this time".
Second, I have absolutely no idea how to restrict the result to responses to the current Form (in my case: Showing only the orders belonging to the current customer and not all orders in the database).
To embed the view in the 'customer form', open that form, place the cursor on the place you want the embedded view, and from the menu select: Create -> Embedded Element -> View...
Select the view you want to embed, and click 'Ok'.
Now, to show only orders for current customer, you will see in the Objects tree list 'Embedded View' with 2 option, select the second 'Show single category'. There you can specify with formula only the current customer. For example, to show entries only for the current logged user I would put:
#Name([CN]; #UserName)
Hopefully, this info will help solve the problem.

Resources