Ido Angel
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Topic | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Filter products by the ones which are currently in the cart
Commencé par : Ido Angel
in: Toolset Professional Support
Problem: The user wanted to display a view of products according to the ones which are currently in the cart on the checkout page. Although not possible using native Toolset tools, custom PHP code can be used to achieve this. Solution: - Utilize WooCommerce hooks to get the list of products currently in the cart. function wpc_elementor_shortcode( $atts ) { // Get full cart object $items = WC()->cart->get_cart(); // Initialize array to store product IDs $product_ids = array(); // Loop through cart items foreach( $items as $item => $values ) { // Load product object $product = wc_get_product( $values['data']->get_id() ); // Access product data using product object $product_id = $product->get_id(); // Add product ID to array $product_ids[] = $product_id; } // Join product IDs into comma-separated string $product_ids_string = implode( ', ', $product_ids ); // Output comma-separated list of product IDs echo $product_ids_string; } add_shortcode( 'my_elementor_php_output', 'wpc_elementor_shortcode'); - Use the shortcode [my_elementor_php_output] to output the comma-separated list of product IDs currently in the cart. Relevant Documentation: WooCommerce - Get Products in Cart: https://wpdavies.dev/woocommerce-get-products-in-cart/ Toolset - Adding Custom Code: https://toolset.com/documentation/programmer-reference/adding-custom-code/using-toolset-to-add-custom-code/ PHP Implode function: https://www.php.net/manual/en/function.implode.php |
|
2 | 5 | Il y a 2 years, 6 months | |
relevanssi prevents from ordering by custom field
Commencé par : Ido Angel in: Toolset Professional Support |
|
3 | 5 | Il y a 3 years | |
taxonomy shows up only for a random post…
Commencé par : Ido Angel in: Toolset Professional Support |
1 | 2 | Il y a 3 years | ||
wpv-post-next-link not working properly
Commencé par : Ido Angel in: Toolset Professional Support |
|
3 | 9 | Il y a 3 years | |
Infinite scroll created duplicate entries
Commencé par : Ido Angel in: Toolset Professional Support |
|
2 | 5 | Il y a 3 years, 3 months | |
display taxonomy's parent in taxonomy view
Commencé par : Ido Angel in: Toolset Professional Support |
|
2 | 5 | Il y a 3 years, 8 months | |
Same search filter for different post types (sharing taxonomies)
1
2
Commencé par : Ido Angel
in: Toolset Professional Support
Problem: Customize the taxonomy archive pages. Solution: You can setup Toolset WordPress Archive for taxonomy "super-category", and add custom search form in it, see our document. Relevant Documentation: https://toolset.com/course-lesson/creating-a-custom-archive-page/ |
|
2 | 16 | Il y a 4 years, 8 months | |
too many taxonomies crash site
Commencé par : Ido Angel in: Toolset Professional Support |
|
2 | 9 | Il y a 4 years, 8 months | |
views plugin adds extra elements in strange places
Commencé par : Ido Angel in: Toolset Professional Support |
|
2 | 9 | Il y a 4 years, 8 months | |
Infinite scroll "load more" works only for logged in users
Commencé par : Ido Angel in: Toolset Professional Support |
|
2 | 6 | Il y a 4 years, 8 months | |
Add product images to relationship filter dropdown
Commencé par : Ido Angel in: Toolset Professional Support |
|
4 | 11 | Il y a 4 years, 8 months | |
view won't let me save with this code
Commencé par : Ido Angel in: Toolset Professional Support |
|
2 | 8 | Il y a 4 years, 10 months | |
Load more button using the pagination
1
2
Commencé par : Ido Angel in: Toolset Professional Support |
|
2 | 21 | Il y a 4 years, 10 months | |
Sort by relevance
Commencé par : Ido Angel in: Toolset Professional Support |
|
2 | 5 | Il y a 4 years, 11 months |