Spree make product in some order , like middle , top and bottom - spree

I want product in some specific orders , so to achieve this it would be good if I add one column in product table with name position and order it accordingly or there are any other way to do it please help

Related

How to hide blanks in a matrix visualization with hierarchical rows

I've built a table of data following this helpful guide:
https://www.daxpatterns.com/parent-child-hierarchies/
I'm following it exactly but I'll still explain things here so you don't have to go through the whole article if you don't want to. I have a table of Names with corresponding keys, and ParentKeys forming hierarchies.
I added a column for the path, columns for each level of the path, depth of hierarchy and an IsLeaf column:
If I want to make a matrix and include City (from another table), all hierarchies will expand to the maximum length, and blanks are filled in with the "parent's" name:
The DAX Patterns website explains how to get around this. First add these two measures:
BrowseDepth = ISFILTERED (Nodes[Level1]) + ISFILTERED (Nodes[Level2]) + ISFILTERED (Nodes[Level3])
MaxNodeDepth = MAX (Nodes[HierarchyDepth])
And then you can factor that into calculations with this measure:
Sales Amount Simple =
IF (
Nodes[BrowseDepth] > Nodes[MaxNodeDepth],
BLANK (),
SUM (Transactions[Amount])
)
If this is the only value on a matrix visual, it turns out fine:
But if I add any other values, I get expanded hierarchies and blanks again:
My problem would be solved if I could filter out blank values, but that filters out the entire hierarchy. Do I have to make a measure using the Sales Amount format above for every value I want to include? I'm trying to add things like addresses that can't be aggregated.
Basiacally yes, you have to re do the measure. However you can embed existing into this patern which makes it a little easier.

Generate multiple or single cell values based on conditions?

Problem:
I have single products and bundled products. I have a single "product ID" column and I want the sheet to recognize both bundled products and single products and, where it is a bundle, to fill the product ID for that bundle.
Here is the layout:
I have a list of bundles and the relevant product information on a separate sheet.
Explanation:
In column A, I enter either the product name of the Bundle ID.
Problem:
Is it possible for column B to detect whether Column A refers to a Bundle or single product? It detects a bundle, then can it generate the items in for bundle?
For example in A4= " - BUNDLE001" so in column B will generate the relevant product ID: B4= "LG001", B5= "PAN002". But I also need column B to know if it did not Bundle and to display the relevant product ID.
Sheet Link: https://docs.google.com/spreadsheets/d/1wPNYKbtbkaZ2LDrFq2RO_f13cfQeGcWsyhwS5VDkuvk/edit?usp=sharing
if your A column will look like this:
then you can use this formula on every row you need:
=ARRAYFORMULA(IFERROR(IFERROR(QUERY(Sheet2!A:C, "select C where A = '"&
REGEXEXTRACT(INDIRECT("A"&ROW()), TEXTJOIN("|", 1, Sheet2!A$2:A))&"'", 0),
REGEXEXTRACT(INDIRECT("A"&ROW()), "- (.+)"))))

powerBI map doesnt show cities

Im trying to show provinces and then drill down to show cities in powerbi map (Aug, 2018 version).
My problem is it does show provinces but when I drill down to get a look at cities, it doesnt show anything.
I also changed column "city" to "place", but nothing happened.
(Note: they are Iran's province/cities, maybe this problem is related to that. because when I change for example my city "Kāshān" from province of "Isfahan" to "Redcar" or "London" it loads nicely on these two cities)
So, what is the solution?
Thanks a lot in advance.
Create a new column called "Location" or "Place" by merging the City and Province columns. You can use a comma (,) as a separator. For example - "Alabama, USA".
Then change the category of the new column to Place. This will solve your issue. The map will be plotted correctly.

classic report and derived columns

I have a classic report 2 columns are coming from the table and the 3rd column is a derived column.
I want to compute the values of the 3rd column based on the value of the 2nd column like if the 2nd column value is 1 then I want to put '-' in the 3rd column if it is >1 then in the 3rd column I want to put 'More than one dates'
And I want to have filters in the 3rd column header with the values that I put, I this case '-' and 'More than one dates'
And when I select the filters I want the report to be filtered accordingly.
I have a put a screen shot of the report.
Please can anyone let me know how to accomplish this.
Any help will be more than welcome
Apex 5.1 and Firefox
Snap Shot of the Report
Your SELECT-Statement should look something like this:
select ULA_ORDER_NUMBER,
COUNT,
CASE WHEN COUNT = 1 THEN '-' ELSE 'More than one dates' END as FILTER
from YOUR_TABLE
For the filter just "double click" on the COUNT column header.
This is what it looks like:
Hope this helps you.

How to get shipping address in new column of order list in xcart

I am newbie in X Cart and working on XCart 5.2.5. I would like to know that how can I displays customer billing or shipping address in one new custom column of order list at back end.
Please see the attached screen shots below
Order list screenshot
Any kind of help will be appreciated.
You would need to decorate the \XLite\View\ItemsList\Model\Order\Admin\Search class and define a new column in the defineColumns() method.
The column definition should be something like this:
$columns['shipping_address'] = array(
static::COLUMN_NAME => 'Shipping address',
static::COLUMN_TEMPLATE => 'modules/Tony/OrderSearchChange/order/shipping_address/body.tpl',
static::COLUMN_ORDERBY => 350,
);
First field defines a title of the column, the second field defines a template that will be shown in the table's cell and the third one defines the position of the column (the higher the number the further to the left the column will be).
I have also created a sample module, so you could play with it:
https://dl.dropboxusercontent.com/u/23858825/Tony-OrderSearchChange-v5_2_0.tar
Tony