I am new to Magneto 2. I want to change the default Header and Footer and place my custom Header and Footer instead. I am using Magento 2.2.0, Please help me.
Related
I need to move the Newsletter Signup from the footer into a Content Block I've created in the backend of my Magento 2.1.3 installation.
In Magento 1 you could use the code below but this appears to be no longer the case using Magento 2
{{block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"}}
Was wondering if anyone had a solution that could help. The site I'm developing is china.testdev.tech and the newsletter signup needs to go into the blue box in the middle of the homepage content.
Thanks in advance.
Kev
In magento-2 To call the particular phtml file, You need to used this code.
{{block class="Magento\Newsletter\Block\Subscribe" name="home.form.subscribe" template="Magento_Newsletter::subscribe.phtml"}}
I am trying to have a header appear on all the pages of a report designed in crystal reports 2013. Most of the reports will one page but occasionally they may be more.
In the section header I add the below to the suppress formula and leave the box unchecked.
If PageNumber<1 Then True
However, if there are two pages the header appears only on page one. Thank you :).
Report header will be added once for report, So there is no meaning to write that formula in report header.
Now as per your requirement.
Add fields in page header and also in group header.
Add the below supress formula for page header.
if pageheader =1
then true
else false
So in page one page header will be supressed and fields will be displayed as headings in group header.
From page 2 from starting of the page you will find the fields and only one problem with this solution is if group header starts from next page you will find two headers.
Let me know how it goes
If you want to show some Objects on all pages then place objects on Page Header, If you want them to shown on Every group then place objects in Group Header, If you want to show them only on start of your report then place them in Report Header.
Is there a possibility of changing existing report header section into page header?
I have a group header which contains the column names for the data in the details section. I am trying to display the group header on every subsequent page since my data in the details section is too much.
I have tried enabling the "Repeat group header on each page option" but still no help. Also tried many other solutions posted on the web. Doesn't seem to help.
My report structure is similar to the below:
Report Header
Page Header
GH1
-GH1a
-GH1b
Details
-GF1b
-GF1a
Report Footer
Page Footer
I am trying to show the group header for GH1b. Any advice would be appreciated. Thanks in advance.
Group header will be displayed on change of every group..
Since your detail data is huge group header won't be carried to next page where there is no change in group.
One wayout would be place all columns of GH1b on the page header so that it appears on every page and write the code to supress the page header when group changes that is when GH1b appears.
Hope this solution helps.
I am having difficulty getting a form to show on a magento store I am working on. the site already has a contact form so I've copied the form.phtml file and renamed it brochure.phtml.
I've created a static page on the CMS section and added this line of code based on this qusetion
{{block type="core/template" template="contacts/brochure.phtml"}}
When I view the page though nothing shows up. What am I doing wrong? I've never used magento before so please be as detailed in your answers if you can.
CMS -> Pages ->Select your page -> Select "Content" on the left side navigation
Post this code there
{{block type="core/template" name="contactForm" form_action="/contacts/index/post" template="contacts/brochure.phtml"}}
make sure your brochure.phtml file is in the same folder as the form.phtml file. If your CMS page is coming up with the header, body format and the rest of the website layout but the middle content section is plain white then it is not loading your brochure.phtml. If this is the case I would then try loading the default form, so replace "brochure.phtml" with "form.phtml" and reload the page. If you see the default form then you know your brochure.phtml file is in the wrong location.
Hope this fixes your problem.