store

Change Magento product status in different store views

落花浮王杯 提交于 2019-12-05 13:43:20
I have a Magento Multi-Store installation. I have a product that must be enabled in shopA and disabled in shopB If i select the tab "Websites" there is an alert "Items that you don't want to show in the catalog or search results should have status 'Disabled' in the desired store." so probably it is possible? The default value status of the product is "enabled" Then i select the store view of shopB and disabled the product status. Now the status of the product in shopA is also disabled. Is it possible to set the product status in shopA to enabled en in shopB to disabled? The manual said: "The

extjs treestore with proxy

三世轮回 提交于 2019-12-05 13:14:25
I'm creating a MVC extjs application. I've got a treepanel with a store, which is loading the data from a php source. I get the following json-formatted response: [ { "text": "Home", "leaf": true, "dbName": "NULL", "children": [] }, { "text": "Moje Firma s.r.o.", "leaf": false, "expanded": false, "children": [ { "text": "Vydane", "leaf": true, "dbName": "demo" }, { "text": "Prijate", "leaf": true, "dbName": "demo" } ] }, { "text": "Já Živnostník", "leaf": false, "expanded": false, "children": [ { "text": "Vydane", "leaf": true, "dbName": "demo_de" }, { "text": "Prijate", "leaf": true, "dbName"

Android App Security

半世苍凉 提交于 2019-12-05 12:28:13
I want to develop an app where User data is very sensitive. I am new to dev. so not sure this following techniques are necessary for security or efficient. Please leave your comment. Thanks in advance. For extra security can we avoid market(play store) and install the app on individual device. Does it make it more secure? I have to store data on the device. How can we make the data secured so other apps can't read it? Yes, you can install your app without using the Google Play app. Whether this is more secure depends on your security requirements. Generally spoken, it's much more secure to

Android: Storing Image into project directory (files)?

雨燕双飞 提交于 2019-12-05 12:23:10
I want to store my Bitmap image into project directory. How can I have access to my project folder or what is the address of my project folder? You have to put the images in the res/drawable folder. Then, you can access them by using: R.drawable.name_of_image (for name_of_image.png or name_of_image.jpg ). If you want to access them by their original name, you better save them in the assets folder. Then, you can access them by using the AssetManager : AssetManager am = getResources().getAssets(); try { InputStream is = am.open("image.png"); // use the input stream as you want } catch

React Redux - accessing existing store in a helper function

一世执手 提交于 2019-12-05 10:14:03
I'm trying to get the store instance (store state) outside a react component, namely in a separate helper function. I have my reducer, my action, I have created a store in the most upper component. // configStore.js import { createStore } from 'redux'; import generalReducers from '../reducers/generalReducers'; export default function configStore(initialState) { return createStore(generalReducers, initialState); } // index.js import { Provider } from 'react-redux'; import configStore from './store/configStore'; const initialReduxStoreConfig = { unit: 'm2', language: 'en' } const store =

How can I serialize a closure in Perl?

落爺英雄遲暮 提交于 2019-12-05 08:11:19
I think this might be best asked using an example: use strict; use warnings; use 5.010; use Storable qw(nstore retrieve); local $Storable::Deparse = 1; local $Storable::Eval = 1; sub sub_generator { my ($x) = @_; return sub { my ($y) = @_; return $x + $y; }; } my $sub = sub_generator(1000); say $sub->(1); # gives 1001 nstore( $sub, "/tmp/sub.store" ); $sub = retrieve("/tmp/sub.store"); say $sub->(1); # gives 1 When I dump /tmp/sub.store I see: $VAR1 = sub { package Storable; use warnings; use strict 'refs'; my($y) = @_; return $x + $y; } But $x is never defined in this sub. I would expect that

extjs - Sort store alphanumerically and case insensitively

老子叫甜甜 提交于 2019-12-05 07:27:58
I want to sort store (ArrayStore and GroupingStore) alphanumerically and case INSENSITIVELY. I am using singleSort() method but it sorts case sensitively. For example, data = ['c', '1', 'A', 'a', 'C'] output = ['1', 'A', 'C', 'a', 'c'] myoutput = ['1', 'a', 'A', 'c', 'C'] or [['1', 'A', 'a', 'C', 'c'] // This is what I want Any suggestion on how to achieve this? Add this to your code... be wary of your scopes because you will make all sorts on the page case insensitive. I found this code on the forums and have used it successfully in 3.2.1. Ext.data.Store.prototype.sortData = function(f,

Mock ngrx store selectors with parameters in unit tests (Angular)

拈花ヽ惹草 提交于 2019-12-05 06:22:43
问题 I am trying to write unit tests for a service in Angular. I want to mock the store.select function of ngrx, so I can test how let's say, a service, reacts to different values returned by the store selectors. I want to be able to mock each selector individually. My main problem is how to mock parametrised selectors. I have previously used a BehaviourSubject that I map to the select function, but this doesn't allow you to return different values for different selectors. It is not readable

Where to store large application data on android devices?

故事扮演 提交于 2019-12-05 05:16:58
I'm currently facing a problem where I should store my object structure on the android device. The usecase: I'm starting a call to an applicationserver (with the great help of AsyncTask ), get a well known response (xml-response) from the server, parse the data and transform it finally into my object structure (highly complex class diagram with many associations between the classes). So far it's working, thanks to the great XMLPullParser ;) I'm wondering where to store (and of course share) the fetched data between my activities... I already know that I can use sqlite, but I do not have an or

How to store data that remains after uninstall

喜夏-厌秋 提交于 2019-12-05 03:53:46
I want to store some data that should remain also after application uninstall and to be accessible by a new version of this application. Share preferences/files are not a solution as they are removed when program is uninstalled, also writing to internal memory is not a solution (also removed with uninstall). Writing to external public folders I see that is not removed but this would require an external SD Card and don't want to be constrained by this. I don't know about using the SQLite database, how it works? It could be a solution for what I want ? Or any other solutions would be appreciated