joomla using virtuemart i want the description to be placed under products - joomla

I have a joomla site using virtue mart in my products. I want my description to be placed under the products. Any help would be appreciated.
You will see here that the description is above the products.
I have had a look through the source files but was wondering the best way to go about this as I may just be missing something.

I hope you are using , VM2.x Versions.
The the Product Details Page Source file you can found on the following path.
components\com_virtuemart\views\productdetails\tmpl\
The product description and short descriptions are included in the default.php layout.
If you want to change the description ordering simply change its position as per your requirement.
$this->product->product_s_desc and $this->product->product_desc;
If you are planning to change the default VM template style , I recommend to use Joomla Override Concept this way you can simply override the default template with your own.
Here you need to override productdetails view then simply like below.
copy all the files from components\com_virtuemart\views\productdetails\tmpl\ and paste this to , templates/your_template/html/com_virtuemart/productdetails/ If you unable to find this path inside your template folder you have to create that.
This will simply load your new layouts from template folder rather than default path.
Hope it clear for you..

The VM Template system also lets you create additional view templates for categories and products. To override the default categories, category, or productdetails view, simple use the standard Joomla template override method. Copy /components/com_virtuemart/views/[categories, category, or productdetails]/default.php to /templates/[Your Template]/html/com_virtuemart/[categories, category, or productdetails]/default.php and make your changes to the template version of default.php.
To create additional views that can be set on a per category/product basis, simply copy /templates/[Your Template]/html/[categories, category, or productdetails]/default.php to a new file name like /templates/[Your Template]/html/[categories, category, or productdetails]/myView.php and make the desired changes. In the Virtuemart category or product configuration, you will find myView in the drop down list of alternatives views that can be used.

Related

Different product page layouts on different stores with magento multi-store

So here is my quandry..
I have three stores all with seperate themes.
I want the actual layout of the product page to vary between stores. So for instance I would like to include full description on one and only short descitopn on the other and would like to add a tag line field in another. Basically all three will need complete sepearate layouts.
I think the product page layout is drawn from app/design/front/base (as a standard layout).
Can I include the relevant files (and directories) from base into app/design/frontend/default/theme to allow me to achieve the above?
I think the file I need to edit/copy is the view.phtml? Can you confirm this also?
You need to also copy catalog.xml to related theme of store. If want to remove description or add other details of products.
you have to copy view.phtml to related theme of your store and modify/add/delete the code in view.phtml
to remove anything just comment the code in view.phtml file.

Magento Go - Adding attribute above product description in Grid view

Im wanting to add the Brand name (or designer name in this case which i have made a new attribute for) just above the product description in the Category view (grid) but cant figure it out.
As its Magento Go i have no access to the code, other than XML updates for the category itself.
Ive looked everywhere and would value any help.
Thanks
If you are cant get to the template phtml codes, you can put it on by admin.
Open catalog / attributes / manage attributes, find your attribute and in the properties set to
Visible on Product View Page on Front-end
Used in Product Listing
But it will not be on position you want.
You can edit CSS for the template and set an absolute position for your attribute.
Next way is to add in the admin in category XML layout, but this you need to do for each category. (Custom Layout Update)

How can i edit the product template of Magento Website

Sorry for asking for very basic question. Actually i am very new to magento hence couldn't find the solution..Here is the question:
I have a magento ecommerce website and i want to edit the product template of the website.
I have both magento and FTP credentials. But not able to figure out where is the actual product template.
in which folder i have to look for the product template file?
I want to append some HTML to each product page hence i am looking for it.
Please Advise.
Hope to get some help.
Regards,
Rich
The best way to debug this type of issue when new to magento is to "Turn on Template Path Hints"
Log into the admin
Goto -> System ->Configuration, and on the bottom of the list select “Developer”
click on Debug – you will only see “Profiler”. Here is the trick – you have to switch the “Current Configuration Scope:” [in the upper left] to a website instead of default. Select “Main Website”.
Now you will see the selection for Template Path Hints – check yes. This will display the path of the template for each block of the page so you can find stuff! You can also choose to “Add Block Names to Hints” to see the corresponding model class for the block.
Which going to point you to app/design/frontend/[theme]/default/template/catalog/product/*
Read more # http://www.redlightblinking.com/blog/magento-debugging-how-to-debug-template-paths-logging-and-display-errors
In addition to the previous answer make sure to disable the cache otherwise you might not see the results right away.
The Product page has many files attached but mainly the most importants, in my opinion, areI
the media.phtml that controls the size of your mage, more views, etc then you have the
the upsell.phtml that call the upsell products and
the view.phtml that combine all these files.
You can find them at
app/design/frontend/base/default/template/catalog/product
app/design/frontend/base/default/template/catalog/product/view
Copy these files and paste them in your theme directory. DO NOT OVERRIDE THEM! and also keep in mind you have: single product, configurable product, etc so you'll have to edit those files as well if you need!
Hope this helps and any feedback from other users is always appreciated.
I have a Magento e-commerce website and I want to edit the product template of the website. I have both Magento and FTP credentials. But not able to figure out where is the actual product template. in which folder do I have to look for the product template file, I would like to edit my product by adding some code. I found this folder in FTP /public_html/app/design/frontend/ET/base/Magento_Catalog/templates/product/view/productlabels.phtml
I edit some code
unit price :
<script type="text/javascript">
$(document).ready(function() {
var Quantity = document.getElementById("qty").value;
var UnitPrice = document.getElementById("options[4]").value;
var vUnitPrice = vUnitPrice / vQuantity;
vUnitPrice = $("#vUnitPrice ").val(total2.toFixed(2));
document.write(vUnitPrice);
}
</script>
but nothing changes, help me please

set different layout for different product type in magento?

How can we set different layout for different product according to product type?
I want to show Virtual and Bundle product in different layout, simple and grouped will show in differ layout.
Thanks
Checkout catalog.xml file in layout folder of your theme.
There are several handles which might be useful for you:
catalog_product_view
PRODUCT_TYPE_simple
PRODUCT_TYPE_configurable
PRODUCT_TYPE_grouped
PRODUCT_TYPE_virtual
There you can try to change your rendering logic.

How to Retrieve Magento Core Variables in CMS Blocks or Pages?

Changing templates isn't an option in my situation and even so if I make a full HTML page with just two integrated "product blocks: (product name, product image, product price, buy me)", it seems easier to just call the two products you need and insert them directly.
So I'm curious to know if I can retrieve Magento {{variables}} such as product names, images, prices,... . I'm perfectly happy to use Magento Custom Variables to create functions to retrieve these, but I have no idea as to where to start. Any ideas would be appreciated.
As far as I know, it's not possible, nor is it sensible, to do this all from the CMS page.
You're best bet would be to create a widget. Widgets are reusable template tags that are very similar to the blocks used in the Magento layout system.
Once your widget is made, you can then call the widget in the CMS page with a product option, {{widget type="mywidgets/productname" product_id="1"}}, and modify the widget's output based on the product id entered.
The tutorial I've linked to is very good, and should be a great starting point.

Resources