News:

Looking for documentation? Take a look on our wiki

Main Menu

Product Availability assign to manufucturer

Started by Csepe, February 10, 2014, 20:50:43 PM

Previous topic - Next topic

Csepe

Hello!

I have been using joomla and virutemart for a while, but now i have an issue and i could not find any possible solution for it. I

I'm using Virtuemart 2.0.26d and joomla 2.5.16.

So i have approx 3000 product, and it's growing. I would like to set the availability but of course not for each product. I got some manufactuerers and our delivery time (availailbility) depending on the manufacturer. So for example X manufacturer deliveres within 3 days the Y delivers 5 days regardless the product. Is there any possibility to set availability for the same for each manufacturer? Or is there a plugin or module (free or payable?) for it?

I'm a bit beginner so please answer as for a child. :)

Thanks,
Csepe

Thanks your

jenkinhill

Make a copy of the file at components/com_virtuemart/views/productdetails/tmpl/default.php which is the product details default template. For each manufacturer edit the code to include text with the delivery time and save the file so it relates to the manufacturer, eg manu1.php, manu2.php etc

Then use those files as template overrides, putting the files in [yourjoomlatemplate]/html/com_virtuemart/productdetails/
http://docs.virtuemart.net/tutorials/33-templating-layouts.html and http://www.ostraining.com/blog/joomla/overrides

For each product you can specify the override file to be used, ie in the product editor when entering the manufacturer you also select the Product Details Page override to be used  (under the manufacturer selector)
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Matt_Ginn

Is it possible at all to extend this functionality? I have a similar set up to the original poster ie. a single shop which stocks products both from an external supplier and some that we manufacture ourselves. I've created overrides for each 'manufacturer' which I select when I create a product. However I also want to display the 'custom fields' and the 'add to cart' sections differently for each manufacturer. Can I just create a copy of default_addtocart.php, name it default_addtocart_m.php and then call it from within the override like this:

echo $this->loadTemplate('addtocart_m');

GJC Web Design

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