Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

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);