availability in product details

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Nov 19, 2014 2:09 pm
Reply with quote
Report this post
Hi

I need a little help: !!!
I product details I need in availability image to insert an href ... The goal is an pre-order image for the product !!!!
So if the user click on pre-order image, open a popup and fill up a form for the pre-order...

Could you please let me know where I have to insert the href ???

Many Thanks
User avatar
Expert Boarder

teitbite
Sat Nov 22, 2014 10:23 am
Reply with quote
Report this post
Hi

Please show me exactly which page and place this links should be used.
User avatar
Moderator

GK User
Sat Nov 22, 2014 6:08 pm
Reply with quote
Report this post
Hi teitbite

Please see the screenshot

http://www.reloadstores.gr/images/order.jpg

of course I will change it with a new one

Thanks !!!
User avatar
Expert Boarder

teitbite
Sun Nov 23, 2014 12:52 pm
Reply with quote
Report this post
Hi

Code for availability is in /html/com_virtuemart/productdetails/default.php

Code: Select all
                     <?php
                           // Availability Image
                           $stockhandle = VmConfig::get('stockhandle', 'none');
                           
                           if (($this->product->product_in_stock - $this->product->product_ordered) < 1) {
                              $app = JFactory::getApplication();
                              $templateName = $app->getTemplate();
                              
                              if ($stockhandle == 'risetime' and VmConfig::get('rised_availability') and empty($this->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')) : JText::_(VmConfig::get('rised_availability')); ?>
                              </div>
                              <?php
                                 } else if (!empty($this->product->product_availability)) {
                              ?>
                              <div class="availability">
                              <?php echo (file_exists(JPATH_BASE . DS . VmConfig::get('assets_general_path') . 'images/availability/' . $this->product->product_availability)) ? JHTML::image(JURI::root() . VmConfig::get('assets_general_path') . 'images/availability/' . $this->product->product_availability, $this->product->product_availability, array('class' => 'availability')) : JText::_($this->product->product_availability); ?>
                              </div>
                              <?php
                              }
                           }
                           ?>


I do not see a functionality to join here in VM for order form, so this I'm afraid that's the closest I can help. This is a customisation request after all.
User avatar
Moderator

GK User
Thu Nov 27, 2014 1:39 pm
Reply with quote
Report this post
Hi teitbite

Million Thanks works perfect !!!!
User avatar
Expert Boarder


cron