2013-03-08 158 views
1

我正在嘗試編輯我正在定製的網站'添加到購物車'按鈕http://radiantiger.bigcartel.com/product/hhhgtf。我希望客戶點擊'加入購物車'按鈕並直接進入購物車。我如何使添加到購物車按鈕直接去購物車

1)我明白我必須編輯添加到購物車按鈕的JavaScript,我該怎麼做? &我應該使用哪些代碼?

2)如何移動從側邊欄的左上角的「購物車按鈕」和我的「添加到購物車按鈕」這樣使它在線:http://dl.dropbox.com/u/90031565/Fullscreen%20capture%20382013%2050354%20PM.jpg

我試圖把「購物車按鈕」與「添加到購物車按鈕」放在同一個div中,但它卻無法實時顯示購物車功能中的內容。

預先感謝您。

回答

0

您需要將cart_nav_list從旁邊的欄移動到ID add_cart中。

因此,例如,你的代碼應該是這樣的:

<div id="add_cart"> 
<button class="button" type="submit" name="submit" id="add_to_cart">Add to Cart</button> 
    <ul class="clearfix" id="cart_nav_list"> 
    <li id="cart_button"> 
    <a id="open_cart" href="/cart">Cart 
    <div class="clearfix" id="cart_info"> 
     <span id="cart_count">0</span> 
     <span id="cart_divider">|</span> 
     <span id="cart_total"><span class="currency_sign">$</span>0.00</span> 
    </div> 
    </a> 
    </li> 
    </ul> 
</div> 

附截圖顯示你找到這些元素的詳細信息。要查看我已粘貼的信息安裝螢火蟲。

html5 move cart rightside http://www.bybe.net/downloads/html5-move-cart-rightside.png

另外得到並肩工作的需要的元素,使未成年人版樣式表像這樣:

#add_cart button, #cart_nav_list { 
float:left; 
} 
+0

非常感謝你。有效。我非常感謝 – 2013-03-08 23:38:00

+0

沒問題,盡情享受吧。 – 2013-03-08 23:40:57

相關問題