Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - FashionMart (SKU# FLEX-00008)

TOPIC: Quantity Box on Category Page

Quantity Box on Category Page 11 years 4 months ago #967

I can't seem to get the quantity box to display on the flexlist category page. I need to have the +/- box or a simple dropdown quantity box for one category. It seems like there is some to code related to the quantity box in the category template, but it does not display.
The administrator has disabled public write access.

Quantity Box on Category Page 11 years 4 months ago #971

Hi,

yes quantity box was removed from the category browse page on purpose, it is simple because there wasn't enough space for it. But you can have it though,
open the category browse page:

ROOT/templates/<yourjoomlatemplefolder>/html/com_virtuemart/category/defaultlist.php

And look for this line:
<input type="hidden" class="quantity-input" name="quantity[]" value="1" />

Change it with this:
<span class="FlexibleWebquantity-controls">
		<input type="button" class="quantity-controls quantity-minus" />
        </span>
 
            <span class="FlexibleWebquantity-box">
		<input type="text" class="quantity-input js-recalculate" name="quantity[]" value="<?php if (isset($product->min_order_level) && (int) $product->min_order_level > 0) {
    echo $product->min_order_level;
} else {
    echo '1';
} ?>" />
	    </span>
        <span class="FlexibleWebquantity-controls">
       <input type="button" class="quantity-controls quantity-plus" />
       </span>

The appearance might not look good, this is why we didn't put it here because there is not enough space. But you can figure out a way with some CSS touches. either decrease the "add to cart" button width size, or quantity buttons' width size. Up to you.

Cheers.

Cheers.
The administrator has disabled public write access.

Quantity Box on Category Page 11 years 4 months ago #994

Awesome that works thank you. Any ideas on how to make a space/gap between the quantity box and the add-to-cart button?
The administrator has disabled public write access.

Quantity Box on Category Page 11 years 4 months ago #996

Hi,

it is a custom modification and may vary from website to website.
IF you tell me your website URL, i can provide you the CSS rules to give some space between quantity box and the add to cart button.
The administrator has disabled public write access.

Quantity Box on Category Page 11 years 3 months ago #1474

Hi,

Thanks for the solution, i have added the code in the new pure-mart template and it will give the result as the above image below.
Can you help me out to get the it properly aligned, and how to get the + and - symbols.

example.jpg


--Cheers--
The administrator has disabled public write access.
Time to create page: 0.171 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo