I have magento 2.2.7, the issue is when I update product quantity to zero "0", it automatically increments the quantity after some time. I tried on 3 products and each products increment was different.
I checked in logs, none were generated, checked product update time, that too also isn't changing after automatic increment. Any guesses, how can resolve it??
Resolved. Just commented out sales_clean_orders cron in vendor/magento/module-sales/etc/crontab.xml
Related
I am really new in Tableau and I would be needing help in some calculation.
My simplified data consists of three columns:
customer no, transaction date, lost_flag
here lost_flag is a boolean which marks as true if a customer made a transaction in the last 365 days.
(max([transaction date)< dateadd('year',-1,max([Report Date])))
I need to find the:
1. number of customers that are lost
2. number of customers that are not lost
3. attrition rate
For number one, I initially did
countd(if ([Lost_flag]) then [Customer No] else "" END)
But obviously it did not work.
Note: Customer_No is not unique here since this is a transactional sales data source
Thanks in advance.
First you need to make sure that your lost flag is being calculated at the customer level rather than the transaction level. In order to do this use the following formula, note that it is similar to yours however I have made it be fixed at customer id and also replaced report date with todays date:
Lost Flag = { FIXED [Customer ID]: (max([Transacton Date])<dateadd('year',-1,max(TODAY())))}
This will add a TRUE or FALSE flag against every transaction for a customer.It is important that this is fixed at the customer id level rather than the transaction otherwise all old transactions for a customer will be flagged as lost even if they have a recent transaction.
So in order to see how many customers are lost do the following:
1) drag lost_flag onto the rows shelf
2) drag customer id onto the text mark and then right click- measure - count distinct.
I have three different delivery dates in my store and I want the user to choose from any of them (effects the price) on the (configurable) product page. I need these three to hold three different values:
4 days from now = "2017-09-04"
7 days from now = "2017-09-07"
10 days from now ="2017-09-10"
The Attribute 146 holds all three and presents the options to the customer in a dropdown menu. When the user makes his choice the product price changes.
My problem is that I dont want to update the values manually every day so I am looking for a way to automatize. First I tried to do it in configurable.phtml and change the value every time the page gets loaded. I am trying to use this line of code to be able to do it but I am having difficulties making it work.
<?php $this->action->updateAttributes([$product->getId()], ['deliverydate' > $newValue], $storeId); ?>
Now I am thinking of maybe I should set up a cron job to do it every night?
What do you think? Any suggestions?
I'm using Crystal Report 11.5.12.1838.
I wanted to add more column 'Total" for each month to the chart the blow:
Chart1
I've tried both Running Total field and the Cross-tab. but it's lead me to nowhere as it's not my expectation.
As Running total field, it's increase the quality by the time, not separate for each month.
As the Cross-tab, it's generated another chart, instead of adding to the existed one.
I'm completely new with this so there may have some trick that i haven't know.
Please help me on this.
High appreciate if any input.
Edit.....................................................................
Please take a look on the Running total of mine: Running Total Configuration I added the summary to the footer before. You can see it in the brown highlighted: Expected chart
As i wanted to add this total column to the chart, but when using Running Total time, it's increase continuously. And the matter is i didn't know how to add more column to the existed chart.
Thanks for your time,
Running total should work but if you are unable to use the running total... Post what have you took in Evaluate and Reset so that we can see if anythig wrong you have done.
You can follow one more appraoch which is very simple and gives you sum.
Group the report with month
Place the remaining data in details
Now take the summary in group footer by Right Click field --> insert summary --> take sum to group footer
Let me know if you face any issue
We have a Magento multi-store installation. We would like to prevent product stock levels from going below "0" when 0 quantity is reached but still allow those products to be purchased. When a product is sold out, we simply drop-ship it from another company. The main goal is to not have negative counts in the inventory. Currently, when a product is dropped shipped because we're out of stock, we have to manually change the stock quantity back to "0" from "-1" in the product's inventory field. Any suggestions would be greatly appreciated on how to make this happen.
Thank you,
Jim
I want to decrement quantity 10 of particular product each time place an order by customer in magento. its don't matter what quantity added in product detail page by customer.
Please help
Maybe using observer like sales_quote_add_item, will allow you to set custom quantity once the product is added to the cart.