checkout

    0熱度

    1回答

    在此基礎上工作答案: // Registering external jQuery/JS file function cfields_scripts() { // IMPORTANT NOTE: // For a child theme replace get_template_directory_uri() by get_stylesheet_directory_uri(

    1熱度

    1回答

    在WooCommerce中,我試圖添加購物車項目中特定類別的產品簡短描述。 我發現this code,增加了產品的簡短說明,所有產品在購物車,但我無法弄清楚如何將它縮小到只顯示特定產品: add_filter('woocommerce_get_item_data', 'wc_checkout_description_so_27900033', 10, 2); function wc_check

    0熱度

    2回答

    我在使用虛擬產品時遇到問題。結帳工作正常與簡單的產品。 我得到當我檢查控制檯錯誤: (指數):620遺漏的類型錯誤:在 :無法讀取性能在beforeBillSave(620(指數))空 的 '檢查' HTMLButtonElement.onclick((指數):569) 的代碼是: function beforeBillSave() { var selectedCity = false

    0熱度

    1回答

    創建訂單時,我需要在透明結帳時將用戶通知的卡的Bin和Last4保存在數據庫中。 我想保存請求時,要做到這一點插入,但它不工作,因爲它是爲寫:NULL 的Javascript $('.woocommerce-checkout, #order_review').submit(function (e) { e.preventDefault(); // console.log($('input[na

    1熱度

    1回答

    我試圖刪除結帳頁面中的密碼字段。 這是我曾嘗試(代碼是我functions.php主題文件): // Hook in add_filter('woocommerce_default_address_fields' , 'custom_override_default_address_fields'); // Our hooked in function - $address_fields i

    0熱度

    1回答

    在WooCommerce中,我想在不使用優惠券的情況下打折,折扣計算將基於產品價格,例如「以3件產品的價格爲2件。 在function.php我的活動主題的,我使用此代碼: function promo() { if (is_cart()) { $woocommerce->cart->add_fee(__('des', 'woocommerce'), -50.00`enter

    3熱度

    1回答

    在WooCommerce結帳字段中,我試圖在結算表單上使billing_address_2高於billing_address_1。 因此,而不是它是: Street Address Apartment 我想有: Apartment Street Address 另外請注意,我使用的是被稱爲阿瓦達索主題。 我該如何做到這一點? 謝謝。

    0熱度

    1回答

    我已經(通過woocommerce短碼)上http://kratewear.com/test/checkout/ 在該網頁上我還添加了車表中的網站。你可以看到。購物車表格顯示在結算明細和付款選項塊的下方。 我想在結算信息字段和'您的訂單'概覽塊之間顯示此購物車表。 這是應該如何:(通過油漆製作)。 https://i.gyazo.com/6312f956c99132cd6a5d1d1ea0f681

    0熱度

    1回答

    我正在尋找組織zf2中訂購/結帳流程的最佳方式。 哪種模式最適合此目的? 目前,我只是有服務,流程,主要::order()方法包裹在事務中的順序,看起來訂購模塊,如: // Simplified, somewhere wrapped in transaction public function order($data) { // Get Order model $order

    1熱度

    2回答

    我需要限制稅額。所以我去了Mage/Tax/Model/Calculation.php 然後找到calcTaxAmount()稅務申請功能。 我需要限制稅務誰都是進入結賬稅收vatid onepage稅應該是零 所以 public function calcTaxAmount($price, $taxRate, $priceIncludeTax = false, $round = true)