I think this one is pretty easy but cannot quite wrap my head around it.
Pretty straight forward command, since I am working with no completed database I'd like to show products only if they have at least one image associated with them.
Shortly, I'd need something like: if product doesn't have an image, then hide product.
How would I go about this on Shopify? Many thanks
There is no straight forward way to hide it using the settings. However since Shopify is extensible product. You can write your own plug-in to hide.
Another simple way is it to export your products as CSV. Open it in Excel and set the Hidden column's value based on the Image column's value, such that if Image column is blank Hidden column's value is true. You can use a formula for that.
Once done save the CSV and import it back in to your Shopify.
Related
when I select (say customer) using Dropdown I would want to show users all the properties on a side table or division. Essentially, displaying the selected customer's fields on the same page for the users to verify/read.
I am using laravel-backpack for development and finding it difficult to implement. Any help is greatly appreciated.
I'm afraid there's no existing way to achieve that, you'd have to code it.
But you don't have to start from scratch, you can use the code for the select2 field (or whatever field you prefer) and create a new field type, say select2_and_preview by tweaking the Javascript inside that one file.
There's recently been a Feature Request for a similar feature (see here), you might want to pitch in with your opinion if you want it created by the team, and included in the official build.
In the picture, it shows my problem: I need to display the values of a column from a table in apex. Currently all the values are being displayed as a text field. But, I need to display only a few as text fields and others as just a display value without allowing someone to edit it. I've been looking into it, but I'm stuck.. There is a conditional display area, but not sure if that is where I need to go for the solution. That section seems to just limit what values get displayed not change the display format based on the values, but that latter is what i need. Thanks if you know or can point me in the right direction!
In the Item properties , go to advanced section
in custom attributes mention readonly=’readonly’-- this will make that item as display only.
I have a bit of a unique challenge today. I have a client that wants to be able to search for multiple items based on inserts into a cfgrid. Suppose we have the following web form:
A Country selection dropdown
A State Selection dependent AJAX dropdown
A city Selection dependent AJAX dropdown
An ADD Button
----------------------------------------------------
A CFGRID that will populate a row with selections when the user clicks the add button
----------------------------------------------------
And finally, a CLEAR button, and a GO button on the bottom.
The resulting page will then query the database and get some statistics about the cities selected. So, suppose an individual picks USA > Arizona > Scottsdale and USA > Arizona > Flagstaff. The grid below the options will 'save' each selection and reset to their default options, waiting for a user to pick additional options or click on 'GO'.
The resulting page will then generate columns that list some statistics about the communities and highlight the 'best of' between each selected community.
Each time a user selects the ADD button (assuming three criteria are selected) I want the information to be added into a CFGRID that displays the options selected. Then, After the user selects at least one country/city/state option, have all of the data in the CFGRID get passed to another page that does a query from the data selected. In theory, the user could pick as many communities as they want, assuming they are willing to let the database sludge through enough data to get what they want and wait through a 'loading' screen to get it.
I'm having these challenges, in no particular order:
- I have an HTML grid that I must use per client spec (No Java or Flash, must be HTML)
- I have no idea how to get the selected options into the CFGRID. I assume there is some JavaScript I can write that uses some sort of AddRow function to add data into the grid with the add button but cannot seem to find how to it on the interwebs
- After we conquer the above challenge, how do I pass the data from the grid into the results page? I thought about passing one big string or a structure, but I'm not sure how to do that through the URL or posting, nor how to get the data out of the grid. I wonder if I am better off coding some sort of string that gets passed from the options page to the results page with a get method instead of dealing with the stuff in the CFGRID and have the CFGRID serve only as a 'dummy' display container.
- Finally, after the pass is complete, I would need to loop through through the structure and perform a CFQUERY or CFSTOREDPROC on each row of data, then get the statistics I need to display on the results page. I assume this would depend on how I am getting the data from the options selection page to the results page.
THANK YOU ALL!
CFGRID is great to start, but it can be b*tch to customize and extend... Have you tried editable CFGRID with bind? See how far off it is from what you want first. If it turns out to be very far, then you might want to go for a jqGrid and code up some jQuery.
To start, read Using HTML grids and make the cfgrid editable.
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-7a01.html#WSc3ff6d0ea77859461172e0811cbec22c24-72e0
Once you got that working, look at these provided JS functions that you can use with CFGRID
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WS0ef8c004658c1089-6262c847120f1a3b244-8000.html
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSd160b5fdf5100e8f-4439fdac128193edfd6-7f5f.html
If you still demand a bit more, you might need to dig into the underlying ExtJS component. At that point I would rather use jqGrid
I found out that the best way to handle this was by using a SerializeJSON call and a Deserialize JSON call back and forth. By using JavaScript notation we are able to pass a complex JavaScript object (array) between one page and another. This has the value add of not having to worry about sessions timing out and making URLs clickable from one solution to the next.
I want to change the default behavior of the configurable products option. By default it shows options in a dropdown box; I want to show that on a grid in place of the dropdown.
Creating a new product selector is a pretty big undertaking. I cannot tell you how to turn it into a grid because you have to handle multiple selections, etc. But what I can tell you is that the file you are going to spend a lot of time in is:
/app/design/frontend/base/default/template/catalog/product/view/options.phtml
I have done something similar.
The main Problem you will face is to make it work with the magento javascript components, so you can still use all functions which are provided by Magento.
As this is nearly impossible not to breake, i used a script, which places an own html control over the selectbox.
https://github.com/claviska/jQuery-SelectBox
This is mainly for customice Design of a DropDown box, but you can "misuse" it to have arbitary structures, as you have usual html elements you can place how you wish with CSS.
You could try looking at using a plugin such as this one by Magento Mechanics which will do all the hard work for you:
http://www.magemechanics.com/product-grid-options.html
I have used and recommend there plugin.
jqGrid has a column chooser functionality as like described here:
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:jquery_ui_methods
and a demonstration from #Oleg:
http://www.ok-soft-gmbh.com/jqGrid/SimpleLocalGridWithColumnChooser.htm
However its too complex for my needs. Is there any simple way as like FlexGrid's show-hide columns choosing functionality:
http://flexigrid.info/
You can check Example 1. Columns can be shown and hide by clicking columns. I don't want to same thing but it would be great just clicking somewhere at or near columns and choosing just columns to show or hide.
Any ideas?
PS: I want a basic show-hide column field not a complex screen that opens and people selects many options on them. It should be build on table as like Flexigirid. users click checkboxes and thats all.
Sorry, but you can't have the same look in one software product like you know in another one.
Do you can configure flexigrid so that it looks like jqGrid? Do you can that iPhone looks like Windows Phone or Mac OS X looks like Windows? Every software product has its own design and the set of features.
The columnCooser are based on the multiselect widget and allows you to show or hide any columns or reorder columns with respect of drag & drop. flexigrid has another implementation of the features.
If you want to use some free open soure product you should understand the features and the possibilities which provide the product and just use there.