Skip to main content

[SOLVED] Not defined variants returns free product

14 years 2 weeks ago #73372 by Xavier
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.

14 years 2 weeks ago #73389 by protorob
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.

14 years 2 weeks ago #73394 by Xavier
I only have edited your file "product / listing_price"

Regards.

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

14 years 2 weeks ago #73395 by protorob
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.

14 years 2 weeks ago #73408 by Xavier
Solution:

In the view "product / listing_price" replace the line:
Code:
echo JText::_('FREE_PRICE');
By:
Code:
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.067 seconds
Powered by Kunena Forum