HEX
Server: LiteSpeed
System: Linux server490.bertina.biz 5.14.0-687.31.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Aug 1 05:38:01 EDT 2026 x86_64
User: parskavirpaya (1252)
PHP: 8.1.34
Disabled: mail, show_source, system, shell_exec, passthru, exec, popen
Upload Files
File: /home/parskavirpaya/public_html/wp-content/themes/porto1/inc/lib/bundle-cart/bundle-cart.js
// Add to cart multi products
( function( theme, $ ) {
    'use strict';

    theme = theme || {};

    $( document ).on( 'click', '.porto_bundle_cart', function( e ) {
        e.preventDefault();
        var $obj = $(this),
            $ids = $obj.data( 'bundle-cart' );
            $obj.addClass( 'loading' );

        $.ajax( {
            url: theme.ajax_url,
            data: {
                action : 'porto_bundle_cart',
                ids    : $ids
            },
            type: 'post',
            dataType: 'json',
            success : function( data ) {
                $obj.removeClass( 'loading' );
                if ( true == data['success'] ) {
                    window.location.href = wc_add_to_cart_params.cart_url;
                    return;
                }
            }
        } );
    } );

} ).apply( this, [window.theme, jQuery] );