Just want to ask where to put the "Description" remarks so it can comes up when my colleague see in the help page?
I have tried in ViewModel using triple slash summary also try to put in Display Attribute with no lucks
please fill up the summary part of the comment on the property in your model for that to come up on the API help page.
I am attaching pics :
Which shows up as :
Related
I'm trying to use markup tags to link to info pages within the "description" attribute of a product. However, it's not giving me a clean URL path when the description is printed to the page.
Trying:
Contact Us
does not give the expected url. I've confirmed i'm doing this outside of WYSIWYG mode too.
When the text is rendered is returned to the browser as this html:
Contact Us
A resulting click on the link then ends up as:
http://example.com/prod-category/my-product/%7B%7Bstore%20url=
From what I can tell the markup tags aren't designed to be used in this way. Is it possible to extend it so it could work? Otherwise I guess I need to include the actual URL in the description?
Thanks for suggestions.
You can´t use the double-curly syntax because the attributes value is not being processed by magento´s template filter, which does the magic. You can use them e.g. in CMS or email Templates out of the box.
Want to know, how can i change the block title of Related product block in magento? I mean that, i want to replace the title named "Related product" with my own text.
Thanks
Mostaq
Hello check below file
app/design/frontend/base/default/template/catalog/product/list/related.phtml or
app/design/frontend/your_current_theme/default/template/catalog/product/list/related.phtml
Hope this help you.
After GO to Your related page and see the red line with book
icon to click on it and replace your text without Going To file System.
For Backend Related Product Tab Label Change for
1) direct change on core file:
app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs.php
find Related and replace
2)Create Module to dynamic :
http://stackoverflow.com/questions/16481564/where-to-change-magento-default-tabs-on-products
I have a tumblr account that has submission enabled, and I have a short description with a form in the "description" area that appears on the sidebar. However, this description also appears on myblog.tumblr.com/submit. I'd like to remove it.
I looked at the documentation on http://www.tumblr.com/docs/en/custom_themes#navigation, but haven't been able to figure out how to prevent the sidebar description from showing at the top of the submit page.
Can anyone help?
I'm not sure if I understood your question correctly. But if I did, a work around would be using jQuery to check if the current url contains the string /submit and simply disable the sidebar, or the element that contains the description.
I don't know jQuery but I know it's possible. I'd suggest you to look into this post:
How to check if the URL contains a given string?
and combine it with this line (replace the "alert part")
$("#sidebardescription).hide();
Another solution would be if Tumblr provided you with a way to only render for specific pages. They usually do that. I'd look into this part {block:SubmissionsEnabled} {/block:SubmissionsEnabled} before I go with the workaround.
I created a few small widgets for magento. Everything fine, but I can`t seem to figure out how to add a richtext (tinymce wysiwyg) field to my widget.
Only thing I find on this is: "use ‘wysiwyg’ => true" in "$fieldset->addField". But I cannot use this in my custom widget, can I?
I understand that I can use addField to add a field to for example a product or CMS page.
But the only way of adding fields in my custom widget, as far as I know, is by adding parameters in my widget.xml. Other widget I build by following some tutorial returns a button, by using a custom type as parameter:
$removeButton = $this->getLayout()->createBlock('adminhtml/widget_button')
->setType('button')
->setClass('delete')
->setLabel($this->__('Remove Image'))
->setOnclick('document.getElementById(\''.$element->getId().'\').value=\'\';if(document.getElementById(\''.$element->getId().'_image\'))document.getElementById(\''.$element->getId().'_image\').parentNode.remove()')
->setDisabled($element->getReadonly())
->setStyle('margin-left:10px;margin-top:7px');
But i just can`t figure out how to add a richtext field in either my Widget.xml or my phpfile for the custom type.
What am I missing? Hope someone can help me out.
There are a few related entries here on stackoverflow, try searching if you are still having problem with this. Also, have a look at this brilliant article: http://www.behrendt.io/2013/04/12/using-a-wysiwyg-editor-in-a-magento-widget/
It helped me getting started. I got it working as a plain text field but whenever I turn the field to true WYSIWYG the content is never updated and the AJAX call does not contain the new HTML.
For a project I need to make a kind of view all manufactures page, I am hoping to use catalogsearch but without any parameters. What I mean is the normal catalogsearch is ran and all shoes in all manufacture categories are returned.
The url that is normally passed is testshop.com//catalogsearch/result/index/?manufacturer=2522&q=shoe%20manufactures this works but when I try to pass testshop.com//catalogsearch/result/index/? (or along those lines) this does not work.
I have not started coding this yet as I am not sure where to begin so need a point in the right direction.
I am thinking of just finding the default category id and using this, but not sure if this is the best option to use.
Any advice or help will be great as always. Will post my finished code on here once complete as I think with magento help can be a bit limited.
Cheers
Jason
Maybe try getting the search Model pragmatically
Here is the code to get the Search model:
$search = Mage::getSingleton('catalogsearch/advanced');
To actually search put in the following:
$search = Mage::getSingleton('catalogsearch/advanced')->addFilters(array('name' => $term));
Then to get the results in an object, enter the following line:
$search->getProductCollection();
Hope this helps
I did it. It was a bit of a hack but works perfectly.
I noticed that if you make a search and remove all the filters you are left with a GET request that look something like this /catalogsearch/result/index/?q=Shoe+Brand . But the filters where not showing on the left hand side as a normal catalogsearch would.
So I found the default category id and added this to the GET request. The GET request now looked like this /catalogsearch/result/index/?cat=2&q=Shoe+Brand .
Although the GET request included q=Shoe+Brand it was not actually using this as search criteria.
This was now returning a catalogsearch page with the default category as a filter.
This was showing default category in the filter and breadcrumbs so I had to change the appropriate phtml files to check for this and display 'all brands' instead of 'default category'.
Hope this helps someone else
Jason