VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: Csepe on February 10, 2014, 20:50:43 PM

Title: Product Availability assign to manufucturer
Post by: Csepe on February 10, 2014, 20:50:43 PM
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
Title: Re: Product Availability assign to manufucturer
Post by: jenkinhill on February 11, 2014, 18:55:22 PM
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)
Title: Re: Product Availability assign to manufucturer
Post by: Matt_Ginn on May 02, 2014, 17:05:07 PM
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');
Title: Re: Product Availability assign to manufucturer
Post by: GJC Web Design on May 03, 2014, 00:02:58 AM
Yes - that will work fine...