Magento 2 Change order of Tabs on product page
I have added catalog_product_view.xml in the location app/code/design/frontend/kh/custom/Magento_Catalog/layout
Set the priority for the tabs for the product detail page, but its is not working properly.
Code is given below :
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="product.info.details">
<referenceBlock name="product.info.description">
<arguments>
<argument name="priority" xsi:type="string">4</argument>
</arguments>
</referenceBlock>
<referenceBlock name="product.attributes">
<arguments>
<argument name="priority" xsi:type="string">2</argument>
</arguments>
</referenceBlock>
<referenceBlock name="reviews.tab">
<arguments>
<argument name="priority" xsi:type="string">1</argument>
</arguments>
</referenceBlock>
<block class="KHHelloBlockHello" name="new.tab" template="KH_Hello::hello.phtml" group="detailed_info" >
<arguments>
<argument translate="true" name="title" xsi:type="string">New Tab</argument>
<argument name="priority" xsi:type="string">3</argument>
</arguments>
</block>
</referenceBlock>
</body>
</page>
magento2 layout product-view tabs
bumped to the homepage by Community♦ 8 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have added catalog_product_view.xml in the location app/code/design/frontend/kh/custom/Magento_Catalog/layout
Set the priority for the tabs for the product detail page, but its is not working properly.
Code is given below :
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="product.info.details">
<referenceBlock name="product.info.description">
<arguments>
<argument name="priority" xsi:type="string">4</argument>
</arguments>
</referenceBlock>
<referenceBlock name="product.attributes">
<arguments>
<argument name="priority" xsi:type="string">2</argument>
</arguments>
</referenceBlock>
<referenceBlock name="reviews.tab">
<arguments>
<argument name="priority" xsi:type="string">1</argument>
</arguments>
</referenceBlock>
<block class="KHHelloBlockHello" name="new.tab" template="KH_Hello::hello.phtml" group="detailed_info" >
<arguments>
<argument translate="true" name="title" xsi:type="string">New Tab</argument>
<argument name="priority" xsi:type="string">3</argument>
</arguments>
</block>
</referenceBlock>
</body>
</page>
magento2 layout product-view tabs
bumped to the homepage by Community♦ 8 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have added catalog_product_view.xml in the location app/code/design/frontend/kh/custom/Magento_Catalog/layout
Set the priority for the tabs for the product detail page, but its is not working properly.
Code is given below :
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="product.info.details">
<referenceBlock name="product.info.description">
<arguments>
<argument name="priority" xsi:type="string">4</argument>
</arguments>
</referenceBlock>
<referenceBlock name="product.attributes">
<arguments>
<argument name="priority" xsi:type="string">2</argument>
</arguments>
</referenceBlock>
<referenceBlock name="reviews.tab">
<arguments>
<argument name="priority" xsi:type="string">1</argument>
</arguments>
</referenceBlock>
<block class="KHHelloBlockHello" name="new.tab" template="KH_Hello::hello.phtml" group="detailed_info" >
<arguments>
<argument translate="true" name="title" xsi:type="string">New Tab</argument>
<argument name="priority" xsi:type="string">3</argument>
</arguments>
</block>
</referenceBlock>
</body>
</page>
magento2 layout product-view tabs
I have added catalog_product_view.xml in the location app/code/design/frontend/kh/custom/Magento_Catalog/layout
Set the priority for the tabs for the product detail page, but its is not working properly.
Code is given below :
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="product.info.details">
<referenceBlock name="product.info.description">
<arguments>
<argument name="priority" xsi:type="string">4</argument>
</arguments>
</referenceBlock>
<referenceBlock name="product.attributes">
<arguments>
<argument name="priority" xsi:type="string">2</argument>
</arguments>
</referenceBlock>
<referenceBlock name="reviews.tab">
<arguments>
<argument name="priority" xsi:type="string">1</argument>
</arguments>
</referenceBlock>
<block class="KHHelloBlockHello" name="new.tab" template="KH_Hello::hello.phtml" group="detailed_info" >
<arguments>
<argument translate="true" name="title" xsi:type="string">New Tab</argument>
<argument name="priority" xsi:type="string">3</argument>
</arguments>
</block>
</referenceBlock>
</body>
</page>
magento2 layout product-view tabs
magento2 layout product-view tabs
edited Oct 28 '18 at 14:27
sv3n
9,71562352
9,71562352
asked Nov 7 '17 at 13:53
Kishor HaseKishor Hase
518418
518418
bumped to the homepage by Community♦ 8 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 8 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Try taking that code out the product.info.details referenceBlock. This is my code which is working as intended:
<?xml version="1.0"?>
<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<!-- Reorder tabs (using "before/after" doesn't work with groups) -->
<referenceBlock name="product.info.description">
<arguments>
<argument name="priority" xsi:type="string">10</argument>
</arguments>
</referenceBlock>
<referenceBlock name="reviews.tab">
<arguments>
<argument name="priority" xsi:type="string">50</argument>
</arguments>
</referenceBlock>
</body>
</page>
The only other difference is this code is using multiples of ten.
1
I used same code as you provided but no luck. I am using Magento2.2 version. If I tried to pass additional argument like <argument name="title" xsi:type="string">New Review</argument> It display title of Review tab to New Review.
– Kishor Hase
Nov 8 '17 at 6:18
add a comment |
Moving the code out of product.info.details worked, and also applying it to a referenceBlock rather than the actual block in product.info.details. So mine now looks something like
<referenceBlock name="product.info.details">
<referenceBlock name="product.info.description" remove="true" />
<block class="MagentoCatalogBlockProductView" name="custom_template.tab" before="-" template="product/view/custom_template.phtml" group="detailed_info" >
<arguments>
<argument translate="true" name="title" xsi:type="string">About</argument>
</arguments>
</block>
<block class="MagentoCatalogBlockProductView" name="product.info.composition" after="-" template="product/view/attribute.phtml" group="detailed_info" >
<arguments>
<argument name="at_call" xsi:type="string">getComposition</argument>
<argument name="at_code" xsi:type="string">composition</argument>
<argument name="css_class" xsi:type="string">composition</argument>
<argument name="at_label" xsi:type="string">none</argument>
<argument translate="true" name="title" xsi:type="string">Nutrition</argument>
</arguments>
</block>
</referenceBlock>
<!-- PRIORITY WORKS HERE -->
<referenceBlock name="custom_template.tab" template="product/view/custom_template.phtml" >
<arguments><argument name="priority" xsi:type="string">1</argument></arguments>
</referenceBlock>
<referenceBlock name="product.info.composition" template="product/view/attribute.phtml" >
<arguments><argument name="priority" xsi:type="string">2</argument></arguments>
</referenceBlock>
<referenceBlock name="reviews.tab">
<arguments><argument name="priority" xsi:type="string">3</argument></arguments>
</referenceBlock>
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f200405%2fmagento-2-change-order-of-tabs-on-product-page%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try taking that code out the product.info.details referenceBlock. This is my code which is working as intended:
<?xml version="1.0"?>
<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<!-- Reorder tabs (using "before/after" doesn't work with groups) -->
<referenceBlock name="product.info.description">
<arguments>
<argument name="priority" xsi:type="string">10</argument>
</arguments>
</referenceBlock>
<referenceBlock name="reviews.tab">
<arguments>
<argument name="priority" xsi:type="string">50</argument>
</arguments>
</referenceBlock>
</body>
</page>
The only other difference is this code is using multiples of ten.
1
I used same code as you provided but no luck. I am using Magento2.2 version. If I tried to pass additional argument like <argument name="title" xsi:type="string">New Review</argument> It display title of Review tab to New Review.
– Kishor Hase
Nov 8 '17 at 6:18
add a comment |
Try taking that code out the product.info.details referenceBlock. This is my code which is working as intended:
<?xml version="1.0"?>
<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<!-- Reorder tabs (using "before/after" doesn't work with groups) -->
<referenceBlock name="product.info.description">
<arguments>
<argument name="priority" xsi:type="string">10</argument>
</arguments>
</referenceBlock>
<referenceBlock name="reviews.tab">
<arguments>
<argument name="priority" xsi:type="string">50</argument>
</arguments>
</referenceBlock>
</body>
</page>
The only other difference is this code is using multiples of ten.
1
I used same code as you provided but no luck. I am using Magento2.2 version. If I tried to pass additional argument like <argument name="title" xsi:type="string">New Review</argument> It display title of Review tab to New Review.
– Kishor Hase
Nov 8 '17 at 6:18
add a comment |
Try taking that code out the product.info.details referenceBlock. This is my code which is working as intended:
<?xml version="1.0"?>
<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<!-- Reorder tabs (using "before/after" doesn't work with groups) -->
<referenceBlock name="product.info.description">
<arguments>
<argument name="priority" xsi:type="string">10</argument>
</arguments>
</referenceBlock>
<referenceBlock name="reviews.tab">
<arguments>
<argument name="priority" xsi:type="string">50</argument>
</arguments>
</referenceBlock>
</body>
</page>
The only other difference is this code is using multiples of ten.
Try taking that code out the product.info.details referenceBlock. This is my code which is working as intended:
<?xml version="1.0"?>
<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<!-- Reorder tabs (using "before/after" doesn't work with groups) -->
<referenceBlock name="product.info.description">
<arguments>
<argument name="priority" xsi:type="string">10</argument>
</arguments>
</referenceBlock>
<referenceBlock name="reviews.tab">
<arguments>
<argument name="priority" xsi:type="string">50</argument>
</arguments>
</referenceBlock>
</body>
</page>
The only other difference is this code is using multiples of ten.
answered Nov 7 '17 at 14:11
Ben CrookBen Crook
8,7202273
8,7202273
1
I used same code as you provided but no luck. I am using Magento2.2 version. If I tried to pass additional argument like <argument name="title" xsi:type="string">New Review</argument> It display title of Review tab to New Review.
– Kishor Hase
Nov 8 '17 at 6:18
add a comment |
1
I used same code as you provided but no luck. I am using Magento2.2 version. If I tried to pass additional argument like <argument name="title" xsi:type="string">New Review</argument> It display title of Review tab to New Review.
– Kishor Hase
Nov 8 '17 at 6:18
1
1
I used same code as you provided but no luck. I am using Magento2.2 version. If I tried to pass additional argument like <argument name="title" xsi:type="string">New Review</argument> It display title of Review tab to New Review.
– Kishor Hase
Nov 8 '17 at 6:18
I used same code as you provided but no luck. I am using Magento2.2 version. If I tried to pass additional argument like <argument name="title" xsi:type="string">New Review</argument> It display title of Review tab to New Review.
– Kishor Hase
Nov 8 '17 at 6:18
add a comment |
Moving the code out of product.info.details worked, and also applying it to a referenceBlock rather than the actual block in product.info.details. So mine now looks something like
<referenceBlock name="product.info.details">
<referenceBlock name="product.info.description" remove="true" />
<block class="MagentoCatalogBlockProductView" name="custom_template.tab" before="-" template="product/view/custom_template.phtml" group="detailed_info" >
<arguments>
<argument translate="true" name="title" xsi:type="string">About</argument>
</arguments>
</block>
<block class="MagentoCatalogBlockProductView" name="product.info.composition" after="-" template="product/view/attribute.phtml" group="detailed_info" >
<arguments>
<argument name="at_call" xsi:type="string">getComposition</argument>
<argument name="at_code" xsi:type="string">composition</argument>
<argument name="css_class" xsi:type="string">composition</argument>
<argument name="at_label" xsi:type="string">none</argument>
<argument translate="true" name="title" xsi:type="string">Nutrition</argument>
</arguments>
</block>
</referenceBlock>
<!-- PRIORITY WORKS HERE -->
<referenceBlock name="custom_template.tab" template="product/view/custom_template.phtml" >
<arguments><argument name="priority" xsi:type="string">1</argument></arguments>
</referenceBlock>
<referenceBlock name="product.info.composition" template="product/view/attribute.phtml" >
<arguments><argument name="priority" xsi:type="string">2</argument></arguments>
</referenceBlock>
<referenceBlock name="reviews.tab">
<arguments><argument name="priority" xsi:type="string">3</argument></arguments>
</referenceBlock>
add a comment |
Moving the code out of product.info.details worked, and also applying it to a referenceBlock rather than the actual block in product.info.details. So mine now looks something like
<referenceBlock name="product.info.details">
<referenceBlock name="product.info.description" remove="true" />
<block class="MagentoCatalogBlockProductView" name="custom_template.tab" before="-" template="product/view/custom_template.phtml" group="detailed_info" >
<arguments>
<argument translate="true" name="title" xsi:type="string">About</argument>
</arguments>
</block>
<block class="MagentoCatalogBlockProductView" name="product.info.composition" after="-" template="product/view/attribute.phtml" group="detailed_info" >
<arguments>
<argument name="at_call" xsi:type="string">getComposition</argument>
<argument name="at_code" xsi:type="string">composition</argument>
<argument name="css_class" xsi:type="string">composition</argument>
<argument name="at_label" xsi:type="string">none</argument>
<argument translate="true" name="title" xsi:type="string">Nutrition</argument>
</arguments>
</block>
</referenceBlock>
<!-- PRIORITY WORKS HERE -->
<referenceBlock name="custom_template.tab" template="product/view/custom_template.phtml" >
<arguments><argument name="priority" xsi:type="string">1</argument></arguments>
</referenceBlock>
<referenceBlock name="product.info.composition" template="product/view/attribute.phtml" >
<arguments><argument name="priority" xsi:type="string">2</argument></arguments>
</referenceBlock>
<referenceBlock name="reviews.tab">
<arguments><argument name="priority" xsi:type="string">3</argument></arguments>
</referenceBlock>
add a comment |
Moving the code out of product.info.details worked, and also applying it to a referenceBlock rather than the actual block in product.info.details. So mine now looks something like
<referenceBlock name="product.info.details">
<referenceBlock name="product.info.description" remove="true" />
<block class="MagentoCatalogBlockProductView" name="custom_template.tab" before="-" template="product/view/custom_template.phtml" group="detailed_info" >
<arguments>
<argument translate="true" name="title" xsi:type="string">About</argument>
</arguments>
</block>
<block class="MagentoCatalogBlockProductView" name="product.info.composition" after="-" template="product/view/attribute.phtml" group="detailed_info" >
<arguments>
<argument name="at_call" xsi:type="string">getComposition</argument>
<argument name="at_code" xsi:type="string">composition</argument>
<argument name="css_class" xsi:type="string">composition</argument>
<argument name="at_label" xsi:type="string">none</argument>
<argument translate="true" name="title" xsi:type="string">Nutrition</argument>
</arguments>
</block>
</referenceBlock>
<!-- PRIORITY WORKS HERE -->
<referenceBlock name="custom_template.tab" template="product/view/custom_template.phtml" >
<arguments><argument name="priority" xsi:type="string">1</argument></arguments>
</referenceBlock>
<referenceBlock name="product.info.composition" template="product/view/attribute.phtml" >
<arguments><argument name="priority" xsi:type="string">2</argument></arguments>
</referenceBlock>
<referenceBlock name="reviews.tab">
<arguments><argument name="priority" xsi:type="string">3</argument></arguments>
</referenceBlock>
Moving the code out of product.info.details worked, and also applying it to a referenceBlock rather than the actual block in product.info.details. So mine now looks something like
<referenceBlock name="product.info.details">
<referenceBlock name="product.info.description" remove="true" />
<block class="MagentoCatalogBlockProductView" name="custom_template.tab" before="-" template="product/view/custom_template.phtml" group="detailed_info" >
<arguments>
<argument translate="true" name="title" xsi:type="string">About</argument>
</arguments>
</block>
<block class="MagentoCatalogBlockProductView" name="product.info.composition" after="-" template="product/view/attribute.phtml" group="detailed_info" >
<arguments>
<argument name="at_call" xsi:type="string">getComposition</argument>
<argument name="at_code" xsi:type="string">composition</argument>
<argument name="css_class" xsi:type="string">composition</argument>
<argument name="at_label" xsi:type="string">none</argument>
<argument translate="true" name="title" xsi:type="string">Nutrition</argument>
</arguments>
</block>
</referenceBlock>
<!-- PRIORITY WORKS HERE -->
<referenceBlock name="custom_template.tab" template="product/view/custom_template.phtml" >
<arguments><argument name="priority" xsi:type="string">1</argument></arguments>
</referenceBlock>
<referenceBlock name="product.info.composition" template="product/view/attribute.phtml" >
<arguments><argument name="priority" xsi:type="string">2</argument></arguments>
</referenceBlock>
<referenceBlock name="reviews.tab">
<arguments><argument name="priority" xsi:type="string">3</argument></arguments>
</referenceBlock>
answered Oct 4 '18 at 14:08
00-BBB00-BBB
1011
1011
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f200405%2fmagento-2-change-order-of-tabs-on-product-page%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown