How to make two product columns for a specific collection in shopify? - shopify

I am trying to change the number of columns for a specific collection. Right now collection is set to four columns but i would like the one collection to be only two columns. How would I do this?

clone the current collection liquid with 4 columns
edit the clone file to have only 2 columns
Assign this new 2 column collection some products
hook up this collection with 2 columns to navigation
In other words, assign your specific collection a different collection template, one with 2 columns.

You would need to adjust the css class for the grid on the collection page. Every theme is different so there is no clear cut answer. Typically you would need to open the collection.liquid section file and look for grid_item one-quarter or something similar and adjust to grid_item one-half.
If it is a Shopify Free Theme you can reach out to their support team and they usually are able to help you with it.

Related

How to create auto-update dependent dropdown list?

I have a great task with creating auto-updating dependent dropdown list. I have a long list of fruits and long list of vegetables, which again may keep adding. So the reference dropdown would be selecting fruits or vegetables.The dependent dropdown should have the list of the previous selection. The problem here is the list gets updated so often, so I cannot give any fixed reference of the list. Also the list of fruits need not be the length of the list of vegetables, which when including a fixed reference column leads to the display of zeros in the drop-down taking into account the empty cells.
Please help me through this issue. Thanks in advance.

Create multi-page document from a single page template using doc4j

I am planning to use doc4j for search and replace in a template. I'do like to create the page for each member in the list. Basically, I need to replicate the same page from the template. I have done simple search and replace. However, this little complex one for which I need some sample examples. Here is my requirement:
I have a docx template which has the content with place holders.
There is a table with 3 columns in it and I need to replace with different values for each column like first name, last name and etc. The number of rows may vary anywhere from one to 200. So technically this may go beyond one page. If it exceeds more than one page, then I need the table header to repeat in the next page too.
I want to copy the same template on every page and replace the place holder. Basically create a single document with multiple pages each page for one member.
Please provide me with the example.
Appreciate the help.
Thanks.

How to validate field in InfoPath against separate SharePoint list

I have two SharePoint Lists. One is a simply a list of items with a title and description, the other is a list of requests which contain a workflow. These requests are requests for adding or updating items in list A.
I want to validate the Title field on the add new item form for the Request List. I'm wanting to check that the Title does not already exist in List A.
I know can set the properties to only allow unique values on the Title for List A but as these request are going into a separate list I am not sure how I can check to see if the item already exists in List A.
I am creating the forms for the Request List in InfoPath.
Any ideas would be great.
This is a rough idea, but you could load in List B into your data form and set a textbox to the value of the list, filtered by the title field from list A. If the field is blank then you know it doesn't exist already.
This blog can help with the loading and filtering of the list data:
http://pravahaminfo.blogspot.com/2011/05/filtering-sharepoint-list-data-using.html

SharePoint list with column that can add additional fields

I want to create a list where one of the columns has 6 options to choose from and if option 3 is selected it adds additional fields to that record and if option 6 is select it add completely different fields.
Is there anyway to do to this?
Thanks,
You need to customize the List forms using Infopath. See this video for more details. You can hide/show the columns in the add/edit forms based on the selection.

Automatic Chart Pagination with Report Parameters

Based on several report parameters in SQL Server 2005 reporting services, I would like to automatically generate one or several chart(s) for each row in the return result and paginate or space them out. How do I go about that?
If the number of charts will vary for each row, but the variations are known (e.g. it's either just chart 1, or chart 1 and 3, or charts 1 2 and 3) then it's simple enough using a table.
In the default detail row add any normal fields you need. Now insert a new detail row for each chart you might need. Lastly set the visibility of each chart row based on your rules, noting that the rule will hide the row if your expression evaluates to true. Make sure you select the row using the area to the left of the left-most cell, if you got it right you'll see that it's a row in the properties grid.
To get the layout you want you can merge cells for the charts to go in, or use a single cell and put a Rectangle in it, then in the Rectangle lay out your other controls.
Any rows that are hidden will be collapsed, so you wont get big empty sections like you can if you simply toggle the visibility of the charts themselves.
What you can do is place a List control on the page, set List grouping by record unique key (ID, or several fields if composite), and place a charts on the List. Next, set items visibility expressions to control it with report parameters.