Author Topic: No availability images show after update vm3.0.16 to vm3.4.3  (Read 269 times)

panne003

  • Beginner
  • *
  • Posts: 12
No availability images show after update vm3.0.16 to vm3.4.3
« on: November 01, 2018, 20:10:07 pm »
Hello,

After update virtumart 3.0.16 to virtuemart 3.4.3 the availability images are not showing on the productdetails page. The availability images are on the server components/com_virtuemart/assets/images/availability/
It wil only show the text. On the backend (configuration/shop) also in the frontend productdetails.

What can i do to fix it?

I use joomla 3.9 with virtuemart 3.4.3
I updatet on a staging server, not on my live webshop.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8433
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: No availability images show after update vm3.0.16 to vm3.4.3
« Reply #1 on: November 01, 2018, 20:22:57 pm »
the images are handled in components\com_virtuemart\sublayouts\stockhandle.php

test with that file from 3.4.2 ( I think there were some changes in 3.4.3) or earlier

standard template?  (but shouldn't matter)
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

panne003

  • Beginner
  • *
  • Posts: 12
Re: No availability images show after update vm3.0.16 to vm3.4.3
« Reply #2 on: November 01, 2018, 20:39:28 pm »
Thanks for your info. This solution is not working. I have tried it. Do you have another sollution.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8433
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: No availability images show after update vm3.0.16 to vm3.4.3
« Reply #3 on: November 01, 2018, 20:43:11 pm »
crystal ball says no....

example? the code rendered? the path of the image? the wrong path or just rendered text?  etc etc etc
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

panne003

  • Beginner
  • *
  • Posts: 12
Re: No availability images show after update vm3.0.16 to vm3.4.3
« Reply #4 on: November 05, 2018, 15:02:16 pm »
I have made screenshots. I have used the standaard vm 3.4.3 and the availability are in the /components/com_virtuemart/assets/images/availability/
There is nothing changed in the php's.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8433
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: No availability images show after update vm3.0.16 to vm3.4.3
« Reply #5 on: November 05, 2018, 15:50:05 pm »
you need to find what that array is .. it seems to coming back not as an image path but an array

check thru the file components\com_virtuemart\sublayouts\stockhandle.php or your over ride of that if u have one to see what is being  returned for $product->product_availability
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

panne003

  • Beginner
  • *
  • Posts: 12
Re: No availability images show after update vm3.0.16 to vm3.4.3
« Reply #6 on: November 16, 2018, 19:49:27 pm »
I have looked in the stockhandle.php but i am not sure.This is the stockhandle.php
Code: [Select]
<?php
$product 
$viewData['product'];
// Availability
$stockhandle VmConfig::get('stockhandle''none');
$product_available_date substr($product->product_available_date,0,10);
$current_date date("Y-m-d");
if ((
$product->product_in_stock $product->product_ordered) < 1) {
    if (
$product_available_date != '0000-00-00' and $current_date $product_available_date) {
    
?>
    <div class="availability">
        <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': 'JHtml::_('date'$product->product_available_datevmText::_('DATE_FORMAT_LC4')); ?>
    </div>
    <?php
    
} else if ($stockhandle == 'risetime' and VmConfig::get('rised_availability') and empty($product->product_availability)) {
        
?>
    <div class="availability">
            <?php echo (file_exists(JPATH_BASE DS VmConfig::get('assets_general_path') . 'images/availability/' VmConfig::get('rised_availability'))) ? JHtml::image(JURI::root() . VmConfig::get('assets_general_path') . 'images/availability/' VmConfig::get('rised_availability''7d.gif'), VmConfig::get('rised_availability''7d.gif'), array('class' => 'availability')) : vmText::_(VmConfig::get('rised_availability')); ?>
        </div>
    <?php
    
} else if (!empty($product->product_availability)) {
        
?>

        <div class="availability">
            <?php echo (file_exists(JPATH_BASE DS VmConfig::get('assets_general_path') . 'images/availability/' $product->product_availability)) ? JHtml::image(JURI::root() . VmConfig::get('assets_general_path') . 'images/availability/' $product->product_availability$product->product_availability, array('class' => 'availability')) : vmText::_($product->product_availability); ?>
        </div>
    <?php
    
}
}
else if (
$product_available_date != '0000-00-00' and $current_date $product_available_date) {
    
?>
    <div class="availability">
        <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': 'JHtml::_('date'$product->product_available_datevmText::_('DATE_FORMAT_LC4')); ?>
    </div>
<?php
}
?>

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8433
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: No availability images show after update vm3.0.16 to vm3.4.3
« Reply #7 on: November 16, 2018, 22:57:29 pm »
what EXACTLY is being rendered on the page where the images should appear?
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation