LoicTheAztec
Forum Replies Created
-
I didn’t know that. So everything fine. Thank you.
Forum: Plugins
In reply to: [WooCommerce] Bug on checkoutI have the same problem.
Do you know when the release update 3.5.2 is planned to go out?
Thank youForum: Plugins
In reply to: [WooCommerce] Change shipping rate based on delivery dayYou should search if a plugin could do that, but I don’t think so.
Forum: Plugins
In reply to: [WooCommerce] Old order screen?Old admin orders list was to heavy and has been removed since Woocommerce 3. So to get that back on, that needs a custom development, assuming that the displayed order list will be heavier again.
So you will need to hire a developer, if you don’t know how to do it.
Forum: Plugins
In reply to: [WooCommerce] Change shipping rate based on delivery dayThis can be done for sure, but it’s just a custom development that involve different things:
– Add in checkout page some field to enable the customer delivery choice.
– An Ajax script will detect the live choice of the customer.
– A php script will receive that and will set the right delivery price.
– Another php script will grab that data in the order and will display it.
– and maybe some additional other things, depending on how you want to manage in details that process.So you will have to hire a developer for that, if you don’t know how to do it.
- This reply was modified 7 years, 1 month ago by LoicTheAztec.
Forum: Plugins
In reply to: [Taxonomy Images] Get image from term idTry the following:
// Set your defined term ID $tem_id = 39; // (an integer) // Get the array of Term ID/Image ID pairs $taxonomy_images = get_option( 'taxonomy_image_plugin' ); $attachment_id = $taxonomy_images[$tem_id]; // Image ID $image = wp_get_attachment_image( $attachment_id ); // Image $term = get_term( $tem_id ); // The WP_Term object $link = get_term_link( $tem_id ); // The term link // Output example echo '<a>'.$image.'<span>'.$term->name.'</span></a>';
It should work.
Forum: Plugins
In reply to: [Taxonomy Images] Get image of product tagI have answered to this on StackOverFlow:
Get an image for each Woocommerce product tag using Taxonomy Images plugin
Now to get the
$attachement_id
needed forwp_get_attachment_image()
function I have found the answer in this support thread (credits to nicole2292)Forum: Plugins
In reply to: [Cookie Bar] WPML fields translation compatibilityGood … As it’s very simple and useful for WPML compatibility. Thanks.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce shipping not available for this productSo the answer to this problem is in HERE
Best regards
Forum: Plugins
In reply to: [WooCommerce] Get product category ID from product IDHello Joel
Based on a Product ID, here is your revisited and working code that will set any product from “Clearance” product category with a “pending” post status (instead of “trash”):
// Targeting products in "Clearance" product category (from product ID) if ( has_term( 'Clearance', 'product_cat', $product_id ) ) { // Get an instance of the WC_Product object $product_obj = wc_get_product( $product_id ); // targetting products with no stock quantity if( 0 == $product_obj->get_stock_quantity() ) wp_update_post( array( 'ID' => $product_id, 'post_status' => 'pending' // pending status ) ); }
This should work as you expect. If you need the “trash” post_status you can just change it in this code…
Cheers
(You should now mark this question as “solved”)
The problem come from
10%
in your text usingprintf()
php function.You need to escape
%
character with a second one this way:10%%
This will avoid the error
So your code will be:
<p><?php printf( __( "Hello – we wanted to let you know that your recent order on %s has been completed. When you receive your order, please take a second to rate the products at https://www.lavenderconnection.com, and we’ll send you a coupon code for 10%% off your next purchase! We sincerely value your feedback. Thank you for your business, and we hope to see you again soon! Your order details are shown below for your reference:", "woocommerce" ), get_option( 'blogname' ) ); ?></p>
Cheers
(don’t forget to mark this thread as solved)
Forum: Plugins
In reply to: [WooCommerce] Help with Tag ID’s….Hello
You should mark this tread as “solved” now then…
I can’t help anymore on your PS (sorry) …
You should ask for example in stackOverFlow forum, adding the code you got to your question and explaining with details what you would like to have or to get…
Forum: Plugins
In reply to: [WooCommerce] Help with Tag ID’s….Hi @alfista
Here is the completed and tested answer:
<?php
// The taxonomy for Product tags $taxonomy = 'product_tag'; // Get the Product Tag WP_Term Object for a defined Product ID (or $post_id) $product_tags = wp_get_post_terms( $post_id, $taxonomy, array('fields' => 'all') ); // The image path $img_path = site_url( '/wp-content/uploads/2017/07/' ); // Iterating through each Product tags WP_Term Object foreach( $product_tags as $term_obj ) { // Getting te data from each WP_Term Object $term_id = $term_obj->term_id; // ID $term_slug = $term_obj->slug; // Slug $term_name = $term_obj->name; // Name // The image link (src) $img_src = $img_path . $term_id . '.gif'; // The html output (Added the tag name after the tag thumbnail) ?> <a href="<?php echo $term_link; ?>" class="tag-<?php echo $term_slug; ?>" title="<?php echo $term_name; ?>"> <img src="<?php echo $img_src; ?>" alt="<?php echo $term_name; ?>" width="50" height="50" /> <span class="tag-name"><?php echo $term_name; ?></span> </a> <?php } ?>
The only thing is to set correctly your product tag thumbnail names (here is based on the id and it should be better to use something like “tag-” + the tag name…
Cheers
Forum: Plugins
In reply to: [WooCommerce] Wrong coupon calculationIt’s depends on your general Tax settings (but not in coupons). As I think you are displaying prices with Tax included (VAT), the coupons also displays prices with Tax included.
I will not solve this, just telling you the “why”.
1) I think that your problem could be that the WooCommerce templates in your child theme “Tower-Child” are may be outdated:
wp-content/themes/Tower-Child/…
To be sure, in backend WP settings, go in “Woocommerce” > “System status” (or “Status”). At the end of the page, check in the “Templates” meta-box.
2) That also can mean that
emails/customer-completed-order.php
template has been customized and you will need to solve this bug at line 28.As reference: Template Structure + Overriding Templates via a Theme