• hello everybody i want a help about woocommerce
    iam build a store using woocoerce but whan i add more than two products to cart then i cant complete place order

    you can try :this is my work and try to add more than two products palstore.eb2a.com
    please whats the problem

    https://wordpress.org/plugins/woocommerce/

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter arman94

    (@arman94)

    <?php
    /**
    * AccessPress Store functions and definitions
    *
    * @package AccessPress Store
    */

    /**
    * Set the content width based on the theme’s design and stylesheet.
    */
    if ( ! isset( $content_width ) ) {
    $content_width = 640; /* pixels */
    }

    if ( ! function_exists( ‘accesspress_store_setup’ ) ) :
    /**
    * Sets up theme defaults and registers support for various WordPress features.
    *
    * Note that this function is hooked into the after_setup_theme hook, which
    * runs before the init hook. The init hook is too late for some features, such
    * as indicating support for post thumbnails.
    */
    function accesspress_store_setup() {

    /*
    * Make theme available for translation.
    * Translations can be filed in the /languages/ directory.
    * If you’re building a theme based on AccessPress Store, use a find and replace
    * to change ‘accesspress-store’ to the name of your theme in all the template files
    */
    load_theme_textdomain( ‘accesspress-store’, get_template_directory() . ‘/languages’ );

    // Add default posts and comments RSS feed links to head.
    add_theme_support( ‘automatic-feed-links’ );

    /*
    * Let WordPress manage the document title.
    * By adding theme support, we declare that this theme does not use a
    * hard-coded <title> tag in the document head, and expect WordPress to
    * provide it for us.
    */
    add_theme_support( ‘title-tag’ );

    add_theme_support( ‘woocommerce’ );

    /*
    * Enable support for Post Thumbnails on posts and pages.
    *
    * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
    */
    add_theme_support( ‘post-thumbnails’ );

    add_image_size(‘accesspress-prod-cat-size’, 562, 492, true);

    add_image_size(‘accesspress-service-thumbnail’, 380, 252, true);

    add_image_size(‘accesspress-blog-big-thumbnail’, 760, 300, true);

    add_image_size(‘accesspress-slider’, 1350, 570, true);

    // This theme uses wp_nav_menu() in one location.
    register_nav_menus( array(
    ‘primary’ => __( ‘Primary Menu’, ‘accesspress-store’ ),
    ) );

    /*
    * Switch default core markup for search form, comment form, and comments
    * to output valid HTML5.
    */
    add_theme_support( ‘html5’, array(
    ‘search-form’, ‘comment-form’, ‘comment-list’, ‘gallery’, ‘caption’,
    ) );

    /*
    * Enable support for Post Formats.
    * See http://codex.wordpress.org/Post_Formats
    */
    add_theme_support( ‘post-formats’, array(
    ‘aside’, ‘image’, ‘video’, ‘quote’, ‘link’,
    ) );

    // Set up the WordPress core custom background feature.
    add_theme_support( ‘custom-background’, apply_filters( ‘accesspress_store_custom_background_args’, array(
    ‘default-color’ => ‘ffffff’,
    ‘default-image’ => ”,
    ) ) );
    }
    endif; // accesspress_store_setup
    add_action( ‘after_setup_theme’, ‘accesspress_store_setup’ );

    /**
    * Custom template tags for this theme.
    */
    require get_template_directory() . ‘/inc/template-tags.php’;

    /**
    * Custom functions that act independently of the theme templates.
    */
    require get_template_directory() . ‘/inc/extras.php’;

    /**
    * Customizer additions.
    */
    require get_template_directory() . ‘/inc/customizer.php’;

    /**
    * Load Jetpack compatibility file.
    */
    require get_template_directory() . ‘/inc/jetpack.php’;

    /**
    * Load Jetpack compatibility file.
    */
    require get_template_directory() . ‘/inc/accesspress-function.php’;
    /**
    * Implement the Custom Metabox feature.
    */
    require get_template_directory() . ‘/inc/custom-metabox.php’;

    /**
    * Load Option Framework file.
    */
    define( ‘OPTIONS_FRAMEWORK_DIRECTORY’, get_template_directory_uri() . ‘/inc/option-framework/’ );

    /**
    * Load Jetpack compatibility file.
    */
    require get_template_directory() . ‘/inc/accesspress-widget.php’;

    /**
    * Load General Setting
    */
    require get_template_directory() . ‘/inc/custom-header.php’;

    /**
    * Load Sanitizer Functions
    */
    require get_template_directory() . ‘/inc/accesspress-sanitizer.php’;
    /**
    * Load General Setting
    */
    require get_template_directory() . ‘/inc/assets/assets-general-setting.php’;

    /**
    * Load Slider Setting
    */
    require get_template_directory() . ‘/inc/assets/assets-slider-setting.php’;

    /**
    * Load Woocommerce Setting
    */
    require get_template_directory() . ‘/inc/assets/assets-woocommerce-setting.php’;

    /**
    * Load Page/Post Setting
    */
    require get_template_directory() . ‘/inc/assets/assets-pagepost-setting.php’;
    /**
    * Load Page/Post Setting
    */
    require get_template_directory() . ‘/inc/assets/assets-blog-setting.php’;

    /**
    * Load Page/Post Setting
    */
    require get_template_directory() . ‘/inc/assets/assets-paymentlogo-setting.php’;

    /**
    * Load Class Custom Radio
    */
    require get_template_directory() . ‘/inc/class/class-image-radio.php’;

    /**
    * Load Class Custom Switch
    */
    require get_template_directory() . ‘/inc/class/class-custom-switch.php’;
    /**
    * Load Class Custom Categories
    */
    require get_template_directory() . ‘/inc/class/class-custom-categories.php’;

    /**
    * AccessPress More Themes
    */

    // Add upsell page to the menu.
    function accesspress_store_add_upsell() {
    add_theme_page(
    __( ‘More Themes’, ‘accesspress-store’ ),
    __( ‘More Themes’, ‘accesspress-store’ ),
    ‘administrator’,
    ‘accesspressstore-themes’,
    ‘accesspress_store_display_upsell’
    );
    }
    add_action( ‘admin_menu’, ‘accesspress_store_add_upsell’, 11 );

    // Define markup for the upsell page.
    function accesspress_store_display_upsell() {
    // Set template directory uri
    $directory_uri = get_template_directory_uri();
    ?>
    <div class=”wrap”>
    <h1 style=”margin-bottom:20px;”>
    <img src=”<?php echo get_template_directory_uri(); ?>/inc/images/accesspressthemes.png”/>
    <?php echo sprintf(__( ‘More Themes from AccessPress Themes‘, ‘accesspress-store’ ) , esc_url(‘https://accesspressthemes.com/&#8217;))?>
    </h1>

    <div class=”theme-browser rendered”>
    <div class=”themes”>
    <?php
    // Set the argument array with author name.
    $args = array(
    ‘author’ => ‘access-keys’,
    );
    // Set the $request array.
    $request = array(
    ‘body’ => array(
    ‘action’ => ‘query_themes’,
    ‘request’ => serialize( (object)$args )
    )
    );
    $themes = accesspressstore_get_themes( $request );
    $active_theme = wp_get_theme()->get( ‘Name’ );
    $counter = 1;
    // For currently active theme.
    foreach ( $themes->themes as $theme ) {
    if( $active_theme == $theme->name ) {?>

    <div id=”<?php echo $theme->slug; ?>” class=”theme active”>
    <div class=”theme-screenshot”>
    <img src=”<?php echo $theme->screenshot_url ?>”/>
    </div>
    <h3 class=”theme-name” id=”accesspress-parallax-name”><?php _e(‘Active’,’accesspress-store’); ?>: <?php echo $theme->name; ?></h3>
    <div class=”theme-actions”>
    “><?php _e(‘Customize’,’accesspress-store’); ?>
    </div>
    </div>
    <?php
    $counter++;
    break;
    }
    }

    // For all other themes.
    foreach ( $themes->themes as $theme ) {
    if( $active_theme != $theme->name ) {
    // Set the argument array with author name.
    $args = array(
    ‘slug’ => $theme->slug,
    );
    // Set the $request array.
    $request = array(
    ‘body’ => array(
    ‘action’ => ‘theme_information’,
    ‘request’ => serialize( (object)$args )
    )
    );
    $theme_details = accesspressstore_get_themes( $request );
    ?>
    <div id=”<?php echo $theme->slug; ?>” class=”theme”>
    <div class=”theme-screenshot”>
    <img src=”<?php echo $theme->screenshot_url ?>”/>
    </div>

    <h3 class=”theme-name”><?php echo $theme->name; ?></h3>

    <div class=”theme-actions”>
    <?php if( wp_get_theme( $theme->slug )->exists() ) { ?>
    <!– Show the tick image notifying the theme is already installed. –>
    <img data-toggle=”tooltip” title=”<?php _e( ‘Already installed’, ‘accesspress-store’ ); ?>” data-placement=”bottom” class=”theme-exists” src=”<?php echo $directory_uri ?>/inc/images/right.png”/>
    <!– Activate Button –>
    <a class=”button button-secondary activate”
    href=”<?php echo wp_nonce_url( admin_url( ‘themes.php?action=activate&stylesheet=’ . urlencode( $theme->slug ) ), ‘switch-theme_’ . $theme->slug );?>” ><?php _e(‘Activate’,’accesspress-store’) ?>
    <?php }else {
    // Set the install url for the theme.
    $install_url = add_query_arg( array(
    ‘action’ => ‘install-theme’,
    ‘theme’ => $theme->slug,
    ), self_admin_url( ‘update.php’ ) );
    ?>
    <!– Install Button –>
    downloaded ) . ‘ times’; ?>” class=”button button-secondary activate” href=”<?php echo esc_url( wp_nonce_url( $install_url, ‘install-theme_’ . $theme->slug ) ); ?>” ><?php _e( ‘Install Now’, ‘accesspress-store’ ); ?>
    <?php } ?>

    preview_url; ?>”><?php _e( ‘Live Preview’, ‘accesspress-store’ ); ?>
    </div>
    </div>
    <?php
    }
    }?>
    </div>
    </div>
    </div>
    <?php
    }

    // Get all themeisle themes by using API.
    function accesspressstore_get_themes( $request ) {

    // Generate a cache key that would hold the response for this request:
    $key = ‘accesspressstore_’ . md5( serialize( $request ) );

    // Check transient. If it’s there – use that, if not re fetch the theme
    if ( false === ( $themes = get_transient( $key ) ) ) {

    // Transient expired/does not exist. Send request to the API.
    $response = wp_remote_post( ‘http://api.wordpress.org/themes/info/1.0/&#8217;, $request );

    // Check for the error.
    if ( !is_wp_error( $response ) ) {

    $themes = unserialize( wp_remote_retrieve_body( $response ) );

    if ( !is_object( $themes ) && !is_array( $themes ) ) {

    // Response body does not contain an object/array
    return new WP_Error( ‘theme_api_error’, ‘An unexpected error has occurred’ );
    }

    // Set transient for next time… keep it for 24 hours should be good
    set_transient( $key, $themes, 60 * 60 * 24 );
    }
    else {
    // Error object returned
    return $response;
    }
    }
    return $themes;
    }

    Thread Starter arman94

    (@arman94)

    above post is my function.php

    please check if the error in it

    Thread Starter arman94

    (@arman94)

    this is my system status

    ### WordPress Environment ###
    
    Home URL: http://www.palstore.eb2a.com
    Site URL: http://www.palstore.eb2a.com
    WC Version: 2.6.4
    Log Directory Writable: ✔
    WP Version: 4.6
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 5.6.23
    PHP Post Max Size: 20 MB
    PHP Time Limit: 20
    PHP Max Input Vars: 8000
    cURL Version: 7.48.0
    OpenSSL/1.0.1e
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.31
    Max Upload Size: 10 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 2.6.4
    :
    woocommerce_sessions: ✔
    woocommerce_api_keys: ✔
    woocommerce_attribute_taxonomies: ✔
    woocommerce_downloadable_product_permissions: ✔
    woocommerce_order_items: ✔
    woocommerce_order_itemmeta: ✔
    woocommerce_tax_rates: ✔
    woocommerce_tax_rate_locations: ✔
    woocommerce_shipping_zones: ✔
    woocommerce_shipping_zone_locations: ✔
    woocommerce_shipping_zone_methods: ✔
    woocommerce_payment_tokens: ✔
    woocommerce_payment_tokenmeta: ✔
    MaxMind GeoIP Database: ✔
    
    ### Active Plugins (2) ###
    
    WooCommerce: by WooThemes – 2.6.4
    WordPress Importer: by wordpressdotorg – 0.6.3
    
    ### Settings ###
    
    Force SSL: –
    Currency: ILS (₪)
    Currency Position: right
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ✔
    
    ### WC Pages ###
    
    Shop Base: #102 - /shop/
    Cart: #103 - /cart/
    Checkout: #104 - /checkout/
    My Account: #105 - /my-account/
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: AccessPress Store
    Version: 2.1.2
    Author URL: http://accesspressthemes.com/
    Child Theme: ❌ – If you're modifying WooCommerce on a parent theme you didn't build personally
    then we recommend using a child theme. See: How to create a child theme
    
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: accesspress-store/woocommerce/archive-product.php
    accesspress-store/woocommerce/content-product.php
    accesspress-store/woocommerce/content-product_cat.php
    accesspress-store/woocommerce/content-single-product.php
    accesspress-store/woocommerce/global/breadcrumb.php
    accesspress-store/woocommerce/global/sidebar.php
    accesspress-store/woocommerce/global/wrapper-end.php
    accesspress-store/woocommerce/global/wrapper-start.php
    accesspress-store/woocommerce/loop/result-count.php
    accesspress-store/woocommerce/single-product/meta.php
    accesspress-store/woocommerce/single-product/product-image.php
    accesspress-store/woocommerce/single-product/product-thumbnails.php
    accesspress-store/woocommerce/single-product/related.php
    accesspress-store/woocommerce/single-product/up-sells.php
    accesspress-store/woocommerce/single-product.php

    Thread Starter arman94

    (@arman94)

    iam waiting any help

    Thread Starter arman94

    (@arman94)

    iam so sorry for bump, but really i need a solution for my problem

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    If you truly tested with a default theme and no other plugins enabled, then something other than WooCommerce is at fault here. Your server would be the first place to start. Ask your web hosting providers if they see anything in the server’s error logs that could help.

    Nothing more I can do from a general support standpoint, as this issue isn’t replicate-able on my sites or anyone else’s site.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘woocomerce problem’ is closed to new replies.