News:

Support the VirtueMart project and become a member

Main Menu

Availibility condition, stock and manufacturer?

Started by cherokee, December 21, 2016, 09:58:06 AM

Previous topic - Next topic

cherokee

Good morning
Sorry for my English (Google)
Is there a way to show the availability of a product depending on the stock and the manufacturer?
Example:
Stock <1 and manufacturer XXXX = image 1
Stock <1 and manufacturer YYYYY = image 2
Thank you
VirtueMart 3.0.16

GJC Web Design

you would need to code this logic at the template level

IMHO all the info is there -- just depends on your code
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

cherokee

Thank you.
Yes, using php language. I have no knowledge.
I know how to make the call of the stock, but it's not how to include the manufacturer.
a greeting

cherokee

Hello.
I am unable.
Any idea to call a specific manufacturer?
Thank you.
a greeting
<?php
if (($product->product_in_stock $product->product_ordered) < 1) { 
     if (
$product->virtuemart_manufacturer_id=xx)  {
    
?>

   

    <div class="availability">
        <img src="IMAGE1.png" />
    </div>



<?php 
}
}
?>