quantity images in check-out page

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu May 23, 2013 4:08 pm
Reply with quote
Report this post
Hello

I want the quantity + - images in check out page
I think i need too place code in the php file see the attached file.

<?php // Display the quantity box
$stockhandle = VmConfig::get ('stockhandle', 'none');
if (($stockhandle == 'disableit' or $stockhandle == 'disableadd') and ($this->product->product_in_stock - $this->product->product_ordered) < 1) { ?>
<a href="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&layout=notify&virtuemart_product_id=' . $this->product->virtuemart_product_id); ?>" class="notify"><?php echo JText::_ ('COM_VIRTUEMART_CART_NOTIFY') ?></a>
<?php } else { ?>
<span class="quantity-box">
<input type="text" class="quantity-input js-recalculate" name="quantity[]" onblur="check(this);" value="<?php if (isset($this->product->step_order_level) && (int)$this->product->step_order_level > 0) {
echo $this->product->step_order_level; } else if(!empty($this->product->min_order_level)){ echo $this->product->min_order_level; }else { echo '1'; } ?>"/>
</span>
<span class="quantity-controls js-recalculate">
<input type="button" class="quantity-controls quantity-plus"/>
<input type="button" class="quantity-controls quantity-minus"/>
</span>
<?php // Display the quantity box END ?>


But what is the name of the chech-out.phpand where can i find the php file?

Thanks for your time
warm regards
webmiep
User avatar
Senior Boarder

GK User
Fri May 24, 2013 8:38 am
Reply with quote
Report this post
Hi,
please try in html/com_virtuemart/cart/default.php . This html folder is located inside template folder.
User avatar
Gold Boarder

GK User
Fri May 24, 2013 9:22 am
Reply with quote
Report this post
Hello Konrad,

Does it matter in which line I past the code?

warm regards
webmiep
User avatar
Senior Boarder

GK User
Fri May 24, 2013 9:56 am
Reply with quote
Report this post
I got this error
Parse error: syntax error, unexpected $end in /home/users/.../mijndomein.nl/templates/gk_storebox/html/com_virtuemart/cart/default.php on line 199

Thanks for your help
warm regards
webmiep
User avatar
Senior Boarder

GK User
Fri May 24, 2013 10:48 am
Reply with quote
Report this post
Try change your code to this one:
Code: Select all
<?php // Display the quantity box
$stockhandle = VmConfig::get ('stockhandle', 'none');
if (($stockhandle == 'disableit' or $stockhandle == 'disableadd') and ($this->product->product_in_stock - $this->product->product_ordered) < 1) { ?>
<a href="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&layout=notify&virtuemart_product_id=' . $this->product->virtuemart_product_id); ?>" class="notify"><?php echo JText::_ ('COM_VIRTUEMART_CART_NOTIFY') ?></a>
<?php } else { ?>
<span class="quantity-box">
<input type="text" class="quantity-input js-recalculate" name="quantity[]" onblur="check(this);" value="<?php if (isset($this->product->step_order_level) && (int)$this->product->step_order_level > 0) {
echo $this->product->step_order_level; } else if(!empty($this->product->min_order_level)){ echo $this->product->min_order_level; }else { echo '1'; } ?>"/>
</span>
<span class="quantity-controls js-recalculate">
<input type="button" class="quantity-controls quantity-plus"/>
<input type="button" class="quantity-controls quantity-minus"/>
</span>
<?php // Display the quantity box END
}
?>
User avatar
Gold Boarder


cron