Jump to content

Multistore: Update cart when switching from shop A to shop B


MikeCZ

Recommended Posts

Hi all,

 

I'm experiencing following problem:

 

We use Multistore feature.

Shop A: shatsudrivewear.com/en

Shop B: shatsudrivewear.com/cs

 

The website is unavailable, it's restricted by IP address and you will be redirected to different URL now.

 

We have FIXED prices (we need it this way).

 

----------

 

An example:

 

A T-Shirt.

Shop A price: 19 €

Shop B price: 490 CZK (Czech crown)

 

I go to english Shop A (.com/en) and add a T-Shirt to the cart. Price is 19 €.

Then I realise I'm a Czech so I click on the Czech flag icon -> this will get me to the Shop B (.com/cs) with CZK currency.

Now in the cart is still the T-Shirt I picked, but its' price is 19 CZK.

 

It obviously changed currency from EUR to CZK, but it didn't check the price of products in the Czech Shop B. So it shows 19 CZK instead of 490 CZK.

When someone has products in cart and switches to different shop (from A to B, B to A) I need to update cart so that it will show correct prices.

 

Hope you understand, sorry for my English.

 

 

Can anyone help me, please? Thank you.

 

Mike

post-849116-0-00938800-1417274392_thumb.png

Edited by MikeCZ (see edit history)
Link to comment
Share on other sites

OK, let me ask for more specific thing.

 

Can you please help me find code to update the cart? I found some functions that should probably update the cart in classes/Cart.php ... but another problem is I don't know where to test the script. It just doesn't work when I try to insert code inside a .tpl file... 

Link to comment
Share on other sites

×
×
  • Create New...