force_return is a global loop parameter and default value is false
This commit is contained in:
@@ -164,10 +164,12 @@ class Session extends BaseSession
|
|||||||
$cart = null;
|
$cart = null;
|
||||||
if ($cart_id) {
|
if ($cart_id) {
|
||||||
$cart = CartQuery::create()->findPk($cart_id);
|
$cart = CartQuery::create()->findPk($cart_id);
|
||||||
try {
|
if($cart) {
|
||||||
$this->verifyValidCart($cart);
|
try {
|
||||||
} catch (InvalidCartException $e) {
|
$this->verifyValidCart($cart);
|
||||||
$cart = null;
|
} catch (InvalidCartException $e) {
|
||||||
|
$cart = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ abstract class BaseI18nLoop extends BaseLoop
|
|||||||
$columns,
|
$columns,
|
||||||
$foreignTable,
|
$foreignTable,
|
||||||
$foreignKey,
|
$foreignKey,
|
||||||
$forceReturn
|
$this->getForce_return()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ abstract class BaseLoop
|
|||||||
Argument::createIntTypeArgument('page'),
|
Argument::createIntTypeArgument('page'),
|
||||||
Argument::createIntTypeArgument('limit', PHP_INT_MAX),
|
Argument::createIntTypeArgument('limit', PHP_INT_MAX),
|
||||||
Argument::createBooleanTypeArgument('backend_context', false),
|
Argument::createBooleanTypeArgument('backend_context', false),
|
||||||
|
Argument::createBooleanTypeArgument('force_return', false),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
<a href="{$URL}" itemprop="url" tabindex="-1" class="product-image">
|
<a href="{$URL}" itemprop="url" tabindex="-1" class="product-image">
|
||||||
{ifloop rel="image_product_new" }
|
{ifloop rel="image_product_new" }
|
||||||
<img itemprop="image"
|
<img itemprop="image"
|
||||||
{loop name="image_product_new" type="image" limit="1" product="{$ID}"}
|
{loop name="image_product_new" type="image" limit="1" product="{$ID}" force_return="1" width="280" height="196" resize_mode="crop"}
|
||||||
src="{$IMAGE_URL}"
|
src="{$IMAGE_URL}"
|
||||||
{/loop}
|
{/loop}
|
||||||
alt="Product #{$LOOP_COUNT}" >
|
alt="Product #{$LOOP_COUNT}" >
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
<a href="{$URL}" itemprop="url" tabindex="-1" class="product-image">
|
<a href="{$URL}" itemprop="url" tabindex="-1" class="product-image">
|
||||||
{ifloop rel="image_product_promo" }
|
{ifloop rel="image_product_promo" }
|
||||||
<img itemprop="image"
|
<img itemprop="image"
|
||||||
{loop name="image_product_promo" type="image" limit="1" product="{$ID}"}
|
{loop name="image_product_promo" type="image" limit="1" product="{$ID}" force_return="1" width="218" height="146" resize_mode="crop"}
|
||||||
src="{$IMAGE_URL}"
|
src="{$IMAGE_URL}"
|
||||||
{/loop}
|
{/loop}
|
||||||
alt="Product #{$LOOP_COUNT}" >
|
alt="Product #{$LOOP_COUNT}" >
|
||||||
|
|||||||
Reference in New Issue
Block a user