Please read description carefully before marking it as duplicate
I want to get recently viewed product collection from Model instead of Block
I have check similar post but no one answered it correctly How to get recently viewed product collection in magento2?
I have an iMac running High Sierra. I created a spreadsheet in Numbers a couple of months ago. I have been updating it a few times each week. Last edit was this month a couple of times. The Numbers file was stored in a folder named finance. When I tried to edit it yesterday, Saturday, I couldn’t find the file nor the folder. I tried searching for the file and found a couple of files with the same name but they were older copies. I started the Numbers app and tried the “open recent” option in the file menu. I again found a couple of files with the correct name but they were the older files mentioned earlier.
What could have happened to the file and folder? I suppose I may have accidently deleted them. Is there any way to tell? If I deleted them do I need a 3rd party app to try and recover them?
I’m trying to diagnose an issue with the feature Recently Viewed Products. I wonder where does Magento save Recently Viewed Products information, in Database? or in Session? if the information is saved in Database, which table does it get saved?
<?php echo $ this->getLayout()->createBlock('reports/product_viewed')->setTemplate('reports/product_viewed.phtml')->toHtml(); ?>
This code suppose to output the recently viewed products on category page or product page (by inserting the code in .phtml files). and this has been always working for me on my Magento sites.
However I have experienced that for one site (Magento 18.104.22.168), this code isn’t working at all. and for this site, the widget to show recently viewed product doesn’t work either.
Any ideas what can cause the “recently viewed products” isn’t working?
I have this main Form that uses its responses to create several other Forms after it’s been submitted, but I need that these Forms that were recently created to send emails on their submissions without needing to edit manually each of their individual scripts.
Is there anyway I could do this using only the code and events from the main Form that triggers the creation of all those other forms?
After buying a house from another party (i.e. not new construction) what steps should I take to ensure the previous residents have not left behind anything unpleasant for me?
I’m not worrying about booby traps or anything of that sort, but rather surveillance equipment or physical security backdoors.
I’m already planning on changing the locks, but what other steps should I take to limit any unpleasantness from the previous owners.
Say, you have this common thing of “recently used files” or “frequently used files” in your application.
It may easily happen the user moves or deletes a file they had opened recently/frequently. So what happens, now, if the user clicks on that file in your recently/frequently used list…?
- They should obviously get some feedback/notice that the file is not there anymore.
- Now, here, is the question: Should the application also automatically delete the file that it could not found from the list?
Some ideas I have about this:
- (+) Pro: The entry is absolutely useless, as a user can never open such a file anymore, anyway. It takes valuable space away if it stays there.
- (–) Contra: In some cases a file can only be temporary deleted. While on Android this may e.g. never be the case, this can happen with network shares (think of FTP or samba or so) or so on desktop systems. In such a case the user may just be offline and a file can be opened later anyway.
On the other hand, an application can blacklist these things. (from looking at the file path)
- (+) Prompt: A user could also be prompted whether the file should be deleted. However, if the file is really gone, this may really not be useful in any way, as it’s just another click and possibly obvious?
- (-) Contra prompt: Confirmation prompts are usually not considered the best UX pattern, so actually an “undo” feature would make sense here. But how can this be accomplished in this case without totally confusing the user? (note we also need to do 1. to notify the user about the fact that the file could not be found…)
- (-) Only manual deletion: We could also not automate that at all, and only let the user click on an “x” or so next to each entry, so they can delete it manually. However, IMHO this is quite lame as – while the feature may independently be useful/needed anyway – in the case when the file is gone, we can totally be clever as an application and at least offer the user to automatically delete it. Why should users first interpret our error message, think and then appropriately react by manually deleting the (correct) entry? (I guess this is “hard” and I doubt many users would even do so, which again could “accumulate” “broken” entries in our list.)
I have a quick question. I’m a dual US/Italian citizen and before my most recent trip to the US I had always used my US passport to enter and exit the US when going there. This year I decided to also get an Italian passport as proof of my EU citizenship since I live in the EU (only had an ID card before). Now not being familiar with how to travel with two passports, when I checked-in at the self-service kiosks at the airport in the US on my date of departure I used my Italian passport instead of my US one (which made sense to me at the time). I did use my US one to get in the country, but I’ve read that one must use their US passport to both enter and leave the country. Are there consequence I am going to face for this? Is there any way to correct my departure information from the US with the authorities? Any help is appreciated, thank you.
(refused latter UK embasy)
The decision :
i have refused your application for a visit visa because I am not satisfied that you meet the requirements of paragraph 4.2 of appendix V : immigration rules for visitors because:
you stated that you wish to visit the UK for 6 days as a tourist.
under the UK immigration rules you must show that you are qualify for a visa by explaining your own circumstances and the plans you have for visit.it is your responsibility to satisfy me that they are such that if guaranteed leave to enter you will abide by all of the conditions attached to any such leave and that you will leave the United Kingdom on completion of proposed visit.
You state that you are unemployed. You have stated that you are traveling withe your spouse and that he is funding your visit.you have not stated that how you are supported.you have provided property documents withe your application but this documents do not dimostrareate that you drive an income from them.i also note that when your spouse received his uk visa last October he stated that he had an online business. The documents you have provided do no demonstrate this business or that you or your spouse receive and income such a business. The documents you have provided do not demonstrate how you support your self in bangladesh and as such I am not satisfied that they are an accurate reflection of your financial circumstances in bangladesh
On the evidence available to me today, I am not satisfied that your circumstances are as stated in your application. Therefore I am not satisfied that you are a genuine visitor to the UK for a purpose that is permitted by the visitors rules or that you intend to leave the uk at the end of your proposed trip (appendix V: 4.2 a c
I am going to reapply. What was wrong with my previous application? What do I need to provide in addition to other documents so as to ensure that I get the visa? What was wrong with my earlier application and what corrective steps should I take for my next application?
thanks in advance Farhana Rumpa
A miner is in the process of creating and mining a block of 1400 transactions. Suddenly they receive a broadcast that a new block was confirmed with 200 of the transactions currently in that miner’s block. How does a miner proceed in this scenario – dropping the 200 and adding 200 others from the mempool and trying to mine a block?
In a second scenario, two blocks are created almost at the same time and they each have some of the same and some different transactions. I’m assuming (a) that there is then a race to consensus for each and the first to 51% wins a confirmation. If so, then similar to above (b) the block with losing transactions has all the dissimilar transactions dumped back in the mempool. But what if a second chain surfaces with two blocks? Now all the confirmations in (a) that aren’t confirmed in this second block get dumped back into the mempool and hopefully finally mined into the blockchain?
The takeway for me >>> Obviously this system does work since its very popular! But it seems that transactions can take a very long time and no way to really guarantee that they will occur unless a payor decides to pay a high fee to almost confirm that miners will pay attention to his transactions first and most will include that transaction into the miner’s next block to add to the chain.