Opencart product specials discounts "Options" bug or feature - opencart

As the opencart has a Special option tab that allows a promotion to be added, I'm trying to do the following:
have a product with a price of 100$
have a second version of the product via the Options tab that is 50$
and a 3rd version of the product that is 150$
and run a special price. The idea is to be able to select a special price for any of the options, but at the moment it's not working at all. If I set a special price to 21$ the product page displays only the 2 options of 50$ and 150$ removing the default of 100 (which is ok - i can add a 3rd for the default) but has no effect on the options prices. Is there an extension or a fix that can allow me to achieve that - the discount from the special offers tab to affect the price from the options tab. It's my first time working with opencart so it's all a bit new to me.
Here's a link to a test product:
http://www.hqperfumery.com/index.php?route=product/product&path=67&product_id=1727
you can see that it strikes out the price and offers the new price but it's the same though the amount discounted from the standard price is correctly calculated under the product name
Thanks for any help provided

Related

How do I get a percentage on Power BI Report Builder?

Basically the same as this question, only I can't comment on the answer there because apparently I don't have enough reputation and I can't give an answer because I don't have one. And I am using Report Builder version 15.7.1799.16.
EDIT: It occurs to me that I should clarify I am using PowerBI Report Builder version 15.7.1799.16.
I have a database containing US car insurance information. I am using a Tablix with fields City and State (with each City being in a specific State) and Measure Direct_Claim_Deductible_Recoverable_End_of_Year (abbreviated as just "Deductible" in this post). The Tablix has columns Category (which says State or City), Year (for the specified year, which is a parameter), Location (which tells you what State or City the row is for), Deductible Recoverable (which is the Deductible field for that State or City), Pct% (which is the percentage variable I want to calculate), and Bar (a Data Bar for that row).
My report looks like this in Design view. (Apparently I'm not allowed to embed images either. What kind of site restricts these abilities for new users?) I want Pct% to be a calculated field. I want it to give me the percent of the total Deductible for each State in the State rows, and the percent of the State's total Deductible for each City in the City rows.
For a formula, I've tried using
=Fields!Direct_Claim_Deductible_Recoverable_End_Of_Year.Value/sum(Fields!Direct_Claim_Deductible_Recoverable_End_Of_Year.Value, "Year_Number")
as described in the answer to the above linked question, but when I go to Report view it gives me this error message:
The expression used for the calculated field 'Pct' includes an aggregate, RowNumber, RunningValue, Previous or lookup function. Aggregate, RowNumber, RunningValue, Previous and lookup functions cannot be used in calculated field expressions.
The definition of the report '' is invalid.
An error occurred during local report processing.
I then tried removing the denominator from the percentage formula:
=Fields!Direct_Claim_Deductible_Recoverable_End_Of_Year.Value
And the report ran, but obviously the Pct% column ended up being exactly the same as the Deductible Recoverable column, like this. (I did the math, and the numbers for the cities do add up to 4100 in this report.) But here's what I am looking for right now:
The Pct% column in the State rows should show a percentage of the
State's Deductible over the total, and in the City rows it should show a percentage of the City's Deductible over the State's.
When I am done, I should be able to make the Data bar reflect the Pct% column.
This worked so well when I followed along with the Paginated Reports in a Day course on YouTube. I downloaded the Attendee Kit from the linked page and followed along with the labs, and they all worked fine. Lab 05A in particular addresses how to input a percentage when it is already a field in the dataset in Task 5. The only problem is, it is not a field in my dataset yet because I can't get the dang formula right.

Calculated column that is for each time series

I have this Power BI file
through this link
we.tl/t-Q5Fgc0G6ZX
It has data for users and scores per date
the greph looks fine except 1 thing
This is so far good to show total users counts and passed uses count
but what I want in top of that is to have a 3rd bar shows how many users are needed to get the target of passing users for that month/year/day/quarter
Target is 60% of total number of users
How can I do that.
appreciate your help
Right click on your table at the fields pane (right side) and chose New Column. Type the following into the expression field:
60 Percentage Target = YourTable[NumberOfUsers] * 1,6
Now simple drag and drop the 60 Percentage Target column into your chart (value) and you get your desired result.

Saved search report in Netsuite

I want to create a report in Netsuite ERP that shows me the information about Departments Sales and Budget by Month. I think I can achieve this by creating a saved search that chooses this items, however I don't understand under which category I can find this fields. A saved search would be ideal as I am trying to authomatize the reports in a java application, and I discovered that I can call the savedSearch results.
I found the Department under the standard Criteria in the subcategory "Owner..." and I added a Date standard criteria with the values "within this month", however I have not found the group that contains all the Sales/Income/Margin or the budget (though, I found an aggregation sum function that may be used along with a field). I will appreciate any help. Also, will the addition of this fileds be enough to get the Sales X Department X Date information or do I have to use a different join method?
Thanks!
You'd have to combine two saved searches to achieve this.One on budgets for the period you need. The department column is available on the budgets saved search.
The other would be transactions for the period. Generally budgets are against posting transactions so Invoices, Cash Sales, Credit Memos and Cash Refunds would be in your other search. If you group those by Department you could then combine the two searches in code to create your own budget vs actuals report.

Temporarily disable quantity discounts in OpenCart

Currently i am using default OpenCart discounts dependent on quantity.
For example
1 item - 10 $ each
5 items and more - 9 $ each
For a short period of time, i want to disable this option, and make prices same for all quantities.
In this case:
1 item or more - 10 $ each.
The problem is, that after this period, i have to switch back to old discounts dependent on quantity. Is it possible to implement this functionality without going through all items and editing discounts manualy?
Yes, there is! You can use the oc_product_discount table's date_start field to do that. Let's say you'd like to disable these until 1st January 2015. Run the following query to do that (I'm assuming you haven't changed the DB_PREFIX in your config.php file, so it's oc_):
UPDATE oc_product_discount
SET date_start = '2015-01-01'
Please note: you have to provide the date in a YYYY-MM-DD format.
Using this solution would save you from the headache of possibly forgetting to change it back, as it would not be necessary. It just tells Opencart, that these discounted prices should take place from the date you've specified. I hope this was thing you were looking for.

Making a row read only in a tabular form

I have a tabular form which users will update on a yearly basis for their targets. Each product will have three rows: a row showing sales (last year), a row showing sales_target (sales man will enter) and a manager figure (what the manager expects the sales man should sell). The user should only be able to view sales from last year and the managers figure, and be able to enter into sales_targets. I know how to make columns readable but stuck on how to make a row readable if its not manager figure and sales.
There was some javascript that i could maybe use from another post however that is for a column rather than a row, could something similiar maybe used? Link here
I have made a demo here:
Link:apex.oracle.com
workspace: apps2
user: user
password: DynamicAction2
application name: Application 71656 Read only Rows for Tabular Form
Yes, something similar can be used (execute this on page load):
$('#TAB_REP').find('td[headers="TYPE"]:contains(manager figure)').siblings('td').children('input').attr('disabled', 'disabled');
where TAB_REP is static ID of your report.
I have try to use more simple way - by defining attribute of the column, but in tabular report, apex dosn't replace #COLUMN# strings. Hope this is not a bug.
P.S. I've changed your demo.