[SOLVED] Not defined variants returns free product

  • Posts: 13201
  • Thank you received: 2322
12 years 7 months ago #73372

Sorry, I had forgot the backend access. :/

You were right, I edited you view "product / listing_price" and now for a variant not published, or not present, the message "Not available" will be present instead of "Gratis"

Please Log in or Create an account to join the conversation.

  • Posts: 96
  • Thank you received: 14
12 years 7 months ago #73389

This time i think is perfect, it also works with the free_price stuff, did you touch something on my end too?

Thanks in advance Xavier

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 7 months ago #73394

I only have edited your file "product / listing_price"

Regards.

Please Log in or Create an account to join the conversation.

  • Posts: 96
  • Thank you received: 14
12 years 7 months ago #73395

can you please put here the modification you made, this way if someone runs into the same problem (or if i run again into the same problem) i can refer this post again.

Thanks again, now i can continue populating my website!

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 7 months ago #73408

Solution:

In the view "product / listing_price" replace the line:

    echo JText::_('FREE_PRICE');
By:
    if($this->row->product_published != 1)
    echo JText::_('PRODUCT_NOT_AVAILABLE');
    else
    echo JText::_('FREE_PRICE');

Please Log in or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum