New Landing How can we help? Atelier RECENTLY VIEWED

Viewing 14 posts - 16 through 29 (of 29 total)
  • Posted in: Atelier
  • #314550
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Great. Glad it’s sorted.

    -Rui

    #314588
    gflwrg
    Member
    Post count: 113

    Cheers lads 🙂

    #314589
    David Martin – Support
    Moderator
    Post count: 20834

    No problem, marking as resolved.

    #319262
    gflwrg
    Member
    Post count: 113
    This reply has been marked as private.
    #319272
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you provide us admin credentials to both sites so we can have a look?
    Thanks

    -Rui

    #319274
    gflwrg
    Member
    Post count: 113
    This reply has been marked as private.
    #319496
    David Martin – Support
    Moderator
    Post count: 20834
    This reply has been marked as private.
    #319737
    gflwrg
    Member
    Post count: 113
    This reply has been marked as private.
    #319936
    gflwrg
    Member
    Post count: 113
    This reply has been marked as private.
    #319942
    David Martin – Support
    Moderator
    Post count: 20834

    1) chosano.co.uk – you do not have the code added to the child theme functions.php file. You need:

    	/**
    	 * Track recently viewed products and set cookie.
    	 *
    	 * @since Neighborhood 3.4.32
    	 * @link https://github.com/woocommerce/woocommerce/issues/9724#issuecomment-160618200
    	 */
    	if ( !function_exists('sf_custom_track_product_view') ) {
    		function sf_custom_track_product_view() {
    		    if ( ! is_singular( 'product' ) ) {
    		        return;
    		    }
    
    		    global $post;
    
    		    if ( empty( $_COOKIE['woocommerce_recently_viewed'] ) )
    		        $viewed_products = array();
    		    else
    		        $viewed_products = (array) explode( '|', $_COOKIE['woocommerce_recently_viewed'] );
    
    		    if ( ! in_array( $post->ID, $viewed_products ) ) {
    		        $viewed_products[] = $post->ID;
    		    }
    
    		    if ( sizeof( $viewed_products ) > 15 ) {
    		        array_shift( $viewed_products );
    		    }
    
    		    // Store for session only
    		    wc_setcookie( 'woocommerce_recently_viewed', implode( '|', $viewed_products ) );
    		}
    		add_action( 'template_redirect', 'sf_custom_track_product_view', 20 );
    	}

    2) I cannot login to wp-admin: Have you changed the URL?

    #319982
    gflwrg
    Member
    Post count: 113
    This reply has been marked as private.
    #320234
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @gflwrg

    That is not an issue with the theme – we’ve tested using the default WooCommerce shortcode on this page https://www.mannixknight.co.uk/top-rated-test/ and then enabling the default WordPress theme, and no products show.

    You’ll need to contact WooCommerce support regarding this.

    Thanks,

    – Ed

    #320532
    gflwrg
    Member
    Post count: 113

    Hello Ed,

    thanks for the response. Will have it looked at and hopefully resolved. It’s just that it worked before and vanished after series of woocommerce and theme updates.

    #320543
    David Martin – Support
    Moderator
    Post count: 20834

    Let us know what they update you with.

    Thanks.

Viewing 14 posts - 16 through 29 (of 29 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register