covalenciawebs
Forum Replies Created
-
Forum: Plugins
In reply to: [Woo Store Vacation] Hide content on vacationThank you for your answer. Perfect, with the hook and the class everything works.
Thank you!
Forum: Plugins
In reply to: [WooCommerce] Can’t select product variation creating order in adminThank you for your answer. That doesn’t solve it. That was an example.
It’s for a school. What I have is tshirt with 13 sizes. The other attribute is the class, with 15 values. The stock is for the size, not for the size + class. If I do what you say I would have 195 variations to manage…
In the admin order this should be considered, not excluding variations of the product. If I had more variations that doesn’t change price, I should set them manually? It has no sense.
Forum: Plugins
In reply to: [WooCommerce Advanced Free Shipping] How can I add condition by User IDI have solved it. function match() is no needed. Removing it everything works.
Forum: Plugins
In reply to: [WooCommerce Advanced Free Shipping] How can I add condition by User IDI have added this:
if ( ! class_exists( ‘WPC_UserID_Condition’ ) ) {
class WPC_UserID_Condition extends WPC_Condition { public function __construct() { $this->name = __( 'User ID', 'wpc-conditions' ); $this->slug = __( 'userid', 'wpc-conditions' ); $this->group = __( 'User', 'wpc-conditions' ); $this->description = __( 'Compare against the user id', 'wpc-conditions' ); parent::__construct(); } public function match( $match, $operator, $value ) { $value = $this->get_value( $value ); $user_id = $this->get_compare_value(); if ( '==' == $operator ) : $match = ( array_key_exists( $value, $user_id ) ); elseif ( '!=' == $operator ) : $match = ( ! array_key_exists( $value, $user_id ) ); endif; return $match; } public function get_compare_value() { if ( is_user_logged_in() ) { //global $current_user; return get_current_user_id(); } else { return 0; } } public function get_available_operators() { $operators = parent::get_available_operators(); unset( $operators['>='] ); unset( $operators['<='] ); return $operators; } public function get_value_field_args() { $users = get_users(); $list = array(); $count = 0; foreach ($users as $user) { $list[$count]['userid'] = $user->ID; $list[$count]['username'] = $user->display_name; $count++; } $field_args = array( 'type' => 'text', 'custom_attributes' => array( 'data-placeholder' => __( 'Buscar cliente', 'wp-conditions' ), ), 'class' => array( 'wpc-value', 'wc-users-search' ), 'options' => wp_list_pluck( $list, 'username', 'userid' ), ); // Should be a select field in WC 2.7+ if ( version_compare( WC()->version, '2.7', '>=' ) ) { $field_args['type'] = 'select'; } return $field_args; } }
}
add_filter( ‘wp-conditions\registered_conditions’, ‘cvw_conditions’ );
function cvw_conditions($conditions) {
array_push($conditions, new WPC_UserID_Condition());
return $conditions;
}add_filter( ‘wafs_conditions’, ‘cvw_get_conditions’ );
function cvw_get_conditions($conditions) {
$conditions[‘Personalizado’] = array(
‘userid’ => __( ‘User ID’, ‘woocommerce-advanced-free-shipping’ ),
);return $conditions;
}
I can add the condition. But it’s not applied in checkout.
Hi, this issue is not solved, and has generated another one. With the new code now discounts doesn’t show in frontend search results.
This code I think shound be limited to admin pages, and not to frontend;
$post_type = ! empty( filter_input( INPUT_GET, ‘post_type’ ) ) ? filter_input( INPUT_GET, ‘post_type’ ) : ”;
if ( ‘product’ !== $post_type ) {Great, it works!
Thank you
In plugin file elex-price-discount-admin.php, if you add this conditional to function elex_rp_get_price it works right:
public function elex_rp_get_price( $price = ”, $product = null ) {
global $pagenow, $typenow;
if ( !(isset($pagenow) && $pagenow == ‘edit.php’ && isset($typenow) && $typenow == ‘product’)) {
…
}
return $price;You can’t show incorrect prices and also editable in admin product list.
Hi, I must say this is not a feature, is a bug. In admin page you must see the price you have set. If you click quick edit in product you must see the original price, and it shows the other price.
Thank you
Forum: Plugins
In reply to: [Contact Form 7] Manually fill and send email via phpOk, I’ll do it directly from Flamingo. But I won’t have Contact Form 7 email, and if I want to change something I will have to do it twice. And I wanted to avoid doing that.
Does this means there is no way to do all the step with PHP?
Thank you.
Forum: Plugins
In reply to: [Contact Form 7] Manually fill and send email via phpHi, thank you for your answer.
The reason is that I have two ways to fill the information of that contact form, in html form, as usual, and in woocommerce single product with a plugin of extra product fields (that also changes prices).
I want all forms to be sent to admin by email as in Contact Form 7 and also have a plugin like Flamingo that saves all forms in database. And I want all forms and infromation in the same place.
No it works. Nothing to do.
Thank you
I have updated the plugin and know seems to work correctly. I will check it a few days more.
Thank you very much.
Hi, thank you for your answer.
With the product set as normal variable product everything looks ok, the colors are loaded. It shows background in white when loaded inside a woocommerce product bundle.
I have made some screen shots, with the error and where it works ok.
https://covalenciawebs.com/wp-content/uploads/2023/06/Captura01.png
https://covalenciawebs.com/wp-content/uploads/2023/06/Captura02.png
https://covalenciawebs.com/wp-content/uploads/2023/06/Captura03.png
I hope you can help me. Thank you
There is a css generated by Elementor, post-1150.css. The difference between the correct style and the wrong one is that all responsive styles are not added and adds a 50% width style that shouldn’t be:
Added:
.elementor-1150 .elementor-element.elementor-element-9b03cad {
–width: 50%;
…}
Not added:
@media(min-width: 768px) {
.elementor-1150 .elementor-element.elementor-element-9b03cad {
–width:50%;
}
}@media(max-width: 1024px) {
.elementor-1150 .elementor-element.elementor-element-9f22aa1 {
–min-height:470px;
}.elementor-1150 .elementor-element.elementor-element-9f22aa1::before, .elementor-1150 .elementor-element.elementor-element-9f22aa1 > .elementor-background-video-container::before, .elementor-1150 .elementor-element.elementor-element-9f22aa1 > .e-con-inner > .elementor-background-video-container::before, .elementor-1150 .elementor-element.elementor-element-9f22aa1 > .elementor-background-slideshow::before, .elementor-1150 .elementor-element.elementor-element-9f22aa1 > .e-con-inner > .elementor-background-slideshow::before, .elementor-1150 .elementor-element.elementor-element-9f22aa1 > .elementor-motion-effects-container > .elementor-motion-effects-layer::before {
background-position: 95% 100%;
background-size: 350px auto;
}}
@media(max-width: 767px) {
.elementor-1150 .elementor-element.elementor-element-9f22aa1::before, .elementor-1150 .elementor-element.elementor-element-9f22aa1 > .elementor-background-video-container::before, .elementor-1150 .elementor-element.elementor-element-9f22aa1 > .e-con-inner > .elementor-background-video-container::before, .elementor-1150 .elementor-element.elementor-element-9f22aa1 > .elementor-background-slideshow::before, .elementor-1150 .elementor-element.elementor-element-9f22aa1 > .e-con-inner > .elementor-background-slideshow::before, .elementor-1150 .elementor-element.elementor-element-9f22aa1 > .elementor-motion-effects-container > .elementor-motion-effects-layer::before {
background-position:96% 100%;
background-size: 262px auto;
}.elementor-1150 .elementor-element.elementor-element-b79c9f6 .elementor-heading-title {
font-size: 50px;
letter-spacing: 1px;
}.elementor-1150 .elementor-element.elementor-element-646a2a3 .elementor-heading-title {
font-size: 18px;
}
}@media(max-width: 1024px) and (min-width:768px) {
.elementor-1150 .elementor-element.elementor-element-9f22aa1 {
–content-width:100%;
}.elementor-1150 .elementor-element.elementor-element-9b03cad {
–width: 70%;
}
}The website is in maintenance mode. We will open it soon but not yet.
Is there any thing I could review? Scripts loaded, inline styles, etc.
Thank you.