//small fix with js on product page
This commit is contained in:
@@ -147,7 +147,7 @@ function findCombination(firstTime)
|
|||||||
//update display of the availability of the product AND the prices of the product
|
//update display of the availability of the product AND the prices of the product
|
||||||
function updateDisplay()
|
function updateDisplay()
|
||||||
{
|
{
|
||||||
if (!selectedCombination['unavailable'] && quantityAvailable > 0 && productAvailableForOrder === 1)
|
if (!selectedCombination['unavailable'] && quantityAvailable > 0 && parseInt(productAvailableForOrder) === 1)
|
||||||
{
|
{
|
||||||
//show the choice of quantities
|
//show the choice of quantities
|
||||||
$('#quantity_wanted_p:hidden').show('slow');
|
$('#quantity_wanted_p:hidden').show('slow');
|
||||||
@@ -165,6 +165,7 @@ function updateDisplay()
|
|||||||
//availability value management
|
//availability value management
|
||||||
if (availableNowValue !== '')
|
if (availableNowValue !== '')
|
||||||
{
|
{
|
||||||
|
|
||||||
//update the availability statut of the product
|
//update the availability statut of the product
|
||||||
$('#availability_value').removeClass('warning_inline');
|
$('#availability_value').removeClass('warning_inline');
|
||||||
$('#availability_value').text(availableNowValue);
|
$('#availability_value').text(availableNowValue);
|
||||||
@@ -689,7 +690,7 @@ function initLocationChange(time)
|
|||||||
|
|
||||||
function checkUrl()
|
function checkUrl()
|
||||||
{
|
{
|
||||||
if (original_url !== window.location || first_url_check)
|
if (original_url != window.url || first_url_check)
|
||||||
{
|
{
|
||||||
first_url_check = false;
|
first_url_check = false;
|
||||||
url = window.location+'';
|
url = window.location+'';
|
||||||
|
|||||||
Reference in New Issue
Block a user