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

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.

Related

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

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.

Product image is not showing up in poduct page where as showing list

Magento product images are showing in list or grid. when i click on the product, the product image is not displaying in the product page. Remaining things Add to cart, Add to compare, wishlist everything is working fine. I think the media.phtml is not loading, Please suggest me in right way.
Thanks in advance.
Firstly, you must confirm whether the media.phtml is loaded. You may insert some dummy characters in the media.phtml to see whether it will show in the frontend.
Thus, if the characters show, congratulations, you are just close to find the problem. In this situation, most problems are caused by image attributes not loading to the model object. Simply just reload the object with the following snippets:
$_product = Mage::getModel('catalog/product')->load($_product->getId());
Otherwise, you may confirm the following things:
Is the media.phtml is overload by the other theme?
Compare with the default catalog.xml with your current one, to find out the media.phtml is correctly loaded, including path, block type, name, as, etc.
Check the permission settings for the xml and template files
These are stuffs coming to my mind when reading your problems. Hope it helps.

Magento translate tags

i have a magento installation wich works pretty well.
So far so good, i've set up different Store Views to manage the store in different languages.
Now, i have the following problem:
I've set up tags from the administration and assigned them to the different products in the different store views (let's say i assign the tag "Buch" to a Product in the german store view, i assign the tag "Book" to the same product in the english store view.
If then a user clicks on one of the tag-names it shows the list of products with the same tag.
But if he changes store-view then, magento keeps the same tag and says that there are no products with that tag.
This seems quite logically, because tags (as far as i understood) are not translatable.
What i want magento to do, is that if a user changes store-view in the list with the products, use a translation of the tag (lets say, a user sees all the products with the tag "buch" and changes the view to english, he sees all the products with the tag "book", or, if that is not possible, when changing store-view, that he always goes to the store homepage.
Thanks 100000 times in advance =)
The only solution I see is to translate tags manually. To do this you have to modify all occurrences of your tags in your templates. For example in template/tag/cloud.phtml replace
<?php echo $this->htmlEscape($_tag->getName()) ?>
with
<?php echo $this->htmlEscape($this->__($_tag->getName())) ?>
And then add the translation for each tag into app/design/frontend/[your-interface]/[your-theme]/locale/de_DE or any other language.
As an alternative solution you can create a custom module which will override $_tag->getName() function and add $this->__() in there.

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 add something to right sidebar in Magento

I'm new to Magento. I've read a dozen of questions here and posts on Magento forums but none of them seem to explain how to solve my problem.
I have a two column layout for my category pages. In right column I have "Recently viewed items", "My basket" and "Compare products". All I need to do is add a static block to the right column.
As far as I know I have to edit some xml file but where is that file? I can't seem to even find how those three existing block were added. My guess is if I could find those I'd figure out how to add one more.
Please help, I'm completely lost now.
Thanks.
Edit
I'm obviously missing something fundamental here. Let me put it in other words.
I have a category "AAA" In this category I have added using Admin panel: a description, image and assigned few products. Then I open this category in web browser I see all my data in main area and those three blocks (mentioned above) in right sidebar.
How does Magento know to show those particular three blocks and not some others? Where does it say to show those three blocks?
You need to update a layout XML file located in app/design/frontend/*DEFAULT*/*DEFAULT*/layout/. Which XML file depends on exactly where you will be updating.
If you want this static block to show up on every single you will need to update the default handle in page.xml. Or, even better, create your own local.xml file as described here, and put this in the contents.
<layout version="0.1.0">
<default>
<reference name="right">
<block type="your/type" template="path/to/your/template.phtml" />
</reference>
</default>
</layout>
If you still have questions, I recommend you review the Designer's Guide
Those blocks are denoted to show in the catalog.xml file, checkout.xml file and the reports.xml file. Recently compared block will also appear if a customer performs a compare products, as would wishlist if a customer adds products to their wishlist (this block s controlled by wishlist.xml). If you wish to stop these blocks from appearing then simply edit these files removing the references referring to the right column and the relevant blocks.
It is possible to edit files so that blocks only appear in certain instances, see the following post for instructions http://emagen.co.uk/magento-tips-advice/hide-shopping-cart-sidebar/

Resources