Hello Summer Sale!
Exclusive season-opening discount on TheGem theme.
Limited time offer.

Okay
  Public Ticket #1115216
multiple shop page
Closed

Comments

  •  2
    BDS started the conversation

    Hello,

    We want two shop page in our website like you have in your theme website, one with left sidebar and another with right sidebar

    http://codex-themes.com/thegem/shop/?shop_sidebar=left

    http://codex-themes.com/thegem/starting_page/themes.php?page=shop-03

    please help to get these at the earliest.

    Hope to hear soon from you.

  • [deleted] replied

    Hi,

    There is example of code we use.

    function thegem_custom_get_post_data($value, $post_id, $post_data_name) {
        if($post_data_name = 'page' && $post_id == wc_get_page_id('shop')) {
            parse_str($_SERVER['QUERY_STRING'], $params);
            if(!empty($params['shop_sidebar'])) {
                if($params['shop_sidebar'] == 'right') {
                    $value['sidebar_position'] = 'right';
                }
                if($params['shop_sidebar'] == 'none') {
                    $value['sidebar_position'] = '';
                }
            }
        }
        return $value;
    }
    add_filter('thegem_get_post_data', 'thegem_custom_get_post_data', 20, 3);