How can I show multiple megento stores in front end? - magento

I have 2 stores called 'Retail' and 'Wholesale'. While adding product I have to select the store (It can be both the store or none or any one), and i have to add price for different store . If am selecting both the stores, how can I add different price for sores ?
How can I select sore In the product ?
While adding store we selects Category, I can manage store here but how will I display different price for same product ?

Magento has three levels of scope (listed below in ascending order of precedence):
Global (aka Default Configuration)
Website
Store (aka Store View)
There are also two scope contexts: system configuration and entity.
Note that not all sysconfig options or entity data can be set at each level. Product pricing is one such datum. In System Configuration > Catalog, product price can be configured as either global scope or website scope, but not store scope. To achieve store scope-like behavior, configure pricing to have website scope, assign each store to its own website, and set the price at the website level.

Related

Magento 2: How can create different Tax rate for multiple store for same country

Is it possible to create multiple stores for the same country (to all states) and each store has assigned for different tax rules?
Example for the country US I want to create three different stores.
1) US-store-1
2) US-store-2
3) US-store-3
And each store has a different tax rule.
Why do you want to create different stores for US ? it can add lot more complexity to your Magento instance.
Magento allow Tax rules based on postal code, you just need to configure table rates properly to make it work.
You can find some useful information regarding table rates here:
https://docs.magento.com/m2/ce/user_guide/shipping/shipping-table-rate.html

select city popup in magento

I have a magento store. I want to operate in a city. When one customer visit the store he/she will asked to select his/her area from a dropdown list in a popup. Then the customer is allowed to see the products in the store and shop online.
Example: Suppose My city is Bhubaneswar
Areas: Acharya Vihar, Vani Vihar, Rasulgarh, Barmunda.
U can create different stores for different places and put this Mage::app()->setCurrentStore($store_id); to make your storeid your current one
For each store you can map several areas, this mapping could be represented in your city area table, by adding a store_id column.
The customer selects the desired store by selecting the city/area, you can then redirect to the desired url with the store scope here you should use
Mage::getUrl($path, array(
'_store'=>'your_store_id'
));
To restrict the store as you said, there are different approaches, one is having a default store that is not associated with any area, then you make the categories/products available/enabled only for the stores other than this default one.

Not able to get the orders under respective store view in multi store magento setup

I have a multistore Magento setup with separate website for each store. When I place an order from different store/website it ends up under default store (I see Default store view under Purchased from column in Sales>>Orders).
How can I set the respective store view context while saving the order in respective website/store? I check the database table to order master I see default store id which is 1 under column storeid.

Magento FPC and $_SESSION object

How to use a cache when you have content depending on SESSION variable?
Does it work with Varnish-like cache? Does it require FPC?
let me explain.
My customers can select their model of Car (manufacturer, model, year), once selected this is stored in SESSION object.
(Of course every product is linked to a list of Cars in the back end.)
The thing is, on the frontend, There is a module that automatically filters the products according to the Car selected by the customer.
I'm not only talking about a user that would search for a product by entering a keyword on the search bar.
I'm also talking about the category pages.
When the customer visits the website, clicking on a category, then the list of products within this category is filtered too!
So while the customer navigates, he only see compatible products with his car.
I failed to use VARNISH because of this (VARNISH is based on url only, and the selected Car is not part of every url...).
That's why I'm wondering if there is any concept of Cache that would take into account SESSION variables?
thanks,
Rod

Magento - modify search for multiple stores

We've got 2 magento stores configured, A and B:
Store B only shows categories and products below the catgory CAT2.
Now, when searching on store B's front-end, products from categories of store A come up. How can I avoid that? I'd like to cleanly separate products assigned to store A from those assigned to store B as store B is a specialized product segment presented with another company.
Any idea how to do this?
we finally set up the second store as a different website, this way we can assign products to either one or the other in the website section of the product, and search results adapt accordingly.

Resources