wordpress

Set and display a custom product variation value dynamically on WooCommerce single products

半城伤御伤魂 提交于 2021-02-09 07:28:49
问题 I have a WooCommerce jewelry site. On single variable product page I have variations and I added a text box (text box is for the customer to write something that will be printed on the jewelry). So I expect the page to work as follows: If the customer selects a particular product variation and starts typing in the textbox price of the product should change depending on number of letters (NOTE: this should only work if one specific variation is selected) on every other product price will be

Set and display a custom product variation value dynamically on WooCommerce single products

懵懂的女人 提交于 2021-02-09 07:26:25
问题 I have a WooCommerce jewelry site. On single variable product page I have variations and I added a text box (text box is for the customer to write something that will be printed on the jewelry). So I expect the page to work as follows: If the customer selects a particular product variation and starts typing in the textbox price of the product should change depending on number of letters (NOTE: this should only work if one specific variation is selected) on every other product price will be

Show subtotal excl. tax, add subtotal tax as separate row on Woocommerce checkout

ε祈祈猫儿з 提交于 2021-02-09 06:47:46
问题 Currently I have all my products set to include tax. Because of rules in my country I would like to have my subtotal without tax, then a line with the amount of tax being paid and then the total with all the taxes (which is already default) In my review-order.php the line <td><?php wc_cart_totals_subtotal_html(); ?></td> gets called. I would like to subtract the tax percentage (21%) from that so ( / 121 * 100). And then a new line which shows the full tax amount so (total - subtotal). 回答1:

jQuery UI tooltip in wordpress site

孤人 提交于 2021-02-08 20:54:07
问题 Trying to get a tooltip working with a picture instead of text. As far it works with text in my site. <a id="thisId" href="#" title="hello world" >ALOHA!</a> <script> jQuery(document).ready(function(){ jQuery( '#thisId' ).tooltip(); }); </script> This works fine.. It displays "hello world" on hover of link. But if I try the following; working jsfiddle example ,but on my WP site it fails by simply not showing anything. Why could that be? 回答1: This mostly happens because your WordPress theme

WooCommerce seems to only orderby date and not price

天大地大妈咪最大 提交于 2021-02-08 13:43:28
问题 I am loading in variable products via a custom WP_Query $args = array( 'post_type' => 'product', 'posts_per_page' => 100, 'product_cat' => 'beast-balls', 'orderby' => 'date', 'order' => 'desc' ); $loop = new WP_Query( $args ); if ( $loop->have_posts() ) { while ( $loop->have_posts() ) : $loop->the_post(); ?> <div class="product-node cat-beast-balls"> <?php wc_get_template_part( 'content', 'single-product' ); ?> </div> <?php endwhile; } wp_reset_postdata(); This seems to work fine. However, I

Vertical Scroll on a Single section

試著忘記壹切 提交于 2021-02-08 12:15:29
问题 I've to make a single section with a vertical scroll transition effect please have a look at the video here for reference: https://drive.google.com/file/d/1Fy4BDqc0-LDrPnEVYuQZdiJ0Pk9qDXA5/view?usp=sharing How could I achieve this design using javascript or if possible which widget would help me to design this on a wordpress website using elementor? 回答1: You can do it easily using pure JS and the Intersection Observer API - when a specific element scrolls into view, animate horizontally using

How to change the text “Your order” on the checkout

放肆的年华 提交于 2021-02-08 12:13:51
问题 How to change the text "Your order" on the checkout in Woocommerce Checkout from the online shop 回答1: There are a couple of ways. You can use gettext. As far as I can recall, the term you mentioned is translatable. If so, you can go ahead with the following function. Add this in your theme functions.php file (child theme recommended) function custom_wc_translations($translated){ $text = array( 'Your order' => 'Your new phrase', 'any other string' => 'New string', ); $translated = str_ireplace

Woocommerce show product published date on shop page [closed]

旧巷老猫 提交于 2021-02-08 12:13:26
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . Improve this question I'm looking for solution to display products published date on shop page. I would very greatful for any help. 回答1: Show Product Published Date Shop and Single Page in WooCommerce add the below function in function.php file //WooCommerce Shop Page : Show

Woocommerce show product published date on shop page [closed]

…衆ロ難τιáo~ 提交于 2021-02-08 12:13:13
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . Improve this question I'm looking for solution to display products published date on shop page. I would very greatful for any help. 回答1: Show Product Published Date Shop and Single Page in WooCommerce add the below function in function.php file //WooCommerce Shop Page : Show

Wordpress adding google map? [closed]

陌路散爱 提交于 2021-02-08 12:11:39
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . Improve this question I am working on creating a webpage with WordPress. I just want to use Google map in my site. Like below. I don't think that we need a plugin for this function. How can i make this occur in my WordPress page 回答1: Read this article. I will give you complete reference you your