VirtueMart Forum

VirtueMart General => Commercial Jobs => Topic started by: brilliantimpact on September 26, 2012, 23:34:58 PM

Title: Looking for VM2 Expert to help wrap up ecommerce project
Post by: brilliantimpact on September 26, 2012, 23:34:58 PM
Joomla 2.5, Virtuemart 2.0

Few things need to be finished on this site:

Getting the front end related products to match the order of the backend
Stock control, when the child product stock reaches zero the product is no longer visible

That should be it.  PM me with details or reply with questions.
Title: Re: Looking for VM2 Expert to help wrap up ecommerce project
Post by: bytelord on September 27, 2012, 00:22:19 AM
Hello,

For your first question haven't test it, but you could play around with the template default_relatedproducts.php, located under site\components\com_virtuemart\views\productdetails\tmpl\default_relatedproducts.php. I think are printout as is been saved from the backend, or you could try to order them (around line 27 is the line), maybe using PHP usort command to sort them by id ... (just a thought).

For your second question did you try from the backend, go to Configuration -> Shopfront, of the right side there is the Action when a Product is Out of Stock area. Select "Do not Display Product". Take a look on the screenshot.

Regards

[attachment cleanup by admin]
Title: Re: Looking for VM2 Expert to help wrap up ecommerce project
Post by: brilliantimpact on September 27, 2012, 17:06:18 PM
Thanks for the reply!

Shouldn't the front end display them in the same order as the backend?  That is really what I need to happen, I've looked at the relatedproducts.php file and don't really know what I could do there to fix it.

I did try the backend configuration - but all my products disapeared because their parent products are set to 0.  Even when I changed this to 1 or 2, the child products are inheriting the parent products stock level, instead of the other way around.   So - I'm not sure how to get that shopfront section to work.

Thanks again for taking the time to write
Title: Re: Looking for VM2 Expert to help wrap up ecommerce project
Post by: bytelord on September 27, 2012, 17:18:20 PM
Hello,
I am not sure too because i haven't try to work it around, but may be someone could build a custom module or plugin at your needs.

So, the "Do not display product when is about of stock", does it work for you?
Title: Re: Looking for VM2 Expert to help wrap up ecommerce project
Post by: brilliantimpact on September 27, 2012, 20:54:17 PM
When I enable to not display products, no products display at all! 

Even though they have stock.   The big problem is that it is looking at the parent stock level, not the child's.

Thanks again