JesusSol
Forum Replies Created
-
Forum: Plugins
In reply to: [Email Blacklist For Elementor Forms] Just a small detailUninstall the plugin and install it again and start it again
Forum: Plugins
In reply to: [Email Blacklist For Elementor Forms] Just a small detailI updated WordPress and some plugins like the Elementor plugin, after which it stopped working
Forum: Plugins
In reply to: [Email Blacklist For Elementor Forms] Just a small detailI suppose the idea is not to receive spam, but by giving the information that this email cannot, what they will do is create another one or send it to you from another domain.
Forum: Plugins
In reply to: [Email Blacklist For Elementor Forms] PHP 8.0 SupportWorks correctly with PHP 8.1.24
Forum: Reviews
In reply to: [Email Blacklist For Elementor Forms] Perfect solutionIt works for me with PHP 8.1.24
From the front end, the client with the role of wholesaler works perfectly, but when I put the order on pending payment and add an item with the role of administrator or shop manager, that item is set at a normal price.
// Mostrar el precio de costo en el front end function custom_product_price( $price, $product ) { // obtén el rol del usuario actual $user = wp_get_current_user(); $roles = ( array ) $user->roles; // comprueba si el usuario es mayorista if ( in_array( 'mayorista', $roles ) ) { // obtén el valor del campo personalizado "costo" $costo = get_post_meta( $product->get_id(), 'precio_costo', true ); // si hay un valor de "costo", utilízalo como precio en lugar del precio normal if ( $costo ) { $price = $costo; } } return $price; } add_filter( 'woocommerce_product_get_price', 'custom_product_price', 10, 2 );
// Remover la acción predeterminada para agregar el precio a la orden remove_action( 'woocommerce_before_calculate_totals', 'woocommerce_update_order_item_meta', 10, 1 ); // Agregar la nueva acción para agregar el precio de costo a la orden add_action( 'woocommerce_before_calculate_totals', 'custom_update_order_item_meta', 15, 1 ); function custom_update_order_item_meta( $cart ) { if ( is_admin() && ! defined( 'DOING_AJAX' ) ) return; // Verifica si el usuario que creó la orden tenía el rol "salones_looks" $order_id = $cart->get_order_id(); $order = wc_get_order( $order_id ); $user_id = $order->get_user_id(); $user = get_userdata( $user_id ); if ( in_array( 'mayorista', (array) $user->roles ) ) { // Recorre todos los productos en el carrito foreach ( $cart->get_cart() as $item ) { $product = $item['data']; // Obtiene el precio de costo del producto $cost = get_post_meta( $product->get_id(), 'precio_costo', true ); // Si hay un precio de costo, actualiza el precio del producto en el carrito if ( $cost ) { $item['data']->set_price( $cost ); } } } }
I tried it with this other code and it doesn’t work either, keep putting the normal price
I just sent them to you. And thanks for taking an interest in my problem.
https://imgfz.com/i/tBwp7SV.jpeg
https://imgfz.com/i/v3QH6in.png
https://imgfz.com/i/VeJoEX8.pngI give you access
https://ww3.sol-host.es/wp-admin
User: Gestor
password
IrrNAEml@c@#lm!unmFMm^#ZIt seems that it does not work, I already deactivated it but the total of the products continues to appear
https://imgfz.com/i/tBwp7SV.jpeg
https://imgfz.com/i/v3QH6in.png
https://imgfz.com/i/VeJoEX8.png- This reply was modified 2 years, 3 months ago by JesusSol.
Now it shows in the store the total of the stocks of all the warehouses, I only want to sell from the central warehouse and show the stocks of this warehouse, but I do want to maintain the stocks internally within the different warehouses and transfer items between they.
- This reply was modified 2 years, 3 months ago by JesusSol.
I use this two plugin for the payment gateway
LearnPress – WooCommerce Payment Methods Integration
WooCommerce Stripe GatewayWhat really happens to you?
I’m not an expert, it’s been hard for me to understand the configuration and I’m missing a lot, honestly it’s a bit twisted, I don’t understand why they complicate things so much.
I think I’ve got it, between some plugin that gave problem and the correct configuration of the checkout pages it finally works
“There are no payment methods available.”
“Your cart is empty.”
Always the same, no matter how hard I tryForum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] Price is not showingThere are some plugins that give incompatibility problems, remove cache programs and optizers, I have managed to get the prices out, but then the cart appears empty, that is, it does not work
I get this error, is the solution the same?
Exception: NoDecodeDelegateForThisImageFormat `/var/www/vhosts/…./httpdocs/wp-content/uploads/2018/10/friking-c.png’ @ error/constitute.c/ReadImage/544
#0 /var/www/vhosts/……/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php(4862): Imagick->__construct(‘/var/www/vhosts…’)
#1 /var/www/vhosts/…/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php(4984): Cpdf->addImagePngAlpha(‘/var/www/vhosts…’, 57.442913385827, 736.29354330709, 216, 76.5, 3)
#2 /var/www/vhosts/…./httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Adapter/CPDF.php(864): Cpdf->addPngFromFile(‘/var/www/vhosts…’, 57.442913385827, 736.29354330709, 216, 76.5)
#3 /var/www/vhosts/…/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer/Image.php(110): Dompdf\Adapter\CPDF->image(‘/var/www/vhosts…’, 57.442913385827, 29.096456692913, 216, 76.5, ‘normal’)
#4 /var/www/vhosts/…/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(293): Dompdf\Renderer\Image->render(Object(Dompdf\FrameDecorator\Image))
#5 /var/www/vhosts/…../httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(127): Dompdf\Renderer->_render_frame(‘image’, Object(Dompdf\FrameDecorator\Image))