News:

Looking for documentation? Take a look on our wiki

Main Menu

No availability images show after update vm3.0.16 to vm3.4.3

Started by panne003, November 01, 2018, 20:10:07 PM

Previous topic - Next topic

panne003

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

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 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

panne003

Thanks for your info. This solution is not working. I have tried it. Do you have another sollution.

GJC Web Design

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 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

panne003

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

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 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

panne003

I have looked in the stockhandle.php but i am not sure.This is the stockhandle.php<?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

what EXACTLY is being rendered on the page where the images should appear?
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

panne003


jjk

Perhaps the problem is a simple one. In your first screenshot you have a different file name than in the next screenshots.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Milbo

I would disable the override of the stockhandle file and yes as Jörg mentioned the names are not the same.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

panne003

The problem is solved. It was the .htaccess. I had a clean .htaccess put on my site and there are the availabilty images.
Thanks for your support