Welcome, Guest
Username: Password: Remember me

TOPIC: Quantity Box Help!

Quantity Box Help! 4 years 6 months ago #1384

  • lmw1
  • lmw1's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Karma: 0
I accidentally removed my quantity box and forgot how to put it back.

Can you guide me?

Respectfully,
Len
The administrator has disabled public write access.

Re: Quantity Box Help! 4 years 6 months ago #1385

  • lmw1
  • lmw1's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Karma: 0
Can you please help?
The administrator has disabled public write access.

Re: Quantity Box Help! 4 years 6 months ago #1388

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 910
  • Thank you received: 568
  • Karma: 25
Hi,
please edit templates/ot_sportshop/html/com_virtuemart/productdetails/default_addtocart.php

and after this line:
<div class="addtocart-bar">

Add the code:
<div class="product-quantity">
    <div class="product-field">
        <div class="product-field-i">
            <?php // Display the quantity box  ?>
                <label class="quantity_box" for="quantity<?php echo $this->product->virtuemart_product_id; ?>" class="quantity_box"><?php echo JText::_('COM_VIRTUEMART_CART_QUANTITY'); ?>: </label>
                <span class="quantity-box">
                    <input type="text" class="quantity-input js-recalculate" name="quantity[]" value="<?php if (isset($this->product->min_order_level) && (int) $this->product->min_order_level > 0) {
                            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 ?>
        </div>
    </div>
</div>

Thanks
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
The administrator has disabled public write access.
The following user(s) said Thank You: lmw1

Re: Quantity Box Help! 4 years 6 months ago #1395

  • lmw1
  • lmw1's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Karma: 0
Worked perfectly!

Do you offer customization services for Virtuemart?

Respectfully,
Len
The administrator has disabled public write access.

Re: Quantity Box Help! 4 years 6 months ago #1397

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
Yes, we're ready to do the custom work from clients. Please email me if you're needed: services(at)omegatheme.com

Thanks
The administrator has disabled public write access.
Time to create page: 0.166 seconds