Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    I have also the same problem.

    I would like to do the same too, but the default front page remains to be a blank at the center when I try to preview the front page. I do could not see like https://www.welcart.com/demo/wordpress/

    It will be nice to have something like
    https://www.flowergift.co.jp/designer/

    Is there a setting for this?

    Thank you in advance.

    Thank you for your reply. I upgraded to PHP5.3. All is ok now.

    Thanks again.

    Preceding lines, 397 to 422 … just in case one needs the previous codes to check line 423:

    function email_footer() {
            global $sitepress;
    
            $sitepress->switch_lang();
        }
    
    	function translate_email_notifications() {
    		$email_actions = array( //the first ones worked for WC 1.6
    			'woocommerce_order_status_pending_to_processing',
    			'woocommerce_order_status_pending_to_completed',
    			'woocommerce_order_status_pending_to_on-hold',
    			'woocommerce_order_status_failed_to_processing',
    			'woocommerce_order_status_failed_to_completed',
    			'woocommerce_order_status_pending_to_processing',
    			'woocommerce_order_status_pending_to_on-hold',
    			'woocommerce_order_status_completed',
    			//next are new, at least since WC 2.04; they also began to add the postfix '_notification'
    			//not clear they are consistent accross versions between 2.0 and 2.0.8, so adding them without postfix as well
    			'woocommerce_new_customer_note',
    			'woocommerce_reset_password',
    			/* the following are not added because messages to admins should not switch language; left here for reference of other _notification actions
    			'woocommerce_low_stock',
    			'woocommerce_no_stock',
    			'woocommerce_product_on_backorder'*/
    		);
    		//added for WC 2.0.x

    Hi,

    I got the same error too. Syntax error, but I
    do not know how to fix it.

    This is line 423:
    $email_actions = array_merge($email_actions,array_map(function($val) {return $val.'_notification';},$email_actions));

    Thread Starter oriye

    (@oriye)

    Hi! This is my link.
    https://oriye-impressions.com/checkout/
    My site is not yet open.

    I don’t know any php or codes. Do I paste the above code in the functions.php file?

    This is my function file:

    <?php
    /**
     * @package WordPress
     * @subpackage YIW Themes
     *
     * Here the first hentry of theme, when all theme will be loaded.
     * On new update of theme, you can not replace this file.
     * You will write here all your custom functions, they remain after upgrade.
     */                                                                               
    
    // include all framework
    require_once dirname(__FILE__) . '/core/core.php';
    
    // include the library for the layers slider
    require_once dirname(__FILE__) . '/inc/LayerSlider/layerslider.php';
    
    // include the library for the wishlist
    require_once dirname(__FILE__) . '/inc/yith_wishlist/init.php';
    
    /*-----------------------------------------------------------------------------------*/
    /* End Theme Load Functions - You can add custom functions below */
    /*-----------------------------------------------------------------------------------*/
    
    add_filter('woocommerce_checkout_fields','reorder_woo_fields');
    
    function reorder_woo_fields($fields) {
    	//move these around in the order you'd like
    
        $fields2['billing']['billing_last_name'] = $fields['billing']['billing_last_name'];
    
        $fields2['billing']['billing_first_name'] = $fields['billing']['billing_first_name'];
    
    	$fields2['billing']['billing_postcode'] = $fields['billing']['billing_postcode'];
    
    	$fields2['billing']['billing_state'] = $fields['billing']['billing_state'];
    
    	$fields2['billing']['billing_city'] = $fields['billing']['billing_city'];
    
    	$fields2['billing']['billing_address_1'] = $fields['billing']['billing_address_1'];
    
    	$fields2['billing']['billing_address_2'] = $fields['billing']['billing_address_2'];
    
    	$fields2['billing']['billing_email'] = $fields['billing']['billing_email'];
    
    	$fields2['billing']['billing_phone'] = $fields['billing']['billing_phone'];
    
    	//just copying these (keeps the standard order)
    	$fields2['shipping'] = $fields['shipping'];
    	$fields2['account'] = $fields['account'];
    	$fields2['order'] = $fields['order'];
    
    	return $fields2;
    }

    I would also like to change the array of the checkout page.
    Can you tell me which file name do I have to look for?
    Please pardon me for this trivial question.

Viewing 6 replies - 1 through 6 (of 6 total)