test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • 2khaat Friend
    #136611

    Hi,

    I guess this might be a question to ask in the virtuemart forums, but you guys are smart so I thought i’d ask here first.

    Is there away to change it to say the ‘in stock’ as just ‘yes’ instead of the number of items?

    Even better yet would it be possible for it to say yes until the amount gets low like around 5 items and then start displaying the amount left?

    example page.
    http://www.2khaat.com/index.php?option=com_virtuemart&page=shop.product_details&flypage=flypage.tpl&Itemid=71&category_id=11&product_id=47

    thank you 🙂

    nefar Friend
    #284357

    I don’t think so because that function is for the number of items that you have in stock.

    wooohanetworks Friend
    #284425

    Oh, oh, oh, this is “harcore” VirtueMart Core Files hacking what you wish to do. For this you must at least know a good portion of MySQL and PHP as what you require can only be done with insering complete new queries into the core files of VirtueMart.

    When now only one routine is called, to display the numbers until out of stock you will have to split this code into 2 codes, one new one that calls the products availibility until the stock reaches 5 and displays a yes instead of the quantity in stock and one other new one that is called and calls the actual availibility of the stock when the desired amount is reached.

    You CAN achieve this with hacking and modifying the core files but you must be a PRO to do so. Everything is possible with VM but one needs the knowledge to do so….;)

    When this is a seriously needed modification then I suggest to order a freelancer.

    HAPPY NEW YEAR!!!

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 3 voices, and was last updated by  wooohanetworks 15 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum