Hi I am trying to move some of the blocks around on the cart page, and have looted in loads of files and cant seem to find what I am looking to edit.
I want to reorganise the 5 blocks that display under the list of what is actually in the cart.
I have a Template Path Hints so I can see what blocks are there and where they are located, but I am beginning to wonder if this is more complicated than I first thought.
Does anyone have any suggestions on how I can tydy up this part of the page?
Please follow following steps-
1- find layout file in magento theme checkout.xml.
2- Find block name which you want to move.
3- Use insert after/before magento XML tag to move these blocks accordingly.
Note: kindly backup your files before editing.
Related
I already searched for solutions but have no idea where to put PHP code found on this site. No one shows how to edit CSS for the years list. I want to make a certain category to show all posts in gallery mode (grid) and to make it yearly filtered exactly like this one:
items in grid. Please excuse me but I really don't know how to explain it better than showing this example and I really don't want to make an ad or a link to this website. I have not found any other way.
Such things are usually accomplished by the use of an archieves.php file in the root of your wordpress theme directory.
So I would suggest just find this file and edit it to your needs: Edit the code to display it as a grid.
You can add your CSS inline but I would not recommend that. Just place your CSS inside one of the files that come with your theme. Mostly they are placed inside your themes directory in a folder called 'styles' or 'css'. Often theres a file especially for custom user styles. Of course you also can create your own one and reference it inside header.php or even import it in one central CSS file.
Here is a little link (did not look into it but maybe thats useful since you already have the CSS code to display items as grid):
Display all wp-posts
I couldn't find a tutorial or hint regarding making a product image in the wordpress theme "uncode" clickable. when clicking on the product image, it only opens the image in full size but doesnt rather redirect to the details page.
I assume it isn't a big thing that needs to be changed/added, but finding it seems quite difficult, as I have no experience regarding this theme at all.
thanks upfront!
EDIT: What I am trying to find out, is how to make this (tutorial for another theme https://slocumthemes.com/2015/10/how-to-make-woocommerce-thumbnails-clickable/) for my theme, uncode.
can anybody help? I think I found the line of code in one of the php files, but I have no proper experience of php
You can override woocommerce template.
Create a folder named woocommerce in your uncode theme and further corresponding folders where relevant file is added in woocommmerce plugin. e.g woocommerce/templates/single-product/product-image.php.
In that overridden file you can customize the HTML i.e link your image.
We're using a magento extension to deal with back to stock notifications (Ebizmarts MageMonkey). This is generating a block in our product pages, when the product is out of stock.
Problem is, the block end up at the end of the main column of the product page, when we would like it to be in the right column of the page.
So, the question is, is there a clean way to move where a block generated by a magento extension (be it MageMonkey or any other) is displayed in a page WITHOUT changing the extension code ? Is there something i can do with a layout.xml file to change where it display, or is it tied to the extension itself ?
I'm still a beginner with magento, so i may be missing something.
Thanks in advance.
You need to enable your template path hints. To do this go to
System --> Configuration --> Developer --> Set template path hints to yes.
If you refresh the page you will see red blocks around your layout components. Find the lay-out block you want to move and open the file (probably a .phtml file). In there you will find something like this:
echo $this->getLayout()->createBlock('cms/block')->setBlockId('my-block')->toHtml();
Cut out that piece of code and place it anywhere you want it.
I'm presuming I have to edit the footer through mysql, I haven't done this website, a colleague who has decided not to come back into work has put this together http://tandgwebdesign.co.uk/ashleafarmshop.co.uk/ and it's using the Journal 2 theme, however, usually I would edit the footer through the footer.tpl, or even in the admin panel, however I can't fathom a way of editing the "FREE DELIVERY ON ALL ORDERS OVER £80" and the few lines of text below.
Could anyone help me out and tell me how to edit this through MySQL? It's an OpenCart website, or is there any easier way to do it?
The footer is stored in a file called footer.tpl in the following folder:
catalog/view/theme/YOUR_THEME_NAME/template/common/footer.tpl
Check the footer's <h1> tag and see if you can edit the text there. If there's only a variable there, then I guess it stored in a language file (catalog/language/YOUR_LANGUAGE/common/footer.php).
I just started using Magento, and to me, it seems like a big mess in there...
I'm looking to edit my home page that I got from a template. It looks great but I took out a bunch of useless static blocks inside of it and now I have wholes everywhere. Check the link:
http://goo.gl/v5uTx
What I don't seem to find is where is my actual page structure? I went into the admin and just found this for my home page:
<p>
{{widget type="flexiblewidget/list" column_count="3" limit_count="9"
if="em_feature_product=1" header="Favorite products" order_by="name asc"
template="flexiblewidget/featured.phtml"}}
</p>
Which is basically a tiny part of the page.
So the question is, where can I find the rest of my page content and structure (ie the slideshow, the top offers, ...) so that I can try to re-organise it to look like a website and not cheese?
Thanks.
Magento is different than most other CMS solutions. You may be used to seeing the raw HTML in the CMS page, or at least a good portion of it. However, Magento uses PHP to render blocks onto the page. It gets it's instructions from XML documents inside of your theme. If this is your first time working with Magento, it may be good to check out this post before you get too frustrated. It will walk you through some basics.
Most likely, the HTML for your slider and top offers are in files inside of your theme directory. Your theme directory will be at app/design/frontend/PACKAGE/THEME/ - your php and html will be in the template folder, and the XML instructions will be in the layout folder. The home page, like many other pages on your site are using a main template to load site-wide HTML and CSS. There are 4 of these main templates by default: 1 column, 2 columns with left sidebar, 2 columns with right sidebar, and 3 columns. These main templates can be found in the templates folder under the "page" directory. If you open one of these templates, you will find a line that looks like this:
<?php echo $this->getChildHtml('content') ?>
This line is asking the XML instructions for anything under the block named "content". That is most likely where the slider is being assigned. You will have to find the XML file this is being defined in. You may want to familiarize yourself with the layout folder and Magento's fallback hierarchy. Check out this post.
Hopefully this will help you out with the issues you're having with your page!