[SOLVED] Not defined variants returns free product
13 years 10 months ago #73372
by Xavier
Replied by Xavier on topic Re: Not defined product variants returns free product
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"

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.
13 years 10 months ago #73389
by protorob
Replied by protorob on topic Re: Not defined product variants returns free product
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
Thanks in advance Xavier
Please Log in or Create an account to join the conversation.
13 years 10 months ago #73394
by Xavier
Replied by Xavier on topic Re: Not defined product variants returns free product
I only have edited your file "product / listing_price"
Regards.
Regards.
Please Log in or Create an account to join the conversation.
13 years 10 months ago #73395
by protorob
Replied by protorob on topic Re: Not defined product variants returns free product
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!
Thanks again, now i can continue populating my website!
Please Log in or Create an account to join the conversation.
13 years 10 months ago #73408
by Xavier
Replied by Xavier on topic Re: Not defined product variants returns free product
Solution:
In the view "product / listing_price" replace the line:
By:
In the view "product / listing_price" replace the line:
Code:
echo JText::_('FREE_PRICE');
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.178 seconds