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

TOPIC: Selectin of the Number of Articles

Selectin of the Number of Articles 11 years 3 months ago #2110

Hallo,
please have look on the screenshot.

I want to have a indivual Number of articles, but default 61 Articles like now.

eca-trade.com/hocker/bohok-plastic-table-detail.html

Would be great to get a solution for that.

Thank you and best regards,
Attachments:
The topic has been locked.

Selectin of the Number of Articles 11 years 3 months ago #2118

Hi,

I am seeing you already defined those numbers manually.
Open this PHP file:
eca-trade.com/templates/gk_yourshop/html/com_virtuemart/productdetails/default.php

And find these Lines:
<select class="quantity-input js-recalculate" name="quantity[]">
<option value="61">61</option>
<option value="41">41</option>
<option value="31">31</option>
<option value="21">21</option>
<option value="11">11</option>
<option value="10">10</option>
<option value="9">9</option>
<option value="8">8</option>
<option value="5">5</option>
<option value="4">4</option>
<option value="3">3</option>
<option value="2">2</option>
<option value="1">1</option>
</select>

The 1st line (it is 61 in your case) will be the default value. So upside down this list, something like:
<select class="quantity-input js-recalculate" name="quantity[]">
  			<option value="1">1</option>
  			<option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
            <option value="5">5</option>
            <option value="6">6</option>
            <option value="7">7</option>
            <option value="8">8</option>
            <option value="9">9</option>   
</select>

So the default value will be 1.

Regards.
Forum Support.
Last Edit: 11 years 3 months ago by Support.
The topic has been locked.

Selectin of the Number of Articles 11 years 3 months ago #2124

Hallo,
sorry for not beeing clear. I want the default value be "61", but I want to give the user the opportunity to set the number of products he likes. For example 22 articles or 45 or what ever, whichts is not possible right now.

So I need the defalut value of 61, but no other predefined values like now.

I hope to be more clear now.

Thank you and best regards,
The topic has been locked.

Selectin of the Number of Articles 11 years 3 months ago #2149

So you need a INPUT text area, instead of dropdown, am I right?

Then try this:

Open the same PHP file:
eca-trade.com/templates/gk_yourshop/html/com_virtuemart/productdetails/default.php

find this Lines:
<div class="FlexibleProductDetailsSelectBox">
        <select name="quantity[]" class="quantity-input js-recalculate">
  			<option value="61">61</option>
  			<option value="41">41</option>
            <option value="31">31</option>
            <option value="21">21</option>
            <option value="11">11</option>
            <option value="10">10</option>
            <option value="9">9</option>
             <option value="8">8</option>
              <option value="5">5</option>
               <option value="4">4</option>
            <option value="3">3</option>
            <option value="2">2</option>
            <option value="1">1</option>
 
		</select>  
         </div>

and replace it with this:
 
<span class="quantity-box">
		<input type="text" class="quantity-input js-recalculate" name="quantity[]" value="61"/>
	    </span>
				<span class="quantity-controls js-recalculate">
		<input type="button" class="quantity-controls quantity-plus"/>
		<input type="button" class="quantity-controls quantity-minus"/>
	    </span>
 

The result will be like this:

Attachment ScreenShot2013-01-23at12.33.27PM.png not found



The default value is 61 and visitors are able to increase/decrease the quantity to what ever they like.

Regards.
Last Edit: 11 years 3 months ago by Support.
The topic has been locked.

Selectin of the Number of Articles 11 years 3 months ago #2161

Thanl you vey much! Great support.
The topic has been locked.

Selectin of the Number of Articles 11 years 3 months ago #2165

your welcome. I am glad this is what you were looking for.

Case solved. topic is closed.

Regards.
Forum Support,
The topic has been locked.
Time to create page: 0.175 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