We are using HTML tags in our options on products. The problem is, that the HTML is shown in the order confirmation email.
where can I find the PHTML file to change the option items?
app\design\frontend\our-template\default\layout\sales.xml
app\design\frontend\our-template\default\template\sales\order\items.phtml
I thought this would be the right files but nothing changes.
The template sales\order\items.phtml renders everything around the order items.
As you can see inside it there is this line <?php echo $this->getItemHtml($_item) ?>. That one renders the item row itself.
And the template for each item depends on the product type.
These are the templates used:
email/order/items/order/default.phtml - for simple, configurable and virtual products (grouped products are rendered as simple products).
bundle/email/order/items/order/default.phtml - for bundle items.
downloadable/email/order/items/order/downloadable.phtml - for downloadable items.
If you want to change the way the items look in invoices shipments and creditmemos you will find the templates in the same place. Just replace the folder order with the entity type (invoice, shipment, creditmemo).
Related
I'd like to have a set of products that are available within a certain zip code range. All the products are supposed to be "grouped" underneath a single product. When you want to add a product to the cart, you type in your zip code, and get a list of products you can select which match the zip code entered.
How would one achieve something like this? I've looked into configurable products, but I don't believe that will give me the needed functionality out of the box.
I have created a template in Magento and have added some configurable products. When you select the drop down, the change in price is displayed (eg +6) and this is reflected in the shopping cart.
However, I would like it to upadte the regular and special price on the product page. Is there a way to do this, or is it static html?
Cheers
http://www.titan.x-brand.co.uk/bath-panels/trojan-supastyle-750mm-acrylic-end-panel.html
Price and special price html is not hadr coded - it is changed by javascript Product.OptionsPrice (declared in app/design/frontend/base/default/template/catalog/product/view.phtml)
var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
Implementation of the class is in javascript file js/varien/products.js
The function that should change the price is Product.OptionsPrice.reload
That JS object expects your price and special price html elements to be in certain hierarchy (
<span><span>...</span></span>
this is only an example what I mean by hierarchy) and the elements of this hierarchy must have certain class and id attributes that should not be removed or renamed.
Your changes to phtml files have caused this code to fail (if you inspect your page with firebug you'll notice that there are javascript errors present - not necessarily related to this issue but you should fix them).
The easiest way to start fixing this is that you copy the section of html, related to price, from default phtml file and reapply css once it works.
Also if you have changed the theme through admin (System->Configuration->Design->Package->Current Package Name) you could change it from 'your_theme' back to 'default' and see how it is supposed to work.
I want to add one block for product lines below the products list. When I select a perticular product I want to add Product name as well as its price in the product lines block.
Also I will select multiple products from products list and the lines will be added in the block one by one.
Create a new template file where you load the products and display info
Add the template file in the catalog.xml (or local.xml) under the list.
create a handle to do ajax-requests (dynamically updating the product-lines block)
create controller to save product line and return block
update block content using the ajax handle and controller
That's roughly what it takes if I'm not missing something. I would not recommand this as a newbie to magento, learn the basics first, this is not easy ;-).
We are using the Magento module DerModPro_BCP (Betterconfigurable Products).
We have configurable products based on simple products. Some of these simple products have related products.
When selecting a configuration option, the related products of the assigned simple product should be loaded.
What is the right approach to add blocks to reload when changing options?
The extension renders the full simple product during the AJAX request and extracts the necessary data via Xpath queries from the generated HTML. Then it sends this data to the browser where CSS queries are used to replace the content in the page
Create a new module with a following config.xml
In the node global/bcp/update_selector_list add a new node <related />
In default/dermodpro_bcp add <update_related_.... entries to defined the Xpaths and CSS paths
In addition, catalog/product/list/related.phtml has to be modified in your theme to contain an empty <div> as a placeholder, if no related products are defined.
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.