我有一個Magento商店,每個網站需要不同的價格,這限制了我爲每個網站使用不同的websites
,因爲stores
或views
不會讓我爲相同商品設置不同的價格。Magento在網站之間共享購物車
但是,我需要能夠讓客戶切換商店,併爲他們目前的籃子留下來。這將包括將價格更新爲新的website
中的價格。
我已將Share Customer Accounts
設置爲Global
和Catalog Price Scope
至Website
。
我也有一個初步的更換:
<?php $websites=Mage::app()->getWebsites();?>
<?php if(count($websites)>1): ?>
<fieldset class="store-switcher">
<label for="select-store"><?php echo $this->__('Select Store') ?>:</label>
<select id="select-store" onchange="location.href=this.value">
<?php foreach ($websites as $website): ?>
<?php $_selected = ($website->getCode() == Mage::app()->getWebsite()->getCode()) ? ' selected="selected"' : '' ?>
<option value="<?php echo $website->getDefaultStore()->getBaseUrl()?>"<?php echo $_selected ?>><?php echo $this->htmlEscape($website->getName()) ?></option>
<?php endforeach; ?>
</select>
</fieldset>
<?php endif; ?>
這是可以實現的?還是回到繪圖板?
信息:
Magento ver. 1.6.2.0
另外:本網站我希望在同一個域之間共享車,並具有相同的frontend
cookie的值。 (我認爲是SID)。
這不適用於商店而不是網站之間? – 2012-02-22 18:53:18