• Resolved resetsto

    (@resetsto)


    Hola,

    Estoy teniendo problemas con algunas páginas de mi web tras activar una regla de descuento con el plugin Advanced Dynamic Pricing for WooCommerce. Cuando desactivo las rebajas el problema desaparece, pero al necesitar esa automatización de precios me gustaría saber como puedo solucionarlo ya que de lo contrario tendria que aplicar el cambio de precios prenda por prenda y perderia mucho tiempo.

    Lo que sucede es que en las paginas de categorias desaparecen casi todos los productos y cambia el formato de la web reduciendo su tama?o, y al final indica que existe un error crítico en la web.

    Mis conocimientos de programación son bajos por lo que pido ayuda urgente. Mi negocio depende de ello en estos momentos…

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support thisisirene

    (@thisisirene)

    Hello, @resetsto!

    Please, submit a new ticket to the helpdesk with next information:

    1. Visit Pricing Rules>Tools>System report>Get system report and attach this JSON file to the new ticket;
    2. Screenshot or video with the error that you get on your site;
    3. Visit WooCommerce>Status>Logs and review “fatal-error-xxx” for today. Copy it to the txt file and attach it to the ticket too.
    Thread Starter resetsto

    (@resetsto)

    I just sent that information as you have indicated. Thank you.

    Plugin Support thisisirene

    (@thisisirene)

    We continue the conversation in the ticket.

    Plugin Support thisisirene

    (@thisisirene)

    The problem was a conflict with the Shopkeeper theme. Here’s a compatibility code:

    add_action('wp_loaded', function () {
        if( !SHOPKEEPER_WOOCOMMERCE_SALE_FLASH_PRO_IS_ACTIVE && class_exists('Shopkeeper_Opt') && defined('WC_ADP_VERSION') ) {
            remove_filter('woocommerce_sale_flash', 'woocommerce_custom_sale_tag_sale_flash');
            add_filter('woocommerce_sale_flash', function ($original, $post, $product) {
                if (!$product->is_type('grouped')) {
                    $percentage = '';
                    if (Shopkeeper_Opt::getOption('sale_badge_percentage', false)) {
                        if ($product->is_type('variable')) {
                            $percentages = array();
                            foreach ($product->get_children() as $child) {
                                $childProduct = wc_get_product($child);
                                if ($childProduct->get_sale_price()) {
                                    $percentages[] = round(100 - ($childProduct->get_sale_price() / $childProduct->get_regular_price() * 100));
                                }
                            }
    
                            // Keep the highest value.
                            if (!empty($percentages)) {
                                $percentage = max($percentages) . '%';
                            }
                        }
                    }
    
                    if (!empty(Shopkeeper_Opt::getOption('sale_label', 'Sale!'))):
                        echo '<span class="onsale">';
                        printf(esc_html__('%s', 'woocommerce'), Shopkeeper_Opt::getOption('sale_label', 'Sale!'));
                        echo Shopkeeper_Opt::getOption('sale_badge_percentage', false) ? ' ' . $percentage : '';
                        echo '</span>';
                    else:
                        echo Shopkeeper_Opt::getOption('sale_badge_percentage',
                            false) ? '<span class="onsale">' . $percentage . '</span>' : '';
                    endif;
                } else {
                    if (!empty(Shopkeeper_Opt::getOption('sale_label', 'Sale!'))):
                        echo '<span class="onsale">';
                        printf(esc_html__('%s', 'woocommerce'), Shopkeeper_Opt::getOption('sale_label', 'Sale!'));
                        echo Shopkeeper_Opt::getOption('sale_badge_percentage', false) ? ' ' . "%" : '';
                        echo '</span>';
                    else:
                        echo Shopkeeper_Opt::getOption('sale_badge_percentage',
                            false) ? '<span class="onsale">' . "%" . '</span>' : '';
                    endif;
                }
    
                return;
            }, 10, 3);
        }
    });
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘ERROR WEB CON PLUGIN Advanced Dynamic Pricing for WooCommerce’ is closed to new replies.