display product available date

Dreeshoek
21 Posts
Dreeshoek posted this 09 February 2018

is there a cms code to display product available date

is there a cms code to display product available date
Vote to pay developers attention to this features or issue.
7 Comments
Order By: Standard | Newest
Dreeshoek
21 Posts
Dreeshoek posted this 09 February 2018

Blockquote

<div class>

    <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': '. JHtml::_('date', $product->product_available_date, vmText::_('DATE_FORMAT_LC4')); ?>
</div

Blockquote

This is working

> Blockquote &lt;div class&gt; <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': '. JHtml::_('date', $product->product_available_date, vmText::_('DATE_FORMAT_LC4')); ?> </div > Blockquote This is working
Dreeshoek
21 Posts
Is Solution
Dreeshoek posted this 09 February 2018

<div class>

    <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': '. JHtml::_('date', $product->product_available_date, vmText::_('DATE_FORMAT_LC4')); ?>
</div>

&lt;div class&gt; <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': '. JHtml::_('date', $product->product_available_date, vmText::_('DATE_FORMAT_LC4')); ?> </div>
Dreeshoek
21 Posts
Dreeshoek posted this 09 February 2018

<div class="availability">
        <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': '. JHtml::_('date', $product->product_available_date, vmText::_('DATE_FORMAT_LC4')); ?>
    </div>

<div class="availability"> <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': '. JHtml::_('date', $product->product_available_date, vmText::_('DATE_FORMAT_LC4')); ?> </div>
Dreeshoek
21 Posts
Dreeshoek posted this 09 February 2018

?php // Else if in stock
} else if (($product->product_in_stock - $product->product_ordered) > 0) {


  // Display the date of availability if greater than current date
    if ($product_available_date != '0000-00-00' and $current_date < $product_available_date) 

that not works..

?php // Else if in stock } else if (($product->product_in_stock - $product->product_ordered) > 0) { // Display the date of availability if greater than current date if ($product_available_date != '0000-00-00' and $current_date < $product_available_date) that not works..
Support Team
Support Team posted this 12 February 2018

Hi,

The code in the last post is not complete. But you already provided the code which is working.
Please let us know if you need our further assistance here.

Thank you,
Olivia

Hi, The code in the last post is not complete. But you already provided the code which is working. Please let us know if you need our further assistance here. Thank you, Olivia
Dreeshoek
21 Posts
Dreeshoek posted this 26 April 2018

This is de code

<div class>

    <?php if (($product->product_in_stock - $product->product_ordered) < 1)echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': '. JHtml::_('date', $product->product_available_date, vmText::_('DATE_FORMAT_LC4')); 
?>
</div

This is de code &lt;div class&gt; <?php if (($product->product_in_stock - $product->product_ordered) < 1)echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': '. JHtml::_('date', $product->product_available_date, vmText::_('DATE_FORMAT_LC4')); ?> </div
Support Team
Support Team posted this 26 April 2018

Hi,

The native VM code responsible for displaying product available date is located here: \components\com_virtuemart\sublayouts\stockhandle.php
It can be used in Themler theme in the CMS Code control.

Thank you,
Olivia

Hi, The native VM code responsible for displaying product available date is located here: `\components\com_virtuemart\sublayouts\stockhandle.php` It can be used in Themler theme in the CMS Code control. Thank you, Olivia
You must log in or register to leave comments