We have a magento store with the magestore auction module installed.
When we click a category it still loads the theme/catalog/product/list.phtml instead of theme/auction/list.phtml
I have tried copy pasting the code from the auction template to another , this didn't suffice since it still got it's _productCollection from the Local/Mage/Catalog/Block/List.php instead of Local/MageStore/Auction/Block/List.php ... which doesn't have the right filters etc.
Any idea how i should solve this ?
How are your theme directories structured? In case it looks like app/design/frontend//default or so and your Auction extensions design files are not in base, you may need to copy some of its contents to your template directory.
Try first copying the following directories to your theme folder:
app/design/frontend/default/default/layout/auction-extension.xml
This file takes care of showing theme/auction/list.phtml instead of theme/catalog/product/list.phtml
app/design/frontend/default/default/template/auction-extension
The reason why it just displays the default list.phtml instead of your auction's list.phtml
Related
I'm making a web with a Wordpress and modifying some things with a child and css theme. The problem is that the theme uses a folder with the name "Wp-less-Cache" and inside it introduces a "theme-less.css" that it generates automatically. The problem is that now when I try to modify something by css the my mytheme.css (in the child) does not leave me because it tells me that what I want to retouch belongs to the file "theme-less.css" .... and if I tweak the CSS directly in that, it works but when this file is generated again automatically after a while it deletes the modifications that I had made in it.
I would like to know:
Can you disable the wp-less-cache? it is not in my list of plugins or among the plugin folders ...
Can I do something so that my modifications of the child theme are effective if he is active?
Thank you very much
It is used by one plugin called tlg_framework which is a built in plugin with themes that developed by http://www.themelogi.com/
My question is simple, I have avada theme installed on wordpress and I use woocommerce as my plugin, the question is: how can I have those 3 fields one under the other?
Billing address, Shipping Address and Review & Payment not to be on columns (steps) like is now.
Here is a print screen to see how I see the columns now. Thank you in advance :)
Step One: Download Filezilla
To achieve your goals here, you are going to need to access your web files, on your server. One of the ways you can achieve this, is by downloading FileZilla. Once downloaded, you can enter your login credentials on the opening screen, to access your web files. Unfortunately, this method is not the most secure. Follow this article, which shows you how to access your webfiles, via Filezilla, more securely. It looks more complicated than it actually is.
Step Two: Create a Child Theme
Once you are all logged in, you are going to need to create a Child Theme. What you are doing here, is essentially creating a series of overrides. When someone heads to your website, the Parent Theme loads in the background and then the Child Theme loads, overriding the desired Parent Theme files, prior to displaying the content in the browser.
You can edit the Parent Theme files directly but this would not be a good idea. Firstly, it will be more difficult to resolve any errors, should you make a mistake. Secondly, any edits you create will be removed whenever you upload any Theme updates. As good practice, you want to leave the Parent Theme files alone and only place your own customisations in your Child Theme.
Step Three: Create your overrides
Your next step, is all about creating your overrides. To find the location the files you will need to override, head into the following file directory:
wp-content > themes > theme-name > woocommerce
Drag and drop the 'woocommerce' folder onto your computer. This will not remove the 'woocommerce' from the Parent Theme, so do not worry about that.
Then head into your Child Theme and drag the 'woocommerce' folder into your Child Theme.
Step Four: Alter the information
Due to every theme being different, it is not possible for me to tell you exactly which WooCommerce file needs to be edited here or where in each file, you need to place your modification(s). As an educated guess, you may need to edit files such as:
form-shipping.php
form-billing.php
review-order.php
payment.php
payment-method.php
form-pay.php
Focusing on the WooCommerce files you dragged and dropped to your computer, you will need to open each file, using a piece of software, such as [Notepad++].4 Simply right click on each file and select 'Open with Notepad++'. You will then need to spend a little time identifying which file and where in that file, you need to perform your modification(s). When you do each modification, simply drag the file back over into the 'woocommerce' folder within your Child Theme and refresh your browser to see if the changes have occurred. This will require some trial and error.
Step Five: Deleting unmodified files
Once you have successfully achieved your goal(s), delete all of the 'woocommerce' files, within your Child Theme, which you have not modified. This will ensure that the only WooCommerce files, in your Child Theme, are only those which you have modified.
I need to change the way main image on product page is loaded (there is only one image) and make it be loaded from external url.
Now: image is loaded from media folder on my server.
Need: image is loaded from external url without being saved on my server
I have created an additional attribute "externalimg". Its value is eg "https://images.otto.de/is/image/mmo/12489608?$001PICT30$"
I tried editing media.php file which for some reason deliver no changes at all, even if I delete it from server. I use a custom theme.
I did this with catalog images and it worked fine. All products have different images, so changing base media path didn't work.
Thanks in advance.
UPDATE: I have now found out that with default magento theme changing media.phtml works fine. With my theme "yummy" it does not work. Any changes in media.phtml are just ignored.
You should be able to override /app/design/frontend/yournamespace/yourtheme/template/catalog/product/view/media.phtml
If it doesn't exist, copy it from base into your theme folder at the correct path.
However, your theme may also use an extension that is over-writing this default template file. You should be able to use something like https://github.com/AOEpeople/Aoe_TemplateHints to find the correct template, or simply find some specific HTML around the product image and then search your source code to find the relevant section to alter.
Our client is using custom search i.e., Searchperience at present they want to remove the custom search and enable the default magento search. While removing AOE_Searchperience related folders Products are not displaying at all. How can be this solved?
Perhaps you have not removed all the files and there is an XML file that is pointing to a template that doesn't exist.
Are you concerned with the category page or the product page or both?
If everything is displaying on the category page except the products then I suggest you add a quick echo('products would be here'); as the first line of code in the file /app/design/frontend/[your theme or base]/catalog/product/list.phtml
if you can see that string in your shop you know you have identified the correct phtml file and you should check to see if the product collection is populated.
if you do not see the string then you need to work out which list.phtml is being called by Magento. I would search my files for list.phtml but turning on Magento's system->configuration->developer->debug->template path hints (and add block names to hints) will expose which .phtml file is being called and what its block class is - that will help you flesh out if the wrong .phtml file is being used or if it is of the wrong class.
If the correct list.phtml is being called but the product collection is empty then there is something funny going on.
To remedy Magento behaving funny:
log out of the admin area and log back into the admin area
turn compilation off
turn compilation back on
re-index everything
refresh all the Magento caches including the Magento cache and the cache storage
refresh any external caches
try to refresh the page and see if that helped.
If that didn't help, switch to the default Magento theme and repeat the steps above. If the product still aren't there even in the default theme then it suggests there are still some module files getting in the way or maybe the core files have been changed but that would be very odd. Start with the .phtml and the block class (discerned from the debug hints mentioned above and follow the code back until you figure out why the category page has an empty product collection)
If the default Magento theme does display the product then you know your fault is theme specific so turn your theme back on and study the file local.xml very very carefully.
I am working with Drupal 7.17.
I have a custom content type I created called Sidebar Ad (machine name sidebar_ad) that I want to add Javascript and PHP to. From what I understand, in the templates directory of the theme I am working with, I need to create a file called 'page--sidebar_ad.tpl.php' and I can put PHP and Javascript code in there, and it will only run in blocks and pages that contain the custom content type Sidebar Ad.
I am trying this out with one of the stock themes, Bartik, and it is not working for me. I tried it by copying the page.tpl.php file, renaming it page--sidebar_ad.tpl.php, and adding a bit of text in a few places - at the top of the php file, and in the content div. But I don't see anything change on the pages on my site that contain that custom content type.
Is there something I am missing?
Most likely the thing you're missing is flushing Drupal's cache...any time you add a hook or template file, you need to flush the cache so the various registries can pick it up.
In the case of an overridden page template file you also need a copy of the standard page.tpl.php file in your theme. Same goes for the node template and most likely others, you need the original in there for the overrides to work.