product

Replace the Variable Price range by the chosen variation price in WooCommerce 3

喜你入骨 提交于 2021-02-10 06:35:09
问题 On WooCommerce I would like to change the Variable single product page layout. Because, when you have an variable product you get this wired price rage ( below product title ) in the Variable Product page and it shows in the shop page as well. For me the standard way is to show the lowest price of the product in the shop as well as product page and change that price according to user selection of variables. I can't believe why. I can remove the price range and show the lowest price using this

Hide auto added gift product from WooCommerce catalog

萝らか妹 提交于 2021-02-08 11:49:24
问题 I have the following scenario that I can not solve, could you guide me, either with a plugin or from code? I have the product A and the product B, which should not appear in the store nor can it be added individually as it is a gift. If someone adds product A to the cart, then the system should add product B. It is like a BOGO, but the problem that I cannot solve is that of the free product that must be invisible and not allow to be purchased individually. 回答1: Based on Auto add to cart a

Auto set specific attribute term value to purchased products on Woocommerce

痴心易碎 提交于 2021-02-08 06:58:18
问题 I want to automatically add a specific attribute value (which was previously set up) to ordered products when the order is placed and has "on-hold" status. I sell unique products and I have set up the "STOCK" attribute and the "Out Of Stock" (out-of-stock) value. When an order is placed and has "on-hold" status, I want to automatically change the featured status of the ordered products and also to add the out-of-stock attribute value to it. The featured part is done and works, but I can't

Add a Woocommerce fee based on shipping class and item quantity

纵然是瞬间 提交于 2021-02-08 05:47:42
问题 In Woocommerce I am trying to add a shipping fee if a cart item has a specific shipping class assigned to the related product. I would like this shipping fee to be multiplied by the cart item quantity… I have this working when a product is added to the cart and the quantity is increased and the additional shipping fee is increased also. However if I add another product with the same shipping class and increase the quantity the additional fee does not increase. This is my code: // Add

Add a Woocommerce fee based on shipping class and item quantity

穿精又带淫゛_ 提交于 2021-02-08 05:47:00
问题 In Woocommerce I am trying to add a shipping fee if a cart item has a specific shipping class assigned to the related product. I would like this shipping fee to be multiplied by the cart item quantity… I have this working when a product is added to the cart and the quantity is increased and the additional shipping fee is increased also. However if I add another product with the same shipping class and increase the quantity the additional fee does not increase. This is my code: // Add

Woocommerce products editable by their author for specific user role

泪湿孤枕 提交于 2021-02-08 04:17:12
问题 I have different users registered on my WordPress website with different roles. Apart from the rest of users, I want to allow advertisers (users with advertiser role - advertiser is a custom role that I have created) to place their own products on my site and also manage them. But they need to be limited only to manage (create, edit and delete) their own products, not of others. So far, I have tried the following code but it seems to be not valid. I am sure I can accomplish my goal using pre

Variations Javascript not working when single_product_content is loaded via Ajax (WooCommerce)

一曲冷凌霜 提交于 2021-02-07 14:28:38
问题 In my WooCommerce Shop Templates I am loading the single-product-content dynamically in the archive-product.php page with Ajax. This part is working. But the javascript to choose the product variations is missing so I tried to add the script to the html after the successful ajax request. I could load the script but I still can not choose a product variation. No events are triggered. Seems like I am missing something... My Javascript: jQuery('.project-preview').on('click',function(){ var theId

product catalog api fail

拥有回忆 提交于 2021-02-07 14:20:32
问题 need help. I tried to start with https://developers.facebook.com/docs/marketing-api/dynamic-product-ads/ads-management/v2.3 created account. Approved it by phone . created a business account, an ad account, an app, and so on. linked app to ad accont like this https://developers.facebook.com/docs/marketing-api/access#standard_accounts . Now i tried to create product catalog. i am getting same error all the time: The app is not whitelisted to use this API i tried to call api to cteate/list

Display a Sold out greyed button if all variations are out of stock in Woocommerce

China☆狼群 提交于 2021-02-07 11:16:37
问题 I am looking for a solution to a problem I have... I have products in Woocommerce, with variations. If ALL variations are out of stock, I want to change the Add to Cart button text to say "Sold out" and edit the CSS of the button also (change it's color) BEFORE a variation is selected in the dropdown... So here's a scenario: I goto a variable product single page. The product has 4 variations: CURRENTLY: The "add to cart" button displays (greyed out) and can be clicked before a variation is

Display a Sold out greyed button if all variations are out of stock in Woocommerce

北战南征 提交于 2021-02-07 11:16:35
问题 I am looking for a solution to a problem I have... I have products in Woocommerce, with variations. If ALL variations are out of stock, I want to change the Add to Cart button text to say "Sold out" and edit the CSS of the button also (change it's color) BEFORE a variation is selected in the dropdown... So here's a scenario: I goto a variable product single page. The product has 4 variations: CURRENTLY: The "add to cart" button displays (greyed out) and can be clicked before a variation is