VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: gonzete on March 05, 2013, 15:54:37 PM

Title: COM_VIRTUEMART_PRODUCT_ADD_PRODUCT - What is this?
Post by: gonzete on March 05, 2013, 15:54:37 PM
This message appears in the details of the user account.

What is? and how I can remove?

(http://img803.imageshack.us/img803/4550/comvirtuemart.jpg) (http://imageshack.us/photo/my-images/803/comvirtuemart.jpg/)

Uploaded with ImageShack.us (http://imageshack.us)
Title: Re: COM_VIRTUEMART_PRODUCT_ADD_PRODUCT - What is this?
Post by: jenkinhill on March 05, 2013, 23:39:12 PM
That is "Add a product" in the English language file (en-GB.com_virtuemart.ini), looks like it is not translated in the language file you are using, so you will need to add it.
Title: Re: COM_VIRTUEMART_PRODUCT_ADD_PRODUCT - What is this?
Post by: gonzete on March 12, 2013, 15:46:42 PM
thanks is solved. but now I have to put a picture to add products jejeje

one question, the link takes me to http://web.com/cuenta/product/edit?tmpl=component&virtuemart_product_id=0 how i can change this link?

thanks
Title: Re: COM_VIRTUEMART_PRODUCT_ADD_PRODUCT - What is this?
Post by: Favazza on March 13, 2013, 12:17:02 PM
Have the same problem?
What is this good for? The user shouldn't see such a link?!
Also I have the text "Register" above (but it's not a link). How do I remove these 2?
Title: Re: COM_VIRTUEMART_PRODUCT_ADD_PRODUCT - What is this?
Post by: Zer0g on July 18, 2013, 10:21:33 AM
Got the same problem.
Solution:
Go to components/com_virtuemart/views/user/view.html.php (don't know if it is possible to do a template override here)
Go to line 246 & 247 and uncomment these lines (my version 2.022a)
$add_product_link = JRoute::_( '/index.php?option=com_virtuemart&tmpl=component&view=product&view=product&task=edit&virtuemart_product_id=0' );
$add_product_link = $this->linkIcon($add_product_link, 'COM_VIRTUEMART_PRODUCT_ADD_PRODUCT', 'new', false, false, true, true);