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

TOPIC: Call-for-price and Stock icon display

Call-for-price and Stock icon display 11 years 1 month ago #3550

Hi there,

is there a way to have the "call for price" & the " in-stock" displayed?

I am asking because for ca. 30% of our products (approx. 4000) it is impossible to set a fixed price.
So our ideal solution would be like the screen-grab.

Attachment stockandcall.png not found



Any suggestion is highly appreciated.
Thank you for your help.
The topic has been locked.

Call-for-price and Stock icon display 11 years 1 month ago #3553

does the instock not display if you leave the price empty but it has a stock level?
The topic has been locked.

Call-for-price and Stock icon display 11 years 1 month ago #3554

No ... unfortunately not.
Only the call for price button is showing up (I had the level set to 10000 .... too much?)
The topic has been locked.

Call-for-price and Stock icon display 11 years 1 month ago #3562

Ok - you have to add the whole delivery stuff to the conditional call for price bit

so after line 451
<a class="FlexibleAskforPrice" <?php  if (!($parameter == "quicklook")) { ?>rel="facebox" rev="iframe|550|650"<?php } ?> href="<?php echo JRoute::_('index.php?option=com_virtuemart&tmpl=component&view=productdetails&task=askquestion&virtuemart_product_id='.$this->product->virtuemart_product_id.'&virtuemart_category_id='.$this->product->virtuemart_category_id.''); ?>"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ASKPRICE') ?></a>
 
 


add
 
<?php // Availability Image
 
				if (!empty($this->product->product_availability)) {
					 $stockhandle = VmConfig::get('stockhandle','none');
						if($stockhandle=='none') {
							$GifToPNG = substr($this->product->product_availability, 0, -3); 
							?>
                            <div class="availability">
                         <img src="<?php echo JURI::root().'templates/'.$template.'/html/com_virtuemart/assets/images/availability/'.$GifToPNG; ?>png" class="FlexibleavailabilityIMG" alt="" />    					
                         </div>
						<?php } 
						if($stockhandle=='risetime' and ($this->product->product_in_stock - $this->product->product_ordered)<1){
				 			$GifToPNG = substr(VmConfig::get('rised_availability'), 0, -3);
							?>	
                        	<div class="availability">
                        <img src="<?php echo JURI::root().'templates/'.$template.'/html/com_virtuemart/assets/images/availability/'.$GifToPNG; ?>png" class="FlexibleavailabilityIMG" alt="" />
						</div>
						<?php	} 
						if($stockhandle=='disableadd' and ($this->product->product_in_stock - $this->product->product_ordered)>=1){
				 			$GifToPNG = substr($this->product->product_availability, 0, -3);
							?>	
                        	<div class="availability">
                        <img src="<?php echo JURI::root().'templates/'.$template.'/html/com_virtuemart/assets/images/availability/'.$GifToPNG; ?>png" class="FlexibleavailabilityIMG" alt="" />
						</div>
						<?php	} 
						if($stockhandle=='risetime' and ($this->product->product_in_stock - $this->product->product_ordered)>=1){
				 			$GifToPNG = substr($this->product->product_availability, 0, -3);
							?>	
                        	<div class="availability">
                        <img src="<?php echo JURI::root().'templates/'.$template.'/html/com_virtuemart/assets/images/availability/'.$GifToPNG; ?>png" class="FlexibleavailabilityIMG" alt="" />
						</div>
						<?php	} 
 
				}
				?>
 

you'll have to adjust the css etc to get it to float nicely to the right - but this works - becareful of the php tags etc

Cheers
Attachments:
The topic has been locked.

Call-for-price and Stock icon display 11 years 1 month ago #3565

Thank you John, you are my hero !!!!

It works like a charm and looks perfect.
The topic has been locked.

Call-for-price and Stock icon display 11 years 1 month ago #3567

Excellent - topic closed..
The topic has been locked.
Time to create page: 0.371 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